邓雄飞 4 years ago
parent
commit
72313acbd3
4 changed files with 20 additions and 7 deletions
  1. 4
      components/bussiness-components/packingStationItem.vue
  2. 9
      pages/client-detail/index.vue
  3. 4
      pages/mall/index.vue
  4. 10
      pages/mine/index.vue

4
components/bussiness-components/packingStationItem.vue

@ -70,7 +70,7 @@
</template>
<script>
import { go2 } from '@/utils/hook.js'
import { go2, loginGo2 } from '@/utils/hook.js'
export default {
props: {
info: {
@ -93,7 +93,7 @@ export default {
},
methods: {
goDetail() {
go2('client-detail', { id: this.info.enterpriseId })
loginGo2('client-detail', { id: this.info.enterpriseId })
},
transformBusiness(business) {
let text = business?.trim() || '未知'

9
pages/client-detail/index.vue

@ -83,20 +83,22 @@ export default {
},
//
onCustomerCredit() {
if (this.$store.state.supplierInfo == null) {
if (this.$store.state.supplierInfo.id == null) {
// store supplierInfo == null
this.dialogTitle = '您还未完善企业信息'
this.dialogContent = '请先完善企业基本信息才能对客户进行'
this.confirmText = '去完善'
this.dialogType = 1
this.$refs.popup.open()
} else if (this.$store.state.supplierInfo.fddEnterpriseStatus == 1) {
return
} else if (!this.$store.state.supplierInfo.fddEnterpriseStatus || this.$store.state.supplierInfo.fddEnterpriseStatus == 1) {
// supplierInfo.fddEnterpriseStatus == 1
this.dialogTitle = '未认证电子签约'
this.dialogContent = '客户授信过程需要进行电子合同签订,请先进行认证'
this.confirmText = '去认证'
this.dialogType = 2
this.$refs.popup.open()
return
} else if (!this.$store.state.supplierInfo.isVip) {
// vip supplierInfo isVip
this.dialogTitle = '未开通VIP'
@ -104,6 +106,7 @@ export default {
this.confirmText = '去开通'
this.dialogType = 3
this.$refs.popup.open()
return
} else {
let info = this.$refs.basicInformationRef.getCompanyInfo()
if (info.id) {
@ -137,10 +140,12 @@ export default {
})
break
case 3:
go2('mine')
break
default:
break
}
this.$refs.popup.close()
}
}
}

4
pages/mall/index.vue

@ -144,7 +144,7 @@ export default {
supplierId: this.$store.state.supplierInfo.supplierId
},
listData: [],
logo: 'https://qncloud.oss-cn-shenzhen.aliyuncs.com/ztb_pic/testPic.jfif',
logo: '/static/imgs/mine/user-avatar.png',
backgroundStyle: 'background: url("/static/imgs/mall/top-bg.png") no-repeat;',
storeInfo: ''
}
@ -185,7 +185,7 @@ export default {
this.$set(this.storeInformation, 'currentProductNumber', res.currentProductNumber)
this.$set(this.storeInformation, 'name', res.name)
if (!res.logo) {
this.logo = 'bug 默认logo'
this.logo = '/static/imgs/mine/user-avatar.png'
} else {
this.logo = res.logo
}

10
pages/mine/index.vue

@ -32,7 +32,7 @@
</view>
<view class="operation">
<view class="box" v-if="hasLogin">
<view class="container" @click="go2('message')">
<view class="container" v-if="hasCompany" @click="go2('message')">
<image class="icon" src="/static/imgs/mine/msg-icon.png"></image>
<view v-if="messageNum > 0" class="number">
<text class="text">{{ messageNum }}</text>
@ -214,6 +214,13 @@ export default {
methods: {
//
certifyCompany() {
if (!this.hasCompany) {
uni.showToast({
title: '您还没有企业信息,请先完善企业信息',
icon: 'none'
})
return
}
if (this.userInfo.fddEnterpriseStatus === fddEnterpriseStatus.UNCERTIFIED || this.userInfo.fddEnterpriseStatus === fddEnterpriseStatus.CERTIFIED_FAIL) {
getVerifyUrl({ enterpriseId: this.$store.state.supplierInfo.id }).then((res) => {
if (res) {
@ -241,6 +248,7 @@ export default {
title: '您还没有企业,请先加入企业',
icon: 'none'
})
return
}
loginGo2(page)
},

Loading…
Cancel
Save