Browse Source

no message

DaMowang 3 years ago
parent
commit
483921d3c7
2 changed files with 7 additions and 35 deletions
  1. 3 3
      src/pages/index/index.vue
  2. 4 32
      src/pages/my/index.vue

+ 3 - 3
src/pages/index/index.vue

@@ -3,10 +3,10 @@
         <!-- 顶部 -->
         <view class="head">
             <!-- 搜索框 -->
-            <view class="head_search">
+            <!-- <view class="head_search">
                 <text class="iconfont">&#xe661;</text>
                 <text class="search_text">请输入搜索关键字</text>
-            </view>
+            </view> -->
             <!-- 搜索框-end -->
 
             <!-- 轮播图 -->
@@ -87,7 +87,7 @@ export default {
                  {name: "零售区", url: "https://teaclub.oss-cn-chengdu.aliyuncs.com/menu/cart.png", type:1},
                  {name: "批发区", url: "https://teaclub.oss-cn-chengdu.aliyuncs.com/menu/wholesale.png", type:2},
                  {name: "精品优选", url: "https://teaclub.oss-cn-chengdu.aliyuncs.com/menu/preferred.png", type:3},
-                 {name: "今日值买", url: "https://teaclub.oss-cn-chengdu.aliyuncs.com/menu/integral.png", type:4}
+                 {name: "今日值买", url: "https://teaclub.oss-cn-chengdu.aliyuncs.com/menu/integral.png", type:4}
             ],
             spc_list: [
                 {url: "https://teaclub.oss-cn-chengdu.aliyuncs.com/ShuZiTea/ShuZiTeaHT/202210/f70cd8e0-e468-45eb-a9f7-2c42713cd607.jpg"},

+ 4 - 32
src/pages/my/index.vue

@@ -3,7 +3,7 @@
 		<view class="content" :style="userinfo.is_authentication == 1 ? 'padding-top:30rpx;' : ''">
 			<!-- 用户信息 -->
 			<view class="uerInfo mar_t16 flex_r">
-				<view class="user_img" @click="updateUserInfo">
+				<view class="user_img">
 					<image class="image" :src="
               userinfo && userinfo.head_pic != ''
                 ? userinfo.head_pic
@@ -18,7 +18,7 @@
 				</view>
 				<block v-if="userinfo && userinfo != ''">
 					<view class="user_con flex_c">
-						<view class="user_name flex_r flex_ae ellipsis" @click="updateUserInfo">{{ userinfo.nickname
+						<view class="user_name flex_r flex_ae ellipsis">{{ userinfo.nickname
               }}<text>({{
                   userinfo.is_authentication == 0 ? "未实名" : "已实名"
                 }})</text></view>
@@ -204,11 +204,11 @@
 						<image class="fun_img" src="/static/my/take.png" mode=""></image>
 						<view class="fun_text">待收货</view>
 					</navigator>
-					<navigator class="fun_list flex_c flex_ac" url="/pages/szw-order-list/index?status=5"
+					<!-- <navigator class="fun_list flex_c flex_ac" url="/pages/szw-order-list/index?status=5"
 						hover-class="none">
 						<image class="fun_img" src="/static/my/evaluate.png" mode=""></image>
 						<view class="fun_text">待评价</view>
-					</navigator>
+					</navigator> -->
 					<navigator class="fun_list flex_c flex_ac" url="/pages/order-refund-list/index?status=5"
 						hover-class="none">
 						<image class="fun_img" src="/static/my/refund.png" mode=""></image>
@@ -361,34 +361,6 @@
 				this.isGetUserInfo = false
 				console.log(res,"获取到的用户信息")
 			},
-			updateUserInfo() {
-				// uni.getUserProfile({
-				// 	desc: '登录',
-				// 	success: (response) => {
-				// 		console.log('response', response)
-				// 		try {
-				// 			uni.showLoading({
-				// 				title: '登录中...'
-				// 			});
-				// 			//请求后台,成功并隐藏加载
-				// 			uni.hideLoading({})
-				// 		} catch (e) {
-				// 			uni.showToast({
-				// 				title: "微信登录失败",
-				// 				icon: "none"
-				// 			});
-				// 		}
-				// 	},
-				// 	fail: (res) => {
-				// 		uni.showToast({
-				// 			title: "您已取消授权",
-				// 			icon: "none"
-				// 		});
-				// 	}
-				// });\
-	            this.isGetUserInfo = true;
-				this.showAuth = true
-			},
 			getuserInfo() {
 				post("/user/userinfo").then((res) => {
 					if (res.code === 0) {