添加收货地址

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

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

Loading…
Cancel
Save