emis-sapp/components/buns-post-edit-templates/bpe-bindedpost-tmp.vue

93 lines
1.9 KiB
Vue
Raw Normal View History

2024-07-14 11:49:39 +00:00
<template>
2024-07-30 17:15:38 +00:00
<u-row justify="between">
<u-row @click="handleChooseEmp">
<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-07-31 15:37:10 +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-07-31 15:37:10 +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
}
},
},
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
// this.modelInfo.payee = data.empName
// this.modelInfo.salesmen = data.empNam
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`)
},
handleConnect(){
},
2024-07-14 11:49:39 +00:00
}
}
</script>
<style scoped lang="scss">
</style>