Browse Source

feat(卡券):二维码url解析

zhoumuhao 3 years ago
parent
commit
47816eb00c

+ 1 - 1
pages/activityInfo/activityInfo.js

@@ -132,7 +132,7 @@ Page({
     })
     //根据codeId 生成二维码
     new QRCode('myQrcode',{
-      // text: 'https://oapi.shpr.top?id='+_self.data.codeId,
+      // text: 'https://oapi.shpr.top?id=Bg5740r78w',
       text: 'https://oapi.shpr.top?id='+_self.data.codeId,
       width: 150,
       height:150,

+ 1 - 1
pages/receiveCoupon/receiveCoupon.js

@@ -25,7 +25,7 @@ Page({
       let id = util.getQueryVariable('id',url);
       if(id) {
         _self.setData({
-          codeId:options.id,
+          codeId:id,
         })
         //根据codeId查出该活动是否过期
         _self.getShareActivityCode(id);

+ 1 - 1
project.private.config.json

@@ -34,7 +34,7 @@
           "name": "pages/receiveCoupon/receiveCoupon",
           "pathName": "pages/receiveCoupon/receiveCoupon",
           "query": "",
-          "scene": 1011
+          "scene": 1013
         }
       ]
     }