|
|
@@ -51,6 +51,24 @@ onLoad(() => {
|
|
|
phonenumber.value = storedPhone;
|
|
|
isAgreement.value = true;
|
|
|
}
|
|
|
+
|
|
|
+ if (wx.getStorageSync('userMsg').token) {
|
|
|
+ $Http.basic({
|
|
|
+ "classname": "common.adspace.adspace",
|
|
|
+ "method": "query_adspacelist", //查询轮播图
|
|
|
+ content: {
|
|
|
+ nocache: true
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ if (res.code !== 0) {
|
|
|
+ uni.removeStorageSync('banner')
|
|
|
+ uni.setStorageSync('banner', res.data);
|
|
|
+ uni.redirectTo({
|
|
|
+ url: '/pages/index/index',
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
// 登陆按钮相关
|