添加收货地址

merge-requests/26/head
ch 3 years ago
parent 9d912d9154
commit 21532de9b9

@ -2,12 +2,14 @@
* @Author: ch
* @Date: 2022-05-04 17:30:58
* @LastEditors: ch
* @LastEditTime: 2022-05-10 15:49:36
* @LastEditTime: 2022-05-10 17:41:16
* @Description: file content
-->
<template>
<div class="main">
<h3 class="title">收货地址</h3>
<BsAddress v-model="address"/>
<!-- <h3 class="title">支付方式</h3>
<div class="pay-type">
<el-radio label="微信支付" />
@ -32,11 +34,12 @@ import OrderInfo from './module/OrderInfo.vue';
import Message from './module/Message.vue';
import Amount from './module/Amount.vue';
import UiButton from '../../../components/UiButton.vue';
import BsAddress from '../../../components/BsAddress.vue';
export default {
components: { BsPay, UIGoodsInfo, OrderInfo, Message, Amount, UiButton },
components: { BsPay, UIGoodsInfo, OrderInfo, Message, Amount, UiButton, BsAddress },
data(){
return {
address : {id:3},
address : {},
orderInfo : {},
userMessage : '',
payOrder : {},
@ -125,7 +128,7 @@ export default {
*/
calcTimerStartSecondNum(){
let expireTime = (new Date(this.payOrder.expireTime.replace(/-/g,'/'))).getTime(),
curTime = (new Date(this.payOrder.serverTime.replace(/-/g,'/'))).getTime(),
curTime = (this.payOrder.serverTime ? new Date(this.payOrder.serverTime.replace(/-/g,'/')) : new Date()).getTime(),
second = Math.floor((expireTime - curTime) / 1000);
this.payStartSecondNum = second > 0 ? second : 0;
this.timer();
@ -155,7 +158,8 @@ export default {
</script>
<style lang="scss" scoped>
.main{
@include layout-box
@include layout-box;
padding: 30px 0;
}
.title{
margin: 24px 0 13px;

Loading…
Cancel
Save