MrShi
2023-12-20 d81915d73a29e0595c1638c1344a141b28d19967
bicycle/pages/index/index.vue
@@ -8,7 +8,7 @@
            <view class="index_nav_a" :style="{ height: statusbarHeight + 'px' }"></view>
            <view :style="{ height: navHeight + 'px' }"></view>
            <view class="index_nav_b" :style="{ height: navHeight + 'px', lineHeight: navHeight + 'px', top: statusbarHeight + 'px' }">
               <text>印象滨湖自行车</text>
               <text>印象滨湖趣味自行车</text>
            </view>
         </view>
         <view class="index_box">
@@ -36,7 +36,7 @@
               <image class="imgfull" :src="info.leaseNoticeUrl" mode="widthFix"></image>
            </view>
            <view class="index_box_video" v-if="info.leaseVideoUrl">
               <video class="img100b" :show-play-btn="false" :src="info.leaseVideoUrl" enable-danmu danmu-btn controls></video>
               <video class="img100b" :src="info.leaseVideoUrl" enable-danmu danmu-btn controls></video>
            </view>
            <view style="width: 100%; height: calc(env(safe-area-inset-bottom) + 600rpx);" v-if="show5"></view>
            <view style="width: 100%; height: calc(env(safe-area-inset-bottom) + 660rpx);" v-if="show6"></view>
@@ -339,12 +339,15 @@
         },
         minute() {
            this.show3 = false
            console.log(this.info.rideStatus)
            if (this.info.rideStatus != -1) {
               this.show6 = true
            }
         },
         settlement() {
            if (this.info.depositStatus === 2) {
               uni.showToast({ title: '结算申请提交成功,请耐心等待退款!', icon: 'none', duration: 2000 });
               return
            }
            this.show6 = false
            this.show3 = true
         },
@@ -355,7 +358,8 @@
            });
         },
         // 跳转
         jump(item) {
         async jump(item) {
            await this.refresh()
            if (item.id === 3) {
               uni.navigateTo({
                  url: '/pages/pricingRules/pricingRules'
@@ -371,12 +375,17 @@
               } 
               if (this.info.depositStatus === 1) {
                  this.show3 = true
               } else if (this.info.depositStatus === 2) {
                  uni.showToast({ title: '结算申请提交成功,请耐心等待退款!', icon: 'none', duration: 2000 });
               } else {
                  uni.showToast({ title: '您暂无押金,无需结算!', icon: 'none', duration: 2000 });
               }
            } else if (item.id === 1) {
               if (this.info.depositStatus === 1) {
                  uni.showToast({ title: '押金已充值', icon: 'none', duration: 2000 });
                  return
               } else if (this.info.depositStatus === 2) {
                  uni.showToast({ title: '结算申请提交成功,请耐心等待退款!', icon: 'none', duration: 2000 });
                  return
               }
               this.show1 = true
@@ -468,11 +477,15 @@
            }
         },
         // 扫码租车
         carRental() {
         async carRental() {
            await this.refresh()
            // 判断有没有交押金
            if (this.info.depositStatus === 0) {
               this.show1 = true
               return;
            } else if (this.info.depositStatus === 2) {
               uni.showToast({ title: '结算申请提交成功,请耐心等待退款!', icon: 'none', duration: 2000 });
               return;
            }
            var that = this;
            if (!that.disable) {