|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
<template> |
|
|
|
|
<view class="user"> |
|
|
|
|
<view v-if="userInfo.uid"> |
|
|
|
|
<view v-if="$store.getters.token||userInfo.uid"> |
|
|
|
|
<view class="header bg-color-red acea-row row-between-wrapper"> |
|
|
|
|
<view class="picTxt acea-row row-between-wrapper"> |
|
|
|
|
<view class="pictrue"> |
|
|
|
@ -18,7 +18,12 @@
|
|
|
|
|
<text>ID:{{ userInfo.uid || 0}}</text> |
|
|
|
|
<text class="iconfont icon-bianji1"></text> |
|
|
|
|
</view> |
|
|
|
|
<button open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" class="binding" v-else> |
|
|
|
|
<button |
|
|
|
|
open-type="getPhoneNumber" |
|
|
|
|
@getphonenumber="getPhoneNumber" |
|
|
|
|
class="binding" |
|
|
|
|
v-else |
|
|
|
|
> |
|
|
|
|
<text>绑定手机号</text> |
|
|
|
|
</button> |
|
|
|
|
</view> |
|
|
|
@ -31,7 +36,11 @@
|
|
|
|
|
<text>我的余额</text> |
|
|
|
|
<text class="num">{{ userInfo.nowMoney || 0 }}</text> |
|
|
|
|
</view> |
|
|
|
|
<view @click="goUserPromotion()" class="item" v-if="userInfo.isPromoter === 1 || userInfo.statu === 2"> |
|
|
|
|
<view |
|
|
|
|
@click="goUserPromotion()" |
|
|
|
|
class="item" |
|
|
|
|
v-if="userInfo.isPromoter === 1 || userInfo.statu === 2" |
|
|
|
|
> |
|
|
|
|
<text>当前佣金</text> |
|
|
|
|
<text class="num">{{ userInfo.brokeragePrice || 0 }}</text> |
|
|
|
|
</view> |
|
|
|
@ -56,35 +65,50 @@
|
|
|
|
|
<view @click="goMyOrder(0)" class="item"> |
|
|
|
|
<view class="pictrue"> |
|
|
|
|
<image src="@/static/images/dfk.png" /> |
|
|
|
|
<text class="order-status-num" v-if="userInfo.orderStatusNum.unpaidCount > 0">{{ userInfo.orderStatusNum.unpaidCount }}</text> |
|
|
|
|
<text |
|
|
|
|
class="order-status-num" |
|
|
|
|
v-if="userInfo.orderStatusNum.unpaidCount > 0" |
|
|
|
|
>{{ userInfo.orderStatusNum.unpaidCount }}</text> |
|
|
|
|
</view> |
|
|
|
|
<view>待付款</view> |
|
|
|
|
</view> |
|
|
|
|
<view @click="goMyOrder(1)" class="item"> |
|
|
|
|
<view class="pictrue"> |
|
|
|
|
<image src="@/static/images/dfh.png" /> |
|
|
|
|
<text class="order-status-num" v-if="userInfo.orderStatusNum.unshippedCount > 0">{{ userInfo.orderStatusNum.unshippedCount }}</text> |
|
|
|
|
<text |
|
|
|
|
class="order-status-num" |
|
|
|
|
v-if="userInfo.orderStatusNum.unshippedCount > 0" |
|
|
|
|
>{{ userInfo.orderStatusNum.unshippedCount }}</text> |
|
|
|
|
</view> |
|
|
|
|
<view>待发货</view> |
|
|
|
|
</view> |
|
|
|
|
<view @click="goMyOrder(2)" class="item"> |
|
|
|
|
<view class="pictrue"> |
|
|
|
|
<image src="@/static/images/dsh.png" /> |
|
|
|
|
<text class="order-status-num" v-if="userInfo.orderStatusNum.receivedCount > 0">{{ userInfo.orderStatusNum.receivedCount }}</text> |
|
|
|
|
<text |
|
|
|
|
class="order-status-num" |
|
|
|
|
v-if="userInfo.orderStatusNum.receivedCount > 0" |
|
|
|
|
>{{ userInfo.orderStatusNum.receivedCount }}</text> |
|
|
|
|
</view> |
|
|
|
|
<text>待收货</text> |
|
|
|
|
</view> |
|
|
|
|
<view @click="goMyOrder(3)" class="item"> |
|
|
|
|
<view class="pictrue"> |
|
|
|
|
<image src="@/static/images/dpj.png" /> |
|
|
|
|
<text class="order-status-num" v-if="userInfo.orderStatusNum.evaluatedCount > 0">{{ userInfo.orderStatusNum.evaluatedCount }}</text> |
|
|
|
|
<text |
|
|
|
|
class="order-status-num" |
|
|
|
|
v-if="userInfo.orderStatusNum.evaluatedCount > 0" |
|
|
|
|
>{{ userInfo.orderStatusNum.evaluatedCount }}</text> |
|
|
|
|
</view> |
|
|
|
|
<text>待评价</text> |
|
|
|
|
</view> |
|
|
|
|
<view @click="goReturnList()" class="item"> |
|
|
|
|
<view class="pictrue"> |
|
|
|
|
<image src="@/static/images/sh.png" /> |
|
|
|
|
<text class="order-status-num" v-if="userInfo.orderStatusNum.refundCount > 0">{{ userInfo.orderStatusNum.refundCount }}</text> |
|
|
|
|
<text |
|
|
|
|
class="order-status-num" |
|
|
|
|
v-if="userInfo.orderStatusNum.refundCount > 0" |
|
|
|
|
>{{ userInfo.orderStatusNum.refundCount }}</text> |
|
|
|
|
</view> |
|
|
|
|
<text>售后/退款</text> |
|
|
|
|
</view> |
|
|
|
@ -96,7 +120,12 @@
|
|
|
|
|
</view> |
|
|
|
|
<view class="serviceList acea-row row-middle"> |
|
|
|
|
<template v-for="(item, MyMenusIndex) in MyMenus"> |
|
|
|
|
<view class="item" :key="MyMenusIndex" @click="goPages(MyMenusIndex)" v-if="item.url&&item.id!='230'"> |
|
|
|
|
<view |
|
|
|
|
class="item" |
|
|
|
|
:key="MyMenusIndex" |
|
|
|
|
@click="goPages(MyMenusIndex)" |
|
|
|
|
v-if="item.url&&item.id!='230'" |
|
|
|
|
> |
|
|
|
|
<view class="pictrue"> |
|
|
|
|
<image :src="item.pic" /> |
|
|
|
|
</view> |
|
|
|
@ -138,20 +167,11 @@
|
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import { |
|
|
|
|
getUser, |
|
|
|
|
getMenuUser, |
|
|
|
|
bindingPhone |
|
|
|
|
} from "@/api/user"; |
|
|
|
|
import { |
|
|
|
|
isWeixin, |
|
|
|
|
VUE_APP_RESOURCES_URL |
|
|
|
|
} from "@/utils"; |
|
|
|
|
import { getUser, getMenuUser, bindingPhone } from "@/api/user"; |
|
|
|
|
import { isWeixin, VUE_APP_RESOURCES_URL } from "@/utils"; |
|
|
|
|
import SwitchWindow from "@/components/SwitchWindow"; |
|
|
|
|
import Authorization from "@/pages/authorization/index"; |
|
|
|
|
import { |
|
|
|
|
mapGetters |
|
|
|
|
} from "vuex"; |
|
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
|
|
|
|
|
|
const NAME = "User"; |
|
|
|
|
|
|
|
|
@ -304,7 +324,7 @@
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onShow() { |
|
|
|
|
console.log(this.$store.getters.token) |
|
|
|
|
console.log(this.$store.getters.token); |
|
|
|
|
console.log(this.userInfo); |
|
|
|
|
if (this.$store.getters.token) { |
|
|
|
|
this.User(); |
|
|
|
@ -355,7 +375,7 @@
|
|
|
|
|
|
|
|
|
|
.by { |
|
|
|
|
text-align: center; |
|
|
|
|
margin-top: 30rpx |
|
|
|
|
margin-top: 30rpx; |
|
|
|
|
} |
|
|
|
|
.by-text { |
|
|
|
|
text-align: center; |
|
|
|
|