1004749546@qq.com 4 lat temu
rodzic
commit
3f863e551d
2 zmienionych plików z 8 dodań i 3 usunięć
  1. 1 1
      App.vue
  2. 7 2
      pages/userCenter/index.vue

+ 1 - 1
App.vue

@@ -1,7 +1,7 @@
 <script>
 <script>
 	const uat_domain = 'https://gather.test.sxzxyj.net' // 预发布
 	const uat_domain = 'https://gather.test.sxzxyj.net' // 预发布
 	// const uat_domain = 'http://192.168.16.225:8305' // 本地
 	// const uat_domain = 'http://192.168.16.225:8305' // 本地
-	const pro_domain = 'https://gather.sxzxyj.net' // 生产
+	const pro_domain = 'https://gather.zyucgj.cn' // 生产
 	const uat_URL = uat_domain+'/gc-gather/' // 预发布
 	const uat_URL = uat_domain+'/gc-gather/' // 预发布
 	const pro_URL = pro_domain+'/gc-gather/'  // 生产
 	const pro_URL = pro_domain+'/gc-gather/'  // 生产
 	const buildType = 0 // 打包环境对应类型,1 生产 0 预发布
 	const buildType = 0 // 打包环境对应类型,1 生产 0 预发布

+ 7 - 2
pages/userCenter/index.vue

@@ -69,7 +69,7 @@
 			getVersion(){
 			getVersion(){
 				const accountInfo = uni.getAccountInfoSync();
 				const accountInfo = uni.getAccountInfoSync();
 				this.version = accountInfo.miniProgram.version
 				this.version = accountInfo.miniProgram.version
-				// console.log(accountInfo,accountInfo.miniProgram.appId,'ppppppppp'); // 小程序 appId
+				console.log(accountInfo,accountInfo.miniProgram.appId,'ppppppppp'); // 小程序 appId
 			},
 			},
 			// 检查更新
 			// 检查更新
 			checkUpdate(){
 			checkUpdate(){
@@ -101,7 +101,12 @@
 				              content: '新版本已经上线啦~,请您删除当前小程序,重新搜索打开哟~'
 				              content: '新版本已经上线啦~,请您删除当前小程序,重新搜索打开哟~'
 				            })
 				            })
 				          })
 				          })
-				        }
+				        } else {
+							uni.showToast({
+								title: '已是最新版本',
+								icon: 'none'
+							})
+						}
 				      })
 				      })
 				    }
 				    }
 			},
 			},