Commit 8f8dbfb83390bbaee05fad6afa4ba2a88ce1f9ef
1 parent
0fd5995c
1
Showing
7 changed files
with
250 additions
and
233 deletions
admin-web-master/src/layout/index.vue
| ... | ... | @@ -190,15 +190,15 @@ |
| 190 | 190 | } |
| 191 | 191 | return { |
| 192 | 192 | msg: [], |
| 193 | - list: [], | |
| 193 | + // list: [], | |
| 194 | 194 | // msg: ['招商服务系统', '推广策划系统', '在线商城系统', '支付服务模块', '票务'], |
| 195 | - // list: [ | |
| 196 | - // ['招商资源监测', '商家管理', '商铺租赁服务', '招商方案管理', '招商租赁管理', '广告服务', '轮播图设置', '商户意向管理', '客服服务管理', '系统设置'], | |
| 197 | - // ['品牌策划', '活动策划', '氛围策划', '媒体推广'], | |
| 198 | - // ['订单管理', '积分管理', '消息中心', '会员管理', '评论管理', '商品管理', '库存管理', '销售统计', '优惠券管理', '商城商家管理'], | |
| 199 | - // ['联机交易', '对账处理', '日志管理', '商户服务'], | |
| 200 | - // ['渠道售票统计分析', '销售额统计分析'], | |
| 201 | - // ], | |
| 195 | + list: [ | |
| 196 | + ['招商资源监测', '商家管理', '商铺租赁服务', '招商方案管理', '招商租赁管理', '广告服务', '轮播图设置', '商户意向管理', '客服服务管理', '系统设置'], | |
| 197 | + ['品牌策划', '活动策划', '氛围策划', '媒体推广'], | |
| 198 | + ['订单管理', '积分管理', '消息中心', '会员管理', '评论管理', '商品管理', '库存管理', '销售统计', '优惠券管理', '商城商家管理'], | |
| 199 | + ['联机交易', '对账处理', '日志管理', '商户服务'], | |
| 200 | + ['渠道售票统计分析', '销售额统计分析'], | |
| 201 | + ], | |
| 202 | 202 | listMune: [], |
| 203 | 203 | mumeList: [], |
| 204 | 204 | mumeChildren1: [], |
| ... | ... | @@ -287,9 +287,9 @@ |
| 287 | 287 | this.userAvatar = getUserAvatar() |
| 288 | 288 | }, |
| 289 | 289 | mounted() { |
| 290 | - this.getMemu() | |
| 291 | - this.waibu() | |
| 292 | - // this.neibu() | |
| 290 | + // this.getMemu() | |
| 291 | + // this.waibu() | |
| 292 | + this.neibu() | |
| 293 | 293 | }, |
| 294 | 294 | |
| 295 | 295 | methods: { |
| ... | ... | @@ -729,10 +729,10 @@ |
| 729 | 729 | ['联机交易', '对账处理', '日志管理', '商户服务'], |
| 730 | 730 | ['渠道售票统计分析', '销售额统计分析'], |
| 731 | 731 | ] |
| 732 | - this.getMemu() | |
| 733 | - this.waibu() | |
| 732 | + // this.getMemu() | |
| 733 | + // this.waibu() | |
| 734 | 734 | this.list = this.mumeList |
| 735 | - // this.neibu() | |
| 735 | + this.neibu() | |
| 736 | 736 | |
| 737 | 737 | |
| 738 | 738 | }, | ... | ... |
admin-web-master/src/utils/request.js
| ... | ... | @@ -17,13 +17,13 @@ let baseURL = '' |
| 17 | 17 | if(host === 'localhost:8080' || host === 'localhost:8081' || host === 'localhost:9528'|| host === '192.168.31.45:9528'|| host === 'localhost:9529' ) { |
| 18 | 18 | |
| 19 | 19 | // baseURL = process.env.VUE_APP_DOMAIN_PREFIX_1; |
| 20 | - // baseURL = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server'; | |
| 20 | + baseURL = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server'; | |
| 21 | 21 | // baseURL = 'http://172.16.61.125:9003'; |
| 22 | 22 | |
| 23 | 23 | // baseURL = 'http://128.10.249.206:9003'; |
| 24 | 24 | |
| 25 | 25 | |
| 26 | - baseURL = 'http://128.10.250.204:9003'; | |
| 26 | + // baseURL = 'http://128.10.250.204:9003'; | |
| 27 | 27 | |
| 28 | 28 | // baseURL = process.env.VUE_APP_DOMAIN_PREFIX_1; |
| 29 | 29 | // baseURL = 'http://192.168.2.225:9003'; | ... | ... |
lvdao-miniapp/pages/advertisementDetail/advertisementDetail.vue
| 1 | 1 | <template> |
| 2 | - <view> | |
| 3 | - <view class="banner"> | |
| 4 | - <view class="banner-item info"> | |
| 5 | - <view class="info-title"> | |
| 6 | - {{tableData.advertisingName}} | |
| 2 | + <view> | |
| 3 | + <view class="banner"> | |
| 4 | + <view class="banner-item info"> | |
| 5 | + <view class="info-title"> | |
| 6 | + {{tableData.advertisingName}} | |
| 7 | + </view> | |
| 8 | + <view class="info-text">{{tableData.shopDescription}}</view> | |
| 9 | + <view class="info-racord" v-if="moban.length !=0"> | |
| 10 | + <view class="info-price"><span>{{moban[0].rentalPrice || ''}}</span>元/{{moban[0].leaseTerm || ''}} | |
| 11 | + </view> | |
| 12 | + <!-- <view class="info-intention">{{tableData.id}}人有意向</view> --> | |
| 13 | + </view> | |
| 14 | + <view class="" v-if="moban.length !=0" @click="moreZu"> | |
| 15 | + 查看更多租金优惠 | |
| 16 | + <u-icon name="arrow-right"></u-icon> | |
| 17 | + </view> | |
| 7 | 18 | </view> |
| 8 | - <view class="info-text">{{tableData.shopDescription}}</view> | |
| 9 | - <view class="info-racord" v-if="moban.length !=0"> | |
| 10 | - <view class="info-price"><span>{{moban[0].rentalPrice || ''}}</span>元/{{moban[0].leaseTerm || ''}}</view> | |
| 11 | - <!-- <view class="info-intention">{{tableData.id}}人有意向</view> --> | |
| 19 | + <view class="banner-item field"> | |
| 20 | + <view class="banner-item-title">基础信息</view> | |
| 21 | + <view class="banner-item-form"> | |
| 22 | + <u-row gutter="16"> | |
| 23 | + <u-col span="7"> | |
| 24 | + <view class="form-item"> | |
| 25 | + <view class="label">广告位类型:</view> | |
| 26 | + <text>{{tableData.advertisingType}}</text> | |
| 27 | + </view> | |
| 28 | + </u-col> | |
| 29 | + <u-col span="5"> | |
| 30 | + <view class="form-item"> | |
| 31 | + <view class="label">所属端:</view> | |
| 32 | + <text>{{tableData.affiliation || '--'}}</text> | |
| 33 | + </view> | |
| 34 | + </u-col> | |
| 35 | + <u-col span="7"> | |
| 36 | + <view class="form-item"> | |
| 37 | + <view class="label">轮播顺序:</view> | |
| 38 | + <text>{{tableData.rotationOrder || '--'}}</text> | |
| 39 | + </view> | |
| 40 | + </u-col> | |
| 41 | + </u-row> | |
| 42 | + </view> | |
| 12 | 43 | </view> |
| 13 | - <view class="" v-if="moban.length !=0" @click="moreZu"> | |
| 14 | - 查看更多租金优惠 | |
| 15 | - <u-icon name="arrow-right" ></u-icon> | |
| 44 | + <view class="banner-item"> | |
| 45 | + <view class="banner-item-title">广告信息</view> | |
| 46 | + <view class="banner-item-form"> | |
| 47 | + <u-row gutter="16"> | |
| 48 | + <u-col span="7"> | |
| 49 | + <view class="form-item"> | |
| 50 | + <view class="label">广告尺寸:</view> | |
| 51 | + <text>{{tableData.dimensions || '--'}}</text> | |
| 52 | + </view> | |
| 53 | + </u-col> | |
| 54 | + <u-col span="5"> | |
| 55 | + <view class="form-item"> | |
| 56 | + <view class="label">可上传大小:</view> | |
| 57 | + <text>{{tableData.size || '--'}}</text> | |
| 58 | + </view> | |
| 59 | + </u-col> | |
| 60 | + <u-col span="7"> | |
| 61 | + <view class="form-item"> | |
| 62 | + <view class="label">位置示意图:</view> | |
| 63 | + </view> | |
| 64 | + </u-col> | |
| 65 | + <u-col span="12"> | |
| 66 | + <view style="display: flex;flex-wrap: wrap;"> | |
| 67 | + <u-image :showLoading="true" v-for="(item,index) in list(tableData.locationDiagram)" | |
| 68 | + v-if="tableData.locationDiagram" :src="imgUrl+item" width="140px" height="140px" | |
| 69 | + border-radius="20" style="margin-bottom:25rpx;margin-left: 25rpx;"></u-image> | |
| 70 | + <text v-else>暂无</text> | |
| 71 | + </view> | |
| 72 | + <!-- <image :src="imgurl+tableData.locationDiagram" width="100%"></image> --> | |
| 73 | + </u-col> | |
| 74 | + </u-row> | |
| 75 | + </view> | |
| 16 | 76 | </view> |
| 17 | 77 | </view> |
| 18 | - <view class="banner-item field"> | |
| 19 | - <view class="banner-item-title">基础信息</view> | |
| 20 | - <view class="banner-item-form"> | |
| 21 | - <u-row gutter="16"> | |
| 22 | - <u-col span="7"> | |
| 23 | - <view class="form-item"> | |
| 24 | - <view class="label">广告位类型:</view> | |
| 25 | - <text>{{tableData.advertisingType}}</text> | |
| 26 | - </view> | |
| 27 | - </u-col> | |
| 28 | - <u-col span="5"> | |
| 29 | - <view class="form-item"> | |
| 30 | - <view class="label">所属端:</view> | |
| 31 | - <text>{{tableData.affiliation || '--'}}</text> | |
| 32 | - </view> | |
| 33 | - </u-col> | |
| 34 | - <u-col span="7"> | |
| 35 | - <view class="form-item"> | |
| 36 | - <view class="label">轮播顺序:</view> | |
| 37 | - <text>{{tableData.rotationOrder || '--'}}</text> | |
| 38 | - </view> | |
| 39 | - </u-col> | |
| 40 | - </u-row> | |
| 41 | - </view> | |
| 42 | - </view> | |
| 43 | - <view class="banner-item"> | |
| 44 | - <view class="banner-item-title">广告信息</view> | |
| 45 | - <view class="banner-item-form"> | |
| 46 | - <u-row gutter="16"> | |
| 47 | - <u-col span="7"> | |
| 48 | - <view class="form-item"> | |
| 49 | - <view class="label">广告尺寸:</view> | |
| 50 | - <text>{{tableData.dimensions || '--'}}</text> | |
| 51 | - </view> | |
| 52 | - </u-col> | |
| 53 | - <u-col span="5"> | |
| 54 | - <view class="form-item"> | |
| 55 | - <view class="label">可上传大小:</view> | |
| 56 | - <text>{{tableData.size || '--'}}</text> | |
| 57 | - </view> | |
| 58 | - </u-col> | |
| 59 | - <u-col span="7"> | |
| 60 | - <view class="form-item"> | |
| 61 | - <view class="label">位置示意图:</view> | |
| 62 | - </view> | |
| 63 | - </u-col> | |
| 64 | - <u-col span="12"> | |
| 65 | - <view style="display: flex;flex-wrap: wrap;justify-content: space-around;"> | |
| 66 | - <u-image :showLoading="true" v-for="(item,index) in list(tableData.locationDiagram)" v-if="tableData.locationDiagram" :src="imgUrl+item" width="140px" height="140px" border-radius="20" style="margin-bottom:10rpx;"></u-image> | |
| 67 | - <text v-else>暂无</text> | |
| 68 | - </view> | |
| 69 | - <!-- <image :src="imgurl+tableData.locationDiagram" width="100%"></image> --> | |
| 70 | - </u-col> | |
| 71 | - </u-row> | |
| 72 | - </view> | |
| 73 | - </view> | |
| 74 | - </view> | |
| 75 | - <!-- 底部 --> | |
| 76 | - <view class="page-footer"> | |
| 77 | - <!-- <view class="footer-service"> | |
| 78 | + <view style="height: 100rpx;"></view> | |
| 79 | + <!-- 底部 --> | |
| 80 | + <view class="page-footer"> | |
| 81 | + <!-- <view class="footer-service"> | |
| 78 | 82 | <u-image :showLoading="true" :src="$imgUrl('/sevice-icon.png')" width="30rpx" height="30rpx"></u-image> |
| 79 | 83 | <text>客服</text> |
| 80 | 84 | </view> --> |
| 81 | - <view class="footer-btn"> | |
| 82 | - <!-- <u-button type="primary" @click="leaseAdd('/pages/intentionApply/intentionApply')" style="margin-right:10px;height: 35px;">意向申请</u-button> --> | |
| 83 | - <u-button type="success" style="width: 100%;border-radius: 10px;" @click="leaseAdd('/pages/advertisementAdd/advertisementAdd')">租赁申请</u-button> | |
| 84 | - <!-- <u-button type="success" style="margin-left: unset;" @click="leaseAdd">广告申请</u-button> --> | |
| 85 | - </view> | |
| 86 | - <!-- <view class="footer-service"> | |
| 85 | + <view class="footer-btn"> | |
| 86 | + <!-- <u-button type="primary" @click="leaseAdd('/pages/intentionApply/intentionApply')" style="margin-right:10px;height: 35px;">意向申请</u-button> --> | |
| 87 | + <u-button type="success" style="width: 100%;border-radius: 10px;" | |
| 88 | + @click="leaseAdd('/pages/advertisementAdd/advertisementAdd')">租赁申请</u-button> | |
| 89 | + <!-- <u-button type="success" style="margin-left: unset;" @click="leaseAdd">广告申请</u-button> --> | |
| 90 | + </view> | |
| 91 | + <!-- <view class="footer-service"> | |
| 87 | 92 | <u-image :showLoading="true" :src="$imgUrl('/share-icon.png')" width="30rpx" height="30rpx"></u-image> |
| 88 | 93 | <text>分享</text> |
| 89 | 94 | </view> --> |
| 90 | - | |
| 91 | - </view> | |
| 92 | - </view> | |
| 95 | + | |
| 96 | + </view> | |
| 97 | + </view> | |
| 93 | 98 | </template> |
| 94 | 99 | |
| 95 | 100 | <script> |
| 96 | - | |
| 97 | -export default { | |
| 98 | - data() { | |
| 99 | - return { | |
| 100 | - tableData:{}, | |
| 101 | - swiperList: [ | |
| 102 | - { | |
| 103 | - id: 0, | |
| 104 | - type: 'image', | |
| 105 | - url: this.$imgUrl('/img/1.jpg') | |
| 101 | + export default { | |
| 102 | + data() { | |
| 103 | + return { | |
| 104 | + tableData: {}, | |
| 105 | + swiperList: [{ | |
| 106 | + id: 0, | |
| 107 | + type: 'image', | |
| 108 | + url: this.$imgUrl('/img/1.jpg') | |
| 109 | + }], | |
| 110 | + latitude: 39.909, | |
| 111 | + longitude: 116.39742, | |
| 112 | + moban: [], | |
| 113 | + resourcesId: '', | |
| 114 | + imgurl: '', | |
| 115 | + imgUrl: this.$img, | |
| 116 | + }; | |
| 117 | + }, | |
| 118 | + onLoad(option) { | |
| 119 | + this.imgurl = this.$img | |
| 120 | + let data = JSON.parse(option.item) | |
| 121 | + console.log(data) | |
| 122 | + this.tableData = data; | |
| 123 | + this.resourcesId = `gg${data.id}` | |
| 124 | + let paesize = { | |
| 125 | + pageNumber: 0, | |
| 126 | + pageSize: 10, | |
| 127 | + resourcesId: `gg${data.id}` | |
| 106 | 128 | } |
| 107 | - ], | |
| 108 | - latitude: 39.909, | |
| 109 | - longitude: 116.39742, | |
| 110 | - moban:[], | |
| 111 | - resourcesId:'', | |
| 112 | - imgurl:'', | |
| 113 | - imgUrl:this.$img, | |
| 114 | - }; | |
| 115 | - }, | |
| 116 | - onLoad(option){ | |
| 117 | - this.imgurl = this.$img | |
| 118 | - let data = JSON.parse(option.item) | |
| 119 | - console.log(data) | |
| 120 | - this.tableData = data; | |
| 121 | - this.resourcesId = `gg${data.id}` | |
| 122 | - let paesize = { | |
| 123 | - pageNumber: 0, | |
| 124 | - pageSize: 10, | |
| 125 | - resourcesId: `gg${data.id}` | |
| 129 | + this.$http.sendRequest('/cereResourceStrategy/queryByResources', 'POST', paesize, 1).then(res => { | |
| 130 | + | |
| 131 | + this.moban = res.data.data | |
| 132 | + }).catch(err => { | |
| 133 | + console.log(err) | |
| 134 | + //请求失败 | |
| 135 | + }) | |
| 136 | + }, | |
| 137 | + methods: { | |
| 138 | + list(list) { | |
| 139 | + const imgs = list.split(',') | |
| 140 | + return imgs | |
| 141 | + }, | |
| 142 | + leaseAdd(url) { | |
| 143 | + | |
| 144 | + this.$http.sendRequest('/cerePlatformMerchant/queryByPage', 'POST', { | |
| 145 | + "pageSize": 10, | |
| 146 | + pageNumber: 0, | |
| 147 | + phone: uni.getStorageSync('user').phone | |
| 148 | + }).then(res => { | |
| 149 | + if (res.data.code == '20004' || res.data.code == '20003') { | |
| 150 | + uni.navigateTo({ | |
| 151 | + url: '/pages/login/login' | |
| 152 | + }) | |
| 153 | + | |
| 154 | + } | |
| 155 | + if (res.data.data.content.length > 0) { | |
| 156 | + let c1 = res.data.data.content[0] | |
| 157 | + | |
| 158 | + if (c1.checkState == '1') { | |
| 159 | + uni.showToast({ | |
| 160 | + icon: 'none', | |
| 161 | + title: '商家申请正在审核中', | |
| 162 | + duration: 3000 | |
| 163 | + }); | |
| 164 | + } else if (c1.checkState == '3') { | |
| 165 | + uni.showToast({ | |
| 166 | + icon: 'none', | |
| 167 | + title: '商家申请审核已被拒绝 请重新提交', | |
| 168 | + duration: 3000 | |
| 169 | + }); | |
| 170 | + setTimeout(() => { | |
| 171 | + uni.navigateTo({ | |
| 172 | + url: '/pagesA/leaseAdd/leaseAdd' | |
| 173 | + }) | |
| 174 | + }, 3000) | |
| 175 | + } else if (c1.checkState == '2') { | |
| 176 | + uni.navigateTo({ | |
| 177 | + url: `${url}?ids=${this.tableData.id}&type=${this.tableData.advertisingType}` | |
| 178 | + }) | |
| 179 | + } | |
| 180 | + } else { | |
| 181 | + uni.showToast({ | |
| 182 | + icon: 'none', | |
| 183 | + title: '请先申请成为商家', | |
| 184 | + duration: 3000 | |
| 185 | + }); | |
| 186 | + setTimeout(() => { | |
| 187 | + uni.navigateTo({ | |
| 188 | + url: '/pagesA/leaseAdd/leaseAdd' | |
| 189 | + }) | |
| 190 | + }, 3000) | |
| 191 | + } | |
| 192 | + }) | |
| 193 | + }, | |
| 194 | + moreZu() { | |
| 195 | + uni.navigateTo({ | |
| 196 | + url: `/pagesA/moreZu/moreZu?resourcesId=${this.resourcesId}` | |
| 197 | + }) | |
| 198 | + }, | |
| 126 | 199 | } |
| 127 | - this.$http.sendRequest('/cereResourceStrategy/queryByResources', 'POST', paesize,1).then(res => { | |
| 128 | - | |
| 129 | - this.moban = res.data.data | |
| 130 | - }).catch(err => { | |
| 131 | - console.log(err) | |
| 132 | - //请求失败 | |
| 133 | - }) | |
| 134 | - }, | |
| 135 | - methods: { | |
| 136 | - list(list){ | |
| 137 | - const imgs = list.split(',') | |
| 138 | - return imgs | |
| 139 | - }, | |
| 140 | - leaseAdd(url){ | |
| 141 | - | |
| 142 | - this.$http.sendRequest('/cerePlatformMerchant/queryByPage', 'POST',{"pageSize":10,pageNumber:0,phone:uni.getStorageSync('user').phone}).then(res => { | |
| 143 | - if(res.data.code == '20004' || res.data.code == '20003'){ | |
| 144 | - uni.navigateTo({ | |
| 145 | - url: '/pages/login/login' | |
| 146 | - }) | |
| 147 | - | |
| 148 | - } | |
| 149 | - if(res.data.data.content.length>0) { | |
| 150 | - let c1 = res.data.data.content[0] | |
| 151 | - | |
| 152 | - if(c1.checkState == '1') { | |
| 153 | - uni.showToast({ | |
| 154 | - icon:'none', | |
| 155 | - title: '商家申请正在审核中', | |
| 156 | - duration:3000 | |
| 157 | - }); | |
| 158 | - } else if(c1.checkState == '3') { | |
| 159 | - uni.showToast({ | |
| 160 | - icon:'none', | |
| 161 | - title: '商家申请审核已被拒绝 请重新提交', | |
| 162 | - duration:3000 | |
| 163 | - }); | |
| 164 | - setTimeout(() => { | |
| 165 | - uni.navigateTo({ | |
| 166 | - url:'/pagesA/leaseAdd/leaseAdd' | |
| 167 | - }) | |
| 168 | - }, 3000) | |
| 169 | - } else if(c1.checkState == '2') { | |
| 170 | - uni.navigateTo({ | |
| 171 | - url:`${url}?ids=${this.tableData.id}&type=${this.tableData.advertisingType}` | |
| 172 | - }) | |
| 173 | - } | |
| 174 | - }else{ | |
| 175 | - uni.showToast({ | |
| 176 | - icon:'none', | |
| 177 | - title: '请先申请成为商家', | |
| 178 | - duration:3000 | |
| 179 | - }); | |
| 180 | - setTimeout(() => { | |
| 181 | - uni.navigateTo({ | |
| 182 | - url:'/pagesA/leaseAdd/leaseAdd' | |
| 183 | - }) | |
| 184 | - }, 3000) | |
| 185 | - } | |
| 186 | - }) | |
| 187 | - }, | |
| 188 | - moreZu(){ | |
| 189 | - uni.navigateTo({ | |
| 190 | - url:`/pagesA/moreZu/moreZu?resourcesId=${this.resourcesId}` | |
| 191 | - }) | |
| 192 | - }, | |
| 193 | - } | |
| 194 | -}; | |
| 200 | + }; | |
| 195 | 201 | </script> |
| 196 | 202 | |
| 197 | 203 | <style scoped lang="scss"> |
| 198 | -@import 'advertisementDetail.scss'; | |
| 199 | -</style> | |
| 204 | + @import 'advertisementDetail.scss'; | |
| 205 | +</style> | |
| 200 | 206 | \ No newline at end of file | ... | ... |
lvdao-miniapp/pages/details/details.scss
lvdao-miniapp/pages/details/details.vue
| ... | ... | @@ -4,13 +4,12 @@ |
| 4 | 4 | <!-- <u-image :showLoading="true" |
| 5 | 5 | :src="$img + " |
| 6 | 6 | width="100%" height="100%"></u-image> --> |
| 7 | - <swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="500" style="height: 30vh;"> | |
| 8 | - <!-- 使用 v-for 指令遍历图片链接数组 --> | |
| 9 | - <swiper-item v-for="(imageUrl, index) in lunbo" :key="index"> | |
| 10 | - <!-- u-image 组件用于展示图片 --> | |
| 11 | - <u-image :showLoading="true" :src="$img+imageUrl" width="100%" height="100%"></u-image> | |
| 12 | - </swiper-item> | |
| 13 | - </swiper> | |
| 7 | + <swiper :indicator-dots="false" :autoplay="true" :interval="3000" :duration="500" style="height: 30vh;"> | |
| 8 | + <swiper-item v-for="(imageUrl, index) in lunbo" :key="index"> | |
| 9 | + <u-image :showLoading="true" :src="imageUrl.url" width="100%" height="100%"></u-image> | |
| 10 | + </swiper-item> | |
| 11 | + </swiper> | |
| 12 | + <!-- <u-swiper :list="lunbo" keyName="url" :autoplay="false" :indicator="false"></u-swiper> --> | |
| 14 | 13 | </view> |
| 15 | 14 | <view class="banner"> |
| 16 | 15 | <view class="banner-item info"> |
| ... | ... | @@ -57,37 +56,40 @@ |
| 57 | 56 | <view class="form-item"> |
| 58 | 57 | <view class="label">规划图纸:</view> |
| 59 | 58 | </view> |
| 60 | - <view style="display: flex;flex-wrap: wrap;justify-content: space-around;"> | |
| 61 | - <u-image :showLoading="true" v-for="(item,index) in tableData.architecturalDrawings" v-if="tableData.architecturalDrawings" :src="imgUrl+item" width="140px" height="140px" border-radius="20" style="margin-bottom:10rpx;"></u-image> | |
| 59 | + <view style="display: flex;flex-wrap: wrap;"> | |
| 60 | + <u-image :showLoading="true" v-for="(item,index) in tableData.architecturalDrawings" | |
| 61 | + v-if="tableData.architecturalDrawings" :src="imgUrl+item" width="140px" | |
| 62 | + height="140px" border-radius="20" | |
| 63 | + style="margin-bottom:25rpx;margin-left: 25rpx;"></u-image> | |
| 62 | 64 | <text v-else>暂无</text> |
| 63 | 65 | </view> |
| 64 | 66 | </u-col> |
| 65 | 67 | <u-col span="12"> |
| 66 | 68 | <view class="form-item"> |
| 67 | 69 | <view class="label" style="width: 142rpx;">{{tableData.shopName?'位置描述:':'场地描述:'}}</view> |
| 68 | - | |
| 70 | + | |
| 69 | 71 | <view style='flex: 1;'> |
| 70 | - <text v-if="tableData.shopName">{{tableData.detailedLocation}}</text> | |
| 72 | + <text v-if="tableData.shopName">{{tableData.detailedLocation}}</text> | |
| 71 | 73 | <u-parse :html="tableData.description" v-else></u-parse> |
| 72 | - </view> | |
| 74 | + </view> | |
| 73 | 75 | </view> |
| 74 | 76 | </u-col> |
| 75 | 77 | </u-row> |
| 76 | 78 | </view> |
| 77 | 79 | </view> |
| 78 | - <view class="banner-item position"> | |
| 80 | + <view class="banner-item position" v-if="tableData.shopName"> | |
| 79 | 81 | <view class="banner-item-title">位置信息</view> |
| 80 | 82 | <view style="margin-top: 16rpx;"> |
| 81 | 83 | <map style="width: 100%; height: 200rpx;"> |
| 82 | 84 | <view class="position-info" @click="gomapApp(latitude,longitude)"> |
| 83 | 85 | <u-image :showLoading="true" :src="$imgUrl('/location-icon.png')" width="20rpx" |
| 84 | 86 | height="20rpx"></u-image> |
| 85 | - <view> | |
| 86 | - <text v-if="tableData.shopName">{{tableData.detailedLocation}}</text> | |
| 87 | - <u-parse :html="tableData.description" v-else></u-parse> | |
| 88 | - </view> | |
| 89 | - | |
| 90 | - | |
| 87 | + <view> | |
| 88 | + <text v-if="tableData.shopName">{{tableData.detailedLocation}}</text> | |
| 89 | + <u-parse :html="tableData.description" v-else></u-parse> | |
| 90 | + </view> | |
| 91 | + | |
| 92 | + | |
| 91 | 93 | </view> |
| 92 | 94 | </map> |
| 93 | 95 | </view> |
| ... | ... | @@ -111,6 +113,7 @@ |
| 111 | 113 | </view> --> |
| 112 | 114 | </view> |
| 113 | 115 | <!-- 底部 --> |
| 116 | + <view style="height: 100rpx;"></view> | |
| 114 | 117 | <view class="page-footer"> |
| 115 | 118 | <!-- <view class="footer-service"> |
| 116 | 119 | <u-image :showLoading="true" :src="$imgUrl('/sevice-icon.png')" width="30rpx" height="30rpx"></u-image> |
| ... | ... | @@ -141,13 +144,13 @@ |
| 141 | 144 | type: 'image', |
| 142 | 145 | url: this.$imgUrl('/img/1.jpg') |
| 143 | 146 | }], |
| 144 | - imgUrl:this.$img, | |
| 147 | + imgUrl: this.$img, | |
| 145 | 148 | latitude: null, |
| 146 | 149 | longitude: null, |
| 147 | 150 | qianzui: '', |
| 148 | 151 | moban: [], |
| 149 | 152 | resourcesId: '', |
| 150 | - lunbo:[] | |
| 153 | + lunbo: [] | |
| 151 | 154 | }; |
| 152 | 155 | }, |
| 153 | 156 | filters: { |
| ... | ... | @@ -162,7 +165,7 @@ |
| 162 | 165 | |
| 163 | 166 | let data = JSON.parse(option.item) |
| 164 | 167 | console.log(data) |
| 165 | - | |
| 168 | + | |
| 166 | 169 | if (data.shopName) { |
| 167 | 170 | this.qianzui = 'sp' |
| 168 | 171 | } else { |
| ... | ... | @@ -190,34 +193,42 @@ |
| 190 | 193 | this.tableData.architecturalDrawings = data.planningDrawing.split(',') |
| 191 | 194 | } |
| 192 | 195 | // let location |
| 193 | - if(data.mapPunctuation){ | |
| 196 | + if (data.mapPunctuation) { | |
| 194 | 197 | this.latitude = parseFloat(data.mapPunctuation.split(',')[0]) |
| 195 | 198 | this.longitude = parseFloat(data.mapPunctuation.split(',')[1]) |
| 196 | - }else if(data.mapMarker){ | |
| 199 | + } else if (data.mapMarker) { | |
| 197 | 200 | this.latitude = parseFloat(data.mapMarker.split(',')[0]) |
| 198 | 201 | this.longitude = parseFloat(data.mapMarker.split(',')[1]) |
| 199 | 202 | } |
| 200 | - console.log(this.latitude ,this.longitude) | |
| 203 | + console.log(this.latitude, this.longitude) | |
| 201 | 204 | this.lunbo = [] |
| 202 | - if(data.displayMainImage){ | |
| 203 | - this.lunbo = data.displayMainImage.split(',') | |
| 204 | - }else if(data.locationDiagram){ | |
| 205 | - this.lunbo = data.locationDiagram.split(',') | |
| 206 | - }else if(data.displayImage){ | |
| 207 | - this.lunbo = data.displayImage.split(',') | |
| 205 | + let list1 = [] | |
| 206 | + if (data.displayMainImage) { | |
| 207 | + list1 = data.displayMainImage.split(',') | |
| 208 | + } else if (data.locationDiagram) { | |
| 209 | + list1 = data.locationDiagram.split(',') | |
| 210 | + } else if (data.displayImage) { | |
| 211 | + list1 = data.displayImage.split(',') | |
| 212 | + } | |
| 213 | + for (let i = 0; i < list1.length; i++) { | |
| 214 | + let c1 = { | |
| 215 | + url:this.imgUrl+list1[i] | |
| 216 | + } | |
| 217 | + this.lunbo.push(c1) | |
| 208 | 218 | } |
| 219 | + console.error(this.lunbo) | |
| 209 | 220 | // this.latitude = location.latitude; |
| 210 | 221 | // this.longitude = location.longitude; |
| 211 | 222 | |
| 212 | 223 | }, |
| 213 | 224 | methods: { |
| 214 | 225 | // 打开的点击事件,传经纬度和地点名 |
| 215 | - gomapApp(latitude, longitude,) { | |
| 226 | + gomapApp(latitude, longitude, ) { | |
| 216 | 227 | let url = ""; |
| 217 | 228 | uni.openLocation({ |
| 218 | 229 | latitude: latitude, |
| 219 | 230 | longitude: longitude, |
| 220 | - success: function () { | |
| 231 | + success: function() { | |
| 221 | 232 | console.log('success'); |
| 222 | 233 | } |
| 223 | 234 | }); | ... | ... |
lvdao-miniapp/pages/home/home.scss
lvdao-miniapp/pages/home/home.vue
| ... | ... | @@ -235,11 +235,11 @@ |
| 235 | 235 | </view> |
| 236 | 236 | <!-- <view class="business-card-item">租金:¥<span>{{item.id * 10}}</span>/月</view> |
| 237 | 237 | <view class="business-card-item">面积:<span>{{item.actualUsableArea?item.actualUsableArea:'55.4'}}</span>/m2</view> --> |
| 238 | - <view class="introduce" v-if='item.detailedLocation && item.advertisingType== undefined '> | |
| 238 | + <!-- <view class="introduce" v-if='item.detailedLocation && item.advertisingType== undefined '> | |
| 239 | 239 | <image :src="$imgUrl('/kefu.png')"></image> |
| 240 | 240 | <text class="one-omit" v-if='item.shopName'>{{item.detailedLocation}}</text> |
| 241 | 241 | <text class="one-omit" v-else><u-parse :html="item.description" ></u-parse></text> |
| 242 | - </view> | |
| 242 | + </view> --> | |
| 243 | 243 | <view class="introduce" v-if='item.advertisingType'> |
| 244 | 244 | <text>类型:</text> |
| 245 | 245 | <text class="one-omit">{{item.advertisingType}}</text> | ... | ... |