Commit da22ed79 by 张立顺

Merge branch 'dev_4.31.2' into 'dev_v4.32.0_1130'

bug修复

See merge request !198
2 parents 0d6e3c20 86f9f90c
......@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布
* 5cdptest
*/
let index = 2
let index = 3
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
......
<!-- packageEquity/pages/carEquity/serviceInfo/serviceInfo.wxml -->
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{ true }}" bindback="back">
<!-- showMenu="{{true}}" -->
<!-- bindtap="showStorePicker" -->
......
......@@ -117,7 +117,7 @@ Page({
if (this.data.jumpPageFlag) return
this.setData({jumpPageFlag: true})
getYQList()
console.log(smsLogin,'smsLogin');
// console.log(smsLogin,'smsLogin');
if (loginType == 1) {
// 手机号登录
api
......@@ -128,7 +128,7 @@ Page({
})
.then(result => {
wx.$util.showLoading()
let { code, data } = result
let { code, data,message } = result
if (code == 0) {
let { loginUserInfoList, sessionId, noSignInUuid, needSelectAccount } = data
......@@ -174,7 +174,7 @@ Page({
})
.then(result => {
wx.$util.showLoading()
let { code, data } = result
let { code, data,message } = result
if (code == 0) {
let { loginUserInfoList, sessionId, noSignInUuid, needSelectAccount } = data
......@@ -257,11 +257,44 @@ Page({
*/
onLoad: function (options) {
console.log(options,'options');
options.noLogin && options.sence ==2 && this.noLoginFn(options.noLogin)
let id = decodeURIComponent(options.scene).split('=')[1]
id && this.qrCodeScene(id)
},
noLoginFn (noLogin){
// 免登录逻辑
qrCodeScene(id) {
api
.getSceneById({
id,
channelType: 1
})
.then(res => {
// debugger
// res => {
let { code, data } = res
let op = {}
if (code == '0') {
if (data) {
data.split('&').map(item => {
const [key, val] = item.split('=')
op[key] = val
})
this.setData(
{
...op
},
() => {
this.noLoginFn()
}
)
}
}
// }
})
.catch(err => {})
},
noLoginFn (){
let that = this
// let { noLogin } = this.data
let { noLogin } = this.data
wx.$util.showLoading()
api
.noLogin({
......
......@@ -5,6 +5,20 @@
"list": [
{
"name": "",
"pathName": "pages/wxLogin/wxLogin",
"query": "scene=sceneId%3D133329",
"launchMode": "default",
"scene": 1047
},
{
"name": "",
"pathName": "pages/wxLogin/wxLogin",
"query": "scene=sceneId%3D133329",
"launchMode": "default",
"scene": 1047
},
{
"name": "",
"pathName": "pages/accountItems/accountItems",
"query": "",
"launchMode": "default",
......
......@@ -210,7 +210,8 @@ export const checkScene = options => {
}
console.log(options, 'options')
wx.$SCENE = options
if (!userInfo && options.path != 'pages/accountItems/accountItems') {
console.log(options.path,'options.path')
if (!userInfo && !( ['pages/accountItems/accountItems', 'pages/wxLogin/wxLogin'].includes(options.path))) {
// if (!userInfo) {
// console.log(userInfo);
console.log('未登录,请登录。');
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!