MrShi
11 小时以前 a690229b69cfa0aba5a0352772c2bdc1cf9fdab0
mini-program/pagesA/pages/withdrawal-details/withdrawal-details.vue
@@ -1,39 +1,38 @@
<template>
   <view class="box">
      <view class="yue">
         <view class="yue-a">提现</view>
         <view class="yue-b">-¥1000.00</view>
         <view class="yue-c succ">审核中</view>
         <!-- <view class="yue-a">金额</view> -->
         <view class="yue-b"><text class="yue-a"></text>¥{{(info.amount || 0).toFixed(2)}}</view>
         <view class="yue-c err"  v-if="info.status == 2">未通过</view>
         <view class="yue-c succ" v-else-if="info.status == 1">已通过</view>
         <view class="yue-c err" v-else>审批中</view>
      </view>
      <view class="info">
         <view class="info-item">
            <view class="info-item-label">提交时间</view>
            <view class="info-item-val">2025-12-31 21:00:22</view>
            <view class="info-item-val">{{info.createDate ||''}}</view>
         </view>
         <view class="info-item">
            <view class="info-item-label">提现银行</view>
            <view class="info-item-val">中国工商银行大钟楼支行(8788)</view>
            <view class="info-item-val">{{info.bankInfo ||''}}</view>
         </view>
         <view class="info-item">
         <view class="info-item" v-if="info.status == 1 || info.status == 2">
            <view class="info-item-label">审核时间</view>
            <view class="info-item-val">2025-12-31 21:00:22</view>
            <view class="info-item-val">{{info.auditTime ||''}}</view>
         </view>
         <view class="info-item">
            <view class="info-item-label">打款银行</view>
            <view class="info-item-val">中国工商银行大钟楼支行</view>
         <view class="info-item" v-if="info.status == 1">
            <view class="info-item-label"> 打款银行</view>
            <view class="info-item-val">{{info.bankName ||''}}</view>
         </view>
         <view class="info-item">
         <view class="info-item"  v-if="info.status == 1 || info.status == 2">
            <view class="info-item-label">备注信息</view>
            <view class="info-item-val">-</view>
            <view class="info-item-val">{{info.auditRemark ||'-'}}</view>
         </view>
         <view class="info-item">
            <view class="info-item-label">打款凭证</view>
         <view class="info-item"v-if="info.status == 1 && info.payFileList && info.payFileList.length">
            <view class="info-item-label" >打款凭证</view>
            <view class="info-item-list">
               <view class="info-item-list-item">
                  <image src="/static/logo.png" mode="widthFix"></image>
               </view>
               <view class="info-item-list-item">
                  <image src="/static/logo.png" mode="widthFix"></image>
               <view class="info-item-list-item" v-for="(item,index) in info.payFileList" :key="index" >
                  <image :src="item.fileFullUrl?item.fileFullUrl:'/static/icon/default2.png'" mode="widthFix" @click="previewImage(index)"></image>
               </view>
               <view style="width: 120rpx; height: 0rpx;"></view>
               <view style="width: 120rpx; height: 0rpx;"></view>
@@ -44,11 +43,51 @@
</template>
<script>
   import { mapState } from 'vuex'
   export default {
      computed: {
         ...mapState(['navHeight', 'statusbarHeight','shopInfo', 'shopToken'])
      },
      data() {
         return {
         return {
            id:null,
            shop:{},
            info:{}
         };
      },
      onLoad(options) {
         this.id = options.id
         this.info={}
         this.shop  ={}
         this.checkShopLogin()
         this.shop = this.shopInfo || {}
         this.getDataDetail()
      },
      methods:{
         previewImage (index)  {
            if (this.info.payFileList && this.info.payFileList.length) {
               var urls = this.info.payFileList.map((item)=>{return item.fileFullUrl })
               uni.previewImage({
                  urls:urls,
                  current:index ||0
               })
            }
         },
         async  getDataDetail(){
            var that =this
            let res = await that.$u.api.withdrawDetail({id:this.id,tokenType:1  })
            if (res.code === 200) {
               this.info = res.data
            }
         },
         checkShopLogin(){
            var that =this
            if( this.shopInfo ==null || this.shopInfo.id==null ||  this.shopToken==null || this.shopToken==''){
               uni.navigateTo({
                  url: '/pages/login/login'
               })
            }
         }
      }
   }
</script>