{{item.create_time}}
-- {{item.status_text}} -
-{{item.product_name}}
-订单编号:{{item.order_number}}
-没有更多了
- -暂无订单
-diff --git a/index.html b/index.html index 14cea30..9803b71 100644 --- a/index.html +++ b/index.html @@ -124,8 +124,8 @@ //获取链接携带的参数 // let linkId = getQueryString('id'); // let keyCode = getQueryString('key'); - let linkId = "2612" - let keyCode = "AAACJLGQWarwBNHG" + let linkId = "3245" + let keyCode = "AAACZUKNzeqNwXXM" if (!linkId) {//地址栏无携带id let path = window.location.pathname; let parmas = path.split('/'); @@ -218,7 +218,8 @@ methods: { // 统一跳转逻辑判断 gotoPage(data, type) { - + console.log("data =>", data); + // debugger // xw 模块 if (data.is_voucher_auto) { let goto_url = "/xw-pages/homepage.html"; diff --git a/xw-pages/homepage.html b/xw-pages/homepage.html index 927edb6..ceb479d 100644 --- a/xw-pages/homepage.html +++ b/xw-pages/homepage.html @@ -605,8 +605,17 @@ * receive_mode: 1 支付宝 2 H5 * recharge_type 2 组合立减金 1立减金 */ + // mozilla/5.0 (iphone; cpu iphone os 11_0 like mac os x) applewebkit/604.1.38 (khtml, like gecko) version/11.0 mobile/15a372 safari/604.1 wechatdevtools/1.06.2308310 micromessenger/8.0.5 language/zh_cn webview/17140096225665648 webdebugger port/60203 token/b278ea8cbbdfa79d02f5eab56caf3a7f if (type == 2) { - window.location.replace("./reduce.html"); + // 微信公众号授权 + const ua = navigator.userAgent.toLowerCase(); + if (ua.match(/MicroMessenger/i) === "micromessenger") { + // this.publicCollection(res.data.order_number); + let wxauth_url = "https://openapi.1688sup.com/wechat/oauth"; + wxauth_url = `${wxauth_url}?jump=${location.origin}/xw-pages/reduce.html`; + } else { + window.location.replace("./reduce.html"); + } } }, diff --git a/xw-pages/order.html b/xw-pages/order.html deleted file mode 100644 index 9301cbe..0000000 --- a/xw-pages/order.html +++ /dev/null @@ -1,472 +0,0 @@ - - - -
- - -{{item.create_time}}
-- {{item.status_text}} -
-{{item.product_name}}
-订单编号:{{item.order_number}}
-没有更多了
- -暂无订单
-