Commit 1135e51a by 张立顺

fix bug

1 parent 878dc5b6
...@@ -18,12 +18,12 @@ export const appId = 'wx570d9331f9ace0bd' ...@@ -18,12 +18,12 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 1 let index = 2
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync() const systemInfo = wx.getSystemInfoSync()
const envName = accountInfo.miniProgram.envVersion const envName = accountInfo.miniProgram.envVersion
//手动控制体验版环境的请求 true就依据下面index false就默认2 //手动控制体验版环境的请求 true就依据下面index false就默认2
const manual = true const manual = false
const release = false const release = false
// 判断小程序环境 // 判断小程序环境
......
...@@ -439,6 +439,15 @@ Component({ ...@@ -439,6 +439,15 @@ Component({
const strategy = getProductStrategy(item) const strategy = getProductStrategy(item)
if (strategy) { if (strategy) {
if (orderInfo.orderType == 2 || orderInfo.orderType == 5) {
const currentBasePrice = strategy.getBasePrice()
if (Number(currentBasePrice) !== Number(number)) {
const data = strategy.getData()
if (data.discountType == 1 || data.discountType == 2) {
strategy.setDiscount(data.discountType, '')
}
}
}
strategy.setBasePrice(number) strategy.setBasePrice(number)
// Sync price for display // Sync price for display
item.goods.price = number item.goods.price = number
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!