From 4a29244fd31cc4e64a53dd67ea0806277a1c09ec Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期日, 18 六月 2023 23:31:42 +0800
Subject: [PATCH] no message

---
 uniapp/pages/mine/mine.vue |  115 +++++++++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 98 insertions(+), 17 deletions(-)

diff --git a/uniapp/pages/mine/mine.vue b/uniapp/pages/mine/mine.vue
index 1d99ce3..caf3789 100644
--- a/uniapp/pages/mine/mine.vue
+++ b/uniapp/pages/mine/mine.vue
@@ -1,5 +1,8 @@
 <template>
-	<view class="minePage-wrapper">
+	<view v-if="isshowtype">
+		<minePage></minePage>
+	</view>
+	<view v-else class="minePage-wrapper">
 		<view class="fixed-box colCen" style="background:linear-gradient(263deg, #D20CFC, #8905F6);">
 			<view class="topbarbox"></view>
 			<view class="navigate-container rowCenBet">
@@ -81,8 +84,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 +127,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)">
@@ -243,10 +266,12 @@
 	import APPUpdate from "../../utils/appUpdate.js";
 	import inviteCodeModel from '../../components/inviteCode.vue'
 	import inviterModel from '../../components/inviterModel.vue'
+	import minePage from '../../components/sh_page/minePage.vue'
 	export default {
 		components: {
 			inviteCodeModel,
-			inviterModel
+			inviterModel,
+			minePage,
 		},
 		data() {
 			return {
@@ -264,7 +289,8 @@
 				bbcList:'',
 				sct: 0,
 				inviteCodeShow:false,
-				inviterShow:false
+				inviterShow:false,
+				isshowtype:false,
 			}
 		},
 		onPageScroll(e) {
@@ -274,7 +300,6 @@
 		},
 		onPullDownRefresh()
 		{
-			
 			this.getuserInfo();
 			this.centerInfo();
 			this.getmoneyInfo();
@@ -287,7 +312,7 @@
 					url:"/pages/login/wxlogin"
 				})
 			}else{
-				getApp().watch(this.getInit,'ifwt')
+				//getApp().watch(this.ifwtChange,'ifwt')
 				this.centerInfo()
 				this.getbanner()
 			}
@@ -297,21 +322,41 @@
 				this.getInit();
 				this.getmoneyInfo()
 				this.getuserInfo()
-				
 			}
+			
+			// #ifdef APP-PLUS
+			
+			var showtar = getApp().globalData.ifwt == 1 ? false : true;
+			var platform = plus.os.name;
+			console.log(showtar);
+			console.log(platform);
+			//showtar&&platform=='iOS'
+			if(showtar&&platform=='iOS')
+			{//璺宠浆new
+				this.isshowtype=true;
+				return;
+			}
+			// #endif
 		},
 		methods: {
 			getInit()
 			{
+				console.log(getApp().globalData)
 				if(!getApp().globalData.hasinit)
 				{
+					console.log('鍒濆鍖�1111')
 					getApp().getAppInfo();
+					setTimeout(()=>{
+						this.getInit();
+					},2000)
 				}
-					// #ifdef APP-PLUS
-					this.appInfo = uni.getStorageSync('appInfo');
-					this.showtar = getApp().globalData.ifwt == 1 ? false : true;
-					this.platform = plus.os.name
-					// #endif
+			    // #ifdef APP-PLUS
+				console.log(getApp().globalData.ifwt)
+				this.appInfo = uni.getStorageSync('appInfo');
+				this.showtar = getApp().globalData.ifwt == 1 ? false : true;
+				this.platform = plus.os.name;
+				
+				// #endif
 			},
 			getmoneyInfo() {
 				var that = this;
@@ -321,7 +366,11 @@
 				}).catch(function (err) {
 				})
 			},
-			
+			golevelRules() {
+			 uni.navigateTo({
+			   url: '../goods/privilege'
+			 })
+			},
 			getuserInfo() {
 				var that = this;
 				this.$u.api.getUserInfo({}).then(e => {
@@ -336,13 +385,13 @@
 				var that = this;
 				this.$u.api.getBanner({type:'2'}).then(e => {
 					if(e.code == 1)return that.$alert(e.msg);
-					console.log(e.data.info)
 					that.bannerList = e.data.info;
 				}).catch(function (err) {
 				})
 			},
 
 			centerInfo() {
+				  this.user = uni.getStorageSync('userInfo');
 				var that = this;
 				this.$u.api.userHomemenu({}).then(e => {
 					var res = e.data.list;
@@ -708,10 +757,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