diff --git a/README.md b/README.md index 491354fca58ca2d448791cd785811b16e1aff66a..acad6c52af38b4cabdd2ddff6fc0bcdd04016e77 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,13 @@ vue2 + vue-rotuer2 + vuex + webpack + ES6/7 + fetch + sass + flex + svg + http-p | |-- city // 当前城市页 | |-- food // 食品筛选排序页 | |-- confirmOrder // 确认订单页 -| |--children +| |--children +| |--chooseAddress // 选择地址页 +| |--children +| |--addAddress // 添加地址页 +| |--children +| |--searchAddress // 搜索地址页 +| |--invoice // 选择发票页 | |--remark // 订单备注页 | |-- forget // 忘记密码,修改密码页 | |-- home // 首页 @@ -83,9 +89,10 @@ vue2 + vue-rotuer2 + vuex + webpack + ES6/7 + fetch + sass + flex + svg + http-p | |-- search // 搜索页 |       |-- shop                     // 商铺筛选页 | |-- children -| |-- foodDetail // 单个商铺信息页 -| |-- shopDetail // 商铺信息页 -| |-- shopSafe // 商铺认证信息页 +| |-- foodDetail // 单个商铺信息页 +| |-- children +| |-- shopSafe // 商铺认证信息页 +| |-- shopDetail // 商铺信息页 | |-- vipcard // vip办理页 | | |-- plugins // 引用的插件 diff --git a/src/components/common/alertTip.vue b/src/components/common/alertTip.vue index c0df88b150e369c8c3a90ae7193894dc48238696..a2d5fe876233823f0a2237a115c447db573404bf 100644 --- a/src/components/common/alertTip.vue +++ b/src/components/common/alertTip.vue @@ -22,7 +22,7 @@ mounted(){ }, - props: ['showHide','alertText'], + props: ['alertText'], methods: { closeTip(){ this.$emit('closeTip') diff --git a/src/components/header/head.vue b/src/components/header/head.vue index f9951b9b9daeaf5e5c854faf506f5417e3a75c91..b1eae785d56f8d0bba8f61d79f60b26a2c0faf7e 100644 --- a/src/components/header/head.vue +++ b/src/components/header/head.vue @@ -24,7 +24,7 @@ + + diff --git a/src/page/confirmOrder/children/children/children/searchAddress.vue b/src/page/confirmOrder/children/children/children/searchAddress.vue new file mode 100644 index 0000000000000000000000000000000000000000..b16649bcaf012ca9e46596215909c6c908e88820 --- /dev/null +++ b/src/page/confirmOrder/children/children/children/searchAddress.vue @@ -0,0 +1,118 @@ + + + + + diff --git a/src/page/confirmOrder/children/chooseAddress.vue b/src/page/confirmOrder/children/chooseAddress.vue new file mode 100644 index 0000000000000000000000000000000000000000..5244f092eb3a86f43fc8ba9bce0bb7a7c1a4eaca --- /dev/null +++ b/src/page/confirmOrder/children/chooseAddress.vue @@ -0,0 +1,224 @@ + + + + + diff --git a/src/page/confirmOrder/children/invoice.vue b/src/page/confirmOrder/children/invoice.vue new file mode 100644 index 0000000000000000000000000000000000000000..032d40dafb821e54f9a41f28da32a1e6f80e2bb9 --- /dev/null +++ b/src/page/confirmOrder/children/invoice.vue @@ -0,0 +1,87 @@ + + + + + diff --git a/src/page/confirmOrder/confirmOrder.vue b/src/page/confirmOrder/confirmOrder.vue index f9747d2564e3ab7c060e0cdc82b6a79382d92016..092b4d9cb12c4df85ccae937a19a18fa5e1b9a13 100644 --- a/src/page/confirmOrder/confirmOrder.vue +++ b/src/page/confirmOrder/confirmOrder.vue @@ -2,17 +2,28 @@
-
+
- 请添加一个收获地址 +
请添加一个收获地址
+
+
+ {{choosedAddress.name}} + {{choosedAddress.sex == 1? '先生':'女士'}} + {{choosedAddress.phone}} +
+
+ {{choosedAddress.tag}} +

{{choosedAddress.address_detail}}

+
+
-
+

送达时间

@@ -68,16 +79,21 @@ 订单备注
- {{remarkText||inputText? remarklist: '口味偏、好等'}} + {{remarkText||inputText? remarklist: '口味、偏好等'}}
-
+ 发票抬头 - 商家不支持开发票 -
+ + {{checkoutData.invoice.status_text}} + + + + +

待支付 ¥{{checkoutData.cart.total}}

@@ -137,7 +153,10 @@ this.shopCart = this.cartList[this.shopId]; }, mounted(){ - this.initData(); + if (this.geohash) { + this.initData(); + this.SAVE_GEOHASH(this.geohash); + } }, components: { headTop, @@ -146,21 +165,25 @@ }, computed: { ...mapState([ - 'cartList', 'remarkText', 'inputText' + 'cartList', 'remarkText', 'inputText', 'invoice', 'choosedAddress' ]), remarklist: function (){ - if (this.remarkText&&this.inputText) { - let str = new String; + let str = new String; + if (this.remarkText) { Object.values(this.remarkText).forEach(item => { str += item[1] + ','; }) + } + if (this.inputText) { return str + this.inputText; + }else{ + return str.substr(0, str.lastIndexOf(',')) ; } - } + }, }, methods: { ...mapMutations([ - 'INIT_BUYCART' + 'INIT_BUYCART', 'SAVE_GEOHASH' ]), async initData(){ let newArr = new Array; @@ -194,6 +217,12 @@ this.payWayId = id; } }, + iconColor(name){ + switch(name){ + case '公司': return '#4cd964'; + case '学校': return '#3190e8'; + } + }, } } @@ -233,12 +262,39 @@ .add_address{ @include sc(.7rem, #333); } - } - .address_empty_right{ - @include wh(.6rem, .6rem); - fill: #999; + .address_detail_container{ + margin-left: .2rem; + header{ + @include sc(.75rem, #333); + span:nth-of-type(1){ + font-size: .85rem; + font-weight: bold; + } + } + .address_detail{ + width: 100%; + display: flex; + align-items: center; + span{ + @include sc(.5rem, #fff); + border-radius: .15rem; + background-color: #ff5722; + height: .65rem; + line-height: .65rem; + padding: 0 .3rem; + margin-right: .3rem; + } + p{ + @include sc(.65rem, #777); + } + } + } } } + .address_empty_right{ + @include wh(.6rem, .6rem); + fill: #999; + } .delivery_model{ border-left: .2rem solid $blue; min-height: 4rem; @@ -292,8 +348,21 @@ @include fj; border-top: 0.025rem solid #f5f5f5; span{ - @include sc(.6rem, #ccc); + @include sc(.6rem, #aaa); line-height: 2rem; + svg{ + @include wh(.5rem, .5rem); + vertical-align: middle; + fill: #ccc; + } + } + span:nth-of-type(2){ + color: #aaa; + } + } + .support_is_available{ + span{ + color: #666; } } } diff --git a/src/page/login/login.vue b/src/page/login/login.vue index 838732a8eb88c212b8ae963a085fec0e53d84261..96b5dff662f742c99e64cf01b0af98c897b64d59 100644 --- a/src/page/login/login.vue +++ b/src/page/login/login.vue @@ -109,7 +109,7 @@ clearInterval(this.timer) } }, 1000) - let exsis = await checkExsis(this.phoneNumber, this.accountType); + let exsis = await checkExsis(this.phoneNumber, 'mobile'); if (exsis.message) { this.showAlert = true; this.alertText = exsis.message; diff --git a/src/page/shop/children/shopSafe.vue b/src/page/shop/children/children/shopSafe.vue similarity index 96% rename from src/page/shop/children/shopSafe.vue rename to src/page/shop/children/children/shopSafe.vue index 220279b27a8f0f4bb4d1ed8a9547af7aa4217fa9..6a245e09fc5d84f05fba0189b5243d7d017f7612 100644 --- a/src/page/shop/children/shopSafe.vue +++ b/src/page/shop/children/children/shopSafe.vue @@ -97,8 +97,8 @@