Commit 7fdaf79e by 张立顺

冒烟测试修改

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