Browse Source

项目转写消费统计

newStyle
风继续吹 1 year ago
parent
commit
587dbbd6da
4 changed files with 122 additions and 74 deletions
  1. +18
    -0
      App.vue
  2. +0
    -18
      pages/index/index.vue
  3. +102
    -56
      pages/learning/Thefulltext/index2.vue
  4. +2
    -0
      pages/mine/selectBuilding.vue

+ 18
- 0
App.vue View File

@@ -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;


+ 0
- 18
pages/index/index.vue View File

@@ -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;


+ 102
- 56
pages/learning/Thefulltext/index2.vue View File

@@ -9,6 +9,9 @@
<view class="top">
<view class="title">
<view class="call_record_time">{{date}}</view>
<view class="hash" @click="delTheFullText" v-if="CHECKAUTHORITY('ccal')">
删除案例
</view>
<view class="hash" @click="gotoChat" v-if="commentList.length">
查看全部评论
</view>
@@ -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">
<view class="avatar">
<image v-if="item.isShow == 0" src="https://static.quhouse.com/b11a7e1ccf914020b3ee23d3e4862637.png" mode="widthFix">
</image>
<text v-else :style="[borderColor(item.speaker)]">{{ item.speaker | toCapital }}</text>
<image v-if="item.isShow == 0"
src="https://static.quhouse.com/b11a7e1ccf914020b3ee23d3e4862637.png" mode="widthFix">
</image>
<text v-else :style="[borderColor(item.speaker)]">{{ item.speaker | toCapital }}</text>
</view>
<view class="content">
<view v-html="item.onebest"></view>
@@ -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;


+ 2
- 0
pages/mine/selectBuilding.vue View File

@@ -31,8 +31,10 @@
id,
name
}
this.sendLog({houseId: id, houseName: name})
uni.setStorageSync("buildingID", lopan);
uni.setStorageSync("updatebuildingID", 'updatebuildingID');
uni.navigateBack({
delta:-1
})


Loading…
Cancel
Save