Browse Source

会员 退出

devlop
邓雄飞 4 years ago
parent
commit
9a388e62c2
4 changed files with 33 additions and 12 deletions
  1. 2
      pages/client-detail/basic-information.vue
  2. 10
      pages/follow-up-records/index.vue
  3. 13
      pages/mine/index.vue
  4. 20
      pages/setting/index.vue

2
pages/client-detail/basic-information.vue

@ -251,7 +251,7 @@ export default {
},
methods: {
gotoTap() {
go2('follow-up-records')
go2('follow-up-records', { customerEnterpriseId: this.info.id })
},
getBaseInfo() {
getBaseInfo({ customerId: this.customerId }).then((res) => {

10
pages/follow-up-records/index.vue

@ -77,7 +77,7 @@ export default {
params: {
asc: '',
desc: '',
customerEnterpriseId: [this.$store.state.supplierInfo.id],
customerEnterpriseId: null,
mallSupplierId: this.$store.state.supplierInfo.supplierId || null
// enterpriseIds : ['651107734133018624'],
// mallSupplierId : '670334117090562048',
@ -99,8 +99,12 @@ export default {
})
},
onShow() {
console.log('onShow')
this.getList()
this.downCallback()
},
onLoad(option) {
if (option.customerEnterpriseId) {
this.params.customerEnterpriseId = option.customerEnterpriseId
}
},
methods: {
back,

13
pages/mine/index.vue

@ -49,7 +49,7 @@
</view>
<text class="center">立即开通会员 尊享特权</text>
<view class="right">
<text class="text">开通会员</text>
<text class="text">{{ isVip ? '续费会员' : '开通会员' }}</text>
</view>
</view>
</view>
@ -126,14 +126,13 @@
</view> -->
</view>
</view>
<view @click="logout">mine</view>
<view @click="go2('client-credit')">client-credit</view>
<view @click="go2('enterprise-info')">enterprise-info</view>
</view>
</template>
<script>
import { exit, go2, loginGo2 } from '@/utils/hook.js'
import { go2, loginGo2 } from '@/utils/hook.js'
import { fddEnterpriseStatus } from '@/enums/index.js'
import { getBaseInfo, getVerifyUrl } from '@/apis/commonApi.js'
import qnDataPicker from '@/components/qn-data-picker/qn-data-picker.vue'
@ -182,10 +181,8 @@ export default {
}
}
},
methods: {
logout() {
exit()
},
//
certifyCompany() {
if (this.userInfo.fddEnterpriseStatus === fddEnterpriseStatus.UNCERTIFIED || this.userInfo.fddEnterpriseStatus === fddEnterpriseStatus.CERTIFIED_FAIL) {
@ -249,9 +246,11 @@ export default {
},
computed: {
hasLogin() {
console.log('token:', this.$store.state.qnToken)
return this.$store.state.qnToken != ''
},
isVip() {
return this.$store.state.supplierInfo.isVip == true
},
curAvatar() {
if (!this.hasLogin) {
return '/static/imgs/mine/user-avatar.png'

20
pages/setting/index.vue

@ -17,11 +17,18 @@
</view>
</view>
</view>
<qn-footer fixed height="120">
<view class="flex-row-center-center">
<view class="button flex-row-center-center" @click="exit">
<text class="text">退出登录</text>
</view>
</view>
</qn-footer>
</view>
</template>
<script>
import { back, go2, uploadFile } from '@/utils/hook.js'
import { back, go2, uploadFile, exit } from '@/utils/hook.js'
export default {
data() {
return {
@ -30,6 +37,7 @@ export default {
},
methods: {
back,
exit,
//
checkCompany(msg = '请完善企业信息') {
let company = this.$store.state.supplierInfo
@ -107,4 +115,14 @@ export default {
font-weight: 400;
}
}
.button {
width: 608rpx;
height: 86rpx;
background: #007aff;
border-radius: 42rpx;
.text {
font-size: 32rpx;
color: #ffffff;
}
}
</style>
Loading…
Cancel
Save