From eb4d171a50e4940d4822ec57641ba24be7747afa Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期三, 26 七月 2023 14:05:41 +0800 Subject: [PATCH] no message --- uniapp/pages/mine/mt.vue | 30 +++++++++++++++++++++--------- 1 files changed, 21 insertions(+), 9 deletions(-) diff --git a/uniapp/pages/mine/mt.vue b/uniapp/pages/mine/mt.vue index 3aa525e..dc06dd6 100644 --- a/uniapp/pages/mine/mt.vue +++ b/uniapp/pages/mine/mt.vue @@ -1,9 +1,9 @@ <template> <view class="elm-wrapper wrapperLayer" - :style="optionsCurrent==2?'background-color:#62BC00;':'background-color:#FFD100;'"> + :style="optionsCurrent==2?'background-color:#FFD100;':'background-color:#FFD100;'"> <view class="flexbox borderBox colCen" - :style="optionsCurrent==2?'background-color:#62BC00;':'background-color:#FFD100;'"> + :style="optionsCurrent==2?'background-color:#FFD100;':'background-color:#FFD100;'"> <view class="topbarbox"></view> <view class="leftimgbox rowCenBet" @tap="back()"> <view class="shadow rowCenCen" style="background:rgba(0,0,0,0);"> @@ -21,14 +21,14 @@ </view> <view class="options-bar-content rowCenCen"> - <!-- <view class="center-container rowCenBet"> + <view class="center-container rowCenBet"> <block v-for="(items,index) in optionsList" :key="index"> <view class="items-content rowCenCen" @tap="navTap(items.type)" :class="{ 'yellow':items.type == optionsCurrent && [1,3].includes(optionsCurrent), 'green': items.type == optionsCurrent && optionsCurrent ==2 }"> <view>{{items.label}}</view> </view> </block> <div class="items-active" :style="{'transform':'translateX('+(optionsCurrent-1) * 120 +'rpx)'}"></div> - </view> --> + </view> </view> <image class="pageBac" :src="pageBac" mode="aspectFill"> @@ -76,9 +76,13 @@ optionsCurrent: 1, scrollTop: 0, optionsList: [{ - label: "澶栧崠", + label: "缇庡洟", type: 1 - } + }, + { + label: "楗夸簡涔�", + type: 2 + } /* , { label: "鍟嗚秴", @@ -125,6 +129,7 @@ this.$u.api.meituanAct({type:this.optionsCurrent}).then(e => { if(e.code != 0)return that.$alert(e.msg) uni.stopPullDownRefresh() + console.log(e) that.mtInfo = e.data.info; that.wxQrcodeUrl = that.mtInfo.we_app_info.miniCode; }).catch(function (err) { @@ -138,7 +143,14 @@ navTap(type) { if (this.optionsCurrent != type) { this.optionsCurrent = type - if (this.optionsCurrent == 2) { + if(this.optionsCurrent==2) + {//璺宠浆楗夸簡涔� + uni.redirectTo({ + url:'./elm' + }) + return; + } + else if (this.optionsCurrent == 2) { uni.setNavigationBarColor({ frontColor: '#ffffff', backgroundColor: '#62BC00' @@ -241,10 +253,10 @@ .options-bar-content { width: 100%; - margin-top: 168rpx; + margin-top: 198rpx; .center-container { position: relative; - width: 360rpx; + width: 240rpx; height: 58rpx; background: rgba(254, 254, 254, 0.3); border-radius: 29rpx; -- Gitblit v1.9.3