From 69ea24e8fdfb41fc48c3fdb8c444645c13b1bbc4 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期六, 10 六月 2023 13:56:17 +0800 Subject: [PATCH] Merge branch 'release/1.1.2发布' --- uniapp/pages/mine/mine.vue | 67 +++++++++++++++++++++++++++++++-- 1 files changed, 62 insertions(+), 5 deletions(-) diff --git a/uniapp/pages/mine/mine.vue b/uniapp/pages/mine/mine.vue index 6256853..79acd4b 100644 --- a/uniapp/pages/mine/mine.vue +++ b/uniapp/pages/mine/mine.vue @@ -81,8 +81,8 @@ </view> </view> </view> - <view class="account-assets-container rowCenCen borderBox" v-if="!showtar || platform!='iOS'"> + <view class="cardBac-container rowStaBet borderBox"> <view class="left-content"> <view class="balance"> @@ -124,7 +124,27 @@ </view> </view> </view> - + + <view class="vip-info-container rowCenBet" v-if="!showtar || platform!='iOS'"> + <view class="left-info" v-if="user.level != 3"> + 鍗囩骇绛夌骇鍙嬁鏇撮珮鏀剁泭 + </view> + <view class="left-info" v-else> + 鎮ㄥ凡缁忔槸鏈�楂樼瓑绾�,蹇幓閭�璇峰ソ鍙嬭禋浣i噾鍚�! + </view> + <view class="rt-btn rowCenCen" @tap="golevelRules()" v-if="user.level != 3"> + <image class="vipimg" src="../../static/images/goods/vip.png" mode="aspectFill"></image> + <view class="level-txt"> + 绔嬪嵆鍗囩骇 + </view> + </view> + <view class="rt-btn rowCenCen" @tap="golevelRules()" v-else> + <image class="vipimg" src="../../static/images/goods/vip.png" mode="aspectFill"></image> + <view class="level-txt"> + 绔嬪嵆鏌ョ湅 + </view> + </view> + </view> <view class="swiper-container borderBox" v-if="bannerList.length>0"> <swiper class="banerContent" :autoplay="true" :interval="3000" :duration="1000" circular> <swiper-item v-for="(items,index) in bannerList" :key="index" @tap="goUrl(items)"> @@ -324,7 +344,11 @@ }).catch(function (err) { }) }, - + golevelRules() { + uni.navigateTo({ + url: '../goods/privilege' + }) + }, getuserInfo() { var that = this; this.$u.api.getUserInfo({}).then(e => { @@ -346,6 +370,7 @@ }, centerInfo() { + this.user = uni.getStorageSync('userInfo'); var that = this; this.$u.api.userHomemenu({}).then(e => { var res = e.data.list; @@ -711,10 +736,42 @@ } } } - + .vip-info-container { + width: 100%; + height: 60rpx; + background: #FFF2CF; + border-radius: 16rpx; + padding: 0 20rpx; + margin-bottom: 20rpx; + + .left-info { + font-size: 24rpx; + font-weight: 500; + color: #593A0F; + } + + .rt-btn { + width: 152rpx; + height: 44rpx; + background-color: rgba(0, 0, 0, 0.6); + border-radius: 22rpx; + + .vipimg { + width: 27rpx; + height: 24rpx; + } + + .level-txt { + font-size: 24rpx; + font-weight: 500; + color: #FFFFFF; + margin-left: 10rpx; + } + } + } .mine-under-container { width: 100%; - margin-top: 85rpx; + margin-top: 95rpx; padding: 0 30rpx; .nav-container { -- Gitblit v1.9.3