提交 7d5f3bb5 authored 作者: pengxiaohui's avatar pengxiaohui

修复商品

上级 9cbaacb3
......@@ -38,7 +38,7 @@
</template>
</van-cell>
</div>
<div class="item" v-if="details.spu_context">
<div class="item shop-details" v-if="details.spu_context">
<div v-html="details.spu_context"></div>
</div>
<div class="bottom-bar" v-if="details.sales_type === '1'">
......@@ -201,6 +201,8 @@ export default {
},
placeOrderCallback(res) {
const payType = this.payment_method
window.localStorage.setItem('payment_order_id', res.payment_order_id)
window.localStorage.setItem('order_detail_id', res.order_detail_id)
if (payType === '3') {
// 微信内支付
if (typeof res.payment_more_info === 'string') {
......@@ -209,21 +211,13 @@ export default {
WeixinJSBridge.invoke('getBrandWCPayRequest', payInfo, (res) => {
window.location.href = this.order_details_url
})
} else {
console.log('下单失败')
}
}
} else if (payType === '4') {
// 微信外微信h5支付和支付宝网页支付
// window.sessionStorage.setItem('isBackFormH5Pay', 1)
window.localStorage.setItem('payment_order_id', res.payment_order_id)
window.localStorage.setItem('order_detail_id', res.order_detail_id)
window.location.href = res.payment_url + '&redirect_url=' + encodeURIComponent(window.location.href)
} else if (payType === '12') {
// 支付宝网页支付
// window.sessionStorage.setItem('isBackFormH5Pay', 1)
window.localStorage.setItem('payment_order_id', res.payment_order_id)
window.localStorage.setItem('order_detail_id', res.order_detail_id)
window.location.href = res.payment_url
}
}
......@@ -328,6 +322,14 @@ export default {
}
}
}
.shop-details{
* {
max-width:100% !important;
}
::v-deep *{
max-width:100% !important;
}
}
.bottom-bar{
padding:0.2rem 0.8rem;
background:#fff;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论