Commit 8ad99393 by 杨北旺

修复bug

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