e5b57447
杨鑫
'分包问卷'
|
1
|
<template>
|
8f8dbfb8
wesley88
1
|
2
3
4
5
6
7
|
<view>
<view class="banner">
<view class="banner-item info">
<view class="info-title">
{{tableData.advertisingName}}
</view>
|
3f950a0f
wesley88
1
|
8
9
|
<!-- <view class="info-text">{{tableData.shopDescription}}</view> -->
<view class="info-racord" style="margin: 20rpx 0;" v-if="moban.length !=0">
|
8f8dbfb8
wesley88
1
|
10
11
12
13
14
15
16
17
|
<view class="info-price"><span>{{moban[0].rentalPrice || ''}}</span>元/{{moban[0].leaseTerm || ''}}
</view>
<!-- <view class="info-intention">{{tableData.id}}人有意向</view> -->
</view>
<view class="" v-if="moban.length !=0" @click="moreZu">
查看更多租金优惠
<u-icon name="arrow-right"></u-icon>
</view>
|
e5b57447
杨鑫
'分包问卷'
|
18
|
</view>
|
8f8dbfb8
wesley88
1
|
19
20
21
22
23
24
25
26
27
28
|
<view class="banner-item field">
<view class="banner-item-title">基础信息</view>
<view class="banner-item-form">
<u-row gutter="16">
<u-col span="7">
<view class="form-item">
<view class="label">广告位类型:</view>
<text>{{tableData.advertisingType}}</text>
</view>
</u-col>
|
3f950a0f
wesley88
1
|
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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 v-if="tableData.advertisingType == '线上广告位'">
<u-col span="5" >
<view class="form-item">
<view class="label">所属端:</view>
<text>{{tableData.affiliation || '--'}}</text>
</view>
</u-col>
<u-col span="5" >
<view class="form-item">
<view class="label">广告位数量:</view>
<text>{{tableData.advertisingNumber || '--'}}</text>
</view>
</u-col>
<!-- <u-col span="5" >
<view class="form-item">
<view class="label">广告尺寸:</view>
<text>{{tableData.dimensions || '--'}}</text>
</view>
</u-col> -->
<u-col span="5" >
<view class="form-item">
<view class="label">可上传大小:</view>
<text>{{tableData.size || '--'}}</text>
</view>
</u-col>
<u-col span="5" >
<view class="form-item">
<view class="label">播放时长:</view>
<text>{{tableData.playDuration || '--'}}</text>
</view>
</u-col>
<u-col span="5" >
<view class="form-item">
<view class="label">推送地址:</view>
<text>{{tableData.pushAddress || '--'}}</text>
</view>
</u-col>
<u-col span="12">
<view class="form-item">
<view class="label">介绍:</view>
<view style='flex: 1;'>
<rich-text v-if="tableData.memo" :nodes="tableData.memo"></rich-text>
<text v-else>无</text>
</view>
</view>
</u-col>
</view>
<view v-if="tableData.advertisingType == '实体广告位'">
<u-col span="5" >
<view class="form-item">
<view class="label">设备类型:</view>
<text>{{tableData.deviceType || '--'}}</text>
</view>
</u-col>
<u-col span="5" >
<view class="form-item">
<view class="label">设备大小:</view>
<text>{{tableData.equipmentSize || '--'}}</text>
</view>
</u-col>
<!-- <u-col span="5" >
<view class="form-item">
<view class="label">广告尺寸:</view>
<text>{{tableData.dimensions || '--'}}</text>
</view>
</u-col> -->
<u-col span="5" >
<view class="form-item">
<view class="label">广告材质:</view>
<text>{{tableData.advertisingMaterial || '--'}}</text>
</view>
</u-col>
</view>
|
8f8dbfb8
wesley88
1
|
103
104
|
</u-row>
</view>
|
0fd8b750
杨鑫
'最新落地1'
|
105
|
</view>
|
8f8dbfb8
wesley88
1
|
106
107
108
109
110
111
112
113
114
115
|
<view class="banner-item">
<view class="banner-item-title">广告信息</view>
<view class="banner-item-form">
<u-row gutter="16">
<u-col span="7">
<view class="form-item">
<view class="label">广告尺寸:</view>
<text>{{tableData.dimensions || '--'}}</text>
</view>
</u-col>
|
3f950a0f
wesley88
1
|
116
|
<!-- <u-col span="5">
|
8f8dbfb8
wesley88
1
|
117
118
119
120
|
<view class="form-item">
<view class="label">可上传大小:</view>
<text>{{tableData.size || '--'}}</text>
</view>
|
3f950a0f
wesley88
1
|
121
|
</u-col> -->
|
8f8dbfb8
wesley88
1
|
122
123
124
125
126
127
128
|
<u-col span="7">
<view class="form-item">
<view class="label">位置示意图:</view>
</view>
</u-col>
<u-col span="12">
<view style="display: flex;flex-wrap: wrap;">
|
440bccda
wesley88
1
|
129
130
|
<u-image @click="openimg(tableData.locationDiagram,index)" :showLoading="true" v-for="(item,index) in list(tableData.locationDiagram)"
v-if="tableData.locationDiagram" :src="imgUrl+item" width="90px" height="90px"
|
8f8dbfb8
wesley88
1
|
131
132
133
134
135
136
137
|
border-radius="20" style="margin-bottom:25rpx;margin-left: 25rpx;"></u-image>
<text v-else>暂无</text>
</view>
<!-- <image :src="imgurl+tableData.locationDiagram" width="100%"></image> -->
</u-col>
</u-row>
</view>
|
e5b57447
杨鑫
'分包问卷'
|
138
|
</view>
|
3f950a0f
wesley88
1
|
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
|
<view class="banner-item position" v-if="tableData.advertisingType == '实体广告位'">
<view class="banner-item-title">位置信息</view>
<view style="margin-top: 16rpx;">
<map style="width: 100%; height: 200rpx;">
<view class="position-info" @click="gomapApp(latitude,longitude)">
<u-image :showLoading="true" :src="$imgUrl('/location-icon.png')" width="20rpx"
height="20rpx"></u-image>
<view>
<text >{{tableData.detailedLocation}}</text>
</view>
</view>
</map>
</view>
</view>
|
e5b57447
杨鑫
'分包问卷'
|
155
|
</view>
|
3f950a0f
wesley88
1
|
156
|
|
8f8dbfb8
wesley88
1
|
157
158
159
160
|
<view style="height: 100rpx;"></view>
<!-- 底部 -->
<view class="page-footer">
<!-- <view class="footer-service">
|
e5b57447
杨鑫
'分包问卷'
|
161
162
163
|
<u-image :showLoading="true" :src="$imgUrl('/sevice-icon.png')" width="30rpx" height="30rpx"></u-image>
<text>客服</text>
</view> -->
|
8f8dbfb8
wesley88
1
|
164
165
166
167
168
169
170
|
<view class="footer-btn">
<!-- <u-button type="primary" @click="leaseAdd('/pages/intentionApply/intentionApply')" style="margin-right:10px;height: 35px;">意向申请</u-button> -->
<u-button type="success" style="width: 100%;border-radius: 10px;"
@click="leaseAdd('/pages/advertisementAdd/advertisementAdd')">租赁申请</u-button>
<!-- <u-button type="success" style="margin-left: unset;" @click="leaseAdd">广告申请</u-button> -->
</view>
<!-- <view class="footer-service">
|
e5b57447
杨鑫
'分包问卷'
|
171
172
173
|
<u-image :showLoading="true" :src="$imgUrl('/share-icon.png')" width="30rpx" height="30rpx"></u-image>
<text>分享</text>
</view> -->
|
8f8dbfb8
wesley88
1
|
174
175
176
|
</view>
</view>
|
e5b57447
杨鑫
'分包问卷'
|
177
178
179
|
</template>
<script>
|
8f8dbfb8
wesley88
1
|
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
|
export default {
data() {
return {
tableData: {},
swiperList: [{
id: 0,
type: 'image',
url: this.$imgUrl('/img/1.jpg')
}],
latitude: 39.909,
longitude: 116.39742,
moban: [],
resourcesId: '',
imgurl: '',
imgUrl: this.$img,
};
},
onLoad(option) {
this.imgurl = this.$img
let data = JSON.parse(option.item)
console.log(data)
this.tableData = data;
this.resourcesId = `gg${data.id}`
let paesize = {
pageNumber: 0,
pageSize: 10,
resourcesId: `gg${data.id}`
|
e5b57447
杨鑫
'分包问卷'
|
207
|
}
|
8f8dbfb8
wesley88
1
|
208
209
210
211
212
213
214
|
this.$http.sendRequest('/cereResourceStrategy/queryByResources', 'POST', paesize, 1).then(res => {
this.moban = res.data.data
}).catch(err => {
console.log(err)
//请求失败
})
|
3f950a0f
wesley88
1
|
215
216
217
218
|
if (data.mapPunctuation) {
this.latitude = parseFloat(data.mapPunctuation.split(',')[0])
this.longitude = parseFloat(data.mapPunctuation.split(',')[1])
}
|
8f8dbfb8
wesley88
1
|
219
220
|
},
methods: {
|
3f950a0f
wesley88
1
|
221
222
223
224
225
226
227
228
229
230
|
gomapApp(latitude, longitude, ) {
let url = "";
uni.openLocation({
latitude: latitude,
longitude: longitude,
success: function() {
console.log('success');
}
});
},
|
440bccda
wesley88
1
|
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
|
openimg(urls,index) {
urls =urls.split(',')
let list = urls.map(item=>{
return this.imgUrl + item
})
uni.previewImage({
current:index,
urls: list,
longPressActions: {
itemList: ['发送给朋友', '保存图片', '收藏'],
success: function(data) {
console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
},
fail: function(err) {
console.log(err.errMsg);
}
}
});
},
|
8f8dbfb8
wesley88
1
|
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
|
list(list) {
const imgs = list.split(',')
return imgs
},
leaseAdd(url) {
this.$http.sendRequest('/cerePlatformMerchant/queryByPage', 'POST', {
"pageSize": 10,
pageNumber: 0,
phone: uni.getStorageSync('user').phone
}).then(res => {
if (res.data.code == '20004' || res.data.code == '20003') {
uni.navigateTo({
url: '/pages/login/login'
})
}
if (res.data.data.content.length > 0) {
let c1 = res.data.data.content[0]
if (c1.checkState == '1') {
uni.showToast({
icon: 'none',
title: '商家申请正在审核中',
duration: 3000
});
} else if (c1.checkState == '3') {
uni.showToast({
icon: 'none',
title: '商家申请审核已被拒绝 请重新提交',
duration: 3000
});
setTimeout(() => {
uni.navigateTo({
url: '/pagesA/leaseAdd/leaseAdd'
})
}, 3000)
} else if (c1.checkState == '2') {
uni.navigateTo({
url: `${url}?ids=${this.tableData.id}&type=${this.tableData.advertisingType}`
})
}
} else {
uni.showToast({
icon: 'none',
title: '请先申请成为商家',
duration: 3000
});
setTimeout(() => {
uni.navigateTo({
url: '/pagesA/leaseAdd/leaseAdd'
})
}, 3000)
}
})
},
moreZu() {
uni.navigateTo({
url: `/pagesA/moreZu/moreZu?resourcesId=${this.resourcesId}`
})
},
|
0fd8b750
杨鑫
'最新落地1'
|
311
|
}
|
8f8dbfb8
wesley88
1
|
312
|
};
|
e5b57447
杨鑫
'分包问卷'
|
313
314
315
|
</script>
<style scoped lang="scss">
|
8f8dbfb8
wesley88
1
|
316
317
|
@import 'advertisementDetail.scss';
</style>
|