From 587dbbd6da6818b9c4bd9a33775528cfd71a4aaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E7=BB=A7=E7=BB=AD=E5=90=B9?= <17611323298@163.com> Date: Tue, 28 Mar 2023 15:38:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E8=BD=AC=E5=86=99=E6=B6=88?= =?UTF-8?q?=E8=B4=B9=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 18 +++ pages/index/index.vue | 18 --- pages/learning/Thefulltext/index2.vue | 158 +++++++++++++++++--------- pages/mine/selectBuilding.vue | 2 + 4 files changed, 122 insertions(+), 74 deletions(-) diff --git a/App.vue b/App.vue index e419997..684e264 100644 --- a/App.vue +++ b/App.vue @@ -33,6 +33,24 @@ this.$u.post('/user/addLookingCount', { houseId: uni.getStorageSync('buildingID').id, recordId: id }) }, + sendLog(data) { + uni.request({ + url: config.service.addLog, + method: "POST", + header: { + 'content-type': 'application/json', + 'Authorization': 'Bearer ' + uni.getStorageSync('weapp_session_login_data').token + }, + data: { + houseId: data.houseId || uni.getStorageSync('buildingID').id, + houseName: data.houseName ||uni.getStorageSync('buildingID').name, + serviceId: "test" + }, + success: (data) => { + console.log(data) + } + }) + }, // 时分秒转换为秒 TIMEEVENT(e) { var time = e; diff --git a/pages/index/index.vue b/pages/index/index.vue index 94f6a88..0055fb8 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -577,24 +577,6 @@ } } }, - sendLog() { - uni.request({ - url: config.service.addLog, - method: "POST", - header: { - 'content-type': 'application/json', - 'Authorization': 'Bearer ' + uni.getStorageSync('weapp_session_login_data').token - }, - data: { - houseId: this.buildingID, - houseName: this.buildingname, - serviceId: "test" - }, - success: (data) => { - console.log(data) - } - }) - }, //时间选择 tabtimetap(index, str) { this.timeshow = false; diff --git a/pages/learning/Thefulltext/index2.vue b/pages/learning/Thefulltext/index2.vue index 089ab5d..e16d17d 100644 --- a/pages/learning/Thefulltext/index2.vue +++ b/pages/learning/Thefulltext/index2.vue @@ -9,6 +9,9 @@ {{date}} + + 删除案例 + 查看全部评论 @@ -29,9 +32,10 @@ :class="{active: Math.floor(item.bg/1000) < playNow && Math.floor(item.ed/1000) > playNow, isGreen: item.isShow == 0}" v-for="(item,index) in dialog.message" :key="index" :data-speaker="item.speaker"> - - - {{ item.speaker | toCapital }} + + + {{ item.speaker | toCapital }} @@ -217,7 +221,7 @@ ACTION: Symbol('zaudio'), // 唯一值区分每个页面的方法 isPageHide: false, // 是否息屏 duration: '', - + nowPlaying: 0, // 当前播放位置 stepPosition: 0, // 需要跳转的播放位置 }; @@ -281,55 +285,95 @@ methods: { + // 删除优秀案例 + delTheFullText() { + uni.showModal({ + title: '提示', + content: `确认删除该案例吗?`, + showCancel: true, + cancelText: '取消', + confirmText: '确认删除', + confirmColor: "#FA3534", + success: res => { + console.log(res) + if (res.confirm) { + this.delATD() + } + } + }) + }, + + // 优秀案例删除 + delATD() { + this.$u.get('/addtodigest/delATD', { carId: this.customerId }).then(res => { + console.log(res) + // if () + uni.showToast({ + title: '操作成功', + icon: 'none', + duration: 2000 + }); + setTimeout(() => { + uni.navigateBack() + }, 2000) + }).catch(e => { + uni.showToast({ + title: e.data.message, + icon: 'none', + duration: 2000 + }); + }) + }, + borderColor(index) { - let obj = { - color: '', - borderRadius: '', - border: '' - } - switch (index) { - case 1: - obj.color = '#E6625B'; - obj.borderRadius = '8rpx'; - obj.border= '2rpx solid #E6625B'; - break; - case 2: - obj.color = '#FF981E'; - obj.borderRadius = '8rpx'; - obj.border= '2rpx solid #FF981E'; - break; - case 3: - obj.color = '#F6BD16'; - obj.borderRadius = '8rpx'; - obj.border= '2rpx solid #F6BD16'; - break; - case 5: - obj.color = '#4980C8'; - obj.borderRadius = '8rpx'; - obj.border= '2rpx solid #4980C8'; - break; - case 6: - obj.color = '#60CBEC'; - obj.borderRadius = '8rpx'; - obj.border= '2rpx solid #60CBEC'; - break; - case 7: - obj.color = '##FF981E'; - obj.borderRadius = '8rpx'; - obj.border= '2rpx solid #FF981E'; - break; - case 8: - obj.color = '#4F861E'; - obj.borderRadius = '8rpx'; - obj.border= '2rpx solid #4F861E'; - break; - default: - obj.color = '#9F61C8'; - obj.borderRadius = '8rpx'; - obj.border= '2rpx solid #9F61C8'; - break; - } - return obj + let obj = { + color: '', + borderRadius: '', + border: '' + } + switch (index) { + case 1: + obj.color = '#E6625B'; + obj.borderRadius = '8rpx'; + obj.border = '2rpx solid #E6625B'; + break; + case 2: + obj.color = '#FF981E'; + obj.borderRadius = '8rpx'; + obj.border = '2rpx solid #FF981E'; + break; + case 3: + obj.color = '#F6BD16'; + obj.borderRadius = '8rpx'; + obj.border = '2rpx solid #F6BD16'; + break; + case 5: + obj.color = '#4980C8'; + obj.borderRadius = '8rpx'; + obj.border = '2rpx solid #4980C8'; + break; + case 6: + obj.color = '#60CBEC'; + obj.borderRadius = '8rpx'; + obj.border = '2rpx solid #60CBEC'; + break; + case 7: + obj.color = '##FF981E'; + obj.borderRadius = '8rpx'; + obj.border = '2rpx solid #FF981E'; + break; + case 8: + obj.color = '#4F861E'; + obj.borderRadius = '8rpx'; + obj.border = '2rpx solid #4F861E'; + break; + default: + obj.color = '#9F61C8'; + obj.borderRadius = '8rpx'; + obj.border = '2rpx solid #9F61C8'; + break; + } + return obj }, toKeywordsearch() { uni.navigateTo({ @@ -749,7 +793,7 @@ this.$zaudio.setAudio(data) //渲染第一首音频 this.$zaudio.setRender(0) - + if (this.stepPosition != 0) { setTimeout(() => { this.stepPlay(this.stepPosition) @@ -1155,7 +1199,7 @@ } .call_record_time_one { - padding-left:30rpx; + padding-left: 30rpx; color: #70798d; display: flex; justify-content: space-between; @@ -1240,7 +1284,7 @@ } .scroll-Y .text .avatar { - text{ + text { display: block; width: 72rpx; height: 72rpx; @@ -1253,7 +1297,8 @@ font-weight: 500; box-sizing: border-box; } - image{ + + image { width: 72rpx; height: 72rpx; } @@ -1274,6 +1319,7 @@ color: #505050; line-height: 40rpx; } + .scroll-Y .text.active .content { color: #2671E2 !important; position: relative; diff --git a/pages/mine/selectBuilding.vue b/pages/mine/selectBuilding.vue index 53bf827..8780b1a 100644 --- a/pages/mine/selectBuilding.vue +++ b/pages/mine/selectBuilding.vue @@ -31,8 +31,10 @@ id, name } + this.sendLog({houseId: id, houseName: name}) uni.setStorageSync("buildingID", lopan); uni.setStorageSync("updatebuildingID", 'updatebuildingID'); + uni.navigateBack({ delta:-1 })