|
|
@@ -23,7 +23,7 @@
|
|
|
</p>
|
|
|
<div class="ps-goods-info" @click="showDetailList(item.goods)">
|
|
|
<ul class="ps-goods-list">
|
|
|
- <li class="inline-block" v-for="goods in (item.$expand && item.goods.length > 3 ? item.goods : item.goods.slice(0, 3))">
|
|
|
+ <li class="inline-block" v-for="goods in (item.$expand ? item.goods : item.goods.slice(0, 3))">
|
|
|
<div class="clearfix" style="padding: .31rem .25rem;">
|
|
|
<div class="fl">
|
|
|
<div class="ps-goods-item text-ellipse"><span>品牌:</span>{{goods.brName || '-'}}</div>
|
|
|
@@ -44,11 +44,13 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="single-count text-ellipse"><span class="pay-price-title inline-block">小计:</span><span class="ol-price"><span>{{goods.currencyName | currencyFilter}}</span>{{goods.goods.currentPrice}}</span></div>
|
|
|
+ <div class="single-count text-ellipse"><span class="pay-price-title inline-block">小计:</span><span class="ol-price"><span>{{goods.currencyName | currencyFilter}}</span>{{goods.goods.currentPrice | priceFilter}}</span></div>
|
|
|
</li>
|
|
|
</ul>
|
|
|
- <div class="show-more-psgoods" v-if="item.goods.length > 3 && !item.$expand" @click="item.$expand = true">
|
|
|
- 查看更多 <i class="iconfont icon-arrow-down"></i>
|
|
|
+ <div class="show-more-psgoods" v-if="item.goods.length > 3" @click="item.$expand = !item.$expand">
|
|
|
+ {{item.$expand ? '收起' : '查看更多'}}
|
|
|
+ <i v-show="!item.$expand" class="iconfont icon-arrow-down"></i>
|
|
|
+ <i v-show="item.$expand" class="iconfont icon-arrow-up"></i>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- <div class="ps-operate-line" @click="showRuleSet(item.storeid)">
|
|
|
@@ -94,14 +96,14 @@
|
|
|
<div class="text-ellipse">
|
|
|
<span class="pay-price-title inline-block">手续费:</span><span class="ol-price"><span>{{payData.currency | currencyFilter}}</span>0.00</span>
|
|
|
<!--(<span class="ol-price fare"><span>{{payData.currency | currencyFilter}}</span>{{getPoundage(item)}}</span>)-->
|
|
|
- <span class="inline-block tag">减免</span>
|
|
|
+ <span class="inline-block tag" @click="showRemindStr = true">减免</span>
|
|
|
<i class="fa fa-exclamation-circle"></i>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="ps-operate-line ps-price">
|
|
|
<span class="pay-price-title inline-block">店铺合计:</span>
|
|
|
<span class="ol-price"><span>{{payData.currency | currencyFilter}}</span>
|
|
|
- {{item.goodsFarePrice || 0}}</span>
|
|
|
+ {{(item.goodsFarePrice || 0) | priceFilter}}</span>
|
|
|
</div>
|
|
|
</li>
|
|
|
</ul>
|
|
|
@@ -148,7 +150,7 @@
|
|
|
<div class="buy-wrap">
|
|
|
<div class="fr">
|
|
|
<span class="title">实付:</span><span class="ol-price price inline-block text-ellipse"><span>{{payData.currency | currencyFilter}}</span>
|
|
|
- {{allPriceNew}}</span>
|
|
|
+ {{allPriceNew | priceFilter}}</span>
|
|
|
<button class="buy-btn" @click="confirmOrder">提交订单</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -261,7 +263,7 @@
|
|
|
<!-- 选择发票弹框end -->
|
|
|
|
|
|
<!-- 选择地址弹框start -->
|
|
|
- <modal-wrapper :showModal="showAddrModal"
|
|
|
+ <!-- <modal-wrapper :showModal="showAddrModal"
|
|
|
:title="'收货地址'"
|
|
|
@closeAction="showAddrModal = false">
|
|
|
<template v-if="!editAddr">
|
|
|
@@ -289,7 +291,39 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<address-edit v-else="editAddr" :inFix="true" :data="currentAddress" :isPersonal="true" :isSend="false" @isEditEvent="editClick"></address-edit>
|
|
|
- </modal-wrapper>
|
|
|
+ </modal-wrapper>-->
|
|
|
+ <div class="mobile-modal addr-modal" v-if="showAddrModal" @click="showAddrModal = false">
|
|
|
+ <div class="mobile-modal-box addr-modal-wrapper" @click="stopPropagation($event)">
|
|
|
+ <div class="mobile-modal-header">收货地址<i @click="showAddrModal = false" class="icon-guanbi iconfont"></i></div>
|
|
|
+ <div style="height: 100%;overflow-y: auto;background: #fff;padding-bottom: .3rem;">
|
|
|
+ <template v-if="!editAddr">
|
|
|
+ <div class="addr-list-wrap">
|
|
|
+ <ul class="addr-list">
|
|
|
+ <li v-for="(addr, index) in addressData" :class="{active: selectedAddressIndex === index}" @click="setAddressCheck(index)">
|
|
|
+ <div class="info-wrap">
|
|
|
+ <div class="info-line">
|
|
|
+ <label class="mobile-cart-check" :class="{active: selectedAddressIndex === index}">
|
|
|
+ <input type="checkbox">
|
|
|
+ </label>
|
|
|
+ <span class="name inline-block text-ellipse">{{addr.name}}</span>
|
|
|
+ <span class="tel inline-block text-ellipse">{{addr.tel}}</span>
|
|
|
+ <i class="inline-block" v-if="addr.num === 1">默认地址</i>
|
|
|
+ </div>
|
|
|
+ <p>{{addr.area + addr.detailAddress}}</p>
|
|
|
+ </div>
|
|
|
+ <div class="edit-addr-area">
|
|
|
+ <a class="inline-block addr-btn" @click.stop="addAddress(addr)"><i class="iconfont icon-xinzeng"></i>编辑</a>
|
|
|
+ <a class="inline-block addr-btn" @click.stop="deleteAddress(addr)"><i class="iconfont icon-lajitong"></i>删除</a>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <button class="add-addr-btn" @click="addAddress()"><i class="iconfont icon-add"></i>添加新地址</button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <address-edit v-else="editAddr" :inFix="false" :data="currentAddress" :isPersonal="true" :isSend="false" @isEditEvent="editClick"></address-edit>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<!-- <div v-if="showAddrModal" class="mobile-hover-pager">
|
|
|
<template v-if="!editAddr">
|
|
|
<div class="addr-list-wrap">
|
|
|
@@ -341,10 +375,14 @@
|
|
|
<!-- 选择自提点弹框end -->
|
|
|
|
|
|
<remind-box :title="remindText" :timeoutCount="timeoutCount"></remind-box>
|
|
|
+ <remind-str :showRemind="showRemindStr"
|
|
|
+ :text="'手续费:是指第三方支付机构在交易过程中,按照一定的百分比进行收取的费用。手续费金额=订单金额 * 0.45%'"
|
|
|
+ @closeAction="showRemindStr = false"
|
|
|
+ ></remind-str>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
- import { LinkUser, ModalWrapper, BottomModalWrapper, AddressEdit } from '~components/mobile/base'
|
|
|
+ import { LinkUser, ModalWrapper, BottomModalWrapper, AddressEdit, RemindStr } from '~components/mobile/base'
|
|
|
import { RemindBox } from '~components/mobile/common'
|
|
|
import { goodsPurchaseOperate } from '~utils/mixin'
|
|
|
export default {
|
|
|
@@ -379,7 +417,8 @@
|
|
|
// 正在修改自提点的店铺id
|
|
|
currentTakeSelfStoreId: '',
|
|
|
editAddr: false,
|
|
|
- currentAddress: {}
|
|
|
+ currentAddress: {},
|
|
|
+ showRemindStr: false
|
|
|
}
|
|
|
},
|
|
|
mixins: [goodsPurchaseOperate],
|
|
|
@@ -388,7 +427,8 @@
|
|
|
ModalWrapper,
|
|
|
RemindBox,
|
|
|
BottomModalWrapper,
|
|
|
- AddressEdit
|
|
|
+ AddressEdit,
|
|
|
+ RemindStr
|
|
|
},
|
|
|
fetch ({ store, params }) {
|
|
|
return Promise.all([
|
|
|
@@ -460,7 +500,7 @@
|
|
|
allPriceNew () {
|
|
|
let allOrderPrice = 0
|
|
|
this.orderData.forEach((item, index) => {
|
|
|
- item.goodsPrice = this.getTotalPrice(item) // 总价
|
|
|
+ item.goodsPrice = this.baseUtils.priceFixed(this.getTotalPrice(item)) // 总价
|
|
|
// 包含运费的价格
|
|
|
// item.goodsFarePrice = this.baseUtils.priceFixed(item.goodsPrice + (item.fare && item.fare.fare ? item.fare.fare : 0))
|
|
|
item.goodsFarePrice = item.goodsPrice
|
|
|
@@ -543,7 +583,7 @@
|
|
|
this.allOrderPrice = 0
|
|
|
this.orderData.forEach(item => {
|
|
|
item.fare = this.fareRule[item.storeid] && this.fareRule[item.storeid].length ? this.fareRule[item.storeid][0] : {}
|
|
|
- item.goodsPrice = this.getTotalPrice(item) // 总价
|
|
|
+ item.goodsPrice = this.baseUtils.priceFixed(this.getTotalPrice(item)) // 总价
|
|
|
// 包含运费的价格
|
|
|
// item.goodsFarePrice = this.baseUtils.priceFixed(item.goodsPrice + (item.fare && item.fare.fare ? item.fare.fare : 0))
|
|
|
item.goodsFarePrice = item.goodsPrice
|
|
|
@@ -1018,6 +1058,7 @@
|
|
|
}
|
|
|
.pay-price-title {
|
|
|
float: left;
|
|
|
+ font-size: .3rem;
|
|
|
}
|
|
|
.ps-operate-line {
|
|
|
height: .89rem;
|
|
|
@@ -1090,23 +1131,26 @@
|
|
|
text-align: right;
|
|
|
color: #333;
|
|
|
.ol-price {
|
|
|
- font-size: .22rem;
|
|
|
+ font-size: .26rem;
|
|
|
span {
|
|
|
- font-size: .22rem;
|
|
|
+ font-size: .26rem;
|
|
|
}
|
|
|
}
|
|
|
+ .pay-price-title {
|
|
|
+ font-size: .26rem;
|
|
|
+ }
|
|
|
.fare {
|
|
|
text-decoration: line-through;
|
|
|
color: #666!important;
|
|
|
}
|
|
|
i {
|
|
|
- font-size: .28rem;
|
|
|
+ font-size: .38rem;
|
|
|
color: #adacac;
|
|
|
}
|
|
|
.tag {
|
|
|
- height: .25rem;
|
|
|
- line-height: .25rem;
|
|
|
- width: .48rem;
|
|
|
+ height: .35rem;
|
|
|
+ line-height: .35rem;
|
|
|
+ width: .58rem;
|
|
|
font-size: .22rem;
|
|
|
color: #fff;
|
|
|
background: #15b262;
|
|
|
@@ -1115,7 +1159,7 @@
|
|
|
margin-left: .14rem;
|
|
|
margin-right: .06rem;
|
|
|
position: relative;
|
|
|
- top: -.02rem;
|
|
|
+ top: -.06rem;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -1179,7 +1223,7 @@
|
|
|
}
|
|
|
p {
|
|
|
position: relative;
|
|
|
- bottom: .06rem;
|
|
|
+ bottom: 0;
|
|
|
}
|
|
|
.inv-head {
|
|
|
max-width: 4rem;
|
|
|
@@ -1466,4 +1510,13 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ .addr-modal {
|
|
|
+ .addr-modal-wrapper {
|
|
|
+ top: 1.5rem;
|
|
|
+ bottom: 1.5rem;
|
|
|
+ left: .2rem;
|
|
|
+ right: .2rem;
|
|
|
+ background: #fff;
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|