Browse Source

上传

master
前端-胡立永 7 months ago
parent
commit
0fdb6c88db
5 changed files with 57 additions and 13 deletions
  1. +41
    -5
      components/user/cartSubmitSelect.vue
  2. +1
    -1
      config.js
  3. +5
    -0
      pages/index/order.vue
  4. +9
    -6
      pages_order/components/product/submitUnitSelect.vue
  5. +1
    -1
      pages_order/mine/lease.vue

+ 41
- 5
components/user/cartSubmitSelect.vue View File

@ -51,16 +51,18 @@
<view v-if="rentPrice">
租金{{ rentPrice }}
</view>
<view v-if="coupon.couponCondition <= price">
优惠-{{ coupon.couponPrice }}
<view v-if="getPrice().coupon">
优惠-{{ getPrice().coupon }}
</view>
<view v-if="coupon.couponCondition <= price">
实付款{{ (price - coupon.couponPrice).toFixed(2) }}
<view v-if="getPrice().price">
实付款{{ getPrice().price }}
</view>
</view>
<uv-cell
icon="coupon"
title="优惠"
title="押金优惠"
v-if="coupon.couponFlag"
iconStyle="font-size: 34rpx;"
rightIconStyle="font-size: 34rpx;">
<template #value>
@ -69,6 +71,19 @@
</view>
</template>
</uv-cell>
<uv-cell
icon="coupon"
title="租金优惠"
v-if="coupon.leaseCouponFlag"
iconStyle="font-size: 34rpx;"
rightIconStyle="font-size: 34rpx;">
<template #value>
<view class="coupon">
{{ coupon.leaseCouponCondition }}立减{{ coupon.leaseCouponPrice }}
</view>
</template>
</uv-cell>
</view>
<!-- 提交按钮 -->
@ -153,6 +168,27 @@
}
})
},
//
getPrice(){
//
if(this.coupon.couponFlag &&
this.coupon.couponCondition <= this.depositPrice){
return {
coupon : this.coupon.couponPrice,
price : (this.price - this.coupon.couponPrice).toFixed(2),
}
}
//
if(this.coupon.leaseCouponFlag &&
this.coupon.leaseCouponCondition <= this.rentPrice){
return {
coupon : this.coupon.leaseCouponPrice,
price : (this.price - this.coupon.leaseCouponPrice).toFixed(2),
}
}
return {}
},
//
selectCoupon(e){
this.couponText = e.couponName


+ 1
- 1
config.js View File

@ -7,7 +7,7 @@ import uvUI from '@/uni_modules/uv-ui-tools'
Vue.use(uvUI);
// 当前环境
const type = 'prod'
const type = 'dev'
// 环境配置


+ 5
- 0
pages/index/order.vue View File

@ -70,6 +70,10 @@
<text>{{ item.userPhone }}</text>
<text>{{ item.userAddress }}</text>
</view>
<view class="userInfo">
<text>下单时间</text>
<text>{{ item.createTime }}</text>
</view>
<!-- 水洗店按钮 -->
<view class="bottom" v-if="userShop">
@ -380,6 +384,7 @@
.userInfo{
font-size: 24rpx;
margin-bottom: 10rpx;
text{
margin-right: 26rpx;
}


+ 9
- 6
pages_order/components/product/submitUnitSelect.vue View File

@ -21,7 +21,7 @@
<view class="submit-unit"
style="margin-top: 20rpx;">
<view class="title">
您有桌布
您有物品
</view>
<view class="list">
<view :class="{act : typeIndex == index}" v-for="(item, index) in type"
@ -35,7 +35,7 @@
<view v-if="typeIndex == 0">
<view class="submit-info">
<view class="title">
桌布租赁
物品租赁
</view>
<view class="box">
<image class="image" :src="unit.pic" mode=""></image>
@ -96,16 +96,19 @@
<view>
押金{{ price }}
</view>
<view v-if="coupon.couponCondition <= price">
<view v-if="coupon.couponCondition <= price
&& coupon.couponFlag">
优惠-{{ coupon.couponPrice }}
</view>
<view v-if="coupon.couponCondition <= price">
<view v-if="coupon.couponCondition <= price
&& coupon.couponFlag">
实付款{{ (price - coupon.couponPrice).toFixed(2) }}
</view>
</view>
<uv-cell
icon="coupon"
title="优惠"
title="押金优惠"
v-if="coupon.couponFlag"
iconStyle="font-size: 34rpx;"
rightIconStyle="font-size: 34rpx;">
<template #value>
@ -187,7 +190,7 @@
},
couponText : '请选择',
typeIndex : 0,
type : ['没有桌布', '我有桌布'],
type : ['没有物品', '我有物品'],
}
},
methods: {


+ 1
- 1
pages_order/mine/lease.vue View File

@ -65,7 +65,7 @@
<style scoped lang="scss">
.page{
padding-bottom: 200rpx;
// padding-bottom: 200rpx;
.tabs{
position: sticky;
top: calc(var(--status-bar-height) + 120rpx);


Loading…
Cancel
Save