Commit ea4aabb7 by 张立顺

修复免登录逻辑

1 parent 5bdbd89e
...@@ -18,13 +18,13 @@ export const appId = 'wx570d9331f9ace0bd' ...@@ -18,13 +18,13 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 2 let index = 3
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync() const systemInfo = wx.getSystemInfoSync()
const envName = accountInfo.miniProgram.envVersion const envName = accountInfo.miniProgram.envVersion
//手动控制体验版环境的请求 true就依据下面index false就默认2 //手动控制体验版环境的请求 true就依据下面index false就默认2
const manual = false const manual = true
const release = false const release = false
// 判断小程序环境 // 判断小程序环境
...@@ -55,7 +55,8 @@ export const envIndex = index ...@@ -55,7 +55,8 @@ export const envIndex = index
const createQuotedUrl = { const createQuotedUrl = {
develop: `http://192.168.1.178:9528/dj-scrm-wx-work-main-zhangls/#/equityPoster?id=`, 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=`, 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'] const target = ['ip', 'develop', 'trial', 'release', 'preRelease']
// 报价单图片地址 // 报价单图片地址
......
...@@ -35,7 +35,7 @@ Page({ ...@@ -35,7 +35,7 @@ Page({
shopSideSelectPopup: false, shopSideSelectPopup: false,
mode: 1, mode: 1,
tipsProps: false, tipsProps: false,
waitInputCount: 1, waitInputCount: 0,
isStaff: false isStaff: false
// hasMode:true // hasMode:true
}, },
...@@ -211,7 +211,8 @@ Page({ ...@@ -211,7 +211,8 @@ Page({
wx.$util.setUserInfo({ ...wx.$util.getUserInfo(), default4SStoreInfo }) wx.$util.setUserInfo({ ...wx.$util.getUserInfo(), default4SStoreInfo })
this.setData({ this.setData({
userInfo: { ...wx.$util.getUserInfo(), default4SStoreInfo } userInfo: { ...wx.$util.getUserInfo(), default4SStoreInfo },
waitInputCount: 0
}) })
this.getMerchant4SMode() this.getMerchant4SMode()
this.initList() this.initList()
......
...@@ -36,10 +36,11 @@ page { ...@@ -36,10 +36,11 @@ page {
.prevIcon { .prevIcon {
margin-left: auto; margin-left: auto;
margin-right: 40rpx;
} }
.downloadIcon{ .downloadIcon{
margin-left: 20prx;} margin-left: 40prx;}
.icon { .icon {
width: 40rpx; width: 40rpx;
height: 40rpx; height: 40rpx;
......
...@@ -30,12 +30,19 @@ ...@@ -30,12 +30,19 @@
"query": "", "query": "",
"launchMode": "default", "launchMode": "default",
"scene": null "scene": null
},
{
"name": "选择账号",
"pathName": "pages/accountItems/accountItems",
"query": "",
"launchMode": "default",
"scene": null
} }
] ]
} }
}, },
"libVersion": "2.18.1", "libVersion": "2.18.1",
"setting": { "setting": {
"urlCheck": false "urlCheck": true
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -212,7 +212,7 @@ export const checkScene = options => { ...@@ -212,7 +212,7 @@ export const checkScene = options => {
} }
console.log(options, 'options') console.log(options, 'options')
wx.$SCENE = options wx.$SCENE = options
if (!userInfo) { if (!userInfo && options.path != 'pages/accountItems/accountItems') {
return '未登录,请登录。' return '未登录,请登录。'
} }
} }
......
// tabIndex/pages/index/index.js // tabIndex/pages/index/index.js
import mixins from './index_mixins' import mixins from './index_mixins'
import api from '../../api.js' import api from '../../api.js'
// import apiother from '~/api/api.js'
import NP from 'number-precision' import NP from 'number-precision'
import { env } from '~/config' import { env } from '~/config'
import { getYQInfo } from '~/store/index' import { getYQInfo } from '~/store/index'
...@@ -583,6 +584,27 @@ Page({ ...@@ -583,6 +584,27 @@ Page({
*/ */
onLoad: function (options) { onLoad: function (options) {
// console.log(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) options && this.checkShowOrderPop(options)
......
...@@ -46,8 +46,8 @@ const scrmSecretKey_items = { ...@@ -46,8 +46,8 @@ const scrmSecretKey_items = {
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b' secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
}, },
preRelease: { preRelease: {
appKey: 'd7ffc3346fc9a45bccaaa35300d59022', appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: '4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353' secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
}, },
cdptest:{ cdptest:{
appKey: '48e5e13229b82c1b4e6e8c96151f0637', appKey: '48e5e13229b82c1b4e6e8c96151f0637',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!