|
|
@ -9,7 +9,7 @@ |
|
|
|
</view> |
|
|
|
<view class="info"> |
|
|
|
<view class="name"> |
|
|
|
微信用户 |
|
|
|
{{ userInfo.nickName || '微信用户' }} |
|
|
|
</view> |
|
|
|
<!-- <view class="vip"> |
|
|
|
VIP1 |
|
|
@ -54,7 +54,7 @@ |
|
|
|
<image src="/static/image/center/1.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class=""> |
|
|
|
余额¥3000 |
|
|
|
余额¥ {{ userInfo.balance || 0 }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="item"> |
|
|
@ -62,7 +62,7 @@ |
|
|
|
<image src="/static/image/center/4.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class=""> |
|
|
|
押金¥30000 |
|
|
|
押金¥{{ userInfo.deposit || 0 }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -96,7 +96,7 @@ |
|
|
|
<view class="line grid"> |
|
|
|
<uv-grid :col="4" :border="false"> |
|
|
|
|
|
|
|
<uv-grid-item @click="contactUs"> |
|
|
|
<uv-grid-item @click="$refs.customerServicePopup.open()"> |
|
|
|
<image class="image" src="/static/image/center/9.png" mode=""></image> |
|
|
|
<text class="grid-text">联系客服</text> |
|
|
|
</uv-grid-item> |
|
|
@ -119,83 +119,39 @@ |
|
|
|
</uv-grid> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 联系客服弹框 --> |
|
|
|
<uv-overlay :show="show" @click="show = false"> |
|
|
|
<view class="warp"> |
|
|
|
<view class="rect" @tap.stop> |
|
|
|
<view class="title">联系客服</view> |
|
|
|
<view class="center">确定拨打客服电话?</view> |
|
|
|
<view class="bottom"> |
|
|
|
<view> |
|
|
|
<uv-button type="info" shape="circle" text="取消" :custom-style="customStyle1" |
|
|
|
@click="cancle"></uv-button> |
|
|
|
</view> |
|
|
|
<view> |
|
|
|
<uv-button type="info" shape="circle" text="确定" :custom-style="customStyle2" |
|
|
|
@click="confirm"></uv-button> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</uv-overlay> |
|
|
|
|
|
|
|
|
|
|
|
<customerServicePopup ref="customerServicePopup"/> |
|
|
|
|
|
|
|
<tabber select="4" /> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import customerServicePopup from '@/components/config/customerServicePopup.vue' |
|
|
|
import tabber from '@/components/base/tabbar.vue' |
|
|
|
import { |
|
|
|
mapGetters |
|
|
|
mapGetters, |
|
|
|
mapState, |
|
|
|
} from 'vuex' |
|
|
|
import userShopCommission from '@/components/userShop/userShopCommission.vue' |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
tabber, |
|
|
|
userShopCommission, |
|
|
|
customerServicePopup, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapGetters(['userShop']), |
|
|
|
customStyle1() { |
|
|
|
return { |
|
|
|
height: '60rpx', |
|
|
|
background: '#FFF', |
|
|
|
color: '#000000', |
|
|
|
fontSize: '36rpx', |
|
|
|
borderRadius: '40rpx', //圆角 |
|
|
|
|
|
|
|
// nvue中必须是下方的写法 |
|
|
|
'border-top-right-radius': '40rpx', |
|
|
|
'border-bottom-left-radius': '40rpx', |
|
|
|
'border-bottom-right-radius': '40rpx', |
|
|
|
'width': '150rpx', |
|
|
|
} |
|
|
|
}, |
|
|
|
customStyle2() { |
|
|
|
return { |
|
|
|
height: '60rpx', |
|
|
|
background: '#fd5100', |
|
|
|
color: '#FFF', |
|
|
|
fontSize: '34px', |
|
|
|
borderRadius: '40rpx', //圆角 |
|
|
|
// nvue中必须是下方的写法 |
|
|
|
'border-top-right-radius': '40rpx', |
|
|
|
'border-bottom-left-radius': '40rpx', |
|
|
|
'border-bottom-right-radius': '40rpx', |
|
|
|
'width': '150rpx', |
|
|
|
} |
|
|
|
} |
|
|
|
...mapState(['userInfo']), |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
show: false, |
|
|
|
} |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.$store.commit('getUserInfo') |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
|
|
|
|
headBtn() { |
|
|
|
let self = this |
|
|
|
uni.showModal({ |
|
|
@ -208,19 +164,6 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 联系客服按钮回调 |
|
|
|
contactUs() { |
|
|
|
this.show = true |
|
|
|
}, |
|
|
|
confirm() { |
|
|
|
this.show = false |
|
|
|
}, |
|
|
|
|
|
|
|
cancle() { |
|
|
|
this.show = false |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
@ -228,49 +171,9 @@ |
|
|
|
<style scoped lang="scss"> |
|
|
|
.page { |
|
|
|
|
|
|
|
.warp { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
height: 100%; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.rect { |
|
|
|
width: 600rpx; |
|
|
|
height: 300rpx; |
|
|
|
background-color: #fff; |
|
|
|
border-radius: 20rpx; |
|
|
|
overflow: hidden; |
|
|
|
|
|
|
|
.title { |
|
|
|
padding: 10rpx 0 0 15rpx; |
|
|
|
background-color: #fd5100; |
|
|
|
color: #FFF; |
|
|
|
text-align: left; |
|
|
|
width: 100%; |
|
|
|
height: 18%; |
|
|
|
font-size: 36rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.center { |
|
|
|
height: 40%; |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
font-size: 36rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.bottom { |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
gap: 50rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
image { |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|