Browse Source

删除

newStyle
风继续吹 1 year ago
parent
commit
10131924c9
3 changed files with 22 additions and 65 deletions
  1. +17
    -8
      App.vue
  2. +3
    -55
      pages/index/customer.vue
  3. +2
    -2
      pages/index/index.vue

+ 17
- 8
App.vue View File

@@ -33,31 +33,40 @@
method: "POST", method: "POST",
header: { header: {
'content-type': 'application/json', 'content-type': 'application/json',
'Authorization': 'Bearer ' + uni.getStorageSync('weapp_session_login_data').token
'Authorization': 'Bearer ' + uni.getStorageSync(
'weapp_session_login_data').token
}, },
data: { data: {
houseId: uni.getStorageSync('buildingID').id houseId: uni.getStorageSync('buildingID').id
}, },
success: (data) => { success: (data) => {
console.log(data.data.data.receivingCustomer, 'receivingCustomer')
if (data.data.data == null) { if (data.data.data == null) {
uni.removeTabBarBadge({
index: 0,
})
return return
} else { } else {
uni.removeTabBarBadge({
index: 0,
})
if (data.data.data.receivingCustomer > 0) { if (data.data.data.receivingCustomer > 0) {
uni.setTabBarBadge({ uni.setTabBarBadge({
index: 0, index: 0,
text: data.data.data.receivingCustomer.toString() || "0"
})
} else {
uni.removeTabBarBadge({
inndex: 0,
text: `${data.data.data.receivingCustomer}`
}) })
} }
} }
}, },
fail: () => {}
fail: () => {
uni.removeTabBarBadge({
index: 0,
})
}
}) })
}, },
upDateBulidIngObj() { upDateBulidIngObj() {
this.bulidIngObj = uni.getStorageSync('buildingID') this.bulidIngObj = uni.getStorageSync('buildingID')
}, },


+ 3
- 55
pages/index/customer.vue View File

@@ -10,54 +10,6 @@
<view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view> <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
</view> </view>
</view> </view>
<!-- <view class="customer" v-if="waitCustomList.length!=0" v-for="(item,index) in waitCustomList" :key='index'
@click="tapThevisiting(item)">
<view class="title">
<view class="zuo">
<view class="zuoimg">A</view>
<view class="zuoname">{{item.name}}</view>
</view>
<view class="you">
<view class="youimg1" v-if="item.status!=0"></view>
<view class="youimg1-1" v-if="item.status==0"></view>
<view class="youtext">{{item.status==0?"排队中":item.status==1?"接待中":"已完成"}}</view>
</view>
</view>
<view class="centerbox" v-if="item.status!=0">
<view class="centerbox-che">手机号码:<text class="shizai">{{item.phone || "--"}}</text></view>
<view class="centerbox-che">开始时间:<text class="shizai">{{item.createTime}}</text></view>
<view class="centerbox-che">顾问姓名:<text class="shizai" style="color: #333333;">{{item.agentName}}</text>
</view>

<view class="centerbox-che2" v-if="item.status==1">
<view class="Workcard" v-if="item.status==1&&item.zkEquipmentState.onLine==0">设备状态:<text
class="shizai" style="color: red;">离线</text></view>
<view class="Workcard" v-if="item.status==1&&item.zkEquipmentState.onLine!=0">工牌电量:<text
class="shizai" style="color: #333333;">{{item.zkEquipmentState.electricity}}%</text></view>
<view class="Workcard" v-if="item.status==1&&item.zkEquipmentState.onLine==1">录音状态:
<text v-if="item.zkEquipmentState.simAudioStatus=='true'" class="shizai"
style="color: #333333;">使用中</text>
<text v-if="item.zkEquipmentState.simAudioStatus=='false'" class="shizai"
style="color: #333333;">未使用</text>
</view>
</view>


</view>
<view class="footer-button" v-if="item.status!=0">
<view v-if="permissions.commonly3" class="footer1" @click.stop="addTime(item)">接待延时</view>
<view v-if="permissions.commonly4" class="footer1" @click.stop="assign(item)">重新指派</view>
<view v-if="permissions.commonly5" class="footer3" @click.stop="changeEnd(item.id)">结束接待</view>
</view>

<view class="centerbox" v-if="item.status==0">
<view class="centerbox-che">手机号码:<text class="shizai">{{item.phone || "--"}}</text></view>
</view>
<view class="footer-button" v-if="item.status==0">
<view class="footer3" @click.stop="assign(item)">指派顾问</view>
</view>

</view> -->


<view class="customer" v-if="waitCustomList.length!=0" v-for="(item,index) in waitCustomList" :key='index' <view class="customer" v-if="waitCustomList.length!=0" v-for="(item,index) in waitCustomList" :key='index'
@click="tapThevisiting(item)"> @click="tapThevisiting(item)">
@@ -72,9 +24,6 @@
</view> </view>
</view> </view>
<view class="you"> <view class="you">
<!-- <view class="youimg1" v-if="item.status!=0"></view>
<view class="youimg1-1" v-if="item.status==0"></view>
<view class="youtext">{{item.status==0?"排队中":item.status==1?"接待中":"已完成"}}</view> -->
<view class="" v-if="item.status!=0" style="display: flex;"> <view class="" v-if="item.status!=0" style="display: flex;">
<block v-if="item.imei!=null"> <block v-if="item.imei!=null">
<!-- 接待中 --> <!-- 接待中 -->
@@ -129,10 +78,6 @@
<image src="../../static/images/time.png" class="c-items-img" mode=""></image> <image src="../../static/images/time.png" class="c-items-img" mode=""></image>
{{ item.createTime }} {{ item.createTime }}
</view> </view>
<!-- <view class="c-items">
<image src="../../static/images/voice.png" class="c-items-img" mode=""></image>
{{ item.mm || '0' }}min
</view> -->
</view> </view>
</view> </view>
<view class="footer-button" v-if="item.status!=0"> <view class="footer-button" v-if="item.status!=0">
@@ -208,12 +153,14 @@
if (!res) { if (!res) {
this.init() this.init()
} }
this.getTabBarBadge()
}).catch(e => { }).catch(e => {
console.log(e) console.log(e)
uni.showToast({ uni.showToast({
title: '网络异常,请稍后重试~', title: '网络异常,请稍后重试~',
icon: 'none' icon: 'none'
}); });
this.getTabBarBadge()
}) })
} }
} }
@@ -343,6 +290,7 @@
title: "操作成功" title: "操作成功"
}) })
this.init(); this.init();
this.getTabBarBadge()
}); });
} }
setTimeout(() => { setTimeout(() => {


+ 2
- 2
pages/index/index.vue View File

@@ -738,11 +738,11 @@
if (data.data.data.receivingCustomer > 0) { if (data.data.data.receivingCustomer > 0) {
uni.setTabBarBadge({ uni.setTabBarBadge({
index: 0, index: 0,
text: data.data.data.receivingCustomer.toString() || "0"
text: `${data.data.data.receivingCustomer}`
}) })
} else { } else {
uni.removeTabBarBadge({ uni.removeTabBarBadge({
inndex: 0,
index: 0,
}) })
} }
} }


Loading…
Cancel
Save