Commit ea4aabb7 by 张立顺

修复免登录逻辑

1 parent 5bdbd89e
......@@ -18,13 +18,13 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布
* 5cdptest
*/
let index = 2
let index = 3
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
const envName = accountInfo.miniProgram.envVersion
//手动控制体验版环境的请求 true就依据下面index false就默认2
const manual = false
const manual = true
const release = false
// 判断小程序环境
......@@ -55,7 +55,8 @@ export const envIndex = index
const createQuotedUrl = {
develop: `http://192.168.1.178:9528/dj-scrm-wx-work-main-zhangls/#/equityPoster?id=`,
trial: `http://frontend.test.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`,
release: `https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`
release: `https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`,
preRelease: `https://dj.beta.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`
}
const target = ['ip', 'develop', 'trial', 'release', 'preRelease']
// 报价单图片地址
......
......@@ -35,7 +35,7 @@ Page({
shopSideSelectPopup: false,
mode: 1,
tipsProps: false,
waitInputCount: 1,
waitInputCount: 0,
isStaff: false
// hasMode:true
},
......@@ -211,7 +211,8 @@ Page({
wx.$util.setUserInfo({ ...wx.$util.getUserInfo(), default4SStoreInfo })
this.setData({
userInfo: { ...wx.$util.getUserInfo(), default4SStoreInfo }
userInfo: { ...wx.$util.getUserInfo(), default4SStoreInfo },
waitInputCount: 0
})
this.getMerchant4SMode()
this.initList()
......
......@@ -36,10 +36,11 @@ page {
.prevIcon {
margin-left: auto;
margin-right: 40rpx;
}
.downloadIcon{
margin-left: 20prx;}
margin-left: 40prx;}
.icon {
width: 40rpx;
height: 40rpx;
......
......@@ -30,12 +30,19 @@
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "选择账号",
"pathName": "pages/accountItems/accountItems",
"query": "",
"launchMode": "default",
"scene": null
}
]
}
},
"libVersion": "2.18.1",
"setting": {
"urlCheck": false
"urlCheck": true
}
}
\ No newline at end of file
......@@ -212,7 +212,7 @@ export const checkScene = options => {
}
console.log(options, 'options')
wx.$SCENE = options
if (!userInfo) {
if (!userInfo && options.path != 'pages/accountItems/accountItems') {
return '未登录,请登录。'
}
}
......
// tabIndex/pages/index/index.js
import mixins from './index_mixins'
import api from '../../api.js'
// import apiother from '~/api/api.js'
import NP from 'number-precision'
import { env } from '~/config'
import { getYQInfo } from '~/store/index'
......@@ -583,7 +584,28 @@ Page({
*/
onLoad: function (options) {
// console.log(options)
// let { wxqrcode } = this.data
// if (wxqrcode) return
// let _this = this
// // "appId": "wxc50d04ae5aa9984a",
// // "path": "login/loading/loading?url=/packagesList/packageOutput/pages/summary&userName=djqgzj&password=djqgzj123&sceneCode=SC002&merchantId=44206511&merchantName=轻改专家",
// // "pageName": "看产值"
// let oParams = {}
// oParams.appId = 'wx570d9331f9ace0bd'
// oParams.qrcodeType = 'QR_WXA_UNLIMIT'
// oParams.path = 'login/loading/loading'
// oParams.scene = `params=test`
// oParams.channelType = 1
// // B端小程序调用接口生成领券码时,传参userId用uuid,类型由int变string
// apiother.createQrcodeImage(oParams).then(res => {
// console.log(res.data)
// console.log(res.code)
// _this.setData({
// wxqrcode: res.data
// })
// })
options && this.checkShowOrderPop(options)
let today = new Date()
......
......@@ -46,8 +46,8 @@ const scrmSecretKey_items = {
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
preRelease: {
appKey: 'd7ffc3346fc9a45bccaaa35300d59022',
secret: '4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
cdptest:{
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!