|
@@ -26,7 +26,7 @@
|
|
|
<u-tabs :list="type" @click="click($event, 'type')"></u-tabs>
|
|
|
</view>
|
|
|
<view class="list">
|
|
|
- <view class="item" v-for="(item, index) in list" :key="index">
|
|
|
+ <view class="item" v-for="(item, index) in list" :key="index" @click="popup(item)">
|
|
|
<view class="title">{{ item.title }}</view>
|
|
|
<view class="desc">
|
|
|
<text v-if="item.state == 0 && item.type == 0" style="color: #f44336">未支付</text>
|
|
@@ -35,7 +35,7 @@
|
|
|
<text v-if="item.state == 0 && item.type == 2" style="color: #f44336">提现审核中...</text>
|
|
|
<text v-if="item.state == 1 && item.type == 2" style="color: #4caf50">提现成功</text>
|
|
|
<text v-if="item.state == 1 && item.type == 3" style="color: #4caf50">兼职收入</text>
|
|
|
- <text v-if="item.state == 2 && item.type == 2" style="color: #f44336" @click="popup(item.msg)">
|
|
|
+ <text v-if="item.state == 2 && item.type == 2" style="color: #f44336">
|
|
|
<text class="icon" style="padding-right: 5px"></text>
|
|
|
<text>提现失败,退回余额</text>
|
|
|
</text>
|
|
@@ -53,6 +53,68 @@
|
|
|
<view class="loading" v-if="loadMore"><u-loadmore :status="loadMore ? 'loading' : 'nomore'" /></view>
|
|
|
<u-empty v-if="!loadMore && list.length == 0"></u-empty>
|
|
|
</view>
|
|
|
+ <u-popup :show="show" round="15" mode="center" :closeable="true" :customStyle="{ width: '85%' }" @close="show = false">
|
|
|
+ <view class="popup">
|
|
|
+ <view class="mtt" v-if="item.type == 0">在线充值</view>
|
|
|
+ <view class="mtt" v-if="item.type == 1">兼职支出</view>
|
|
|
+ <view class="mtt" v-if="item.type == 2">余额提现</view>
|
|
|
+ <view class="mtt" v-if="item.type == 3">兼职收入</view>
|
|
|
+ <view class="mtt" v-if="item.type == 4">余额退款</view>
|
|
|
+ <view>
|
|
|
+ <view class="item">
|
|
|
+ <text class="tt">操作内容</text>
|
|
|
+ <text class="la">{{ item.title }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item" v-if="item.type == 0">
|
|
|
+ <text class="tt">充值金额</text>
|
|
|
+ <text class="la">¥{{ item.money }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item" v-if="item.type == 1">
|
|
|
+ <text class="tt">兼职金额</text>
|
|
|
+ <text class="la">¥{{ (item.money - item.serviceMoney).toFixed(2) }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item" v-if="item.type == 2">
|
|
|
+ <text class="tt">提现金额</text>
|
|
|
+ <text class="la">¥{{ (item.money + item.serviceMoney).toFixed(2) }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item" v-if="item.serviceMoney">
|
|
|
+ <text class="tt">服务费</text>
|
|
|
+ <text class="la">¥{{ item.serviceMoney }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item" v-if="item.rate">
|
|
|
+ <text class="tt">{{ item.type == 1 ? '兼职费率' : '提现费率' }}</text>
|
|
|
+ <text class="la">{{ item.rate }}%</text>
|
|
|
+ </view>
|
|
|
+ <view class="item" v-if="item.type == 1">
|
|
|
+ <text class="tt">实际扣除</text>
|
|
|
+ <text class="la">¥{{ item.money }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item" v-if="item.type == 2">
|
|
|
+ <text class="tt">实际到账</text>
|
|
|
+ <text class="la">¥{{ item.money }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <text class="tt">操作状态</text>
|
|
|
+ <text class="la" v-if="item.state == 0 && item.type == 0" style="color: #f44336">未支付</text>
|
|
|
+ <text class="la" v-if="item.state == 1 && item.type == 0" style="color: #4caf50">充值成功</text>
|
|
|
+ <text class="la" v-if="item.state == 1 && item.type == 1" style="color: #4caf50">支出成功</text>
|
|
|
+ <text class="la" v-if="item.state == 0 && item.type == 2" style="color: #f44336">提现审核中...</text>
|
|
|
+ <text class="la" v-if="item.state == 1 && item.type == 2" style="color: #4caf50">提现成功</text>
|
|
|
+ <text class="la" v-if="item.state == 1 && item.type == 3" style="color: #4caf50">兼职收入</text>
|
|
|
+ <text class="la" v-if="item.state == 2 && item.type == 2" style="color: #f44336">提现失败,退回余额</text>
|
|
|
+ <text class="la" v-if="item.state == 1 && item.type == 4" style="color: #4caf50">退款成功</text>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <text class="tt">创建时间</text>
|
|
|
+ <text class="la">{{ item.createTime }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="item" v-if="item.completeTime">
|
|
|
+ <text class="tt">审核时间</text>
|
|
|
+ <text class="la">{{ item.completeTime }}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </u-popup>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -72,7 +134,9 @@ export default {
|
|
|
],
|
|
|
list: [],
|
|
|
param: { pageNum: 1, pageSize: 10 },
|
|
|
- loadMore: true
|
|
|
+ loadMore: true,
|
|
|
+ show: false,
|
|
|
+ item: {}
|
|
|
};
|
|
|
},
|
|
|
onLoad(e) {
|
|
@@ -108,8 +172,9 @@ export default {
|
|
|
this.param.type = e.value;
|
|
|
this.refresh();
|
|
|
},
|
|
|
- popup(msg) {
|
|
|
- uni.showModal({ title: '提示', content: msg, showCancel: false });
|
|
|
+ popup(item) {
|
|
|
+ this.item = item;
|
|
|
+ this.show = true;
|
|
|
},
|
|
|
go(url) {
|
|
|
uni.navigateTo({ url: url });
|