From 174350e855349919ee287a52d3198c7c7558b858 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 02 四月 2024 14:21:22 +0800
Subject: [PATCH] mrshi
---
wx/pages/addition_subtraction_details/addition_subtraction_details.vue | 98 ++++++++++++++++++++++++++++++------------------
1 files changed, 61 insertions(+), 37 deletions(-)
diff --git a/wx/pages/addition_subtraction_details/addition_subtraction_details.vue b/wx/pages/addition_subtraction_details/addition_subtraction_details.vue
index 266ba1a..03fa9b9 100644
--- a/wx/pages/addition_subtraction_details/addition_subtraction_details.vue
+++ b/wx/pages/addition_subtraction_details/addition_subtraction_details.vue
@@ -1,20 +1,24 @@
<template>
<view class="details">
- <view class="details_back" :style="{ background: returnStyle(info.status) }"></view>
+ <template v-if="info">
+ <view class="details_back" :style="{ background: returnStyle(info.status) }"></view>
+ </template>
<view class="box">
<view class="box_info">
- <view class="box_info_head" :style="{ background: returnStyle1(info.status) }">
- <view class="box_info_head_left">
- <text>{{info.solutionsName || ''}}</text>
- <text>鍏宠仈淇濆崟鍙凤細{{info.applyCode}}</text>
+ <template v-if="info">
+ <view class="box_info_head" :style="{ background: returnStyle1(info.status) }">
+ <view class="box_info_head_left">
+ <text>{{info.solutionsName || ''}}</text>
+ <text>鍏宠仈淇濆崟鍙凤細{{info.applyCode}}</text>
+ </view>
+ <image v-if="info.status === 2" src="@/static/icon/progress_yishengxiao@2x.png" mode="widthFix"></image>
+ <image v-if="info.status === 1" src="@/static/icon/progress_daishenhe@2x.png" mode="widthFix"></image>
+ <image v-if="info.status === 0" src="@/static/icon/progress_daiqianshu@2x.png" mode="widthFix"></image>
+ <image v-if="info.status === 3" src="@/static/icon/progress_shenqingtuihui@2x.png" mode="widthFix"></image>
+ <image v-if="info.status === 5" src="@/static/icon/progress_yituihui@2x.png" mode="widthFix"></image>
+ <image v-if="info.status === 6" src="@/static/icon/progress_yiguanbi@2x.png" mode="widthFix"></image>
</view>
- <image v-if="info.status === 2" src="@/static/icon/progress_yishengxiao@2x.png" mode="widthFix"></image>
- <image v-if="info.status === 1" src="@/static/icon/progress_daishenhe@2x.png" mode="widthFix"></image>
- <image v-if="info.status === 0" src="@/static/icon/progress_daiqianshu@2x.png" mode="widthFix"></image>
- <image v-if="info.status === 3" src="@/static/icon/progress_shenqingtuihui@2x.png" mode="widthFix"></image>
- <image v-if="info.status === 5" src="@/static/icon/progress_yituihui@2x.png" mode="widthFix"></image>
- <image v-if="info.status === 6" src="@/static/icon/progress_yiguanbi@2x.png" mode="widthFix"></image>
- </view>
+ </template>
<view class="box_info_center">
<view class="box_info_center_x"></view>
</view>
@@ -84,31 +88,51 @@
</view>
</view>
</view>
- <view style="width: 100%; height: calc(env(safe-area-inset-bottom) + 100rpx);"></view>
- <!-- 宸茬敓鏁� -->
- <view class="details_footer" v-if="info.status === 2">
- <u-button type="primary" shape="circle" color="#437CB3" :plain="true" text="鏌ョ湅鐢宠鍗�"></u-button>
- <view style="width: 44rpx; height: 50rpx;"></view>
- <u-button type="primary" shape="circle" color="#437CB3" :plain="true" text="鏌ョ湅鎵瑰崟"></u-button>
- </view>
- <!-- 寰呭鏍� -->
- <view class="details_footer" v-if="info.status === 1">
- <u-button type="primary" shape="circle" color="#437CB3" :plain="true" text="鐢宠閫�鍥�"></u-button>
- <view style="width: 44rpx; height: 50rpx;"></view>
- <u-button type="primary" shape="circle" color="#437CB3" text="鏌ョ湅鐢宠鍗�"></u-button>
- </view>
- <!-- 宸查��鍥� -->
- <view class="details_footer" v-if="info.status === 5">
- <u-button type="primary" shape="circle" color="#437CB3" @click="show2 = true" :plain="true" text="鍏抽棴璁㈠崟"></u-button>
- <view style="width: 44rpx; height: 50rpx;"></view>
- <u-button type="primary" shape="circle" color="#437CB3" text="鍐嶆鎻愪氦"></u-button>
- </view>
- <!-- 寰呯缃� -->
- <view class="details_footer" v-if="info.status === 0">
- <u-button type="primary" shape="circle" color="#437CB3" :plain="true" text="鐢宠閫�鍥�"></u-button>
- <view style="width: 44rpx; height: 50rpx;"></view>
- <u-button type="primary" shape="circle" color="#437CB3" @click="show1 = true" text="绛剧讲鎶曚繚鍗�"></u-button>
- </view>
+ <template v-if="info">
+ <view style="width: 100%; height: calc(env(safe-area-inset-bottom) + 100rpx);" v-if="[2,1,5,0].includes(info.status)"></view>
+ </template>
+ <!-- 鐩翠繚 -->
+ <template v-if="info && info.solutionType === 0">
+ <!-- 宸茬敓鏁� -->
+ <view class="details_footer" v-if="info.status === 2">
+ <u-button type="primary" shape="circle" color="#437CB3" :plain="true" text="鏌ョ湅鐢宠鍗�"></u-button>
+ <view style="width: 44rpx; height: 50rpx;"></view>
+ <u-button type="primary" shape="circle" color="#437CB3" :plain="true" text="鏌ョ湅鎵瑰崟"></u-button>
+ </view>
+ <!-- 寰呭鏍� -->
+ <view class="details_footer" v-if="info.status === 1">
+ <u-button type="primary" shape="circle" color="#437CB3" :plain="true" text="鐢宠閫�鍥�"></u-button>
+ <view style="width: 44rpx; height: 50rpx;"></view>
+ <u-button type="primary" shape="circle" color="#437CB3" text="鏌ョ湅鐢宠鍗�"></u-button>
+ </view>
+ <!-- 宸查��鍥� -->
+ <view class="details_footer" v-if="info.status === 5">
+ <u-button type="primary" shape="circle" color="#437CB3" @click="show2 = true" :plain="true" text="鍏抽棴璁㈠崟"></u-button>
+ </view>
+ <!-- 寰呯缃� -->
+ <view class="details_footer" v-if="info.status === 0">
+ <u-button type="primary" shape="circle" color="#437CB3" :plain="true" text="鐢宠閫�鍥�"></u-button>
+ <view style="width: 44rpx; height: 50rpx;"></view>
+ <u-button type="primary" shape="circle" color="#437CB3" @click="show1 = true" text="绛剧讲鎶曚繚鍗�"></u-button>
+ </view>
+ </template>
+ <!-- 濮旀墭淇� -->
+ <template v-if="info && info.solutionType === 1">
+ <!-- 寰呭鏍�/寰呭嚭鍗�/鎶曚繚涓� -->
+ <view class="details_footer" v-if="info.status === 1">
+ <u-button type="primary" shape="circle" color="#437CB3" :plain="true" text="鐢宠閫�鍥�"></u-button>
+ <view style="width: 44rpx; height: 50rpx;"></view>
+ <u-button type="primary" shape="circle" color="#437CB3" text="鏌ョ湅鐢宠鍗�"></u-button>
+ </view>
+ <!-- 宸查��鍥� -->
+ <view class="details_footer" v-if="info.status === 5">
+ <u-button type="primary" shape="circle" color="#437CB3" @click="show2 = true" :plain="true" text="鍏抽棴璁㈠崟"></u-button>
+ </view>
+ <!-- 寰呯缃� -->
+ <view class="details_footer" v-if="info.status === 0">
+ <u-button type="primary" shape="circle" color="#437CB3" :plain="true" text="绛剧讲鐢宠鍗�"></u-button>
+ </view>
+ </template>
<!-- 鐢宠閫�鍥炵‘璁ゅ脊绐� -->
<u-modal :show="show" title="娓╅Θ鎻愮ず" :showCancelButton="true" cancelText="鎴戝啀鎯虫兂" confirmColor="#437CB3" @cancel="cancel" @confirm="confirm">
纭鐢宠閫�鍥烇紵
--
Gitblit v1.9.3