2024-07-14 11:49:39 +00:00
|
|
|
<template>
|
2024-07-30 17:15:38 +00:00
|
|
|
<u-row justify="between">
|
2024-10-30 15:04:07 +00:00
|
|
|
<u-row @click="handleChooseEmp" custom-style="flex:1;">
|
2024-07-30 17:15:38 +00:00
|
|
|
<view class="">
|
2024-08-02 19:01:58 +00:00
|
|
|
<u-avatar size="80" :src="modelInfo._bindTsmAvatar"></u-avatar>
|
2024-07-30 17:15:38 +00:00
|
|
|
</view>
|
2024-07-14 11:49:39 +00:00
|
|
|
<view class="ml-10">
|
2024-07-30 17:15:38 +00:00
|
|
|
<view class="clr-sub font-26">您的专属快递员</view>
|
|
|
|
|
<view class="pt-5 font-26">
|
2024-08-02 19:01:58 +00:00
|
|
|
<text v-if="modelInfo._bindTsmName">{{modelInfo._bindTsmName}}</text>
|
2024-07-30 17:15:38 +00:00
|
|
|
<u-row v-else>
|
|
|
|
|
<u-icon name="attach" size="30"></u-icon>
|
|
|
|
|
去绑定
|
|
|
|
|
</u-row>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</u-row>
|
|
|
|
|
<u-row>
|
2024-10-31 05:13:32 +00:00
|
|
|
<view @click="handleConnect" class="text-center">
|
2024-07-30 17:15:38 +00:00
|
|
|
<u-icon name="kefu-ermai" size="40" custom-style="margin: 0 auto;"></u-icon>
|
|
|
|
|
<text class="pt-10">客服</text>
|
2024-10-31 05:13:32 +00:00
|
|
|
</view>
|
2024-07-14 11:49:39 +00:00
|
|
|
</u-row>
|
|
|
|
|
</u-row>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import * as apiService from "@/common/api"
|
2024-07-16 15:02:59 +00:00
|
|
|
import { pageEventNames } from "@/common/enum"
|
|
|
|
|
|
2024-07-14 11:49:39 +00:00
|
|
|
export default {
|
|
|
|
|
computed: {
|
|
|
|
|
modelInfo: {
|
|
|
|
|
get(){
|
|
|
|
|
return this.value
|
|
|
|
|
}
|
2024-10-31 05:13:32 +00:00
|
|
|
},
|
|
|
|
|
kefuH5Url() {
|
|
|
|
|
return this.$store.getters.kefuH5Url
|
2024-07-14 11:49:39 +00:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
},
|
|
|
|
|
props: {
|
|
|
|
|
value: {
|
|
|
|
|
default () {
|
|
|
|
|
return { }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {
|
2024-07-16 15:02:59 +00:00
|
|
|
this.initEvent()
|
2024-07-14 11:49:39 +00:00
|
|
|
},
|
|
|
|
|
onHide() {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
unmounted() {
|
2024-07-16 15:02:59 +00:00
|
|
|
uni.$off(pageEventNames.chooseEpm, this.chooseEmpEventBack)
|
2024-07-14 11:49:39 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
methods: {
|
2024-07-16 15:02:59 +00:00
|
|
|
initEvent() {
|
|
|
|
|
if(!this.disabled) {
|
|
|
|
|
uni.$on(pageEventNames.chooseEpm, this.chooseEmpEventBack)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
chooseEmpEventBack({ data, queryOption }){
|
|
|
|
|
const { tab } = queryOption
|
|
|
|
|
let isChange = false
|
|
|
|
|
let oldData = this.modelInfo
|
|
|
|
|
if(oldData.empName != data.empName) {
|
2024-08-02 19:01:58 +00:00
|
|
|
this.modelInfo._bindTsmName = data.empName
|
|
|
|
|
this.modelInfo._bindTsmCode = data.empCode
|
|
|
|
|
this.modelInfo._bindTsmAvatar = data.avatar
|
2024-07-16 15:02:59 +00:00
|
|
|
this.$emit("onChange", this.modelInfo)
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-07-30 17:15:38 +00:00
|
|
|
handleChooseEmp(){
|
|
|
|
|
this.goto(`user/exclusiveCourier?type=choose`)
|
|
|
|
|
},
|
2024-10-31 05:13:32 +00:00
|
|
|
handleConnect(){
|
|
|
|
|
this.gotoWebview({ url: `${this.kefuH5Url}` })
|
2024-07-30 17:15:38 +00:00
|
|
|
},
|
2024-07-14 11:49:39 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
|
|
|
|
|
</style>
|