Blame view

lvdao-miniapp/pages/accepting/accepting.vue 7.4 KB
3f535f30   杨鑫   '初始'
1
2
  <template>
  	<view class="page">
3f535f30   杨鑫   '初始'
3
4
  		<!-- 记录列表 -->
  		<view class="record-list">
e5b57447   杨鑫   '分包问卷'
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  			<view class="good-item">
  				<view class="img">
  					<u-image width="100%" height="100%" :src="record.cereBasicInformationShop&&record.cereBasicInformationShop.displayMainImage?record.cereBasicInformationShop.displayMainImage:record.cereBasicInformationVenue&&record.cereBasicInformationVenue.displayImage?record.cereBasicInformationVenue.displayImage:record.cereAdvertisingInformation&&record.cereAdvertisingInformation.locationDiagram?record.cereAdvertisingInformation.locationDiagram:''"></u-image>
  				</view>
  				<view class="info">
  					<view class="title">{{
  						record.cereBasicInformationShop&&record.cereBasicInformationShop.shopName?record.cereBasicInformationShop.shopName:record.cereBasicInformationVenue&&record.cereBasicInformationVenue.venueName?record.cereBasicInformationVenue.venueName:record.cereAdvertisingInformation&&record.cereAdvertisingInformation.advertisingName?record.cereAdvertisingInformation.advertisingName:''}}</view>
  					<!-- <view class="info-item" style="margin-bottom: 30rpx;">
  						<u-tag text="标签标签" type="success" size="mini"/>
  						<u-tag text="标签标签" type="success" size="mini"/>
  					</view> -->
  					<view class="info-item" style="margin-bottom: 24rpx;" v-if="!record.advertisingSpaceType">
  						<u-image :showLoading="true"  :src="$imgUrl('/location-icon.png')"  width="20rpx" height="20rpx"></u-image>
  						<text>{{
  							record.cereBasicInformationShop&&record.cereBasicInformationShop.detailedLocation?record.cereBasicInformationShop.detailedLocation:record.cereBasicInformationVenue&&record.cereBasicInformationVenue.detailedLocation?record.cereBasicInformationVenue.detailedLocation:''
  							}}</text>
3f535f30   杨鑫   '初始'
21
  					</view>
e5b57447   杨鑫   '分包问卷'
22
23
24
25
  					<view class="info-item" style="margin-bottom: 24rpx;" v-if="record.advertisingSpaceType">
  						<text style="padding-right: 20rpx;">广告位类型:</text>
  						<text>{{record.advertisingSpaceType?record.advertisingSpaceType:''
  							}}</text>
3f535f30   杨鑫   '初始'
26
  					</view>
e5b57447   杨鑫   '分包问卷'
27
28
29
30
  					<view class="info-item">
  						<text style="padding-right: 20rpx;" v-if="!record.advertisingSpaceType">租金:<span>¥1067/月</span></text>
  						<text style="padding-right: 20rpx;" v-if="record.advertisingSpaceType">租金:<span>¥1067/天</span></text>
  						<text v-if="!record.advertisingSpaceType">面积:<span>81/m²</span></text>
3f535f30   杨鑫   '初始'
31
  					</view>
3f535f30   杨鑫   '初始'
32
  				</view>
3f535f30   杨鑫   '初始'
33
34
35
  			</view>
  		</view>
  		<view class="msglist">
e5b57447   杨鑫   '分包问卷'
36
37
38
39
  			<!-- 租赁详情 -->
  			<view class="form-item">
  				<view class="label">申请时间</view>
  				<text>{{record.applicationTime}}</text>
3f535f30   杨鑫   '初始'
40
  			</view>
e5b57447   杨鑫   '分包问卷'
41
42
43
  			<view class="form-item">
  				<view class="label">申请状态</view>
  				<text>{{record.auditStatus == '1'?'待审核':record.auditStatus == '2'?'审核通过':record.auditStatus == '3'?'已驳回':''}}</text>
3f535f30   杨鑫   '初始'
44
  			</view>
e5b57447   杨鑫   '分包问卷'
45
46
47
  			<view class="form-item" v-if="!record.advertisingSpaceType">
  				<view class="label">经营用途</view>
  				<text>{{record.businessPurpose}}</text>
3f535f30   杨鑫   '初始'
48
  			</view>
e5b57447   杨鑫   '分包问卷'
49
50
51
  			<view class="form-item" v-if="record.advertisingSpaceType">
  				<view class="label">投放时段</view>
  				<text>{{record.scheduleTime}}</text>
3f535f30   杨鑫   '初始'
52
  			</view>
e5b57447   杨鑫   '分包问卷'
53
54
55
  			<view class="form-item" v-if="record.advertisingSpaceType">
  				<view class="label">链接</view>
  				<text>{{record.redirectUrl}}</text>
3f535f30   杨鑫   '初始'
56
  			</view>
e5b57447   杨鑫   '分包问卷'
57
58
59
  			<view class="form-item" v-if="record.advertisingSpaceType">
  				<view class="label">广告标题</view>
  				<text>{{record.adTitle}}</text>
3f535f30   杨鑫   '初始'
60
  			</view>
e5b57447   杨鑫   '分包问卷'
61
62
63
  			<view class="form-item" v-if="!record.advertisingSpaceType">
  				<view class="label">意向租期</view>
  				<text>{{record.intendedLeaseTerm}}</text>
3f535f30   杨鑫   '初始'
64
  			</view>
e5b57447   杨鑫   '分包问卷'
65
66
67
  			<view class="form-item" v-if="!record.advertisingSpaceType">
  				<view class="label">经营主体</view>
  				<text>{{record.operatingEntity}}</text>
3f535f30   杨鑫   '初始'
68
  			</view>
e5b57447   杨鑫   '分包问卷'
69
70
71
72
73
74
  			<!-- 广告显示 -->
  			<view class="form-item" label-top v-if="record.advertisingSpaceType">
  				<view class="label">广告图片</view>
  				<view class="img">
  					<u-image width="304rpx" height="182rpx"   :src="record.coverImage" ></u-image>
  				</view>
3f535f30   杨鑫   '初始'
75
76
  			</view>
  		</view>
e5b57447   杨鑫   '分包问卷'
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
  		<view class="msglist">
  			<view class="form-item">
  				<view class="label">经营者姓名</view>
  				<text>{{record.operatorName||record.lesseeName}}</text>
  			</view>
  			<view class="form-item">
  				<view class="label">证件类型</view>
  				<text>{{record.idCardType}}</text>
  			</view>
  			<view class="form-item">
  				<view class="label">身份证号码</view>
  				<text>{{record.idNumber || record.idCardNumber}}</text>
  			</view>
  			<view class="form-item">
  				<view class="label">身份证有效期</view>
  				<text>{{record.idValidStart || record.idCardValidStart}}至 {{record.idValidEnd || record.idCardValidEnd}}</text>
  			</view>
  			<view class="form-item" label-top>
  				<view class="label">身份证照片</view>
  				<view class="deom-box">
  					<view class="img-deom">
  						<u-image width="304rpx" height="182rpx"  :src="record.idPhotoFront || record.idCardPhotoFront"></u-image>
  					</view>
  					<view class="img-deom">
  						<u-image width="304rpx" height="182rpx"  :src="record.idPhotoBack || record.idCardPhotoBack"></u-image>
  					</view>
3f535f30   杨鑫   '初始'
103
  				</view>
e5b57447   杨鑫   '分包问卷'
104
105
106
107
108
  			</view>
  			<view class="form-item" label-top>
  				<view class="label">企业授权书</view>
  				<view class="img">
  					<u-image width="304rpx" height="182rpx" :src="record.enterpriseAuthorization" ></u-image>
3f535f30   杨鑫   '初始'
109
110
  				</view>
  			</view>
e5b57447   杨鑫   '分包问卷'
111
112
113
114
115
116
117
118
119
120
121
  		</view>
  		<view style="height: 180rpx;" v-if="record.auditStatus == '2'"></view>
  		<view class="footbtn" v-if="record.auditStatus == '2'">
  			<view class="info-total">
  				<view >租期:<span v-if="!record.advertisingSpaceType">2年</span> <span v-if="record.advertisingSpaceType">2/天</span></view>
  				<view >租金:<span v-if="!record.advertisingSpaceType">1067/月</span> <span v-if="record.advertisingSpaceType">150/天</span></view>
  				<view>合计:<span>元</span></view>
  			</view>
  			<view class="footer-btn">
  				<!-- <u-button type="primary" shape="circle">查看合同</u-button> -->
  				<u-button type="success" shape="circle" @click="Zhicheck()">立即支付</u-button>
3f535f30   杨鑫   '初始'
122
123
124
125
126
127
128
129
130
131
  			</view>
  		</view>
  	</view>
  </template>
  
  <script>
  	export default {
  		data() {
  			return {
  				record:{},
e5b57447   杨鑫   '分包问卷'
132
133
  				
  			}
3f535f30   杨鑫   '初始'
134
135
136
137
138
139
140
  		},
  		 onLoad(options) {
  		    const item = JSON.parse(decodeURIComponent(options.item));
  		    console.log('Received item:', item);
  			this.record = item
  		  },
  		methods: {
e5b57447   杨鑫   '分包问卷'
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
  			Zhicheck(){
  				let payList ={
  					additional: "附加交易授权",
  					backUrl: "",
  					channelId: "",
  					expireTime: 1800,
  					finishUrl: "",
  					latitude: "1",
  					longitude: "1",
  					orderNo: "",
  					payId: "",
  					payMerData: [
  						{
  							amount: 100,
  							body: "租赁信息",
  						}
  					],
  					payType: "Online",
  					returnUrl: "",
  					showBtn: "1",
  					siteId: "",
  					toApp: "0",
  					totalAmount: 100,
  					uid: "1693617316237021185",
  					universalLink: ""
  				}
  				  const randomNumber = Math.floor(Math.random() * 10000); // 生成一个0到9999之间的随机数
  				      const timestamp = new Date().getTime(); // 获取当前时间的时间戳
  				      payList.orderNo = `${randomNumber}${timestamp}`
  							
  				payList.uid =uni.getStorageSync('shopId')
  				this.$http.sendRequest('/aggregationPayment/createOrder', 'POST', payList,1).then(res => {
  								uni.showModal({
  									title: res.data.message,
  									showCancel:false,
  									success:ress => {
  										uni.switchTab({
  											url: '/pages/my/my'
  										})
  									}
  								})
  				})
  			}
3f535f30   杨鑫   '初始'
184
185
186
187
188
189
190
  		}
  	}
  </script>
  
  <style scoped lang="scss">
  	@import 'accepting.scss';
  </style>