update 扫码
This commit is contained in:
parent
6cb98e9f37
commit
040b6fb4ca
18
App.vue
18
App.vue
@ -35,6 +35,15 @@ export default {
|
||||
uni.setStorageSync("activity_id", options.query.activity_id);
|
||||
}
|
||||
|
||||
// 处理扫码进入小程序的场景值
|
||||
if (options.ulr = 'pagesub/index/store') {
|
||||
const scene = decodeURIComponent(options.query.scene);
|
||||
|
||||
wx.navigateTo({
|
||||
url: `/${options.path}?${scene}`
|
||||
});
|
||||
}
|
||||
|
||||
let that = this;
|
||||
|
||||
uni.getSystemInfo({
|
||||
@ -273,6 +282,15 @@ export default {
|
||||
"reloadUserResource",
|
||||
"setMsgNum",
|
||||
]),
|
||||
parseScene(scene) {
|
||||
// 解析scene参数,如"page=pages/detail/index&id=123"
|
||||
const params = {};
|
||||
scene.split('&').forEach(item => {
|
||||
const [key, value] = item.split('=');
|
||||
params[key] = value;
|
||||
});
|
||||
return params;
|
||||
},
|
||||
/*
|
||||
setData : function (params) {
|
||||
for (let x in params) {
|
||||
|
||||
59
pages.json
59
pages.json
@ -169,7 +169,8 @@
|
||||
"app-plus": {
|
||||
"titleNView": {
|
||||
"type": "transparent",
|
||||
"buttons": [{
|
||||
"buttons": [
|
||||
{
|
||||
"type": "menu"
|
||||
},
|
||||
{
|
||||
@ -185,7 +186,8 @@
|
||||
"h5": {
|
||||
"titleNView": {
|
||||
"type": "transparent",
|
||||
"buttons": [{
|
||||
"buttons": [
|
||||
{
|
||||
"type": "menu"
|
||||
},
|
||||
{
|
||||
@ -246,7 +248,8 @@
|
||||
},
|
||||
{
|
||||
"root": "member",
|
||||
"pages": [{
|
||||
"pages": [
|
||||
{
|
||||
"path": "member/protocol",
|
||||
"style": {
|
||||
"navigationBarTitleText": "协议"
|
||||
@ -525,7 +528,6 @@
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
"path": "order/detail",
|
||||
"style": {
|
||||
@ -579,7 +581,6 @@
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
"path": "cash/recharge",
|
||||
"style": {
|
||||
@ -654,7 +655,8 @@
|
||||
},
|
||||
{
|
||||
"root": "activity",
|
||||
"pages": [{
|
||||
"pages": [
|
||||
{
|
||||
"path": "coupon/list",
|
||||
"style": {
|
||||
"navigationBarTitleText": "领取优惠券"
|
||||
@ -685,7 +687,6 @@
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
"path": "cutprice/userlist",
|
||||
"style": {
|
||||
@ -718,7 +719,6 @@
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
"path": "fightgroup/order",
|
||||
"style": {
|
||||
@ -835,7 +835,6 @@
|
||||
|
||||
}
|
||||
}*/
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -952,9 +951,11 @@
|
||||
"navigationBarTitleText": "微小店",
|
||||
"app-plus": {
|
||||
"titleNView": {
|
||||
"buttons": [{
|
||||
"buttons": [
|
||||
{
|
||||
"type": "share"
|
||||
}]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"h5": {
|
||||
@ -971,9 +972,11 @@
|
||||
"app-plus": {
|
||||
"titleNView": {
|
||||
"type": "transparent",
|
||||
"buttons": [{
|
||||
"buttons": [
|
||||
{
|
||||
"type": "share"
|
||||
}]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"h5": {
|
||||
@ -1005,9 +1008,11 @@
|
||||
"app-plus": {
|
||||
"titleNView": {
|
||||
"type": "transparent",
|
||||
"buttons": [{
|
||||
"buttons": [
|
||||
{
|
||||
"type": "share"
|
||||
}]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"h5": {
|
||||
@ -1036,9 +1041,11 @@
|
||||
"app-plus": {
|
||||
"titleNView": {
|
||||
"type": "transparent",
|
||||
"buttons": [{
|
||||
"buttons": [
|
||||
{
|
||||
"type": "share"
|
||||
}]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"h5": {
|
||||
@ -1075,7 +1082,8 @@
|
||||
},
|
||||
{
|
||||
"root": "chain",
|
||||
"pages": [{
|
||||
"pages": [
|
||||
{
|
||||
"path": "chain/list",
|
||||
"style": {
|
||||
"navigationBarTitleText": "附近门店"
|
||||
@ -1110,7 +1118,6 @@
|
||||
{
|
||||
"root": "integral",
|
||||
"pages": [
|
||||
|
||||
{
|
||||
"path": "integral/integral",
|
||||
"style": {
|
||||
@ -1147,12 +1154,12 @@
|
||||
"navigationBarTitleText": "消费记录"
|
||||
}
|
||||
}
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "community",
|
||||
"pages": [{
|
||||
"pages": [
|
||||
{
|
||||
"path": "community/lists",
|
||||
"style": {
|
||||
"navigationBarTitleText": "帖子列表"
|
||||
@ -1284,7 +1291,8 @@
|
||||
// },
|
||||
{
|
||||
"root": "seller",
|
||||
"pages": [{
|
||||
"pages": [
|
||||
{
|
||||
"path": "index/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "商家中心",
|
||||
@ -1434,7 +1442,8 @@
|
||||
},
|
||||
{
|
||||
"root": "hall",
|
||||
"pages": [{
|
||||
"pages": [
|
||||
{
|
||||
"path": "purchase/add",
|
||||
"style": {
|
||||
"navigationBarTitleText": "发布采购"
|
||||
@ -1468,7 +1477,8 @@
|
||||
},
|
||||
{
|
||||
"root": "im",
|
||||
"pages": [{
|
||||
"pages": [
|
||||
{
|
||||
"path": "chat/chat",
|
||||
"style": {
|
||||
"navigationBarTitleText": ""
|
||||
@ -1482,7 +1492,6 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
],
|
||||
|
||||
"globalStyle": {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user