Commit 0e6c481b3c552c17c779d638a7f32796c968b8b1
1 parent
e64fe8d2
1
Showing
18 changed files
with
680 additions
and
596 deletions
admin-web-master/src/components/chakan/ggsh.vue
| ... | ... | @@ -353,7 +353,8 @@ |
| 353 | 353 | AdvertiserInfoEdit({ |
| 354 | 354 | id: this.info.id, |
| 355 | 355 | 'auditStatus': this.radio, |
| 356 | - auditComments: this.auditComments | |
| 356 | + auditComments: this.auditComments, | |
| 357 | + rentalResourcesId: this.info.rentalResourcesId | |
| 357 | 358 | }).then(res => { |
| 358 | 359 | console.error(res) |
| 359 | 360 | if (res.code == 200) { | ... | ... |
admin-web-master/src/components/chakan/zl.vue
| ... | ... | @@ -507,7 +507,8 @@ |
| 507 | 507 | msgedit({ |
| 508 | 508 | id: this.info.id, |
| 509 | 509 | 'auditStatus': this.radio, |
| 510 | - auditSuggestions: this.info.auditSuggestions | |
| 510 | + auditSuggestions: this.info.auditSuggestions, | |
| 511 | + rentalResourcesId:this.info.rentalResourcesId | |
| 511 | 512 | }).then(res => { |
| 512 | 513 | console.error(res) |
| 513 | 514 | if (res.code == 200) { | ... | ... |
admin-web-master/src/utils/request.js
| ... | ... | @@ -17,7 +17,7 @@ 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 = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server'; |
| 20 | - baseURL = 'http://128.10.249.21:9003'; | |
| 20 | + baseURL = 'http://128.10.249.24:9003'; | |
| 21 | 21 | |
| 22 | 22 | // baseURL = process.env.VUE_APP_DOMAIN_PREFIX_1; |
| 23 | 23 | // baseURL = 'http://192.168.2.225:9003'; | ... | ... |
lvdao-miniapp/pages.json
| ... | ... | @@ -397,6 +397,13 @@ |
| 397 | 397 | "name": "pagesA", |
| 398 | 398 | "pages": [ |
| 399 | 399 | { |
| 400 | + "path": "tishi/tishi", | |
| 401 | + "style": { | |
| 402 | + "navigationBarBackgroundColor": "#FFFFFF", | |
| 403 | + "navigationBarTitleText": "提示" | |
| 404 | + } | |
| 405 | + }, | |
| 406 | + { | |
| 400 | 407 | "path": "hxlist/hxlist", |
| 401 | 408 | "style": { |
| 402 | 409 | "navigationBarBackgroundColor": "#FFFFFF", | ... | ... |
lvdao-miniapp/pages/complaint/complaint.vue
| ... | ... | @@ -23,15 +23,15 @@ |
| 23 | 23 | <input type="text" placeholder="请输入" v-model="ruleForm.problemDescription"> |
| 24 | 24 | </view> |
| 25 | 25 | </view> |
| 26 | - | |
| 26 | + | |
| 27 | 27 | </view> |
| 28 | 28 | </view> |
| 29 | 29 | </view> |
| 30 | - | |
| 30 | + | |
| 31 | 31 | <view class="item"> |
| 32 | - <view class="contents" style="background-color:#fff;padding:10px 20px;"> | |
| 32 | + <view class="contents" style="background-color:#fff;padding:10px 20px;"> | |
| 33 | 33 | <view class="feedback-data"> |
| 34 | - <view > | |
| 34 | + <view> | |
| 35 | 35 | <view class="title"> |
| 36 | 36 | <text style="font-weight: bold;">*现场照片</text> |
| 37 | 37 | <!-- <text class="star">*</text> --> |
| ... | ... | @@ -46,9 +46,9 @@ |
| 46 | 46 | </view> |
| 47 | 47 | </view> |
| 48 | 48 | </view> |
| 49 | - | |
| 49 | + | |
| 50 | 50 | <view class="item"> |
| 51 | - <view class="contents" style="background-color:#fff;padding:10px 20px;"> | |
| 51 | + <view class="contents" style="background-color:#fff;padding:10px 20px;"> | |
| 52 | 52 | <view class="feedback-data"> |
| 53 | 53 | <view> |
| 54 | 54 | <view class="title"> |
| ... | ... | @@ -59,19 +59,23 @@ |
| 59 | 59 | <view class="voucher-img"> |
| 60 | 60 | <view class="voucher-list" style="width: 100%;"> |
| 61 | 61 | <view class="" style="background-color: #F0F0F0;border-radius: 20rpx;"> |
| 62 | - <textarea name="" id="" cols="30" rows="10" placeholder="请输入" style="font-size: 24rpx;background-color: #F0F0F0;border-radius: 20rpx;width: 96%;margin: 0 auto;padding: 20rpx;" v-model="ruleForm.remark"></textarea> | |
| 62 | + <textarea name="" id="" cols="30" rows="10" placeholder="请输入" | |
| 63 | + style="font-size: 24rpx;background-color: #F0F0F0;border-radius: 20rpx;width: 96%;margin: 0 auto;padding: 20rpx;" | |
| 64 | + v-model="ruleForm.remark"></textarea> | |
| 63 | 65 | </view> |
| 64 | 66 | </view> |
| 65 | 67 | </view> |
| 66 | 68 | </view> |
| 67 | 69 | </view> |
| 68 | 70 | </view> |
| 69 | - <u-select v-model="popup1" mode="mutil-column-auto" :list="list" @confirm="pops" label-name="label" value-name="value"></u-select> | |
| 71 | + <u-select v-model="popup1" mode="mutil-column-auto" :list="list" @confirm="pops" label-name="label" | |
| 72 | + value-name="value"></u-select> | |
| 70 | 73 | <!-- 保存按钮 --> |
| 71 | - | |
| 74 | + | |
| 72 | 75 | <!-- <view class="page-footer"> |
| 73 | 76 | <u-button type="success" style="flex: 1; margin: 0 10px;" >提交</u-button> |
| 74 | 77 | </view> --> |
| 78 | + <view style="height: 140rpx;"></view> | |
| 75 | 79 | <view class="page-footer"> |
| 76 | 80 | <view class="footer-btn"> |
| 77 | 81 | <u-button type="success" style="width: 100%;border-radius: 10px;" @click="submit">提交</u-button> |
| ... | ... | @@ -84,11 +88,11 @@ |
| 84 | 88 | export default { |
| 85 | 89 | data() { |
| 86 | 90 | return { |
| 87 | - fileList:[], | |
| 88 | - ruleForm:{ | |
| 89 | - onSitePhoto:[], | |
| 90 | - | |
| 91 | - status:'1' | |
| 91 | + fileList: [], | |
| 92 | + ruleForm: { | |
| 93 | + onSitePhoto: [], | |
| 94 | + | |
| 95 | + status: '1' | |
| 92 | 96 | }, |
| 93 | 97 | list: [{ |
| 94 | 98 | value: '物业投诉', |
| ... | ... | @@ -99,126 +103,126 @@ |
| 99 | 103 | label: '违规投诉' |
| 100 | 104 | } |
| 101 | 105 | ], |
| 102 | - popup1:false | |
| 106 | + popup1: false | |
| 103 | 107 | } |
| 104 | 108 | }, |
| 105 | - methods:{ | |
| 109 | + methods: { | |
| 106 | 110 | chooseLocation(val, item) { |
| 107 | 111 | this.popup1 = true |
| 108 | 112 | }, |
| 109 | 113 | pops(val) { |
| 110 | - this.ruleForm.complaintType = val[0].label | |
| 114 | + this.ruleForm.complaintType = val[0].label | |
| 111 | 115 | |
| 112 | 116 | }, |
| 113 | - check(){ | |
| 114 | - | |
| 115 | - if (!this.ruleForm.complaintType) { | |
| 116 | - uni.showToast({ | |
| 117 | - icon: 'none', | |
| 118 | - title: '请选择投诉类型' | |
| 119 | - }); | |
| 120 | - return false; | |
| 121 | - } | |
| 122 | - if (!this.ruleForm.problemDescription) { | |
| 123 | - uni.showToast({ | |
| 124 | - icon: 'none', | |
| 125 | - title: '请输入问题描述' | |
| 126 | - }); | |
| 127 | - return false; | |
| 128 | - } | |
| 129 | - if (this.ruleForm.onSitePhoto.length== 0) { | |
| 130 | - uni.showToast({ | |
| 131 | - icon: 'none', | |
| 132 | - title: '请上传现场图片' | |
| 133 | - }); | |
| 134 | - return false; | |
| 135 | - } | |
| 136 | - if (!this.ruleForm.remark) { | |
| 137 | - uni.showToast({ | |
| 138 | - icon: 'none', | |
| 139 | - title: '请输入备注信息' | |
| 140 | - }); | |
| 141 | - return false; | |
| 142 | - } | |
| 143 | - | |
| 144 | - return true; | |
| 117 | + check() { | |
| 118 | + | |
| 119 | + if (!this.ruleForm.complaintType) { | |
| 120 | + uni.showToast({ | |
| 121 | + icon: 'none', | |
| 122 | + title: '请选择投诉类型' | |
| 123 | + }); | |
| 124 | + return false; | |
| 125 | + } | |
| 126 | + if (!this.ruleForm.problemDescription) { | |
| 127 | + uni.showToast({ | |
| 128 | + icon: 'none', | |
| 129 | + title: '请输入问题描述' | |
| 130 | + }); | |
| 131 | + return false; | |
| 132 | + } | |
| 133 | + if (this.ruleForm.onSitePhoto.length == 0) { | |
| 134 | + uni.showToast({ | |
| 135 | + icon: 'none', | |
| 136 | + title: '请上传现场图片' | |
| 137 | + }); | |
| 138 | + return false; | |
| 139 | + } | |
| 140 | + if (!this.ruleForm.remark) { | |
| 141 | + uni.showToast({ | |
| 142 | + icon: 'none', | |
| 143 | + title: '请输入备注信息' | |
| 144 | + }); | |
| 145 | + return false; | |
| 146 | + } | |
| 147 | + | |
| 148 | + return true; | |
| 145 | 149 | }, |
| 146 | 150 | submit() { |
| 147 | 151 | let show = this.check() |
| 148 | - if(show == false){ | |
| 149 | - return | |
| 150 | - } | |
| 152 | + if (show == false) { | |
| 153 | + return | |
| 154 | + } | |
| 151 | 155 | this.ruleForm.applicationTime = this.currentTime() |
| 152 | 156 | this.ruleForm.createUser = uni.getStorageSync('user').phone |
| 153 | - this.ruleForm.onSitePhoto = this.ruleForm.onSitePhoto.map(item=>{ | |
| 154 | - return item.replace(this.$img,''); | |
| 157 | + this.ruleForm.onSitePhoto = this.ruleForm.onSitePhoto.map(item => { | |
| 158 | + return item.replace(this.$img, ''); | |
| 155 | 159 | }) |
| 156 | - | |
| 157 | - let info = { | |
| 158 | - ...this.ruleForm, | |
| 159 | - onSitePhoto:this.ruleForm.onSitePhoto.join(','), | |
| 160 | - } | |
| 161 | - | |
| 162 | - this.$http.sendRequest('/cereComplaintsSuggestions/add', 'POST',info,1).then(res => { | |
| 163 | - uni.navigateTo({ | |
| 164 | - url: '/pages/serve/serve' | |
| 165 | - }) | |
| 166 | - }).catch(err => { | |
| 167 | - console.log(err) | |
| 168 | - //请求失败 | |
| 169 | - }) | |
| 170 | - | |
| 171 | - }, | |
| 172 | - // 获取时间 | |
| 173 | - currentTime() { | |
| 174 | - let date = new Date(); | |
| 175 | - let year = date.getFullYear(); | |
| 176 | - let month = date.getMonth() + 1; // 月份从0~11,所以加一 | |
| 177 | - let day = date.getDate(); | |
| 178 | - let hours = date.getHours(); | |
| 179 | - let minutes = date.getMinutes(); | |
| 180 | - let seconds = date.getSeconds(); | |
| 181 | - | |
| 182 | - // 为月、日、时、分、秒添加前导零(如果需要) | |
| 183 | - month = month < 10 ? '0' + month : month; | |
| 184 | - day = day < 10 ? '0' + day : day; | |
| 185 | - hours = hours < 10 ? '0' + hours : hours; | |
| 186 | - minutes = minutes < 10 ? '0' + minutes : minutes; | |
| 187 | - seconds = seconds < 10 ? '0' + seconds : seconds; | |
| 188 | - | |
| 189 | - // 拼接日期和时间字符串 | |
| 190 | - let strDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; | |
| 191 | - return strDate; | |
| 192 | - }, | |
| 193 | - onsuccess1(e, file, fileList, ziduan) { | |
| 194 | - console.error(e, file, fileList, ziduan) | |
| 195 | - uni.uploadFile({ | |
| 196 | - url: this.$upload, // 仅为示例,请替换为您的服务器上传接口 | |
| 197 | - filePath: e[0].url, | |
| 198 | - name: 'file', // 后端接收的文件参数名 | |
| 199 | - formData: { | |
| 200 | - filePath: 'xcx', // 其他表单数据 | |
| 201 | - }, | |
| 202 | - success: (uploadFileRes) => { | |
| 203 | - this.ruleForm.onSitePhoto.push(this.$img + JSON.parse(uploadFileRes.data).data) | |
| 204 | - uni.showToast({ | |
| 205 | - title: '上传成功', | |
| 206 | - icon: 'success', | |
| 207 | - }); | |
| 208 | - }, | |
| 209 | - fail: (err) => { | |
| 210 | - console.error('上传失败', err); | |
| 211 | - uni.showToast({ | |
| 212 | - title: '上传失败', | |
| 213 | - icon: 'none', | |
| 214 | - }); | |
| 215 | - }, | |
| 216 | - }); | |
| 217 | - }, | |
| 160 | + | |
| 161 | + let info = { | |
| 162 | + ...this.ruleForm, | |
| 163 | + onSitePhoto: this.ruleForm.onSitePhoto.join(','), | |
| 164 | + } | |
| 165 | + | |
| 166 | + this.$http.sendRequest('/cereComplaintsSuggestions/add', 'POST', info, 1).then(res => { | |
| 167 | + uni.redirectTo({ | |
| 168 | + url: '/pagesA/tishi/tishi' | |
| 169 | + }) | |
| 170 | + }).catch(err => { | |
| 171 | + console.log(err) | |
| 172 | + //请求失败 | |
| 173 | + }) | |
| 174 | + | |
| 175 | + }, | |
| 176 | + // 获取时间 | |
| 177 | + currentTime() { | |
| 178 | + let date = new Date(); | |
| 179 | + let year = date.getFullYear(); | |
| 180 | + let month = date.getMonth() + 1; // 月份从0~11,所以加一 | |
| 181 | + let day = date.getDate(); | |
| 182 | + let hours = date.getHours(); | |
| 183 | + let minutes = date.getMinutes(); | |
| 184 | + let seconds = date.getSeconds(); | |
| 185 | + | |
| 186 | + // 为月、日、时、分、秒添加前导零(如果需要) | |
| 187 | + month = month < 10 ? '0' + month : month; | |
| 188 | + day = day < 10 ? '0' + day : day; | |
| 189 | + hours = hours < 10 ? '0' + hours : hours; | |
| 190 | + minutes = minutes < 10 ? '0' + minutes : minutes; | |
| 191 | + seconds = seconds < 10 ? '0' + seconds : seconds; | |
| 192 | + | |
| 193 | + // 拼接日期和时间字符串 | |
| 194 | + let strDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; | |
| 195 | + return strDate; | |
| 196 | + }, | |
| 197 | + onsuccess1(e, file, fileList, ziduan) { | |
| 198 | + console.error(e, file, fileList, ziduan) | |
| 199 | + uni.uploadFile({ | |
| 200 | + url: this.$upload, // 仅为示例,请替换为您的服务器上传接口 | |
| 201 | + filePath: e[0].url, | |
| 202 | + name: 'file', // 后端接收的文件参数名 | |
| 203 | + formData: { | |
| 204 | + filePath: 'xcx', // 其他表单数据 | |
| 205 | + }, | |
| 206 | + success: (uploadFileRes) => { | |
| 207 | + this.ruleForm.onSitePhoto.push(this.$img + JSON.parse(uploadFileRes.data).data) | |
| 208 | + uni.showToast({ | |
| 209 | + title: '上传成功', | |
| 210 | + icon: 'success', | |
| 211 | + }); | |
| 212 | + }, | |
| 213 | + fail: (err) => { | |
| 214 | + console.error('上传失败', err); | |
| 215 | + uni.showToast({ | |
| 216 | + title: '上传失败', | |
| 217 | + icon: 'none', | |
| 218 | + }); | |
| 219 | + }, | |
| 220 | + }); | |
| 221 | + }, | |
| 218 | 222 | } |
| 219 | 223 | } |
| 220 | 224 | </script> |
| 221 | 225 | |
| 222 | 226 | <style scoped lang="scss"> |
| 223 | 227 | @import 'complaint.scss'; |
| 224 | 228 | -</style> |
| 229 | +</style> | |
| 225 | 230 | \ No newline at end of file | ... | ... |
lvdao-miniapp/pages/my/my.scss
lvdao-miniapp/pages/my/my.vue
| ... | ... | @@ -135,7 +135,7 @@ |
| 135 | 135 | <view class="list" @click="isshop()" v-if="!isshopon"> |
| 136 | 136 | <view class="icon-data"> |
| 137 | 137 | <view class="icon"> |
| 138 | - <image :src="$imgUrl('/my-icon2.png')" mode=""></image> | |
| 138 | + <image src="@/static/icon/icon1.png" mode="heightFix"></image> | |
| 139 | 139 | </view> |
| 140 | 140 | <view class="data"> |
| 141 | 141 | <view class="title"> |
| ... | ... | @@ -165,7 +165,7 @@ |
| 165 | 165 | <view class="list" @click="toPage('/pagesA/myZiyuan/myZiyuan')"> |
| 166 | 166 | <view class="icon-data"> |
| 167 | 167 | <view class="icon"> |
| 168 | - <image :src="$imgUrl('/my-icon2.png')" mode=""></image> | |
| 168 | + <image src="@/static/icon/icon2.png" mode="heightFix"></image> | |
| 169 | 169 | </view> |
| 170 | 170 | <view class="data"> |
| 171 | 171 | <view class="title"> |
| ... | ... | @@ -180,7 +180,7 @@ |
| 180 | 180 | <view class="list" @click="toPage('/pages/record/record')"> |
| 181 | 181 | <view class="icon-data"> |
| 182 | 182 | <view class="icon"> |
| 183 | - <image :src="$imgUrl('/my-icon2.png')" mode=""></image> | |
| 183 | + <image src="@/static/icon/icon3.png" mode="heightFix"></image> | |
| 184 | 184 | </view> |
| 185 | 185 | <view class="data"> |
| 186 | 186 | <view class="title"> |
| ... | ... | @@ -195,7 +195,7 @@ |
| 195 | 195 | <view class="list" @click="toPage('/pages/serve/serve')"> |
| 196 | 196 | <view class="icon-data"> |
| 197 | 197 | <view class="icon"> |
| 198 | - <image :src="$imgUrl('/my-icon2.png')" mode=""></image> | |
| 198 | + <image src="@/static/icon/icon4.png"mode="heightFix"></image> | |
| 199 | 199 | </view> |
| 200 | 200 | <view class="data"> |
| 201 | 201 | <view class="title"> |
| ... | ... | @@ -210,7 +210,7 @@ |
| 210 | 210 | <view class="list" @click="repair"> |
| 211 | 211 | <view class="icon-data"> |
| 212 | 212 | <view class="icon"> |
| 213 | - <image :src="$imgUrl('/my-icon3.png')" mode=""></image> | |
| 213 | + <image src="@/static/icon/icon5.png" mode="heightFix"></image> | |
| 214 | 214 | </view> |
| 215 | 215 | <view class="data"> |
| 216 | 216 | <view class="title"> |
| ... | ... | @@ -225,7 +225,7 @@ |
| 225 | 225 | <view class="list" @click="complaint"> |
| 226 | 226 | <view class="icon-data"> |
| 227 | 227 | <view class="icon"> |
| 228 | - <image :src="$imgUrl('/my-icon2.png')" mode=""></image> | |
| 228 | + <image src="@/static/icon/icon6.png" mode="heightFix"></image> | |
| 229 | 229 | </view> |
| 230 | 230 | <view class="data"> |
| 231 | 231 | <view class="title"> | ... | ... |
lvdao-miniapp/pages/repair/repair.vue
| ... | ... | @@ -6,7 +6,7 @@ |
| 6 | 6 | <view> |
| 7 | 7 | <view class="title"> |
| 8 | 8 | <text style="font-weight: bold;">*现场照片</text> |
| 9 | - | |
| 9 | + | |
| 10 | 10 | </view> |
| 11 | 11 | </view> |
| 12 | 12 | <view class="voucher-img"> |
| ... | ... | @@ -24,7 +24,7 @@ |
| 24 | 24 | <view class="list"> |
| 25 | 25 | <view class="title"> |
| 26 | 26 | <text style="font-weight: bold;">*设备名称</text> |
| 27 | - | |
| 27 | + | |
| 28 | 28 | </view> |
| 29 | 29 | <view class="content"> |
| 30 | 30 | <input type="text" placeholder="请输入" v-model="ruleForm.deviceName"> |
| ... | ... | @@ -33,9 +33,9 @@ |
| 33 | 33 | <view class="list"> |
| 34 | 34 | <view class="title"> |
| 35 | 35 | <text style="font-weight: bold;">*设备类型</text> |
| 36 | - | |
| 36 | + | |
| 37 | 37 | </view> |
| 38 | - <view class="content" @click="choose(1)" style="width: 25%;"> | |
| 38 | + <view class="content" @click="choose(1)" style="width: 25%;"> | |
| 39 | 39 | <u-input v-model="ruleForm.deviceType" type="select" disabledColor="#ffffff" |
| 40 | 40 | placeholder="请选择" :border="false" suffixIcon="arrow-right" style="pointer-events:none"> |
| 41 | 41 | </u-input> |
| ... | ... | @@ -44,7 +44,7 @@ |
| 44 | 44 | <view class="list"> |
| 45 | 45 | <view class="title"> |
| 46 | 46 | <text style="font-weight: bold;">*保修问题</text> |
| 47 | - | |
| 47 | + | |
| 48 | 48 | </view> |
| 49 | 49 | <view class="content" @click="chooseLocation(1)" style="width: 25%;"> |
| 50 | 50 | <u-input v-model="ruleForm.warrantyIssue" type="select" disabledColor="#ffffff" |
| ... | ... | @@ -52,36 +52,41 @@ |
| 52 | 52 | </u-input> |
| 53 | 53 | </view> |
| 54 | 54 | </view> |
| 55 | - | |
| 56 | - | |
| 55 | + | |
| 56 | + | |
| 57 | 57 | </view> |
| 58 | 58 | </view> |
| 59 | 59 | </view> |
| 60 | - | |
| 61 | - | |
| 62 | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | 63 | <view class="item"> |
| 64 | 64 | <view class="contents" style="background-color:#fff;padding:10px 20px;"> |
| 65 | 65 | <view class="feedback-data"> |
| 66 | 66 | <view> |
| 67 | 67 | <view class="title"> |
| 68 | 68 | <text style="font-weight: bold;">*备注信息</text> |
| 69 | - | |
| 69 | + | |
| 70 | 70 | </view> |
| 71 | 71 | </view> |
| 72 | 72 | <view class="voucher-img"> |
| 73 | 73 | <view class="voucher-list" style="width: 100%;"> |
| 74 | 74 | <view class="" style="background-color: #F0F0F0;border-radius: 20rpx;"> |
| 75 | - <textarea name="" id="" cols="30" rows="10" placeholder="请输入" style="font-size: 24rpx;background-color: #F0F0F0;border-radius: 20rpx;width: 96%;margin: 0 auto;padding: 20rpx;" v-model="ruleForm.memo"></textarea> | |
| 75 | + <textarea name="" id="" cols="30" rows="10" placeholder="请输入" | |
| 76 | + style="font-size: 24rpx;background-color: #F0F0F0;border-radius: 20rpx;width: 96%;margin: 0 auto;padding: 20rpx;" | |
| 77 | + v-model="ruleForm.memo"></textarea> | |
| 76 | 78 | </view> |
| 77 | 79 | </view> |
| 78 | 80 | </view> |
| 79 | 81 | </view> |
| 80 | 82 | </view> |
| 81 | 83 | </view> |
| 82 | - <u-select v-model="popup1" mode="mutil-column-auto" :list="list" @confirm="pops" label-name="label" value-name="value"></u-select> | |
| 83 | - <u-select v-model="popup2" mode="mutil-column-auto" :list="list1" @confirm="pops1" label-name="label" value-name="value"></u-select> | |
| 84 | + <u-select v-model="popup1" mode="mutil-column-auto" :list="list" @confirm="pops" label-name="label" | |
| 85 | + value-name="value"></u-select> | |
| 86 | + <u-select v-model="popup2" mode="mutil-column-auto" :list="list1" @confirm="pops1" label-name="label" | |
| 87 | + value-name="value"></u-select> | |
| 84 | 88 | <!-- 保存按钮 --> |
| 89 | + <view style="height: 140rpx;"></view> | |
| 85 | 90 | <view class="page-footer"> |
| 86 | 91 | <u-button type="success" style="flex: 1; margin: 0 10px;" @click="submit">提交</u-button> |
| 87 | 92 | </view> |
| ... | ... | @@ -92,18 +97,18 @@ |
| 92 | 97 | export default { |
| 93 | 98 | data() { |
| 94 | 99 | return { |
| 95 | - fileList:[], | |
| 96 | - ruleForm:{ | |
| 97 | - onSitePhoto:[], | |
| 98 | - deviceName:'', | |
| 99 | - deviceType:'', | |
| 100 | - warrantyIssue:'', | |
| 101 | - memo:'', | |
| 102 | - applicationTime:'', | |
| 103 | - status:'1' | |
| 100 | + fileList: [], | |
| 101 | + ruleForm: { | |
| 102 | + onSitePhoto: [], | |
| 103 | + deviceName: '', | |
| 104 | + deviceType: '', | |
| 105 | + warrantyIssue: '', | |
| 106 | + memo: '', | |
| 107 | + applicationTime: '', | |
| 108 | + status: '1' | |
| 104 | 109 | }, |
| 105 | - lableXian:'', | |
| 106 | - shelei:'', | |
| 110 | + lableXian: '', | |
| 111 | + shelei: '', | |
| 107 | 112 | list: [{ |
| 108 | 113 | value: '水管问题', |
| 109 | 114 | label: '水管问题' |
| ... | ... | @@ -121,12 +126,12 @@ |
| 121 | 126 | value: '类型2', |
| 122 | 127 | label: '类型2' |
| 123 | 128 | } |
| 124 | - ], | |
| 125 | - popup1:false, | |
| 126 | - popup2:false | |
| 129 | + ], | |
| 130 | + popup1: false, | |
| 131 | + popup2: false | |
| 127 | 132 | } |
| 128 | 133 | }, |
| 129 | - methods:{ | |
| 134 | + methods: { | |
| 130 | 135 | chooseLocation(val, item) { |
| 131 | 136 | this.popup1 = true |
| 132 | 137 | }, |
| ... | ... | @@ -134,125 +139,125 @@ |
| 134 | 139 | this.popup2 = true |
| 135 | 140 | }, |
| 136 | 141 | pops(val) { |
| 137 | - | |
| 138 | - this.ruleForm.warrantyIssue = val[0].label | |
| 142 | + | |
| 143 | + this.ruleForm.warrantyIssue = val[0].label | |
| 139 | 144 | }, |
| 140 | 145 | pops1(val) { |
| 141 | - this.ruleForm.deviceType = val[0].label | |
| 146 | + this.ruleForm.deviceType = val[0].label | |
| 142 | 147 | }, |
| 143 | - check(){ | |
| 144 | - if (this.ruleForm.onSitePhoto.length== 0) { | |
| 145 | - uni.showToast({ | |
| 146 | - icon: 'none', | |
| 147 | - title: '请上传现场图片' | |
| 148 | - }); | |
| 149 | - return false; | |
| 150 | - } | |
| 151 | - if (!this.ruleForm.deviceName) { | |
| 152 | - uni.showToast({ | |
| 153 | - icon: 'none', | |
| 154 | - title: '请输入设备名称' | |
| 155 | - }); | |
| 156 | - return false; | |
| 157 | - } | |
| 158 | - if (!this.ruleForm.deviceType) { | |
| 159 | - uni.showToast({ | |
| 160 | - icon: 'none', | |
| 161 | - title: '请选择设备类型' | |
| 162 | - }); | |
| 163 | - return false; | |
| 164 | - } | |
| 165 | - if (!this.ruleForm.warrantyIssue) { | |
| 166 | - uni.showToast({ | |
| 167 | - icon: 'none', | |
| 168 | - title: '请选择保修问题' | |
| 169 | - }); | |
| 170 | - return false; | |
| 171 | - } | |
| 172 | - if (!this.ruleForm.memo) { | |
| 173 | - uni.showToast({ | |
| 174 | - icon: 'none', | |
| 175 | - title: '请输入备注信息' | |
| 176 | - }); | |
| 177 | - return false; | |
| 178 | - } | |
| 179 | - | |
| 180 | - return true; | |
| 148 | + check() { | |
| 149 | + if (this.ruleForm.onSitePhoto.length == 0) { | |
| 150 | + uni.showToast({ | |
| 151 | + icon: 'none', | |
| 152 | + title: '请上传现场图片' | |
| 153 | + }); | |
| 154 | + return false; | |
| 155 | + } | |
| 156 | + if (!this.ruleForm.deviceName) { | |
| 157 | + uni.showToast({ | |
| 158 | + icon: 'none', | |
| 159 | + title: '请输入设备名称' | |
| 160 | + }); | |
| 161 | + return false; | |
| 162 | + } | |
| 163 | + if (!this.ruleForm.deviceType) { | |
| 164 | + uni.showToast({ | |
| 165 | + icon: 'none', | |
| 166 | + title: '请选择设备类型' | |
| 167 | + }); | |
| 168 | + return false; | |
| 169 | + } | |
| 170 | + if (!this.ruleForm.warrantyIssue) { | |
| 171 | + uni.showToast({ | |
| 172 | + icon: 'none', | |
| 173 | + title: '请选择保修问题' | |
| 174 | + }); | |
| 175 | + return false; | |
| 176 | + } | |
| 177 | + if (!this.ruleForm.memo) { | |
| 178 | + uni.showToast({ | |
| 179 | + icon: 'none', | |
| 180 | + title: '请输入备注信息' | |
| 181 | + }); | |
| 182 | + return false; | |
| 183 | + } | |
| 184 | + | |
| 185 | + return true; | |
| 181 | 186 | }, |
| 182 | 187 | submit() { |
| 183 | - let show = this.check() | |
| 184 | - if(show == false){ | |
| 185 | - return | |
| 186 | - } | |
| 187 | - this.ruleForm.applicationTime = this.currentTime() | |
| 188 | - this.ruleForm.createUser = uni.getStorageSync('user').phone | |
| 189 | - this.ruleForm.onSitePhoto = this.ruleForm.onSitePhoto.map(item=>{ | |
| 190 | - return item.replace(this.$img,''); | |
| 191 | - }) | |
| 192 | - let info = { | |
| 193 | - ...this.ruleForm, | |
| 194 | - onSitePhoto:this.ruleForm.onSitePhoto.join(','), | |
| 195 | - } | |
| 196 | - this.$http.sendRequest('/cereReportIssuesRepairs/add', 'POST',info,1).then(res => { | |
| 197 | - uni.navigateTo({ | |
| 198 | - url: '/pages/serve/serve' | |
| 199 | - }) | |
| 200 | - }).catch(err => { | |
| 201 | - console.log(err) | |
| 202 | - //请求失败 | |
| 203 | - }) | |
| 204 | - | |
| 205 | - }, | |
| 206 | - // 获取时间 | |
| 207 | - currentTime() { | |
| 208 | - let date = new Date(); | |
| 209 | - let year = date.getFullYear(); | |
| 210 | - let month = date.getMonth() + 1; // 月份从0~11,所以加一 | |
| 211 | - let day = date.getDate(); | |
| 212 | - let hours = date.getHours(); | |
| 213 | - let minutes = date.getMinutes(); | |
| 214 | - let seconds = date.getSeconds(); | |
| 215 | - | |
| 216 | - // 为月、日、时、分、秒添加前导零(如果需要) | |
| 217 | - month = month < 10 ? '0' + month : month; | |
| 218 | - day = day < 10 ? '0' + day : day; | |
| 219 | - hours = hours < 10 ? '0' + hours : hours; | |
| 220 | - minutes = minutes < 10 ? '0' + minutes : minutes; | |
| 221 | - seconds = seconds < 10 ? '0' + seconds : seconds; | |
| 222 | - | |
| 223 | - // 拼接日期和时间字符串 | |
| 224 | - let strDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; | |
| 225 | - return strDate; | |
| 226 | - }, | |
| 227 | - onsuccess1(e, file, fileList, ziduan) { | |
| 228 | - console.error(e, file, fileList, ziduan) | |
| 229 | - uni.uploadFile({ | |
| 230 | - url: this.$upload, // 仅为示例,请替换为您的服务器上传接口 | |
| 231 | - filePath: e[0].url, | |
| 232 | - name: 'file', // 后端接收的文件参数名 | |
| 233 | - formData: { | |
| 234 | - filePath: 'xcx', // 其他表单数据 | |
| 235 | - }, | |
| 236 | - success: (uploadFileRes) => { | |
| 237 | - this.ruleForm.onSitePhoto.push(this.$img + JSON.parse(uploadFileRes.data).data) | |
| 238 | - uni.showToast({ | |
| 239 | - title: '上传成功', | |
| 240 | - icon: 'success', | |
| 241 | - }); | |
| 242 | - }, | |
| 243 | - fail: (err) => { | |
| 244 | - console.error('上传失败', err); | |
| 245 | - uni.showToast({ | |
| 246 | - title: '上传失败', | |
| 247 | - icon: 'none', | |
| 248 | - }); | |
| 249 | - }, | |
| 250 | - }); | |
| 251 | - }, | |
| 188 | + let show = this.check() | |
| 189 | + if (show == false) { | |
| 190 | + return | |
| 191 | + } | |
| 192 | + this.ruleForm.applicationTime = this.currentTime() | |
| 193 | + this.ruleForm.createUser = uni.getStorageSync('user').phone | |
| 194 | + this.ruleForm.onSitePhoto = this.ruleForm.onSitePhoto.map(item => { | |
| 195 | + return item.replace(this.$img, ''); | |
| 196 | + }) | |
| 197 | + let info = { | |
| 198 | + ...this.ruleForm, | |
| 199 | + onSitePhoto: this.ruleForm.onSitePhoto.join(','), | |
| 200 | + } | |
| 201 | + this.$http.sendRequest('/cereReportIssuesRepairs/add', 'POST', info, 1).then(res => { | |
| 202 | + uni.redirectTo({ | |
| 203 | + url: '/pagesA/tishi/tishi' | |
| 204 | + }) | |
| 205 | + }).catch(err => { | |
| 206 | + console.log(err) | |
| 207 | + //请求失败 | |
| 208 | + }) | |
| 209 | + | |
| 210 | + }, | |
| 211 | + // 获取时间 | |
| 212 | + currentTime() { | |
| 213 | + let date = new Date(); | |
| 214 | + let year = date.getFullYear(); | |
| 215 | + let month = date.getMonth() + 1; // 月份从0~11,所以加一 | |
| 216 | + let day = date.getDate(); | |
| 217 | + let hours = date.getHours(); | |
| 218 | + let minutes = date.getMinutes(); | |
| 219 | + let seconds = date.getSeconds(); | |
| 220 | + | |
| 221 | + // 为月、日、时、分、秒添加前导零(如果需要) | |
| 222 | + month = month < 10 ? '0' + month : month; | |
| 223 | + day = day < 10 ? '0' + day : day; | |
| 224 | + hours = hours < 10 ? '0' + hours : hours; | |
| 225 | + minutes = minutes < 10 ? '0' + minutes : minutes; | |
| 226 | + seconds = seconds < 10 ? '0' + seconds : seconds; | |
| 227 | + | |
| 228 | + // 拼接日期和时间字符串 | |
| 229 | + let strDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; | |
| 230 | + return strDate; | |
| 231 | + }, | |
| 232 | + onsuccess1(e, file, fileList, ziduan) { | |
| 233 | + console.error(e, file, fileList, ziduan) | |
| 234 | + uni.uploadFile({ | |
| 235 | + url: this.$upload, // 仅为示例,请替换为您的服务器上传接口 | |
| 236 | + filePath: e[0].url, | |
| 237 | + name: 'file', // 后端接收的文件参数名 | |
| 238 | + formData: { | |
| 239 | + filePath: 'xcx', // 其他表单数据 | |
| 240 | + }, | |
| 241 | + success: (uploadFileRes) => { | |
| 242 | + this.ruleForm.onSitePhoto.push(this.$img + JSON.parse(uploadFileRes.data).data) | |
| 243 | + uni.showToast({ | |
| 244 | + title: '上传成功', | |
| 245 | + icon: 'success', | |
| 246 | + }); | |
| 247 | + }, | |
| 248 | + fail: (err) => { | |
| 249 | + console.error('上传失败', err); | |
| 250 | + uni.showToast({ | |
| 251 | + title: '上传失败', | |
| 252 | + icon: 'none', | |
| 253 | + }); | |
| 254 | + }, | |
| 255 | + }); | |
| 256 | + }, | |
| 252 | 257 | } |
| 253 | 258 | } |
| 254 | 259 | </script> |
| 255 | 260 | |
| 256 | 261 | <style scoped lang="scss"> |
| 257 | 262 | @import 'repair.scss'; |
| 258 | 263 | -</style> |
| 264 | +</style> | |
| 259 | 265 | \ No newline at end of file | ... | ... |
lvdao-miniapp/pages/serve/serve.vue
| ... | ... | @@ -2,7 +2,7 @@ |
| 2 | 2 | <view class="page"> |
| 3 | 3 | <view class="screen-list"> |
| 4 | 4 | <view class="list"> |
| 5 | - <u-input v-model="pageindex.start" type="select" @click="typeShow = true" placeholder='服务记录' /> | |
| 5 | + <u-input type="select" @click="typeShow = true" :placeholder='pageindex.start' /> | |
| 6 | 6 | </view> |
| 7 | 7 | </view> |
| 8 | 8 | <!-- 记录列表 --> |
| ... | ... | @@ -14,9 +14,11 @@ |
| 14 | 14 | <view class="right"><u-icon name="arrow-rightward"></u-icon></view> |
| 15 | 15 | </view> |
| 16 | 16 | <view class="info-item">申请时间:{{item.applicationTime}}</view> |
| 17 | - <view class="info-item">状态:<span style="color: #0FBB59;">{{item.status=='1'?'受理中':'已完成'}}</span></view> | |
| 17 | + <view class="info-item">状态:<span style="color: #0FBB59;">{{item.status=='1'?'受理中':'已完成'}}</span> | |
| 18 | + </view> | |
| 18 | 19 | <view style="margin-top: 10px;" v-if="item.status == '2'"> |
| 19 | - <u-button type="success" style="width:30%;height: 28px;margin: 0 10px 0 0;" @click="baoShow(0,item.id)">评价</u-button> | |
| 20 | + <u-button type="success" style="width:30%;height: 28px;margin: 0 10px 0 0;" | |
| 21 | + @click="baoShow(0,item.id)">评价</u-button> | |
| 20 | 22 | </view> |
| 21 | 23 | </view> |
| 22 | 24 | </view> |
| ... | ... | @@ -27,23 +29,27 @@ |
| 27 | 29 | <view class="right"><u-icon name="arrow-rightward"></u-icon></view> |
| 28 | 30 | </view> |
| 29 | 31 | <view class="info-item">申请时间:{{item.applicationTime}}</view> |
| 30 | - <view class="info-item">状态:<span style="color: #0FBB59;">{{item.status=='1'?'受理中':'已完成'}}</span></view> | |
| 32 | + <view class="info-item">状态:<span style="color: #0FBB59;">{{item.status=='1'?'受理中':'已完成'}}</span> | |
| 33 | + </view> | |
| 31 | 34 | <view style="margin-top: 10px;" v-if="item.status == '2'"> |
| 32 | - <u-button type="success" style="width:30%;height: 28px;margin: 0 10px 0 0;" @click="baoShow(1,item.id)">评价</u-button> | |
| 35 | + <u-button type="success" style="width:30%;height: 28px;margin: 0 10px 0 0;" | |
| 36 | + @click="baoShow(1,item.id)">评价</u-button> | |
| 33 | 37 | </view> |
| 34 | 38 | </view> |
| 35 | 39 | </view> |
| 36 | 40 | </view> |
| 37 | 41 | <u-select v-model="typeShow" :list="activesType" @confirm="typeChange"></u-select> |
| 38 | - <u-popup class="userForm" v-model="joinShow" mode="center" border-radius="20" :closeable="true" width="90%" > | |
| 42 | + <u-popup class="userForm" v-model="joinShow" mode="center" border-radius="20" :closeable="true" width="90%"> | |
| 39 | 43 | <view style="padding: 30rpx;"> |
| 40 | 44 | <view style="text-align: center;font-size: 16px;font-weight: 600;margin-bottom: 30rpx;">评价</view> |
| 41 | - <view class="" style="background-color: #F0F0F0;border-radius: 20rpx;margin-bottom: 15px;"> | |
| 42 | - <textarea cols="30" rows="10" placeholder="请输入" maxlength="150" style="font-size: 24rpx;background-color: #F0F0F0;border-radius: 20rpx;width: 96%;margin: 0 auto;padding: 20rpx;" v-model="form.estimate"></textarea> | |
| 43 | - <p style="text-align: right; font-size: 24rpx; color: #666;padding:0 20rpx 10rpx 0;"> | |
| 44 | - 剩余 {{ remainingCharacters }} 字 | |
| 45 | - </p> | |
| 46 | - </view> | |
| 45 | + <view class="" style="background-color: #F0F0F0;border-radius: 20rpx;margin-bottom: 15px;"> | |
| 46 | + <textarea cols="30" rows="10" placeholder="请输入" maxlength="150" | |
| 47 | + style="font-size: 24rpx;background-color: #F0F0F0;border-radius: 20rpx;width: 96%;margin: 0 auto;padding: 20rpx;" | |
| 48 | + v-model="form.estimate"></textarea> | |
| 49 | + <p style="text-align: right; font-size: 24rpx; color: #666;padding:0 20rpx 10rpx 0;"> | |
| 50 | + 剩余 {{ remainingCharacters }} 字 | |
| 51 | + </p> | |
| 52 | + </view> | |
| 47 | 53 | <u-button type="success" @click="submit">提交</u-button> |
| 48 | 54 | </view> |
| 49 | 55 | </u-popup> |
| ... | ... | @@ -54,104 +60,102 @@ |
| 54 | 60 | export default { |
| 55 | 61 | data() { |
| 56 | 62 | return { |
| 57 | - recordList:[ | |
| 58 | - | |
| 63 | + recordList: [ | |
| 64 | + | |
| 59 | 65 | ], |
| 60 | - toushu:[], | |
| 66 | + toushu: [], | |
| 61 | 67 | pageindex: { |
| 68 | + start:'投诉记录', | |
| 62 | 69 | pageNumber: 0, |
| 63 | 70 | pageSize: 10 |
| 64 | 71 | }, |
| 65 | - activesType: [ | |
| 66 | - { | |
| 72 | + activesType: [{ | |
| 67 | 73 | value: 0, |
| 68 | 74 | label: '投诉记录' |
| 69 | - },{ | |
| 75 | + }, { | |
| 70 | 76 | value: 1, |
| 71 | 77 | label: '报修记录' |
| 72 | - } | |
| 73 | - ], | |
| 74 | - typeShow:false, | |
| 75 | - joinShow:false, | |
| 76 | - form:{ | |
| 77 | - estimate:'', | |
| 78 | - id:'' | |
| 78 | + }], | |
| 79 | + typeShow: false, | |
| 80 | + joinShow: false, | |
| 81 | + form: { | |
| 82 | + estimate: '', | |
| 83 | + id: '' | |
| 79 | 84 | }, |
| 80 | - indexMsg :0 | |
| 85 | + indexMsg: 0 | |
| 81 | 86 | } |
| 82 | 87 | }, |
| 83 | - mounted(){ | |
| 88 | + mounted() { | |
| 84 | 89 | this.getALL() |
| 85 | 90 | }, |
| 86 | - computed: { | |
| 87 | - remainingCharacters() { | |
| 88 | - const maxLength = 150; | |
| 89 | - return maxLength - this.form.estimate.length; | |
| 90 | - } | |
| 91 | - }, | |
| 91 | + computed: { | |
| 92 | + remainingCharacters() { | |
| 93 | + const maxLength = 150; | |
| 94 | + return maxLength - this.form.estimate.length; | |
| 95 | + } | |
| 96 | + }, | |
| 92 | 97 | methods: { |
| 93 | - baoShow(val,ids){ | |
| 94 | - this.joinShow = true | |
| 95 | - this.form.estimate = '' | |
| 96 | - this.form.id = ids | |
| 97 | - this.indexMsg = val | |
| 98 | + baoShow(val, ids) { | |
| 99 | + this.joinShow = true | |
| 100 | + this.form.estimate = '' | |
| 101 | + this.form.id = ids | |
| 102 | + this.indexMsg = val | |
| 98 | 103 | }, |
| 99 | - getALL(){ | |
| 100 | - this.pageindex.createUser =uni.getStorageSync('user').phone | |
| 101 | - this.$http.sendRequest('/cereComplaintsSuggestions/queryByPage', 'POST',this.pageindex,1).then(res => { | |
| 102 | - this.toushu = res.data.data.content | |
| 103 | - }).catch(err => { | |
| 104 | - console.log(err) | |
| 105 | - //请求失败 | |
| 104 | + getALL() { | |
| 105 | + this.pageindex.createUser = uni.getStorageSync('user').phone | |
| 106 | + this.$http.sendRequest('/cereComplaintsSuggestions/queryByPage', 'POST', this.pageindex, 1).then( | |
| 107 | + res => { | |
| 108 | + this.toushu = res.data.data.content | |
| 109 | + this.recordList = [] | |
| 106 | 110 | }) |
| 107 | 111 | }, |
| 108 | - recordXq(item){ | |
| 109 | - const encodedItem = encodeURIComponent(JSON.stringify(item)); | |
| 112 | + recordXq(item) { | |
| 113 | + const encodedItem = encodeURIComponent(JSON.stringify(item)); | |
| 110 | 114 | uni.navigateTo({ |
| 111 | - url: `/pages/serve/jiDed?item=${encodedItem}`, | |
| 112 | - }) | |
| 115 | + url: `/pages/serve/jiDed?item=${encodedItem}`, | |
| 116 | + }) | |
| 113 | 117 | }, |
| 114 | 118 | typeChange(e) { |
| 115 | - | |
| 116 | - this.pageindex.start = e[0].labels | |
| 117 | - if(e[0].value == 0){ | |
| 118 | - | |
| 119 | - this.$http.sendRequest('/cereComplaintsSuggestions/queryByPage', 'POST',this.pageindex,1).then(res => { | |
| 119 | + this.pageindex.start = e[0].label | |
| 120 | + if (e[0].value == 0) { | |
| 121 | + | |
| 122 | + this.$http.sendRequest('/cereComplaintsSuggestions/queryByPage', 'POST', this.pageindex, 1).then( | |
| 123 | + res => { | |
| 120 | 124 | this.toushu = res.data.data.content |
| 121 | - this.recordList =[] | |
| 122 | - }) | |
| 123 | - }else{ | |
| 124 | - this.$http.sendRequest('/cereReportIssuesRepairs/queryByPage', 'POST',this.pageindex,1).then(res => { | |
| 125 | - this.recordList = res.data.data.content | |
| 126 | - this.toushu = [] | |
| 125 | + this.recordList = [] | |
| 126 | + }) | |
| 127 | + } else { | |
| 128 | + this.$http.sendRequest('/cereReportIssuesRepairs/queryByPage', 'POST', this.pageindex, 1).then(res => { | |
| 129 | + this.recordList = res.data.data.content | |
| 130 | + this.toushu = [] | |
| 127 | 131 | }) |
| 128 | 132 | } |
| 129 | 133 | }, |
| 130 | - submit(){ | |
| 131 | - if (!this.form.estimate) { | |
| 132 | - uni.showToast({ | |
| 133 | - icon: 'none', | |
| 134 | - title: '请输入评价信息' | |
| 135 | - }); | |
| 136 | - return; | |
| 137 | - } | |
| 138 | - if(this.indexMsg == 1){ | |
| 139 | - this.$http.sendRequest('/cereComplaintsSuggestions/edit', 'POST',this.form,1).then(res => { | |
| 140 | - uni.showToast({ | |
| 141 | - icon: 'success', | |
| 142 | - title: '评价成功' | |
| 143 | - }); | |
| 144 | - }) | |
| 145 | - this.joinShow = false | |
| 146 | - }else{ | |
| 147 | - this.$http.sendRequest('/cereReportIssuesRepairs/edit', 'POST',this.form,1).then(res => { | |
| 148 | - uni.showToast({ | |
| 149 | - icon: 'success', | |
| 150 | - title: '评价成功' | |
| 151 | - }); | |
| 152 | - }) | |
| 153 | - this.joinShow = false | |
| 154 | - } | |
| 134 | + submit() { | |
| 135 | + if (!this.form.estimate) { | |
| 136 | + uni.showToast({ | |
| 137 | + icon: 'none', | |
| 138 | + title: '请输入评价信息' | |
| 139 | + }); | |
| 140 | + return; | |
| 141 | + } | |
| 142 | + if (this.indexMsg == 1) { | |
| 143 | + this.$http.sendRequest('/cereComplaintsSuggestions/edit', 'POST', this.form, 1).then(res => { | |
| 144 | + uni.showToast({ | |
| 145 | + icon: 'success', | |
| 146 | + title: '评价成功' | |
| 147 | + }); | |
| 148 | + }) | |
| 149 | + this.joinShow = false | |
| 150 | + } else { | |
| 151 | + this.$http.sendRequest('/cereReportIssuesRepairs/edit', 'POST', this.form, 1).then(res => { | |
| 152 | + uni.showToast({ | |
| 153 | + icon: 'success', | |
| 154 | + title: '评价成功' | |
| 155 | + }); | |
| 156 | + }) | |
| 157 | + this.joinShow = false | |
| 158 | + } | |
| 155 | 159 | } |
| 156 | 160 | } |
| 157 | 161 | } |
| ... | ... | @@ -159,4 +163,4 @@ |
| 159 | 163 | |
| 160 | 164 | <style scoped lang="scss"> |
| 161 | 165 | @import 'serve.scss'; |
| 162 | -</style> | |
| 166 | +</style> | |
| 163 | 167 | \ No newline at end of file | ... | ... |
lvdao-miniapp/pagesA/myZiyuan/myZiDetails.vue
| 1 | 1 | <template> |
| 2 | 2 | <view class="page"> |
| 3 | 3 | <view class="zhutu"> |
| 4 | - | |
| 5 | - <swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="500" style="height:100%"> | |
| 6 | - <!-- 使用 v-for 指令遍历图片链接数组 --> | |
| 7 | - <swiper-item v-for="(imageUrl, index) in lunbo" :key="index"> | |
| 8 | - <!-- u-image 组件用于展示图片 --> | |
| 9 | - <u-image :showLoading="true" :src="imgurl+imageUrl" width="100%" height="100%" border="20"></u-image> | |
| 10 | - </swiper-item> | |
| 11 | - </swiper> | |
| 12 | - | |
| 13 | - <!-- <u-image width="100%" height="300rpx" :src="imgurl+record.appendicesContract" border-radius="10"></u-image> --> | |
| 14 | - <!-- <u-image width="100%" height="300rpx" :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> --> | |
| 4 | + <swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="500" style="height:100%"> | |
| 5 | + <!-- 使用 v-for 指令遍历图片链接数组 --> | |
| 6 | + <swiper-item v-for="(imageUrl, index) in lunbo" :key="index"> | |
| 7 | + <!-- u-image 组件用于展示图片 --> | |
| 8 | + <u-image :showLoading="true" :src="imgurl+imageUrl" width="100%" height="100%" | |
| 9 | + border="20"></u-image> | |
| 10 | + </swiper-item> | |
| 11 | + </swiper> | |
| 12 | + | |
| 13 | + <!-- <u-image width="100%" height="300rpx" :src="imgurl+record.appendicesContract" border-radius="10"></u-image> --> | |
| 14 | + <!-- <u-image width="100%" height="300rpx" :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> --> | |
| 15 | 15 | </view> |
| 16 | 16 | <view class="msglist"> |
| 17 | - | |
| 17 | + | |
| 18 | 18 | <view class="form-item"> |
| 19 | 19 | <view class="label">租赁状态</view> |
| 20 | 20 | <text>{{record.auditStatus =='1'?'待审核':record.auditStatus =='2'?'待签约':record.auditStatus =='3'?'已驳回':record.auditStatus =='4'?'已签约':'已终止'}}</text> |
| ... | ... | @@ -34,260 +34,269 @@ |
| 34 | 34 | <view class="form-item"> |
| 35 | 35 | <view class="label">付款日</view> |
| 36 | 36 | <text>{{heData.paymentDay || '无'}}</text> |
| 37 | - </view> | |
| 37 | + </view> | |
| 38 | 38 | </view> |
| 39 | 39 | <view class="msglist"> |
| 40 | - <u-read-more show-height="300" color="#3f9b6a" close-text="查看更多" text-indent="0em" v-if="mapType == '商铺'"> | |
| 40 | + <u-read-more show-height="300" color="#3f9b6a" close-text="查看更多" text-indent="0em" v-if="mapType == '商铺'"> | |
| 41 | + <view class="form-item"> | |
| 42 | + <view class="label">商铺名称</view> | |
| 43 | + <text>{{record.cereBasicInformationShop.shopName}}</text> | |
| 44 | + </view> | |
| 45 | + <view class="form-item"> | |
| 46 | + <view class="label">商铺类型</view> | |
| 47 | + <text>{{record.cereBasicInformationShop.shopType=='1'?'移动铺位':record.cereBasicInformationShop.shopType=='2'?'固定铺位':'无'}}</text> | |
| 48 | + </view> | |
| 49 | + | |
| 50 | + <view class="form-item"> | |
| 51 | + <view class="label">实际使用面积</view> | |
| 52 | + <text>{{record.cereBasicInformationShop.actualUsableArea || '无'}}</text> | |
| 53 | + </view> | |
| 54 | + <view class="form-item"> | |
| 55 | + <view class="label">产权面积</view> | |
| 56 | + <text>{{record.cereBasicInformationShop.propertyArea || '无' }}</text> | |
| 57 | + </view> | |
| 58 | + <view class="form-item"> | |
| 59 | + <view class="label">所属区域</view> | |
| 60 | + <text>{{record.cereBasicInformationShop.belongingRegion}}</text> | |
| 61 | + </view> | |
| 62 | + <view class="form-item"> | |
| 63 | + <view class="label">归属部门</view> | |
| 64 | + <text>{{record.cereBasicInformationShop.belongingDepartment || '无'}}</text> | |
| 65 | + </view> | |
| 66 | + <view class="form-item"> | |
| 67 | + <view class="label">详细地址</view> | |
| 68 | + <text>{{record.cereBasicInformationShop.detailedLocation}}</text> | |
| 69 | + </view> | |
| 70 | + </u-read-more> | |
| 71 | + </view> | |
| 72 | + | |
| 73 | + <view class="msglist" v-if="mapType == '广告位'"> | |
| 74 | + <u-read-more show-height="300" color="#3f9b6a" close-text="查看更多" text-indent="0em"> | |
| 75 | + | |
| 76 | + <view class="form-item"> | |
| 77 | + <view class="label">广告位名称</view> | |
| 78 | + <text>{{record.cereAdvertisingInformation.advertisingName}}</text> | |
| 79 | + </view> | |
| 80 | + <view class="form-item"> | |
| 81 | + <view class="label">广告位类型</view> | |
| 82 | + <text>{{record.cereAdvertisingInformation.advertisingType}}</text> | |
| 83 | + </view> | |
| 84 | + <view class="form-item" v-if="record.cereAdvertisingInformation.advertisingType == '线上广告位'"> | |
| 85 | + <view class="label">所属端</view> | |
| 86 | + <text>{{record.cereAdvertisingInformation.applicationTime}}</text> | |
| 87 | + </view> | |
| 88 | + <view class="form-item" v-if="record.cereAdvertisingInformation.advertisingType == '实体广告位'"> | |
| 89 | + <view class="label">广告材质</view> | |
| 90 | + <text>{{record.cereAdvertisingInformation.advertisingMaterial}}</text> | |
| 91 | + </view> | |
| 92 | + <view class="form-item"> | |
| 93 | + <view class="label">广告尺寸</view> | |
| 94 | + <text>{{record.cereAdvertisingInformation.dimensions}}</text> | |
| 95 | + </view> | |
| 96 | + </u-read-more> | |
| 97 | + </view> | |
| 98 | + <view class="msglist" v-if="mapType == '场地'"> | |
| 99 | + <u-read-more show-height="300" color="#3f9b6a" close-text="查看更多" text-indent="0em"> | |
| 100 | + | |
| 101 | + <view class="form-item"> | |
| 102 | + <view class="label">场地名称</view> | |
| 103 | + <text>{{record.cereBasicInformationVenue.venueName}}</text> | |
| 104 | + </view> | |
| 105 | + <view class="form-item"> | |
| 106 | + <view class="label">场地类型</view> | |
| 107 | + <text>{{record.cereBasicInformationVenue.venueType}}</text> | |
| 108 | + </view> | |
| 109 | + <view class="form-item"> | |
| 110 | + <view class="label">实际使用面积</view> | |
| 111 | + <text>{{record.cereBasicInformationVenue.actualArea}}</text> | |
| 112 | + </view> | |
| 113 | + <view class="form-item"> | |
| 114 | + <view class="label">所属区域</view> | |
| 115 | + <text>{{record.cereBasicInformationVenue.district}}</text> | |
| 116 | + </view> | |
| 117 | + <view class="form-item"> | |
| 118 | + <view class="label">详细位置</view> | |
| 119 | + <text>{{record.cereBasicInformationVenue.detailedLocation}}</text> | |
| 120 | + </view> | |
| 121 | + </u-read-more> | |
| 122 | + </view> | |
| 123 | + | |
| 124 | + <view class="msglist" v-if="btnShow == false&&mapType == '商铺'" style="margin-bottom:80px;"> | |
| 125 | + | |
| 126 | + | |
| 41 | 127 | <view class="form-item"> |
| 42 | - <view class="label">商铺名称</view> | |
| 43 | - <text>{{record.cereBasicInformationShop.shopName}}</text> | |
| 128 | + <view class="label">店铺名称</view> | |
| 129 | + <text>{{myshopMsg.shopName}}</text> | |
| 44 | 130 | </view> |
| 45 | 131 | <view class="form-item"> |
| 46 | - <view class="label">商铺类型</view> | |
| 47 | - <text>{{record.cereBasicInformationShop.shopType=='1'?'移动铺位':record.cereBasicInformationShop.shopType=='2'?'固定铺位':'无'}}</text> | |
| 132 | + <view class="label">店铺介绍</view> | |
| 133 | + </view> | |
| 134 | + <view class="" style="background-color: #F0F0F0;border-radius: 20rpx;"> | |
| 135 | + <view style="padding:10px;">{{myshopMsg.shopDescription}}</view> | |
| 48 | 136 | </view> |
| 49 | - | |
| 50 | 137 | <view class="form-item"> |
| 51 | - <view class="label">实际使用面积</view> | |
| 52 | - <text>{{record.cereBasicInformationShop.actualUsableArea || '无'}}</text> | |
| 138 | + <view class="label">营业时间</view> | |
| 139 | + </view> | |
| 140 | + <view class="" style="background-color: #F0F0F0;border-radius: 20rpx;"> | |
| 141 | + <view style="padding:10px;">{{myshopMsg.businessHours}}</view> | |
| 53 | 142 | </view> |
| 54 | 143 | <view class="form-item"> |
| 55 | - <view class="label">产权面积</view> | |
| 56 | - <text>{{record.cereBasicInformationShop.propertyArea || '无' }}</text> | |
| 144 | + <view class="label">联系电话</view> | |
| 145 | + <text>{{myshopMsg.contactNumber}}</text> | |
| 57 | 146 | </view> |
| 58 | 147 | <view class="form-item"> |
| 59 | - <view class="label">所属区域</view> | |
| 60 | - <text>{{record.cereBasicInformationShop.belongingRegion}}</text> | |
| 148 | + <view class="label">位置描述</view> | |
| 149 | + </view> | |
| 150 | + <view class="" style="background-color: #F0F0F0;border-radius: 20rpx;"> | |
| 151 | + <view style="padding:10px;">{{myshopMsg.locationDescription}}</view> | |
| 61 | 152 | </view> |
| 62 | 153 | <view class="form-item"> |
| 63 | - <view class="label">归属部门</view> | |
| 64 | - <text>{{record.cereBasicInformationShop.belongingDepartment || '无'}}</text> | |
| 154 | + <view class="label">店内照片</view> | |
| 65 | 155 | </view> |
| 156 | + <view class="image-container"> | |
| 157 | + <view style="width: 48%;" v-for="(item,index) in myshopMsg.shopPhotos" :key="index"> | |
| 158 | + <u-image class="image-item" width="100%" height="180rpx" border-raduis="10" | |
| 159 | + :src="imgurl+item"></u-image> | |
| 160 | + </view> | |
| 161 | + | |
| 162 | + | |
| 163 | + </view> | |
| 164 | + </view> | |
| 165 | + | |
| 166 | + <view class="msglist" v-if="mapType == '广告位'" style="margin-bottom:80px;"> | |
| 66 | 167 | <view class="form-item"> |
| 67 | - <view class="label">详细地址</view> | |
| 68 | - <text>{{record.cereBasicInformationShop.detailedLocation}}</text> | |
| 69 | - </view> | |
| 70 | - </u-read-more> | |
| 168 | + <view class="label">投放内容</view> | |
| 71 | 169 | </view> |
| 72 | - | |
| 73 | - <view class="msglist" v-if="mapType == '广告位'"> | |
| 74 | - <u-read-more show-height="300" color="#3f9b6a" close-text="查看更多" text-indent="0em"> | |
| 75 | - | |
| 76 | - <view class="form-item"> | |
| 77 | - <view class="label">广告位名称</view> | |
| 78 | - <text>{{record.cereAdvertisingInformation.advertisingName}}</text> | |
| 79 | - </view> | |
| 80 | - <view class="form-item"> | |
| 81 | - <view class="label">广告位类型</view> | |
| 82 | - <text>{{record.cereAdvertisingInformation.advertisingType}}</text> | |
| 83 | - </view> | |
| 84 | - <view class="form-item" v-if="record.cereAdvertisingInformation.advertisingType == '线上广告位'"> | |
| 85 | - <view class="label">所属端</view> | |
| 86 | - <text>{{record.cereAdvertisingInformation.applicationTime}}</text> | |
| 87 | - </view> | |
| 88 | - <view class="form-item" v-if="record.cereAdvertisingInformation.advertisingType == '实体广告位'"> | |
| 89 | - <view class="label">广告材质</view> | |
| 90 | - <text>{{record.cereAdvertisingInformation.advertisingMaterial}}</text> | |
| 91 | - </view> | |
| 92 | - <view class="form-item"> | |
| 93 | - <view class="label">广告尺寸</view> | |
| 94 | - <text>{{record.cereAdvertisingInformation.dimensions}}</text> | |
| 95 | - </view> | |
| 96 | - </u-read-more> | |
| 97 | - </view> | |
| 98 | - <view class="msglist" v-if="mapType == '场地'"> | |
| 99 | - <u-read-more show-height="300" color="#3f9b6a" close-text="查看更多" text-indent="0em"> | |
| 100 | - | |
| 101 | - <view class="form-item"> | |
| 102 | - <view class="label">场地名称</view> | |
| 103 | - <text>{{record.cereBasicInformationVenue.venueName}}</text> | |
| 104 | - </view> | |
| 105 | - <view class="form-item"> | |
| 106 | - <view class="label">场地类型</view> | |
| 107 | - <text>{{record.cereBasicInformationVenue.venueType}}</text> | |
| 108 | - </view> | |
| 109 | - <view class="form-item"> | |
| 110 | - <view class="label">实际使用面积</view> | |
| 111 | - <text>{{record.cereBasicInformationVenue.actualArea}}</text> | |
| 112 | - </view> | |
| 113 | - <view class="form-item"> | |
| 114 | - <view class="label">所属区域</view> | |
| 115 | - <text>{{record.cereBasicInformationVenue.district}}</text> | |
| 116 | - </view> | |
| 117 | - <view class="form-item"> | |
| 118 | - <view class="label">详细位置</view> | |
| 119 | - <text>{{record.cereBasicInformationVenue.detailedLocation}}</text> | |
| 120 | - </view> | |
| 121 | - </u-read-more> | |
| 122 | - </view> | |
| 123 | - | |
| 124 | - <view class="msglist" v-if="btnShow == false&&mapType == '商铺'" style="margin-bottom:80px;"> | |
| 125 | - | |
| 126 | - | |
| 127 | - <view class="form-item"> | |
| 128 | - <view class="label">店铺名称</view> | |
| 129 | - <text>{{myshopMsg.shopName}}</text> | |
| 130 | - </view> | |
| 131 | - <view class="form-item"> | |
| 132 | - <view class="label">店铺介绍</view> | |
| 133 | - </view> | |
| 134 | - <view class="" style="background-color: #F0F0F0;border-radius: 20rpx;"> | |
| 135 | - <view style="padding:10px;">{{myshopMsg.shopDescription}}</view> | |
| 136 | - </view> | |
| 137 | - <view class="form-item"> | |
| 138 | - <view class="label">营业时间</view> | |
| 139 | - </view> | |
| 140 | - <view class="" style="background-color: #F0F0F0;border-radius: 20rpx;"> | |
| 141 | - <view style="padding:10px;">{{myshopMsg.businessHours}}</view> | |
| 142 | - </view> | |
| 143 | - <view class="form-item"> | |
| 144 | - <view class="label">联系电话</view> | |
| 145 | - <text>{{myshopMsg.contactNumber}}</text> | |
| 146 | - </view> | |
| 147 | - <view class="form-item"> | |
| 148 | - <view class="label">位置描述</view> | |
| 149 | - </view> | |
| 150 | - <view class="" style="background-color: #F0F0F0;border-radius: 20rpx;"> | |
| 151 | - <view style="padding:10px;">{{myshopMsg.locationDescription}}</view> | |
| 152 | - </view> | |
| 153 | - <view class="form-item"> | |
| 154 | - <view class="label">店内照片</view> | |
| 155 | - </view> | |
| 156 | - <view class="image-container"> | |
| 157 | - <view style="width: 48%;" v-for="(item,index) in myshopMsg.shopPhotos" :key="index"> | |
| 158 | - <u-image class="image-item" width="100%" height="180rpx" border-raduis="10" :src="imgurl+item" ></u-image> | |
| 159 | - </view> | |
| 160 | - | |
| 161 | - | |
| 162 | - </view> | |
| 163 | - </view> | |
| 164 | - | |
| 165 | - <view class="msglist" v-if="mapType == '广告位'" style="margin-bottom:80px;"> | |
| 166 | - <view class="form-item"> | |
| 167 | - <view class="label">投放内容</view> | |
| 168 | - </view> | |
| 169 | - | |
| 170 | - <u-image class="image-item" width="100%" border-raduis="10" mode="heightFix" height="300rpx" :src="imgurl+record.coverImage" ></u-image> | |
| 171 | - | |
| 172 | - | |
| 173 | - </view> | |
| 174 | - <view style="margin-bottom: 80px;" v-if="btnShow && mapType == '商铺'"><u-button @click="xiuMsg(1)" shape="circle" :custom-style="hoverStyle" hover-class="none" :plain="true">添加我的店铺信息</u-button></view> | |
| 175 | - <view class="page-footer" v-if="record.auditStatus =='4'"> | |
| 176 | - <u-button style="background-color: #DFE0E4; flex: 1; margin: 0 10px;" @click="getQuit('/pagesA/myZiyuan/myZiyuanQuit')" | |
| 177 | - >申请退租</u-button> | |
| 178 | - <u-button type="success" style="flex: 1; margin: 0 10px;" @click="xuShow = true" >申请续租</u-button> | |
| 179 | - <u-button type="success" style="flex: 1; margin: 0 10px;" @click="xiuMsg(2)" v-if="btnShow == false&&mapType == '商铺'">修改资料</u-button> | |
| 180 | - </view> | |
| 181 | - <u-modal v-model="xuShow" :content="contentxu" @confirm="xufirm" :show-cancel-button="true" ></u-modal> | |
| 182 | - <u-toast ref="uToast" /> | |
| 170 | + | |
| 171 | + <u-image class="image-item" width="100%" border-raduis="10" mode="heightFix" height="300rpx" | |
| 172 | + :src="imgurl+record.coverImage"></u-image> | |
| 173 | + | |
| 174 | + | |
| 175 | + </view> | |
| 176 | + <view style="margin-bottom: 80px;" v-if="btnShow && mapType == '商铺'"><u-button @click="xiuMsg(1)" shape="circle" | |
| 177 | + :custom-style="hoverStyle" hover-class="none" :plain="true">添加我的店铺信息</u-button></view> | |
| 178 | + <view class="page-footer" v-if="record.auditStatus =='4'"> | |
| 179 | + <u-button style="background-color: #DFE0E4; flex: 1; margin: 0 10px;" | |
| 180 | + @click="getQuit('/pagesA/myZiyuan/myZiyuanQuit')">申请退租</u-button> | |
| 181 | + <u-button type="success" style="flex: 1; margin: 0 10px;" @click="xuShow = true">申请续租</u-button> | |
| 182 | + <u-button type="success" style="flex: 1; margin: 0 10px;" @click="xiuMsg(2)" | |
| 183 | + v-if="btnShow == false&&mapType == '商铺'">修改资料</u-button> | |
| 184 | + </view> | |
| 185 | + <u-modal v-model="xuShow" :content="contentxu" @confirm="xufirm" :show-cancel-button="true"></u-modal> | |
| 186 | + <u-toast ref="uToast" /> | |
| 183 | 187 | </view> |
| 184 | - | |
| 188 | + | |
| 185 | 189 | </template> |
| 186 | 190 | |
| 187 | 191 | <script> |
| 188 | 192 | export default { |
| 189 | 193 | data() { |
| 190 | 194 | return { |
| 191 | - imgurl:this.$img, | |
| 192 | - record:{}, | |
| 193 | - btnShow:false, | |
| 194 | - hoverStyle:{ | |
| 195 | - | |
| 196 | - color:'#3f9b6a' | |
| 195 | + imgurl: '', | |
| 196 | + record: {}, | |
| 197 | + btnShow: false, | |
| 198 | + hoverStyle: { | |
| 199 | + | |
| 200 | + color: '#3f9b6a' | |
| 197 | 201 | }, |
| 198 | - mapType:'', | |
| 199 | - content:'', | |
| 200 | - xuShow:false, | |
| 201 | - contentxu:'您确定是否需要续租', | |
| 202 | + mapType: '', | |
| 203 | + content: '', | |
| 204 | + xuShow: false, | |
| 205 | + contentxu: '您确定是否需要续租', | |
| 202 | 206 | pageindex: { |
| 203 | 207 | pageNumber: 0, |
| 204 | 208 | pageSize: 10, |
| 205 | - contractId:'' | |
| 209 | + contractId: '' | |
| 206 | 210 | }, |
| 207 | - myshopMsg:{}, | |
| 208 | - heData:{}, | |
| 211 | + myshopMsg: {}, | |
| 212 | + heData: {}, | |
| 209 | 213 | xuForm: { |
| 210 | - reasonForApplication:'', | |
| 211 | - applicationTime:'', | |
| 212 | - contractId:0, | |
| 213 | - contractType:1, | |
| 214 | - createTime:'', | |
| 215 | - createUser:'', | |
| 216 | - lunbo:[] | |
| 217 | - }, | |
| 214 | + reasonForApplication: '', | |
| 215 | + applicationTime: '', | |
| 216 | + contractId: 0, | |
| 217 | + contractType: 1, | |
| 218 | + createTime: '', | |
| 219 | + createUser: '', | |
| 220 | + }, | |
| 221 | + lunbo: [] | |
| 218 | 222 | } |
| 219 | 223 | }, |
| 220 | - onLoad(options) { | |
| 221 | - this.imgurl = this.$img | |
| 222 | - const item = JSON.parse(decodeURIComponent(options.item)); | |
| 223 | - console.log(item,'1123123213') | |
| 224 | + onLoad(options) { | |
| 225 | + this.imgurl = this.$img | |
| 226 | + const item = JSON.parse(decodeURIComponent(options.item)); | |
| 227 | + console.log(item, '1123123213') | |
| 224 | 228 | this.record = item |
| 225 | - let imgsList = item.cereBasicInformationShop&&item.cereBasicInformationShop.displayMainImage?item.cereBasicInformationShop.displayMainImage:item.cereBasicInformationVenue&&item.cereBasicInformationVenue.displayImage?item.cereBasicInformationVenue.displayImage:item.cereAdvertisingInformation&&item.cereAdvertisingInformation.locationDiagram?item.cereAdvertisingInformation.locationDiagram:'' | |
| 226 | - this.lunbo = imgsList.split(',') | |
| 227 | - console.log(this.lunbo) | |
| 228 | - let pageHe={ | |
| 229 | + let imgsList = item.cereBasicInformationShop && item.cereBasicInformationShop.displayMainImage ? item | |
| 230 | + .cereBasicInformationShop.displayMainImage : item.cereBasicInformationVenue && item | |
| 231 | + .cereBasicInformationVenue.displayImage ? item.cereBasicInformationVenue.displayImage : item | |
| 232 | + .cereAdvertisingInformation && item.cereAdvertisingInformation.locationDiagram ? item | |
| 233 | + .cereAdvertisingInformation.locationDiagram : '' | |
| 234 | + this.lunbo = imgsList.split(',') | |
| 235 | + console.log(this.lunbo) | |
| 236 | + let pageHe = { | |
| 229 | 237 | pageNumber: 0, |
| 230 | 238 | pageSize: 10, |
| 231 | - shopNumber:'', | |
| 232 | - dataStatus:1 | |
| 239 | + shopNumber: '', | |
| 240 | + dataStatus: 1 | |
| 233 | 241 | } |
| 234 | - if(item.cereBasicInformationShop && item.cereBasicInformationShop.shopName){ | |
| 242 | + if (item.cereBasicInformationShop && item.cereBasicInformationShop.shopName) { | |
| 235 | 243 | this.mapType = '商铺' |
| 236 | 244 | pageHe.shopNumber = `sp${item.cereBasicInformationShop.id}` |
| 237 | - }else if( item.cereBasicInformationVenue && item.cereBasicInformationVenue.venueName){ | |
| 245 | + } else if (item.cereBasicInformationVenue && item.cereBasicInformationVenue.venueName) { | |
| 238 | 246 | this.mapType = '场地' |
| 239 | 247 | pageHe.shopNumber = `cd${item.cereBasicInformationVenue.id}` |
| 240 | - }else if(item.cereAdvertisingInformation && item.cereAdvertisingInformation.advertisingName){ | |
| 248 | + } else if (item.cereAdvertisingInformation && item.cereAdvertisingInformation.advertisingName) { | |
| 241 | 249 | this.mapType = '广告位' |
| 242 | 250 | pageHe.shopNumber = `gg${item.cereAdvertisingInformation.id}` |
| 243 | 251 | } |
| 244 | - | |
| 245 | - this.$http.sendRequest('/cereContractInformation/getPage', 'POST', pageHe,1).then(res => { | |
| 246 | - if(res.data.data.content[0]){ | |
| 247 | - this.heData = res.data.data.content[0] || {} | |
| 248 | - this.pageindex.contractId = this.heData.id | |
| 249 | - if(this.mapType == '商铺'){ | |
| 250 | - this.$http.sendRequest('/cereAssetShopInformation/queryByPage', 'POST', this.pageindex,1).then(res => { | |
| 251 | - if(res.data.data.content.length == 0){ | |
| 252 | - this.btnShow = true | |
| 253 | - }else{ | |
| 254 | - this.btnShow = false | |
| 255 | - this.myshopMsg = res.data.data.content[0] | |
| 256 | - this.myshopMsg.shopPhotos = this.myshopMsg.shopPhotos.split(',') | |
| 257 | - console.log(this.myshopMsg.shopPhotos) | |
| 258 | - this.myshopMsg.shopPhotos.map(item=>{ | |
| 259 | - item = this.imgurl + item | |
| 260 | - }) | |
| 261 | - | |
| 262 | - } | |
| 263 | - }) | |
| 264 | - } | |
| 265 | - } | |
| 266 | - | |
| 252 | + | |
| 253 | + this.$http.sendRequest('/cereContractInformation/getPage', 'POST', pageHe, 1).then(res => { | |
| 254 | + if (res.data.data.content[0]) { | |
| 255 | + this.heData = res.data.data.content[0] || {} | |
| 256 | + this.pageindex.contractId = this.heData.id | |
| 257 | + if (this.mapType == '商铺') { | |
| 258 | + this.$http.sendRequest('/cereAssetShopInformation/queryByPage', 'POST', this.pageindex, 1) | |
| 259 | + .then(res => { | |
| 260 | + if (res.data.data.content.length == 0) { | |
| 261 | + this.btnShow = true | |
| 262 | + } else { | |
| 263 | + this.btnShow = false | |
| 264 | + this.myshopMsg = res.data.data.content[0] | |
| 265 | + this.myshopMsg.shopPhotos = this.myshopMsg.shopPhotos.split(',') | |
| 266 | + console.log(this.myshopMsg.shopPhotos) | |
| 267 | + this.myshopMsg.shopPhotos.map(item => { | |
| 268 | + item = this.imgurl + item | |
| 269 | + }) | |
| 270 | + | |
| 271 | + } | |
| 272 | + }) | |
| 273 | + } | |
| 274 | + } | |
| 275 | + | |
| 267 | 276 | }) |
| 268 | - }, | |
| 269 | - onShow() { | |
| 270 | - | |
| 271 | - }, | |
| 277 | + }, | |
| 278 | + onShow() { | |
| 279 | + | |
| 280 | + }, | |
| 272 | 281 | methods: { |
| 273 | - getQuit(urls){ | |
| 282 | + getQuit(urls) { | |
| 274 | 283 | uni.navigateTo({ |
| 275 | - url: urls+`?ids=${this.heData.id}` | |
| 284 | + url: urls + `?ids=${this.heData.id}` | |
| 276 | 285 | }) |
| 277 | 286 | }, |
| 278 | - xufirm(){ | |
| 279 | - | |
| 287 | + xufirm() { | |
| 288 | + | |
| 280 | 289 | this.xuForm.createUser = uni.getStorageSync('user').phone |
| 281 | 290 | this.xuForm.createTime = this.getCurrentTime() |
| 282 | 291 | this.xuForm.contractId = Number(this.heData.id) |
| 283 | - this.$http.sendRequest('/changeContractInformation/add', 'POST',this.xuForm, 1).then(res => { | |
| 284 | - | |
| 285 | - this.$refs.uToast.show({ | |
| 286 | - title: '续租申请已提交,请耐心等待', | |
| 287 | - icon: 'success', | |
| 288 | - url: '/pages/my/my' | |
| 289 | - }) | |
| 290 | - | |
| 292 | + this.$http.sendRequest('/changeContractInformation/add', 'POST', this.xuForm, 1).then(res => { | |
| 293 | + | |
| 294 | + this.$refs.uToast.show({ | |
| 295 | + title: '续租申请已提交,请耐心等待', | |
| 296 | + icon: 'success', | |
| 297 | + url: '/pages/my/my' | |
| 298 | + }) | |
| 299 | + | |
| 291 | 300 | // uni.switchTab({ |
| 292 | 301 | // url: '/pages/my/my' |
| 293 | 302 | // }) |
| ... | ... | @@ -295,15 +304,15 @@ |
| 295 | 304 | // title: '续租申请已提交,请耐心等待', |
| 296 | 305 | // icon: 'success', |
| 297 | 306 | // }) |
| 298 | - | |
| 307 | + | |
| 299 | 308 | }) |
| 300 | 309 | }, |
| 301 | - xiuMsg(val){ | |
| 302 | - if(val == 1){ | |
| 310 | + xiuMsg(val) { | |
| 311 | + if (val == 1) { | |
| 303 | 312 | uni.navigateTo({ |
| 304 | 313 | url: `/pagesA/myZiyuan/addMyshop?ids=${this.heData.id}` |
| 305 | 314 | }) |
| 306 | - }else{ | |
| 315 | + } else { | |
| 307 | 316 | let lists = JSON.stringify(this.myshopMsg) |
| 308 | 317 | uni.navigateTo({ |
| 309 | 318 | url: `/pagesA/myZiyuan/addMyshop?ids=${this.heData.id}&msg=${lists}` |
| ... | ... | @@ -318,7 +327,7 @@ |
| 318 | 327 | const hours = ('0' + now.getHours()).slice(-2); |
| 319 | 328 | const minutes = ('0' + now.getMinutes()).slice(-2); |
| 320 | 329 | const seconds = ('0' + now.getSeconds()).slice(-2); |
| 321 | - | |
| 330 | + | |
| 322 | 331 | return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; |
| 323 | 332 | }, |
| 324 | 333 | } |
| ... | ... | @@ -326,16 +335,17 @@ |
| 326 | 335 | </script> |
| 327 | 336 | |
| 328 | 337 | <style scoped lang="scss"> |
| 329 | - .page{ | |
| 338 | + .page { | |
| 330 | 339 | position: absolute; |
| 331 | 340 | left: 0; |
| 332 | 341 | top: 0; |
| 333 | 342 | width: 100%; |
| 334 | - | |
| 343 | + | |
| 335 | 344 | padding: 0 24rpx; |
| 336 | - | |
| 345 | + | |
| 337 | 346 | } |
| 338 | - .zhutu{ | |
| 347 | + | |
| 348 | + .zhutu { | |
| 339 | 349 | margin: 15px 0; |
| 340 | 350 | background-color: #fff; |
| 341 | 351 | width: 100%; |
| ... | ... | @@ -343,8 +353,9 @@ |
| 343 | 353 | } |
| 344 | 354 | |
| 345 | 355 | /* 记录列表 */ |
| 346 | - .record-list{ | |
| 356 | + .record-list { | |
| 347 | 357 | margin-top: 20rpx; |
| 358 | + | |
| 348 | 359 | .good-item { |
| 349 | 360 | width: 100%; |
| 350 | 361 | display: flex; |
| ... | ... | @@ -352,39 +363,46 @@ |
| 352 | 363 | padding: 16rpx; |
| 353 | 364 | border-radius: 14rpx; |
| 354 | 365 | margin-bottom: 26rpx; |
| 366 | + | |
| 355 | 367 | .img { |
| 356 | 368 | width: 200rpx; |
| 357 | 369 | height: 200rpx; |
| 358 | 370 | } |
| 371 | + | |
| 359 | 372 | .info { |
| 360 | 373 | width: calc(100% - 220rpx); |
| 361 | 374 | margin-left: 20rpx; |
| 375 | + | |
| 362 | 376 | .title { |
| 363 | 377 | width: 100%; |
| 364 | 378 | font-size: 28rpx; |
| 365 | 379 | line-height: 44rpx; |
| 366 | 380 | font-weight: 700; |
| 367 | 381 | white-space: nowrap; |
| 368 | - overflow : hidden; | |
| 382 | + overflow: hidden; | |
| 369 | 383 | text-overflow: ellipsis; |
| 370 | 384 | margin-bottom: 20rpx; |
| 371 | 385 | } |
| 386 | + | |
| 372 | 387 | .info-item { |
| 373 | 388 | display: flex; |
| 374 | 389 | line-height: 30rpx; |
| 375 | 390 | font-size: 26rpx; |
| 376 | 391 | color: #717981; |
| 392 | + | |
| 377 | 393 | text { |
| 378 | 394 | white-space: nowrap; |
| 379 | - overflow : hidden; | |
| 395 | + overflow: hidden; | |
| 380 | 396 | text-overflow: ellipsis; |
| 381 | 397 | margin-left: 10rpx; |
| 398 | + | |
| 382 | 399 | span { |
| 383 | 400 | font-size: 30rpx; |
| 384 | 401 | color: #000; |
| 385 | 402 | font-weight: 700; |
| 386 | 403 | } |
| 387 | 404 | } |
| 405 | + | |
| 388 | 406 | .u-tag { |
| 389 | 407 | margin: 0 6rpx; |
| 390 | 408 | border: unset; |
| ... | ... | @@ -393,11 +411,13 @@ |
| 393 | 411 | } |
| 394 | 412 | } |
| 395 | 413 | } |
| 396 | - .msglist{ | |
| 414 | + | |
| 415 | + .msglist { | |
| 397 | 416 | padding: 0 30rpx; |
| 398 | 417 | background-color: #Fff; |
| 399 | 418 | border-radius: 14rpx; |
| 400 | 419 | margin-bottom: 20rpx; |
| 420 | + | |
| 401 | 421 | .form-item { |
| 402 | 422 | display: flex; |
| 403 | 423 | flex-direction: row; |
| ... | ... | @@ -406,18 +426,22 @@ |
| 406 | 426 | line-height: 70rpx; |
| 407 | 427 | border-bottom: #eee solid 1rpx; |
| 408 | 428 | padding: 10rpx 0; |
| 429 | + | |
| 409 | 430 | &[label-top] { |
| 410 | 431 | flex-direction: column; |
| 411 | 432 | justify-content: flex-start; |
| 412 | 433 | align-items: flex-start; |
| 413 | 434 | } |
| 435 | + | |
| 414 | 436 | text { |
| 415 | 437 | font-size: 24rpx; |
| 416 | 438 | color: #3D3D3D; |
| 417 | 439 | } |
| 440 | + | |
| 418 | 441 | .img { |
| 419 | 442 | padding-bottom: 18rpx; |
| 420 | 443 | } |
| 444 | + | |
| 421 | 445 | .deom-box { |
| 422 | 446 | width: 100%; |
| 423 | 447 | display: flex !important; |
| ... | ... | @@ -426,6 +450,7 @@ |
| 426 | 450 | border-radius: 9px; |
| 427 | 451 | // margin-top: 9px; |
| 428 | 452 | width: 100%; |
| 453 | + | |
| 429 | 454 | // .u-upload { |
| 430 | 455 | // .u-add-wrap { |
| 431 | 456 | // width: 304rpx !important; |
| ... | ... | @@ -445,25 +470,29 @@ |
| 445 | 470 | flex-direction: column; |
| 446 | 471 | align-items: center; |
| 447 | 472 | padding: 20rpx; |
| 473 | + | |
| 448 | 474 | text { |
| 449 | 475 | margin-top: 18rpx; |
| 450 | 476 | } |
| 451 | 477 | } |
| 452 | 478 | } |
| 453 | 479 | } |
| 480 | + | |
| 454 | 481 | :last-child { |
| 455 | 482 | border-bottom: unset; |
| 456 | 483 | } |
| 457 | 484 | } |
| 458 | - .footbtn{ | |
| 485 | + | |
| 486 | + .footbtn { | |
| 459 | 487 | position: fixed; |
| 460 | 488 | bottom: 0; |
| 461 | 489 | left: 0; |
| 462 | 490 | z-index: 10; |
| 463 | - height:180rpx; | |
| 491 | + height: 180rpx; | |
| 464 | 492 | width: 100%; |
| 465 | 493 | border-radius: 26rpx 26rpx 0 0; |
| 466 | 494 | background-color: #fff; |
| 495 | + | |
| 467 | 496 | .info-total { |
| 468 | 497 | display: flex; |
| 469 | 498 | flex-direction: row; |
| ... | ... | @@ -472,19 +501,23 @@ |
| 472 | 501 | margin: 24rpx 50rpx; |
| 473 | 502 | font-weight: 700; |
| 474 | 503 | font-size: 24rpx; |
| 504 | + | |
| 475 | 505 | span { |
| 476 | 506 | color: #0FBB59; |
| 477 | 507 | font-size: 32rpx |
| 478 | 508 | } |
| 479 | 509 | } |
| 510 | + | |
| 480 | 511 | .footer-btn { |
| 481 | 512 | display: flex; |
| 513 | + | |
| 482 | 514 | .u-btn { |
| 483 | 515 | width: 40%; |
| 484 | 516 | } |
| 485 | 517 | } |
| 486 | 518 | } |
| 487 | - .page-footer{ | |
| 519 | + | |
| 520 | + .page-footer { | |
| 488 | 521 | position: fixed; |
| 489 | 522 | left: 0; |
| 490 | 523 | bottom: 0; |
| ... | ... | @@ -494,35 +527,42 @@ |
| 494 | 527 | background-color: #FFFFFF; |
| 495 | 528 | z-index: 20; |
| 496 | 529 | padding: 15px 0; |
| 497 | - .footer-buy{ | |
| 530 | + | |
| 531 | + .footer-buy { | |
| 498 | 532 | display: flex; |
| 499 | 533 | align-items: center; |
| 500 | 534 | justify-content: space-between; |
| 501 | 535 | width: 100%; |
| 502 | 536 | height: 100%; |
| 503 | - .cart-add{ | |
| 537 | + | |
| 538 | + .cart-add { | |
| 504 | 539 | display: flex; |
| 505 | 540 | align-items: center; |
| 506 | 541 | justify-content: center; |
| 507 | 542 | width: 100%; |
| 508 | 543 | height: 100rpx; |
| 509 | 544 | background-color: #3f9b6a; |
| 510 | - text{ | |
| 545 | + | |
| 546 | + text { | |
| 511 | 547 | font-size: 28rpx; |
| 512 | 548 | color: #FFFFFF; |
| 513 | 549 | } |
| 514 | 550 | } |
| 515 | 551 | } |
| 516 | 552 | } |
| 553 | + | |
| 517 | 554 | .image-container { |
| 518 | 555 | padding: 10rpx 0; |
| 519 | - display: flex; | |
| 520 | - flex-wrap: wrap; /* 启用换行 */ | |
| 521 | - justify-content: space-between; /* 图片之间均匀分布 */ | |
| 556 | + display: flex; | |
| 557 | + flex-wrap: wrap; | |
| 558 | + /* 启用换行 */ | |
| 559 | + justify-content: space-between; | |
| 560 | + /* 图片之间均匀分布 */ | |
| 522 | 561 | } |
| 523 | - | |
| 562 | + | |
| 524 | 563 | .image-item { |
| 525 | - box-sizing: border-box; | |
| 526 | - margin-bottom: 10rpx; /* 图片之间的垂直间距 */ | |
| 564 | + box-sizing: border-box; | |
| 565 | + margin-bottom: 10rpx; | |
| 566 | + /* 图片之间的垂直间距 */ | |
| 527 | 567 | } |
| 528 | -</style> | |
| 568 | +</style> | |
| 529 | 569 | \ No newline at end of file | ... | ... |
lvdao-miniapp/pagesA/tishi/tishi.vue
0 → 100644
| 1 | +<template> | |
| 2 | + <view style="height: 100vh;width: 100%;background: rgba(144, 144, 144, 0.8);display: flex;justify-content: center;"> | |
| 3 | + <image src="@/static/icon/bg1.png" style="width: 55%;margin-top: 25vh;" mode="widthFix"></image> | |
| 4 | + </view> | |
| 5 | +</template> | |
| 6 | + | |
| 7 | +<script> | |
| 8 | + export default { | |
| 9 | + data() { | |
| 10 | + return { | |
| 11 | + | |
| 12 | + } | |
| 13 | + }, | |
| 14 | + methods: { | |
| 15 | + | |
| 16 | + } | |
| 17 | + } | |
| 18 | +</script> | |
| 19 | + | |
| 20 | +<style> | |
| 21 | + | |
| 22 | +</style> | ... | ... |
lvdao-miniapp/static/icon/bg1.png
0 → 100644
90.9 KB
lvdao-miniapp/static/icon/icon1.png
0 → 100644
1.35 KB
lvdao-miniapp/static/icon/icon2.png
0 → 100644
885 Bytes
lvdao-miniapp/static/icon/icon3.png
0 → 100644
954 Bytes
lvdao-miniapp/static/icon/icon4.png
0 → 100644
900 Bytes
lvdao-miniapp/static/icon/icon5.png
0 → 100644
1.38 KB
lvdao-miniapp/static/icon/icon6.png
0 → 100644
1023 Bytes