Commit 8ad99393 by 杨北旺

修复bug

1 parent 37e23277
......@@ -56,7 +56,11 @@ Page({
el.isPay = false
ids.push(el.goodsId)
if (el.expressFee && el.expressFee > expressFee) {
expressFee = NP.divide(el.expressFee,100)
if(obj.pageForm!='goodsDetail'){
expressFee = NP.divide(el.expressFee,100)
}else{
expressFee = el.expressFee
}
}
goodsNumber = goodsNumber + el.goodsNumber
})
......
......@@ -319,7 +319,8 @@ Page({
showAddr: (isCarOwner && this.data.goodsInfo.deliveryType == 1) ? 0 : 1,
// deliveryType: upgrade || (isCarOwner && this.data.goodsInfo.deliveryType == 1) ? 1 : 0,
buyType: 'pay',
discoverGoodsSource:goodsInfo.discoverGoodsSource
discoverGoodsSource:goodsInfo.discoverGoodsSource,
pageForm:'goodsDetail'
})
return
}
......
......@@ -26,7 +26,7 @@ page {
.default-btn {
background: #3772EC;
border-radius: 8rpx;
border-radius: 48rpx;
position: fixed;
bottom: 70rpx;
}
......
......@@ -68,9 +68,12 @@ Page({
const { code, data } = await wx.p.api.wechatApi.getSceneById({
id
})
const params = data.scene.split('url='),
options = {}
if (params.length > 1) options.url = params.at(-1)
const params = data.scene.split('&url='),options = {}
data.scene.split('&').map(item => {
const [key, val] = item.split('=')
options[key] = val
})
// if (params.length > 1) options.url = params.at(-1)
if (code == 0) this.login(options)
else throw {}
} catch (error) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!