ycm 2 năm trước cách đây
mục cha
commit
0298305e89
3 tập tin đã thay đổi với 3 bổ sung10 xóa
  1. 1 1
      app.js
  2. 2 2
      pages/order/confirmOreder/confirmOreder.js
  3. 0 7
      project.private.config.json

+ 1 - 1
app.js

@@ -1,5 +1,5 @@
 // app.js
-var projectMode = 0;//0代表开发模式(本地环境),1代表测试模式(线上测r试环境),2代表线上模式(正式运行环境)
+var projectMode = 1;//0代表开发模式(本地环境),1代表测试模式(线上测r试环境),2代表线上模式(正式运行环境)
 var info = wx.getSystemInfoSync();
 if (info.platform != "devtools" && projectMode == 0) { projectMode = 0 }
 var envVersion = `${__wxConfig.envVersion}`;//develop	开发版,trial	体验版,release	正式版

+ 2 - 2
pages/order/confirmOreder/confirmOreder.js

@@ -148,10 +148,10 @@ Page({
                 // it.active = !it.active
                 if(it.active){
                     it.active = false
-                    that.setData({total_price: (parseFloat(that.data.total_price) + parseFloat((it.price.start_time && it.price.end_time)?it.price.sale_price*it.stock:it.price.price*it.stock)).toFixed(2)})
+                    that.setData({total_price: (parseFloat(that.data.total_price) - parseFloat((it.price.start_time && it.price.end_time)?it.price.sale_price*it.stock:it.price.price*it.stock)).toFixed(2)})
                 }else{
                     it.active = true
-                    that.setData({total_price: (parseFloat(that.data.total_price) - parseFloat((it.price.start_time && it.price.end_time)?it.price.sale_price*it.stock:it.price.price*it.stock)).toFixed(2)})
+                    that.setData({total_price: (parseFloat(that.data.total_price) + parseFloat((it.price.start_time && it.price.end_time)?it.price.sale_price*it.stock:it.price.price*it.stock)).toFixed(2)})
                 }
             }
         })

+ 0 - 7
project.private.config.json

@@ -26,13 +26,6 @@
                     "query": "",
                     "launchMode": "default",
                     "scene": null
-                },
-                {
-                    "name": "",
-                    "pathName": "pages/order/confirmOreder/confirmOreder",
-                    "query": "order_no=ws20220506185141267630",
-                    "launchMode": "default",
-                    "scene": null
                 }
             ]
         }