Blame view

lvdao-miniapp/pages/accepting/accepting.vue 8.19 KB
3f535f30   杨鑫   '初始'
1
2
  <template>
  	<view class="page">
3f535f30   杨鑫   '初始'
3
4
  		<!-- 记录列表 -->
  		<view class="record-list">
e5b57447   杨鑫   '分包问卷'
5
6
  			<view class="good-item">
  				<view class="img">
20f3f580   wesley88   1
7
  					<u-image width="100%" height="100%" border-radius="10" :src="record.cereBasicInformationShop&&record.cereBasicInformationShop.displayMainImage?imgurl + record.cereBasicInformationShop.displayMainImage:record.cereBasicInformationVenue&&record.cereBasicInformationVenue.displayImage?imgurl + record.cereBasicInformationVenue.displayImage:record.cereAdvertisingInformation&&record.cereAdvertisingInformation.locationDiagram?imgurl + record.cereAdvertisingInformation.locationDiagram:''"></u-image>
e5b57447   杨鑫   '分包问卷'
8
9
10
11
12
13
14
15
16
17
18
19
20
  				</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
  					<view class="info-item">
20f3f580   wesley88   1
28
29
  						<text style="padding-right: 20rpx;" >租金:¥{{moban[0].rentalPrice}}/{{moban[0].leaseTerm}}</text>
  						<!-- <text v-if="!record.advertisingSpaceType">面积:{{record.actualUsableArea}}/m²</text> -->
3f535f30   杨鑫   '初始'
30
  					</view>
3f535f30   杨鑫   '初始'
31
  				</view>
3f535f30   杨鑫   '初始'
32
33
34
  			</view>
  		</view>
  		<view class="msglist">
e5b57447   杨鑫   '分包问卷'
35
36
37
38
  			<!-- 租赁详情 -->
  			<view class="form-item">
  				<view class="label">申请时间</view>
  				<text>{{record.applicationTime}}</text>
3f535f30   杨鑫   '初始'
39
  			</view>
e5b57447   杨鑫   '分包问卷'
40
41
  			<view class="form-item">
  				<view class="label">申请状态</view>
0fd8b750   杨鑫   '最新落地1'
42
  				<text> {{record.auditStatus =='1'?'待审核':record.auditStatus =='2'?'待签约':record.auditStatus =='3'?'已驳回':record.auditStatus =='4'?'已签约':'已终止'}}</text>
3f535f30   杨鑫   '初始'
43
  			</view>
e5b57447   杨鑫   '分包问卷'
44
45
46
  			<view class="form-item" v-if="!record.advertisingSpaceType">
  				<view class="label">经营用途</view>
  				<text>{{record.businessPurpose}}</text>
3f535f30   杨鑫   '初始'
47
  			</view>
e5b57447   杨鑫   '分包问卷'
48
49
50
  			<view class="form-item" v-if="record.advertisingSpaceType">
  				<view class="label">投放时段</view>
  				<text>{{record.scheduleTime}}</text>
3f535f30   杨鑫   '初始'
51
  			</view>
e5b57447   杨鑫   '分包问卷'
52
53
54
  			<view class="form-item" v-if="record.advertisingSpaceType">
  				<view class="label">链接</view>
  				<text>{{record.redirectUrl}}</text>
3f535f30   杨鑫   '初始'
55
  			</view>
e5b57447   杨鑫   '分包问卷'
56
57
58
  			<view class="form-item" v-if="record.advertisingSpaceType">
  				<view class="label">广告标题</view>
  				<text>{{record.adTitle}}</text>
3f535f30   杨鑫   '初始'
59
  			</view>
e5b57447   杨鑫   '分包问卷'
60
61
62
  			<view class="form-item" v-if="!record.advertisingSpaceType">
  				<view class="label">意向租期</view>
  				<text>{{record.intendedLeaseTerm}}</text>
3f535f30   杨鑫   '初始'
63
  			</view>
e5b57447   杨鑫   '分包问卷'
64
65
  			<view class="form-item" v-if="!record.advertisingSpaceType">
  				<view class="label">经营主体</view>
0fd8b750   杨鑫   '最新落地1'
66
  				<text>{{record.entityName}}</text>
3f535f30   杨鑫   '初始'
67
  			</view>
e5b57447   杨鑫   '分包问卷'
68
69
70
71
  			<!-- 广告显示 -->
  			<view class="form-item" label-top v-if="record.advertisingSpaceType">
  				<view class="label">广告图片</view>
  				<view class="img">
20f3f580   wesley88   1
72
  					<u-image width="304rpx" height="182rpx"   :src="imgurl + record.coverImage" ></u-image>
e5b57447   杨鑫   '分包问卷'
73
  				</view>
3f535f30   杨鑫   '初始'
74
75
  			</view>
  		</view>
e5b57447   杨鑫   '分包问卷'
76
77
78
  		<view class="msglist">
  			<view class="form-item">
  				<view class="label">经营者姓名</view>
0fd8b750   杨鑫   '最新落地1'
79
  				<text>{{shopMsg.name}}</text>
e5b57447   杨鑫   '分包问卷'
80
81
82
  			</view>
  			<view class="form-item">
  				<view class="label">证件类型</view>
0fd8b750   杨鑫   '最新落地1'
83
  				<text>{{shopMsg.idCardType}}</text>
e5b57447   杨鑫   '分包问卷'
84
85
86
  			</view>
  			<view class="form-item">
  				<view class="label">身份证号码</view>
0fd8b750   杨鑫   '最新落地1'
87
  				<text>{{shopMsg.idCardNumber}}</text>
e5b57447   杨鑫   '分包问卷'
88
  			</view>
0fd8b750   杨鑫   '最新落地1'
89
  			<!-- <view class="form-item">
e5b57447   杨鑫   '分包问卷'
90
91
  				<view class="label">身份证有效期</view>
  				<text>{{record.idValidStart || record.idCardValidStart}}至 {{record.idValidEnd || record.idCardValidEnd}}</text>
0fd8b750   杨鑫   '最新落地1'
92
  			</view> -->
20f3f580   wesley88   1
93
94
95
  			<view  label-top style="line-height: 70rpx;
  		border-bottom: #eee solid 1rpx;
  		padding: 10rpx 0;width: 100%;box-sizing: border-box;">
e5b57447   杨鑫   '分包问卷'
96
  				<view class="label">身份证照片</view>
20f3f580   wesley88   1
97
98
99
  				<view style="display: flex;justify-content: space-around;">
  					<u-image width="150px" height="200rpx"  :src="imgurl+shopMsg.idCardFrontImage"></u-image>
  					<u-image width="150px" height="200rpx"  :src="imgurl+shopMsg.idCardBackImage"></u-image>
3f535f30   杨鑫   '初始'
100
  				</view>
e5b57447   杨鑫   '分包问卷'
101
  			</view>
0fd8b750   杨鑫   '最新落地1'
102
  			<!-- <view class="form-item" label-top>
e5b57447   杨鑫   '分包问卷'
103
104
105
  				<view class="label">企业授权书</view>
  				<view class="img">
  					<u-image width="304rpx" height="182rpx" :src="record.enterpriseAuthorization" ></u-image>
3f535f30   杨鑫   '初始'
106
  				</view>
0fd8b750   杨鑫   '最新落地1'
107
  			</view> -->
e5b57447   杨鑫   '分包问卷'
108
  		</view>
0fd8b750   杨鑫   '最新落地1'
109
110
  		
  		<!-- <view class="footbtn" v-if="record.auditStatus == '2'">
e5b57447   杨鑫   '分包问卷'
111
112
113
114
115
116
  			<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">
0fd8b750   杨鑫   '最新落地1'
117
  				<u-button type="primary" shape="circle">查看合同</u-button>
e5b57447   杨鑫   '分包问卷'
118
  				<u-button type="success" shape="circle" @click="Zhicheck()">立即支付</u-button>
3f535f30   杨鑫   '初始'
119
  			</view>
0fd8b750   杨鑫   '最新落地1'
120
  		</view> -->
20f3f580   wesley88   1
121
  		<view style="height: 100rpx;"></view>
3f535f30   杨鑫   '初始'
122
123
124
125
126
127
128
129
  	</view>
  </template>
  
  <script>
  	export default {
  		data() {
  			return {
  				record:{},
0fd8b750   杨鑫   '最新落地1'
130
  				shopMsg:{},
20f3f580   wesley88   1
131
132
  				moban:[],
  				imgurl:''
e5b57447   杨鑫   '分包问卷'
133
  			}
3f535f30   杨鑫   '初始'
134
135
  		},
  		 onLoad(options) {
20f3f580   wesley88   1
136
  			 this.imgurl = this.$img
3f535f30   杨鑫   '初始'
137
138
139
  		    const item = JSON.parse(decodeURIComponent(options.item));
  		    console.log('Received item:', item);
  			this.record = item
0fd8b750   杨鑫   '最新落地1'
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
  			let objst = {
  			  pageNumber: 0,
  			  pageSize: 10,
  			  checkState: "2",
  			   phone:item.applicant
  			}
  			let paesize = {
  				pageNumber: 0,
  				pageSize: 10,
  				resourcesId: ''
  			}
  			if(item.cereAdvertisingInformation.id){
  				paesize.resourcesId = `gg${item.cereAdvertisingInformation.id}`
  			}else if(item.cereBasicInformationShop.id){
  				paesize.resourcesId = `sp${item.cereBasicInformationShop.id}`
  			}else{
  				paesize.resourcesId = `cd${item.cereBasicInformationVenue.id}`
  			}
  			this.$http.sendRequest('/cerePlatformMerchant/queryByPage', 'POST', objst,1).then(res => {
  							this.shopMsg = res.data.data.content[0]
  							
  			})
  			this.$http.sendRequest('/cereResourceStrategy/queryByResources', 'POST', paesize,1).then(res => {
  				this.moban = res.data.data
  			})
3f535f30   杨鑫   '初始'
165
166
  		  },
  		methods: {
e5b57447   杨鑫   '分包问卷'
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
  			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   杨鑫   '初始'
210
211
212
213
214
215
216
  		}
  	}
  </script>
  
  <style scoped lang="scss">
  	@import 'accepting.scss';
  </style>