Sfoglia il codice sorgente

退款接口对接

kk.shi 3 anni fa
parent
commit
ed83b15bb6

+ 1 - 3
pages/welfareMall/order/orderCompletion.js

@@ -126,7 +126,7 @@ Page({
         success: function (res) {
           //支付成功
           console.log(res);
-          this.getOrder(this.data.orderSn);
+          this.onLoad(this.options);
         },
         fail: function (res) {
           console.log(res);
@@ -200,11 +200,9 @@ Page({
               url
           })
         }
-        this.data.lock = false
     }).catch(_ => {
         console.log(_)
         this.cancel();
-        this.data.lock = false
     })
     
   },

+ 13 - 5
pages/welfareMall/personal/personal.js

@@ -17,11 +17,19 @@ Page({
    * 生命周期函数--监听页面加载
    */
   onLoad: async function (options) {
-    await this.getUserPhone();
-    this.setData({
-      isLogin: getMobileCache() != '',
-      mobileTop: getMobileCache(),
-    })
+    // await this.getUserPhone();
+    let  userMobile = await activity.getMobileCache();
+    console.log(userMobile)
+    if (userMobile.length !== 0) {
+      this.setData({
+        isLogin: true,
+        mobileTop: userMobile,
+      })
+    }
+    // this.setData({
+    //   isLogin: getMobileCache() != '',
+    //   mobileTop: getMobileCache(),
+    // })
 
     if(this.data.isLogin){
       let nums = await this.getCountNum();

+ 3 - 3
pages/welfareMall/refund/refund.js

@@ -36,13 +36,13 @@ Page({
    */
   onLoad: function (options) {
     var that = this;
-    that.orderSn = options.ordersn;
+    that.orderSn = options.orderSn;
     this.setData({
-      orderSn: options.ordersn,
+      orderSn: options.orderSn,
     })
       this.getRefundOrderStatus(that.orderSn);
       this.getOrder(that.orderSn);
-      this.data.orderSn = options.ordersn;
+      this.data.orderSn = options.orderSn;
   },
 
   /**

+ 3 - 3
project.config.json

@@ -4,7 +4,7 @@
     "ignore": []
   },
   "setting": {
-    "urlCheck": true,
+    "urlCheck": false,
     "es6": true,
     "enhance": true,
     "postcss": false,
@@ -31,7 +31,7 @@
       "outputPath": ""
     },
     "enableEngineNative": false,
-    "useIsolateContext": false,
+    "useIsolateContext": true,
     "userConfirmedBundleSwitch": false,
     "packNpmManually": false,
     "packNpmRelationList": [],
@@ -42,7 +42,7 @@
     "useCompilerPlugins": false
   },
   "compileType": "miniprogram",
-  "libVersion": "2.19.6",
+  "libVersion": "2.21.0",
   "appid": "wxcc1cdb8babd3f62c",
   "projectname": "%E9%A3%9E%E7%A0%81",
   "debugOptions": {