Commit 7fdaf79e by 张立顺

冒烟测试修改

1 parent df7c1569
......@@ -36,8 +36,20 @@ App({
// 如果是带参数的小程序码进入 会处理后把参数存到wx.$SCENE
// options.query.scene = 2 //调试用
// console.log(options, 'options')
// orderCode=2208241419054111&merchantId=44209480&customerName=123&page=createOrder
// const mockOptions = {
// query:{
// orderCode:2208241419054111,
// merchantId:44209480,
// customerName:'123',
// page:'createOrder'
// }
// }
// options = mockOptions
if (options) {
let res = checkScene(options)
console.log(res,'res');
// 如果需要重新登录
res && this.login(true)
}
......
......@@ -84,8 +84,8 @@ Page({
wxqrcode: res.data
})
// 轮询订单状态
this.getDetail()
})
this.getDetail()
},
// getOrderDetail() {
// // console.log(wx.$router, 'wx.$router')
......
......@@ -158,6 +158,13 @@
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "客户建档",
"pathName": "tabWorkOrder/pages/createArchives/createArchives",
"query": "",
"launchMode": "default",
"scene": null
}
]
}
......
......@@ -152,6 +152,7 @@ export const checkScene = options => {
// console.log(wx)
// return true
let { query } = options
console.log(query, 'query')
// 判断对象是否满足任意一个key
// console.log(query, ' query')
if (query && (query.scene || query.merchantId || query.type || query.page)) {
......@@ -159,11 +160,11 @@ export const checkScene = options => {
// &&options.patch == 'tabIndex/pages/index/index'
let userInfo = wx.$util.getStorageSync('dj_boutique_user_info')
// 需要当前门店的 不是就重新登录
if (userInfo?.subLoginUser?.merchantId != query.merchantId) {
wx.$SCENE = null
// return this.login(true)
return true // 重新登录
}
// if (userInfo?.subLoginUser?.merchantId != query.merchantId) {
// wx.$SCENE = null
// // return this.login(true)
// return true // 重新登录
// }
if (query.page) {
//订单跟进
options.patch = 'tabWorkOrder/pages/createOrder/createOrder'
......
......@@ -407,7 +407,7 @@ Page({
break
case 'trial':
// index = manual ? index : 2
checklist = ['15398879285', '15816539334']
checklist = ['15398879285']
break
case 'release':
checklist = ['18123663366', '19557403672']
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!