|
|
|
@ -2,14 +2,16 @@
|
|
|
|
|
* @Author: ch
|
|
|
|
|
* @Date: 2022-05-04 17:30:58
|
|
|
|
|
* @LastEditors: ch
|
|
|
|
|
* @LastEditTime: 2022-05-17 16:44:30
|
|
|
|
|
* @LastEditTime: 2022-05-25 20:00:10
|
|
|
|
|
* @Description: file content
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<div class="main">
|
|
|
|
|
<template v-if="productType == 1">
|
|
|
|
|
<h3 class="title">收货地址</h3>
|
|
|
|
|
<BsAddress v-model="address"/>
|
|
|
|
|
</template>
|
|
|
|
|
<!-- <h3 class="title">支付方式</h3>
|
|
|
|
|
<div class="pay-type">
|
|
|
|
|
<el-radio label="微信支付" />
|
|
|
|
@ -45,7 +47,8 @@ export default {
|
|
|
|
|
payOrder : {},
|
|
|
|
|
payVisible : false,
|
|
|
|
|
payTimerTxt : '',
|
|
|
|
|
payTimerStop : null
|
|
|
|
|
payTimerStop : null,
|
|
|
|
|
productType : this.$Route.query.productType
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted(){
|
|
|
|
@ -92,7 +95,7 @@ export default {
|
|
|
|
|
async submit(){
|
|
|
|
|
const {query} = this.$route;
|
|
|
|
|
|
|
|
|
|
if(!this.address.id){
|
|
|
|
|
if(!this.address.id && this.productType === 1){
|
|
|
|
|
this.$message.error('请选择收货地址');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|