ycm 2 жил өмнө
parent
commit
0298305e89

+ 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
                 }
             ]
         }