|
@@ -176,21 +176,15 @@ Page({
|
|
|
this.setData({
|
|
|
urlTemp: url.split('').join(' ')
|
|
|
})
|
|
|
+
|
|
|
+ const hideWebView = this.data.isNotPersonalfullpack ? Boolean(true) : Boolean(false);
|
|
|
+ console.log('hideWebView', hideWebView)
|
|
|
this.setData({
|
|
|
url,
|
|
|
loadUrl: true,
|
|
|
socketOptions,
|
|
|
reload: true,
|
|
|
- hideWebView: false,
|
|
|
- // debugerInfo: JSON.stringify({
|
|
|
- // userId: socketOptions.userId,
|
|
|
- // roomId: socketOptions.roomId,
|
|
|
- // num: socketOptions.sceneNumber,
|
|
|
- // userLimitNum: socketOptions.userLimitNum,
|
|
|
- // isAssistant: socketOptions.isAssistant,
|
|
|
- // role: socketOptions.role,
|
|
|
- // assistantId: socketOptions.assistantId
|
|
|
- // })
|
|
|
+ hideWebView: hideWebView,
|
|
|
})
|
|
|
this.recorderManager = wx.getRecorderManager()
|
|
|
this.brandId = options.id
|
|
@@ -198,6 +192,22 @@ Page({
|
|
|
// this.mic()
|
|
|
},
|
|
|
|
|
|
+ // 新登录强制
|
|
|
+ handleProfilePatch() {
|
|
|
+ // debugger
|
|
|
+ this.setData({
|
|
|
+ reload: true,
|
|
|
+ hideWebView: false,
|
|
|
+ isNotPersonalfullpack: false,
|
|
|
+ }, () => {
|
|
|
+ setTimeout(() => {
|
|
|
+ this.init();
|
|
|
+ }, 200)
|
|
|
+ });
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
hideInvitation() {
|
|
|
this.setData({
|
|
|
showInvitation: false
|
|
@@ -269,8 +279,6 @@ Page({
|
|
|
|
|
|
getApp().updateCardCount()
|
|
|
|
|
|
-
|
|
|
-
|
|
|
// this.options.join = true
|
|
|
// this.getCartList()
|
|
|
|
|
@@ -279,15 +287,6 @@ Page({
|
|
|
|
|
|
if (!(userInfo && userInfo.userId && token)) {
|
|
|
return;
|
|
|
- // return wx.navigateTo({
|
|
|
- // url: '/pages/auth/btnAuth/btnAuth',
|
|
|
- // })
|
|
|
- if (this.options.join) {
|
|
|
- getApp().setLoginProps(false)
|
|
|
- } else {
|
|
|
- this.socketStop && this.socketStop()
|
|
|
- this.init()
|
|
|
- }
|
|
|
} else if (this.token !== wx.getStorageSync('token')) {
|
|
|
if (this.data.join) {
|
|
|
let res = await util.request(api.UserInfo)
|
|
@@ -304,8 +303,10 @@ Page({
|
|
|
webviewUrl: null
|
|
|
})
|
|
|
setTimeout(() => {
|
|
|
+
|
|
|
+ const hideWebView = this.data.isNotPersonalfullpack ? Boolean(true) : Boolean(false);
|
|
|
this.setData({
|
|
|
- hideWebView: false
|
|
|
+ hideWebView: hideWebView
|
|
|
})
|
|
|
this.init()
|
|
|
}, 500)
|
|
@@ -338,21 +339,4 @@ Page({
|
|
|
onReachBottom: function () {
|
|
|
|
|
|
},
|
|
|
- tapInput() {
|
|
|
- this.setData({
|
|
|
- //在真机上将焦点给input
|
|
|
- inputFocus: true,
|
|
|
- //初始占位清空
|
|
|
- inputInfo: ''
|
|
|
- });
|
|
|
- },
|
|
|
-
|
|
|
- /**
|
|
|
- * input 失去焦点后将 input 的输入内容给到cover-view
|
|
|
- */
|
|
|
- blurInput(e) {
|
|
|
- this.setData({
|
|
|
- inputInfo: e.detail.value || '输入'
|
|
|
- });
|
|
|
- }
|
|
|
})
|