|
|
|
@ -18,12 +18,7 @@
|
|
|
|
|
<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> |
|
|
|
@ -36,11 +31,7 @@
|
|
|
|
|
<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> |
|
|
|
@ -65,50 +56,35 @@
|
|
|
|
|
<view @click="goMyOrder(0)" class="item"> |
|
|
|
|
<view class="pictrue"> |
|
|
|
|
<image :src="$VUE_APP_RESOURCES_URL + '/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="$VUE_APP_RESOURCES_URL+'/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="$VUE_APP_RESOURCES_URL+'/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="$VUE_APP_RESOURCES_URL+'/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="$VUE_APP_RESOURCES_URL+'/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> |
|
|
|
@ -140,7 +116,9 @@
|
|
|
|
|
<!-- </view> |
|
|
|
|
</view>--> |
|
|
|
|
</view> |
|
|
|
|
<view style="text-align: center;margin-top: 1rem">By@意象</view> |
|
|
|
|
<view class="by"> |
|
|
|
|
<text class="by-text">By@意象</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="footer-line-height"></view> |
|
|
|
|
<!-- <SwitchWindow |
|
|
|
|
v-on:changeswitch="changeswitch" |
|
|
|
@ -148,19 +126,28 @@
|
|
|
|
|
:login_type="userInfo.login_type" |
|
|
|
|
></SwitchWindow> --> |
|
|
|
|
</view> |
|
|
|
|
<Authorization v-else /> |
|
|
|
|
<Authorization v-if="!$store.getters.token" /> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
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 { |
|
|
|
|
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"; |
|
|
|
|
|
|
|
|
|
const NAME = "User"; |
|
|
|
|
const NAME = "User"; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
export default { |
|
|
|
|
name: NAME, |
|
|
|
|
components: { |
|
|
|
|
SwitchWindow, |
|
|
|
@ -316,44 +303,53 @@ export default {
|
|
|
|
|
this.isWeixin = isWeixin(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style> |
|
|
|
|
.footer-line-height { |
|
|
|
|
height: 1rem; |
|
|
|
|
} |
|
|
|
|
<style lang="less"> |
|
|
|
|
.footer-line-height { |
|
|
|
|
height: 1*100rpx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.order-status-num { |
|
|
|
|
min-width: 0.33rem; |
|
|
|
|
.order-status-num { |
|
|
|
|
min-width: 0.33*100rpx; |
|
|
|
|
background-color: #fff; |
|
|
|
|
color: #73cbb6; |
|
|
|
|
border-radius: 15px; |
|
|
|
|
position: absolute; |
|
|
|
|
right: -0.14rem; |
|
|
|
|
top: -0.15rem; |
|
|
|
|
font-size: 0.2rem; |
|
|
|
|
padding: 0 0.08rem; |
|
|
|
|
right: -0.14*100rpx; |
|
|
|
|
top: -0.15*100rpx; |
|
|
|
|
font-size: 0.2*100rpx; |
|
|
|
|
padding: 0 0.08*100rpx; |
|
|
|
|
border: 1px solid #73cbb6; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.pictrue { |
|
|
|
|
.pictrue { |
|
|
|
|
position: relative; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.switch-h5 { |
|
|
|
|
margin-left: 0.2rem; |
|
|
|
|
} |
|
|
|
|
.switch-h5 { |
|
|
|
|
margin-left: 0.2*100rpx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.binding { |
|
|
|
|
margin-top: 0.1rem; |
|
|
|
|
.binding { |
|
|
|
|
margin-top: 0.1*100rpx; |
|
|
|
|
display: inline-block; |
|
|
|
|
padding: 0.05rem 0.2rem; |
|
|
|
|
padding: 0.05*100rpx 0.2*100rpx; |
|
|
|
|
background-color: #ca1f10; |
|
|
|
|
border-radius: 50px; |
|
|
|
|
font-size: 0.22rem; |
|
|
|
|
font-size: 0.22*100rpx; |
|
|
|
|
line-height: 1.5; |
|
|
|
|
border: 1px solid #e8695e; |
|
|
|
|
color: #ffffff; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.by{ |
|
|
|
|
text-align:center; |
|
|
|
|
margin-top: 30rpx |
|
|
|
|
} |
|
|
|
|
.by-text{ |
|
|
|
|
text-align:center; |
|
|
|
|
font-size: 30rpx; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|