Forráskód Böngészése

移动积分扣减

kk.shi 3 éve
szülő
commit
af1f6446a2
2 módosított fájl, 8 hozzáadás és 1 törlés
  1. 7 0
      api/integralinfo.js
  2. 1 1
      pages/integral/integral.js

+ 7 - 0
api/integralinfo.js

@@ -101,6 +101,13 @@ class Integralinfo extends request {
   }
 
    /**
+   * 移动积分扣减
+   */
+  static getExchange(params) {
+    return this.postRequest(`${this.INT_URL}/app/order/exchange`, params);
+  }
+
+   /**
    * 支付短信验证码
    */
   static getPaySend(params) {

+ 1 - 1
pages/integral/integral.js

@@ -701,7 +701,7 @@ paymentClick() {
                 })
             });
         } else if (this.data.activeNum === 0 && this.data.active1code !== '') {
-            Integralinfo.getPayOnce({
+            Integralinfo.getExchange({
                 fingerprint: '',
                 mobile: getMobileCache(),
                 optCode: this.data.active1code,