Explorar el Código

feat: .登录完直接进入要进入的页面,不用再点一下。

lizhaocai hace 1 mes
padre
commit
406423ad9f
Se han modificado 3 ficheros con 14 adiciones y 43 borrados
  1. 2 0
      pages/discovery/discovery.vue
  2. 11 1
      pages/index/index.vue
  3. 1 42
      pages/mine/mine.vue

+ 2 - 0
pages/discovery/discovery.vue

@@ -167,6 +167,7 @@
 						url:'/circlePages/circle'
 					})
 				}else{
+					uni.setStorageSync('nextPage','/circlePages/circle');
 					uni.navigateTo({
 						url:'/pages/login/login'
 					})
@@ -179,6 +180,7 @@
 						url:'/circlePages/addShare'
 					})
 				}else{
+					uni.setStorageSync('nextPage','/circlePages/addShare');
 					uni.navigateTo({
 						url:'/pages/login/login'
 					})

+ 11 - 1
pages/index/index.vue

@@ -146,7 +146,7 @@
 			if(uni.getStorageSync('version')!='2.0.6'){
 				uni.showModal({
 				  title: '更新提示',
-				  content: '新版本已经准备好,是否重启应用?\r\n 更新内容:优化首页',
+				  content: '新版本已经准备好,是否重启应用?\r\n 更新内容:优化产品体验,修复已知问题',
 				  success: (res) => {
 				    if (res.confirm) {
 				      uni.setStorageSync('version','2.0.6');
@@ -157,6 +157,15 @@
 				  }
 				})
 			}
+			if(uni.getStorageSync('nextPage')&&uni.getStorageSync('userNo')){
+				let nextPage = uni.getStorageSync('nextPage')
+				uni.removeStorageSync('nextPage');
+				uni.navigateTo({
+					url: nextPage
+				}) 
+			}else{
+				uni.removeStorageSync('nextPage')
+			}
 			
 			
 			
@@ -239,6 +248,7 @@
 						title: '请登录',
 						icon:'none'
 					})
+					uni.setStorageSync('nextPage',this.currentIndex === 0?'/circlePages/circle':'/circlePages/addShare');
 					uni.navigateTo({
 						url: '/pages/login/login'
 					})

+ 1 - 42
pages/mine/mine.vue

@@ -16,12 +16,9 @@
             <view class="logo-pic tn-shadow">
 				
               <view class="logo-image">
-				  <!-- <tn-avatar src="../../static/me2.png" :badge="true" size="xl" badgeIcon="star"></tn-avatar> -->
 
 				 <image v-if="personInfo.profilePhotoUrl" class="tn-shadow-blur" style="width: 140rpx;height: 140rpx;background-size: cover;" :src="personInfo.profilePhotoUrl"></image>
                  <image v-if="!personInfo.profilePhotoUrl" class="tn-shadow-blur" style="width: 140rpx;height: 140rpx;background-size: cover;" src="../../static/me2.png"></image>
-			   <!-- <view class="tn-shadow-blur" style="background-image:url('https://cdn.nlark.com/yuque/0/2022/jpeg/280373/1664005699053-assets/web-upload/8645ea3a-e0a9-4422-8364-cc5ede305c9f.jpeg');width: 110rpx;height: 110rpx;background-size: cover;">
-                </view> -->
               </view>
             </view>
 			 
@@ -192,18 +189,6 @@
             </view>
           </button>
         </tn-list-cell>
-        <!-- <tn-list-cell :hover="true" :unlined="true" :radius="true" :fontSize="30" @click="callPhoneNumber" data-number="18266666666">
-          <view class="tn-flex tn-flex-col-center">
-            <view
-              class="icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center" style="color: #7C8191;">
-              <view class="tn-icon-tel-circle-fill"></view>
-            </view>
-            <view class="tn-margin-left-sm tn-flex-1">技术支持</view>
-            <view
-              class="tn-margin-left-sm tn-color-cat tn-text-sm tn-padding-left-xs tn-padding-right-xs tn-bg-gray--light tn-round">
-              158****8888</view>
-          </view>
-        </tn-list-cell> -->
 		<tn-list-cell :hover="true" :unlined="true" :radius="true" :fontSize="30" @click="showInfo()">
 		  <view class="tn-flex tn-flex-col-center">
 		    <view
@@ -360,6 +345,7 @@
       // 跳转
       tn(e) {
 		if(!uni.getStorageSync('userNo')){
+			uni.setStorageSync('nextPage',e);
 			uni.navigateTo({
 			  url: '/pages/login/login',
 			});
@@ -374,33 +360,6 @@
 		    url: '/pages/mine/addFeed',
 		  });
 	  },
-      // 收货地址
-      navAddress() {
-        uni.chooseAddress({
-        })
-      },
-      // 震动跳转
-      navThanks(e) {
-        wx.vibrateShort();
-        uni.navigateTo({
-          url: '/pages/login/login'
-        })
-      },
-      //拨打固定电话
-      callPhoneNumber() {
-		  uni.navigateTo({
-		    url: '/pages/login/login'
-		  })
-        // uni.makePhoneCall({
-        //   phoneNumber: "18219128888",
-        // });
-      },
-      // 复制开源地址
-      copySource() {
-        uni.setClipboardData({
-          data: "等待上传插件市场",
-        })
-      },
 	  showInfo(){
 		  uni.navigateTo({
 		    url: '/pages/login/info?counted=1'