chore:在线留言提交后,再次打开在线留言,输入框里没有上次留言内容,查看我的关注,暂无关注的商品,应展示去逛逛按钮,点击售后,跳转的界面标题应展示“售后”,无数据时界面应展示“暂无售后记录,搜索页的“查看详情”按钮加了样式
This commit is contained in:
@@ -270,7 +270,7 @@ export default {
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo('/pages/index/index');
|
||||
this.$util.redirectTo(this.$util.INDEX_PAGE_URL);
|
||||
}, 1000)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ export default {
|
||||
if (this.emptyBtn.url) {
|
||||
this.$util.redirectTo(this.emptyBtn.url, {}, 'redirectTo');
|
||||
} else {
|
||||
this.$util.redirectTo('/pages/index/index');
|
||||
this.$util.redirectTo(this.$util.INDEX_PAGE_URL);
|
||||
}
|
||||
},
|
||||
re(text) {
|
||||
|
||||
@@ -28,7 +28,7 @@ export default {
|
||||
*/
|
||||
addCart(config, data, event) {
|
||||
if (!this.storeToken) {
|
||||
this.$refs.login.open('/pages/index/index')
|
||||
this.$refs.login.open(this.$util.INDEX_PAGE_URL);
|
||||
return;
|
||||
}
|
||||
if (config == "detail" || data.is_virtual) {
|
||||
|
||||
@@ -413,7 +413,7 @@
|
||||
this.isLoad = false;
|
||||
if (callback) callback();
|
||||
} else {
|
||||
this.$util.redirectTo('/pages/index/index');
|
||||
this.$util.redirectTo(this.$util.INDEX_PAGE_URL);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -441,7 +441,7 @@
|
||||
this.skuId = res.data[0].sku_id;
|
||||
this.goodsSkuInfo = obj;
|
||||
} else {
|
||||
this.$util.redirectTo('/pages/index/index');
|
||||
this.$util.redirectTo(this.$util.INDEX_PAGE_URL);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -467,7 +467,7 @@
|
||||
this.skuId = res.data[0].sku_id;
|
||||
this.goodsSkuInfo = obj;
|
||||
} else {
|
||||
this.$util.redirectTo('/pages/index/index');
|
||||
this.$util.redirectTo(this.$util.INDEX_PAGE_URL);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -500,7 +500,7 @@
|
||||
this.skuId = res.data[0].sku_id;
|
||||
this.goodsSkuInfo = obj;
|
||||
} else {
|
||||
this.$util.redirectTo('/pages/index/index');
|
||||
this.$util.redirectTo(this.$util.INDEX_PAGE_URL);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -527,7 +527,7 @@
|
||||
this.skuId = res.data[0].sku_id;
|
||||
this.goodsSkuInfo = obj;
|
||||
} else {
|
||||
this.$util.redirectTo('/pages/index/index');
|
||||
this.$util.redirectTo(this.$util.INDEX_PAGE_URL);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -553,7 +553,7 @@
|
||||
this.skuId = res.data[0].sku_id;
|
||||
this.goodsSkuInfo = obj;
|
||||
} else {
|
||||
this.$util.redirectTo('/pages/index/index');
|
||||
this.$util.redirectTo(this.$util.INDEX_PAGE_URL);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -579,7 +579,7 @@
|
||||
this.skuId = res.data[0].sku_id;
|
||||
this.goodsSkuInfo = obj;
|
||||
} else {
|
||||
this.$util.redirectTo('/pages/index/index');
|
||||
this.$util.redirectTo(this.$util.INDEX_PAGE_URL);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -606,7 +606,7 @@
|
||||
this.skuId = res.data[0].sku_id;
|
||||
this.goodsSkuInfo = obj;
|
||||
} else {
|
||||
this.$util.redirectTo('/pages/index/index');
|
||||
this.$util.redirectTo(this.$util.INDEX_PAGE_URL);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -630,7 +630,7 @@
|
||||
this.skuId = res.data[0].sku_id;
|
||||
this.goodsSkuInfo = obj;
|
||||
} else {
|
||||
this.$util.redirectTo('/pages/index/index');
|
||||
this.$util.redirectTo(this.$util.INDEX_PAGE_URL);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -42,26 +42,22 @@
|
||||
|
||||
<!-- 协议勾选 -->
|
||||
<view style="display: flex;">
|
||||
<view
|
||||
class="iconfont"
|
||||
<view class="iconfont"
|
||||
:class="isAgree ? 'icon-fuxuankuang1 color-base-text' : 'icon-fuxuankuang2'"
|
||||
@click="isAgree = !isAgree"
|
||||
></view>
|
||||
@click="isAgree = !isAgree"></view>
|
||||
<view style="text-align: left; margin-left: 10rpx; padding-top: 2rpx; font-size: 28rpx;">
|
||||
我同意
|
||||
<text style="color: #4395ff;" @click="tourl('/pages_tool/agreement/contenr?type=0')">《隐私条款》</text>
|
||||
<text style="color: #4395ff;" @click="tourl('/pages_tool/agreement/contenr?type=1')">《用户服务协议》</text>
|
||||
<text style="color: #4395ff;"
|
||||
@click="tourl('/pages_tool/agreement/contenr?type=0')">《隐私条款》</text>
|
||||
<text style="color: #4395ff;"
|
||||
@click="tourl('/pages_tool/agreement/contenr?type=1')">《用户服务协议》</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 手机号授权按钮 -->
|
||||
<block v-if="isAgree">
|
||||
<button
|
||||
class="auth-login save-btn border-0"
|
||||
style="border: none;"
|
||||
open-type="getPhoneNumber"
|
||||
@getphonenumber="getPhoneNumber"
|
||||
>
|
||||
<button class="auth-login save-btn border-0" style="border: none;" open-type="getPhoneNumber"
|
||||
@getphonenumber="getPhoneNumber">
|
||||
<text style="color: #fff; font-size: 30rpx;">同意隐私协议并授权手机号</text>
|
||||
</button>
|
||||
</block>
|
||||
@@ -71,7 +67,8 @@
|
||||
</button>
|
||||
</block>
|
||||
|
||||
<view @click="closeLogin" style="font-size: 30rpx; color: #888; text-align: center; padding-top: 10rpx;">
|
||||
<view @click="closeLogin"
|
||||
style="font-size: 30rpx; color: #888; text-align: center; padding-top: 10rpx;">
|
||||
暂不登录
|
||||
</view>
|
||||
|
||||
@@ -118,8 +115,8 @@
|
||||
<text class="color-base-text" v-else>获取手机号</text>
|
||||
</button>
|
||||
</view>
|
||||
<button type="default" class="save-btn" @click="saveMp" :disabled="isDisabled">保存</button>
|
||||
</template>
|
||||
<button type="default" class="save-btn" @click="saveMp" :disabled="isDisabled">保存</button>
|
||||
</template>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
</uni-popup>
|
||||
@@ -226,7 +223,7 @@ export default {
|
||||
if (siteInfo) {
|
||||
this.site_name = siteInfo.site_name;
|
||||
}
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
// 同意协议
|
||||
authno() {
|
||||
@@ -254,7 +251,7 @@ export default {
|
||||
},
|
||||
|
||||
// 打开弹窗
|
||||
open(url) {
|
||||
open(url = '', mode = 'navigateTo') {
|
||||
if (url) this.url = url;
|
||||
// #ifdef MP
|
||||
this.getCode(authData => {
|
||||
@@ -266,28 +263,33 @@ export default {
|
||||
if (this.$util.isWeChatMiniProgram()) {
|
||||
// 微信小程序环境,使用微信授权登录
|
||||
let authData = uni.getStorageSync('authInfo');
|
||||
if (authData) this.authLogin(authData);
|
||||
else this.getCode();
|
||||
if (authData) {
|
||||
this.authLogin(authData);
|
||||
} else {
|
||||
this.getCode(authData => {
|
||||
this.authLogin(authData, 'authOnlyLogin');
|
||||
});
|
||||
}
|
||||
} else if (this.$util.isWeiXin()) {
|
||||
// 微信浏览器环境,显示登录页面
|
||||
this.toLogin();
|
||||
this.toLogin(mode);
|
||||
} else {
|
||||
// 其他浏览器环境,显示登录页面
|
||||
this.toLogin();
|
||||
this.toLogin(mode);
|
||||
}
|
||||
// #endif
|
||||
|
||||
// #ifndef MP || H5
|
||||
this.toLogin();
|
||||
this.toLogin(mode);
|
||||
// #endif
|
||||
},
|
||||
|
||||
// 跳转去登录页
|
||||
toLogin() {
|
||||
if (this.url) this.$util.redirectTo('/pages_tool/login/login', {
|
||||
toLogin(mode = 'navigateTo') {
|
||||
if (this.url) this.$util.redirectTo(this.$util.LOGIN_PAGE_URL, {
|
||||
back: encodeURIComponent(this.url)
|
||||
});
|
||||
else this.$util.redirectTo('/pages_tool/login/login');
|
||||
}, mode);
|
||||
else this.$util.redirectTo(this.$util.LOGIN_PAGE_URL, {}, mode);
|
||||
},
|
||||
|
||||
// 取消完善信息
|
||||
@@ -535,7 +537,8 @@ export default {
|
||||
getPhoneNumber(e) {
|
||||
if (e.detail.errMsg === 'getPhoneNumber:ok') {
|
||||
const authInfo = uni.getStorageSync('authInfo');
|
||||
if (authInfo) { Object.assign(this.authMobileData, authInfo, e.detail);
|
||||
if (authInfo) {
|
||||
Object.assign(this.authMobileData, authInfo, e.detail);
|
||||
}
|
||||
if (uni.getStorageSync('source_member')) {
|
||||
this.authMobileData.source_member = uni.getStorageSync('source_member');
|
||||
@@ -596,7 +599,7 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
// 授权登录
|
||||
authLogin(data, type = 'authLogin') {
|
||||
uni.showLoading({
|
||||
@@ -686,8 +689,8 @@ export default {
|
||||
|
||||
if (this.forceBindingMobileControl) {
|
||||
this.bindMobile();
|
||||
} else {
|
||||
this.authLogin(authInfo);
|
||||
} else {
|
||||
this.authLogin(authInfo);
|
||||
}
|
||||
},
|
||||
|
||||
@@ -749,7 +752,7 @@ export default {
|
||||
// 跳转页面
|
||||
tourl(url) {
|
||||
this.$util.redirectTo(url);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -185,7 +185,7 @@ export default {
|
||||
title: '未获取到支付信息!'
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo('/pages/index/index');
|
||||
this.$util.redirectTo(this.$util.INDEX_PAGE_URL);
|
||||
}, 1500);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
break;
|
||||
default:
|
||||
if (this.back) this.$util.redirectTo(decodeURIComponent(this.back), {}, 'redirectTo');
|
||||
else this.$util.redirectTo('/pages/index/index');
|
||||
else this.$util.redirectTo(this.$util.INDEX_PAGE_URL);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user