小程序端扫门禁码跳转;门禁端调整;bugfix小程序端商品售价和划线价反了
This commit is contained in:
@@ -46,10 +46,11 @@ Page({
|
||||
//判断用户是否是通过扫小程序码进来的
|
||||
if (options && options.scene) {
|
||||
// 扫门禁的小程序码
|
||||
if (options.scene.split('%')[0] == "guard") {
|
||||
options.scene = null
|
||||
let scene = options.scene
|
||||
if (scene.startsWith("guard%")) { // scene.split('%')[0] == "guard"
|
||||
options.scene = null // 清掉参数 避免重复触发
|
||||
wx.navigateTo({
|
||||
url: "/pages/scan/entrance"
|
||||
url: "/pages/scan/entrance?scene=" + scene
|
||||
})
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user