| xqd
@@ -1,7 +1,8 @@
|
|
|
<template>
|
|
|
<app-layout :haveBackground="false">
|
|
|
<image style="height: 396rpx;width: 100%;position: absolute;top: 0;left: 0;z-index: -1;"
|
|
|
- src="https://swdzshopv4.oss-cn-chengdu.aliyuncs.com/uploads/mall10000/20211209/0adfeb029f95892255541fd43cb70358.png" mode=""></image>
|
|
|
+ src="https://swdzshopv4.oss-cn-chengdu.aliyuncs.com/uploads/mall10000/20211209/0adfeb029f95892255541fd43cb70358.png"
|
|
|
+ mode=""></image>
|
|
|
<app-nav-bar v-if="true" :fixed="true" :title="mall.name" color="#000" :hasMallSetting="2" background-color="">
|
|
|
</app-nav-bar>
|
|
|
<app-user-center-top :top-style="5" :member-pic-url="userCenter.member_pic_url"
|
| xqd
@@ -14,23 +15,41 @@
|
|
|
<view class="list" :class="[listStyle]">
|
|
|
<!-- #ifdef MP -->
|
|
|
<view class="item" v-for="(item, index) in temporaryMenu" :key="index">
|
|
|
- <app-jump-button form :url="item.link_url" :open_type="item.open_type" :item="item" :number="userInfo.service_phone"
|
|
|
- :arrangement="'row'">
|
|
|
+ <app-jump-button v-if="item.name!='退出销售端'" form :url="item.link_url" :open_type="item.open_type" :item="item"
|
|
|
+ :number="userInfo.service_phone" :arrangement="'row'">
|
|
|
<view style="width: 100%" class="item-container dir-left-nowrap cross-center">
|
|
|
<view class="box-grow-0">
|
|
|
<image :src="item.icon_url" class="icon"></image>
|
|
|
</view>
|
|
|
<view class="box-grow-1 main-between" style="max-width: 100%">
|
|
|
<view class="name">{{item.name}}</view>
|
|
|
- <view class="num" v-if="item.num">{{item.num===1?Number(userInfo.salesperson_info.already_verify_num) + Number(userInfo.salesperson_info.not_verify_num):userInfo.salesperson_info.estate_num}}</view>
|
|
|
+ <view class="num" v-if="item.num">
|
|
|
+ {{item.num===1?Number(userInfo.salesperson_info.already_verify_num) + Number(userInfo.salesperson_info.not_verify_num):userInfo.salesperson_info.estate_num}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="box-grow-0">
|
|
|
<image src="https://t17.9026.com/web/statics/image/index/arrow-right-bgwrite.png"
|
|
|
- class="arrow" ></image>
|
|
|
+ class="arrow"></image>
|
|
|
<!-- <image src="https://t17.9026.com/web/statics/image/index/arrow-right-bgwrite.png" class="arrow"></image> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
</app-jump-button>
|
|
|
+ <view v-else style="width: 100%" class="item-container dir-left-nowrap cross-center" @click="logout">
|
|
|
+ <view class="box-grow-0">
|
|
|
+ <image :src="item.icon_url" class="icon"></image>
|
|
|
+ </view>
|
|
|
+ <view class="box-grow-1 main-between" style="max-width: 100%">
|
|
|
+ <view class="name">{{item.name}}</view>
|
|
|
+ <view class="num" v-if="item.num">
|
|
|
+ {{item.num===1?Number(userInfo.salesperson_info.already_verify_num) + Number(userInfo.salesperson_info.not_verify_num):userInfo.salesperson_info.estate_num}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="box-grow-0">
|
|
|
+ <image src="https://t17.9026.com/web/statics/image/index/arrow-right-bgwrite.png"
|
|
|
+ class="arrow"></image>
|
|
|
+ <!-- <image src="https://t17.9026.com/web/statics/image/index/arrow-right-bgwrite.png" class="arrow"></image> -->
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<!-- #endif -->
|
|
|
<!-- #ifdef H5 -->
|
| xqd
@@ -47,12 +66,13 @@
|
|
|
</view>
|
|
|
<view class="box-grow-1" style="max-width: 100%">
|
|
|
<view class="name">{{item.name}}</view>
|
|
|
- <view class="num" v-if="item.num">{{item.num===1?Number(userInfo.salesperson_info.already_verify_num) + Number(userInfo.salesperson_info.not_verify_num):userInfo.salesperson_info.estate_num}}</view>
|
|
|
+ <view class="num" v-if="item.num">
|
|
|
+ {{item.num===1?Number(userInfo.salesperson_info.already_verify_num) + Number(userInfo.salesperson_info.not_verify_num):userInfo.salesperson_info.estate_num}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="box-grow-0" v-if="userCenter.menu_style=='1'">
|
|
|
- <image
|
|
|
- src="https://t17.9026.com/web/statics/image/index/arrow-right.png"
|
|
|
- class="arrow" ></image>
|
|
|
+ <image src="https://t17.9026.com/web/statics/image/index/arrow-right.png"
|
|
|
+ class="arrow"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
</app-jump-button>
|
| xqd
@@ -80,7 +100,7 @@
|
|
|
<view :style="{height: '110rpx'}" class="nav-margin "
|
|
|
:class="haveBackground ? 'app-layout-background' : ''"></view>
|
|
|
</view>
|
|
|
- <app-tab-bar :page-count="0" ></app-tab-bar>
|
|
|
+ <app-tab-bar :page-count="0"></app-tab-bar>
|
|
|
</template>
|
|
|
</app-layout>
|
|
|
</template>
|
| xqd
@@ -110,39 +130,40 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ timer:'',
|
|
|
temporaryMenu: [{
|
|
|
icon_url: "https://t17.9026.com/web/statics/image/index/order-icon.png",
|
|
|
- key: "pintuan",
|
|
|
+ key: "",
|
|
|
link_url: "/pages/sale/mySaleOrder",
|
|
|
name: "我的订单",
|
|
|
open_type: "navigate",
|
|
|
},
|
|
|
{
|
|
|
icon_url: "https://t17.9026.com/web/statics/image/index/kehu.png",
|
|
|
- key: "pintuan",
|
|
|
+ key: "",
|
|
|
link_url: "/pages/sale/cusmter/list",
|
|
|
name: "我的客户",
|
|
|
open_type: "navigate",
|
|
|
- num:1,
|
|
|
+ num: 1,
|
|
|
},
|
|
|
{
|
|
|
icon_url: "https://t17.9026.com/web/statics/image/index/lp.png",
|
|
|
- key: "pintuan",
|
|
|
+ key: "",
|
|
|
link_url: "/pages/sale/properties/properties",
|
|
|
name: "我负责的楼盘",
|
|
|
open_type: "navigate",
|
|
|
- num:2,
|
|
|
+ num: 2,
|
|
|
},
|
|
|
{
|
|
|
icon_url: "https://t17.9026.com/web/statics/image/index/xx.png",
|
|
|
- key: "pintuan",
|
|
|
+ key: "",
|
|
|
link_url: "/pages/sale/news/news",
|
|
|
name: "我的消息",
|
|
|
open_type: "navigate",
|
|
|
},
|
|
|
{
|
|
|
icon_url: "https://t17.9026.com/web/statics/image/index/kf.png",
|
|
|
- key: "pintuan",
|
|
|
+ key: "",
|
|
|
link_url: "",
|
|
|
name: "联系客服",
|
|
|
open_type: "tel",
|
| xqd
@@ -159,7 +180,7 @@
|
|
|
key: "",
|
|
|
link_url: "",
|
|
|
name: "退出销售端",
|
|
|
- open_type: "reLaunch",
|
|
|
+ open_type: "",
|
|
|
}
|
|
|
]
|
|
|
}
|
| xqd
@@ -186,7 +207,7 @@
|
|
|
account_bar_status: function() {
|
|
|
return this.userCenter.account_bar ? this.userCenter.account_bar.status : 0;
|
|
|
},
|
|
|
- info:state => state.user.info
|
|
|
+ info: state => state.user.info
|
|
|
// #ifdef H5
|
|
|
isWechat: function() {
|
|
|
return this.$jwx.isWechat();
|
| xqd
@@ -279,7 +300,7 @@
|
|
|
let padding = '';
|
|
|
let arrow = require(
|
|
|
"https://shop.9026.com/web/statics/image/mall/static/icon/arrow-right.png"
|
|
|
- );
|
|
|
+ );
|
|
|
if (true) {
|
|
|
let margin = uni.upx2px(16);
|
|
|
strImg =
|
| xqd
@@ -375,11 +396,11 @@
|
|
|
this.refresh()
|
|
|
this.$nextTick().then(() => {
|
|
|
this.$store.dispatch('userCenter/data');
|
|
|
- this.$store.dispatch('user/isEnterSales',true);
|
|
|
+ this.$store.dispatch('user/isEnterSales', true);
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
- ...mapActions('user',['refresh']),
|
|
|
+ ...mapActions('user', ['refresh']),
|
|
|
// #ifdef H5
|
|
|
routerGo() {
|
|
|
uni.navigateTo({
|
| xqd
@@ -387,8 +408,39 @@
|
|
|
});
|
|
|
},
|
|
|
// #endif
|
|
|
+ logout() {
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '确定退出销售端?',
|
|
|
+ success: (res) => {
|
|
|
+ if (res.confirm) {
|
|
|
+ this.$request({
|
|
|
+ url: this.$api.sale.logout,
|
|
|
+ method: 'post'
|
|
|
+ }).then(res => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '退出成功',
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ this.timer=setTimeout(()=>{
|
|
|
+ uni.reLaunch({
|
|
|
+ url:'/pages/index/index',
|
|
|
+ })
|
|
|
+ },1500)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else if (res.cancel) {
|
|
|
+ console.log('用户点击取消');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
+ }
|
|
|
},
|
|
|
+ onUnload() {
|
|
|
+ clearTimeout(this.timer)
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|
| xqd
@@ -417,9 +469,11 @@
|
|
|
}
|
|
|
|
|
|
.arrow {
|
|
|
- width: 42rpx;height: 42rpx;
|
|
|
+ width: 42rpx;
|
|
|
+ height: 42rpx;
|
|
|
}
|
|
|
- .num{
|
|
|
+
|
|
|
+ .num {
|
|
|
font-size: 28rpx;
|
|
|
color: #999999;
|
|
|
margin-right: 32rpx;
|