Browse Source

运费去掉,首页登陆后刷新

undefined
xubinxcode 4 years ago
parent
commit
185cb3b994
3 changed files with 6 additions and 6 deletions
  1. +1
    -1
      addons/unishop/uniapp/uni-shop/main.js
  2. +2
    -2
      addons/unishop/uniapp/uni-shop/pages/order/order.vue
  3. +3
    -3
      addons/unishop/uniapp/uni-shop/pages/order/orderDetail.vue

+ 1
- 1
addons/unishop/uniapp/uni-shop/main.js View File

@@ -75,7 +75,7 @@ const checkLogin = () => {
if (Vue.prototype.$store.state.hasLogin == false) {
uni.showModal({
title: '温馨提示',
content: '你还没,请先登录',
content: '你还没登录,请先登录',
success(res) {
if (res.confirm) {
// 账户秘密登录


+ 2
- 2
addons/unishop/uniapp/uni-shop/pages/order/order.vue View File

@@ -40,13 +40,13 @@
<text class="price">{{item.total_price}}</text>

<text v-if="item.discount_price > 0">(已优惠¥{{item.discount_price}})</text>
<text v-if="item.delivery_price > 0">(含运费¥{{item.delivery_price}})</text>
<!-- <text v-if="item.delivery_price > 0">(含运费¥{{item.delivery_price}})</text> -->
</view>
<view class="action-box b-t" v-if="item.state != 9">
<button class="action-btn" v-if="item.state == 1" @click.stop="button('cancel',item)">取消订单</button>
<button class="action-btn recom" v-if="item.have_paid == 0" @click.stop="button('pay',item)">立即支付</button>
<!-- <button class="action-btn" v-if="item.have_paid != 0 && item.have_delivered == 0">提醒发货</button> -->
<button class="action-btn" v-if="item.have_paid != 0" @click.stop="button('delivery',item)">查看物流</button>
<!-- <button class="action-btn" v-if="item.have_paid != 0" @click.stop="button('delivery',item)">查看物流</button> -->
<button class="action-btn" v-if="item.have_paid != 0 && item.have_received == 0" @click.stop="button('recerved',item)">确认收货</button>
<!-- <button class="action-btn" v-if="item.have_received != 0 && item.have_commented != 0">追加评价</button> -->
<button class="action-btn" v-if="item.have_paid != 0" @click.stop="button('refund', item)">申请售后</button>


+ 3
- 3
addons/unishop/uniapp/uni-shop/pages/order/orderDetail.vue View File

@@ -37,9 +37,9 @@

<view class="price">
<view>商品总价 <text>¥ {{order.order_price}}</text></view>
<view>运费 <text>¥ {{order.delivery_price}}</text></view>
<!-- <view>运费 <text>¥ {{order.delivery_price}}</text></view> -->
<view>优惠 <text>¥ {{order.discount_price}}</text></view>
<view class="total">实付款(含运费) <text>¥ {{order.total_price}}</text></view>
<view class="total">实付款<text>¥ {{order.total_price}}</text></view>
</view>
</view>
<view class="order" v-if="order.createtime">
@@ -57,7 +57,7 @@
<view class="bottom" v-if="order.state != 9">
<button class="action-btn" v-if="order.state == 1" @click.stop="button('cancel')">取消订单</button>
<button class="action-btn recom" v-if="order.have_paid == 0" @click.stop="button('pay')">立即支付</button>
<button class="action-btn" v-if="order.have_paid != 0" @click.stop="button('delivery')">查看物流</button>
<!-- <button class="action-btn" v-if="order.have_paid != 0" @click.stop="button('delivery')">查看物流</button> -->
<button class="action-btn" v-if="order.have_paid != 0 && order.have_received == 0" @click.stop="button('recerved')">确认收货</button>
<button class="action-btn" v-if="order.have_paid != 0" @click.stop="button('refund')">申请售后</button>
</view>


Loading…
Cancel
Save