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