diff --git a/TUIChatService/TUIKit/components/TUIChat/index.wxml b/TUIChatService/TUIKit/components/TUIChat/index.wxml
index e0d325e..fdfdd43 100644
--- a/TUIChatService/TUIKit/components/TUIChat/index.wxml
+++ b/TUIChatService/TUIKit/components/TUIChat/index.wxml
@@ -38,7 +38,7 @@
如需要修改视频时间,请点击这里
-
+
温馨提示:还剩{{serviceInfo.remaining_quantity}}盒“肝爽颗粒(步长)”,记得开具处方
diff --git a/user/pages/login/index.js b/user/pages/login/index.js
index 785a152..1aaa539 100644
--- a/user/pages/login/index.js
+++ b/user/pages/login/index.js
@@ -25,25 +25,27 @@ Page({
},
onShow(){
let usertype = wx.getStorageSync('usertype');
+ if(!usertype){
+ wx.redirectTo({
+ url: "/Pages/index/index"
+ })
+ };
this.setData({
beforeClose: this.data.beforeClose.bind(this),
})
- if(!usertype){
- wx.navigateTo({
- url: "/Pages/index/index"
- })
- };
+
},
onLoad(){
let usertype = wx.getStorageSync('usertype');
+ if(!usertype){
+ wx.redirectTo({
+ url: "/Pages/index/index"
+ })
+ };
this.setData({
beforeClose: this.data.beforeClose.bind(this),
})
- if(!usertype){
- wx.navigateTo({
- url: "/Pages/index/index"
- })
- };
+
wx.getPrivacySetting({
success: res => {
console.log(res) // 返回结果为: res = { needAuthorization: true/false, privacyContractName: '《xxx隐私保护指引》' }