tmp: 部分代码与UnishopV5结合,但是代码有严重缺陷
This commit is contained in:
52
pages_promotion/bargain/payment.vue
Normal file
52
pages_promotion/bargain/payment.vue
Normal file
@@ -0,0 +1,52 @@
|
||||
<template>
|
||||
<page-meta :page-style="themeColor"></page-meta>
|
||||
<view>
|
||||
<common-payment :api="api" create-data-key="bargainOrderCreateData" ref="payment"></common-payment>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
api: {
|
||||
payment: '/bargain/api/ordercreate/payment',
|
||||
calculate: '/bargain/api/ordercreate/calculate',
|
||||
create: '/bargain/api/ordercreate/create'
|
||||
}
|
||||
}
|
||||
},
|
||||
provide() {
|
||||
return {
|
||||
promotion: this.promotion.bind(this)
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
if (this.$refs.payment) this.$refs.payment.pageShow();
|
||||
},
|
||||
methods:{
|
||||
/**
|
||||
* 处理活动信息 如不需要则留空
|
||||
*/
|
||||
promotion(data){
|
||||
if(data.bargain_info){
|
||||
return {title: '砍价活动', content: '该商品参与砍价活动'}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
/deep/ .uni-popup__wrapper.uni-custom .uni-popup__wrapper-box {
|
||||
background: none;
|
||||
max-height: unset !important;
|
||||
overflow-y: hidden !important;
|
||||
}
|
||||
/deep/ .uni-popup__wrapper {
|
||||
border-radius: 20rpx 20rpx 0 0;
|
||||
}
|
||||
/deep/ .uni-popup {
|
||||
z-index: 8;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user