Commit d455afef authored by 刘文虎's avatar 刘文虎

分销

parent f2e6e7f4
Pipeline #3856 canceled with stages
...@@ -2,14 +2,20 @@ ...@@ -2,14 +2,20 @@
<view class="detail" @click="toBill"> <view class="detail" @click="toBill">
<view class="content-item"> <view class="content-item">
<view class="content-item-label"> <view class="content-item-label">
<view class="content-item-label-icon" v-if="detail.channel&&detail.channel.code==='alipay'"><image :src="alipayIcon" mode=""></image></view> <view class="content-item-label-icon" v-if="detail.channel==='alipay'"><image :src="alipayIcon" mode=""></image></view>
<text>{{ detail.memberName&&detail.memberName.desc }}</text> <!-- <text>{{ detail.memberName&&detail.memberName.desc }}</text> -->
<text>提现</text>
</view> </view>
<view class="content-item-value" >{{ detail.amount }}</view> <view class="content-item-value" >{{ detail.amount }}</view>
</view> </view>
<view class="detail-right"> <view class="detail-right">
<view class="detail-right-label">{{ detail.createTime }}</view> <view class="detail-right-label">{{ detail.createTime }}</view>
<view class="detail-right-value" :class="{ 'detail-right-status': detail.status&&detail.status.code==='WAIT' }">{{ detail.status&&detail.status.desc }}</view> <view class="detail-right-value" @click.stop="statusClick">
<text :class="{ red: detail.status && detail.status.code === 'REJECT', green: detail.status && detail.status.code === 'WAIT' }">
{{ detail.status && detail.status.desc }}
</text>
<view class="invalid-icon" v-if="detail.status && detail.status.code === 'REJECT'"><image :src="invalidIcon" mode=""></image></view>
</view>
</view> </view>
</view> </view>
</template> </template>
...@@ -35,6 +41,7 @@ export default { ...@@ -35,6 +41,7 @@ export default {
data() { data() {
return { return {
alipayIcon:mineBaseUrl+'zhifubao@3x.png', alipayIcon:mineBaseUrl+'zhifubao@3x.png',
invalidIcon: mineBaseUrl + 'wuxiaotuiguangtishi@3x.png',
}; };
}, },
methods: { methods: {
...@@ -43,6 +50,11 @@ export default { ...@@ -43,6 +50,11 @@ export default {
}, },
toBill() { toBill() {
this.$emit('cellClick', this.detail); this.$emit('cellClick', this.detail);
},
statusClick(){
if(this.detail.status && this.detail.status.code === 'REJECT'){
this.$emit("invalidClick",this.detail.applyRemark)
}
} }
} }
}; };
...@@ -78,14 +90,27 @@ export default { ...@@ -78,14 +90,27 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
text-align: right; font-size: 24upx;
font-size: 28upx;
line-height: 28upx; line-height: 28upx;
margin-top: 12rpx; margin-top: 12rpx;
color: #8d8d8d; color: #8d8d8d;
&-status { &-value {
color: #fc524d; display: flex;
align-items: center;
justify-content: flex-end;
}
.invalid-icon {
width: 24rpx;
height: 24rpx;
display: flex;
margin-left: 8rpx;
} }
} }
.red {
color: #fc524d;
}
.green {
color: $default-color;
}
} }
</style> </style>
...@@ -214,9 +214,11 @@ export default { ...@@ -214,9 +214,11 @@ export default {
.search-wrap { .search-wrap {
width: 100%; width: 100%;
height: 156rpx; height: 156rpx;
background: #02A074; // background: #02A074;
border-radius: 12rpx; border-radius: 12rpx;
padding-top: 40rpx; padding-top: 40rpx;
overflow: hidden;
background: url(https://static-book.kaying.cc/icon/mine/jianbianbeijing%402x.png) no-repeat 100% 100%;
} }
.tabs-box { .tabs-box {
margin: 32upx 0; margin: 32upx 0;
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
enable-back-to-top enable-back-to-top
> >
<view class="list-view" v-if="list && list.length > 0"> <view class="list-view" v-if="list && list.length > 0">
<WithdrawItem v-for="item in list" :key="item.id" :detail="item" @cellClick="cellClick"></WithdrawItem> <WithdrawItem v-for="item in list" :key="item.id" :detail="item" @cellClick="cellClick" @invalidClick="invalidClick"></WithdrawItem>
<view class="load-more-view" v-show="(current == 1 && !loading) || current > 1"><u-loadmore :status="loadStatus" bgColor="#FFFFFF"></u-loadmore></view> <view class="load-more-view" v-show="(current == 1 && !loading) || current > 1"><u-loadmore :status="loadStatus" bgColor="#FFFFFF"></u-loadmore></view>
</view> </view>
<NoData v-else-if="!loading" text="当前暂无提现记录" customStyle="margin-top: 0rpx;" imageName="bill/wuqiankuanxinxi@3x.png" /> <NoData v-else-if="!loading" text="当前暂无提现记录" customStyle="margin-top: 0rpx;" imageName="bill/wuqiankuanxinxi@3x.png" />
...@@ -52,12 +52,15 @@ ...@@ -52,12 +52,15 @@
</view> </view>
</view> </view>
<u-toast ref="uToast" /> <u-toast ref="uToast" />
<PopInput title="驳回理由" type="text" sureText="我知道了" :content="rejectText" :showCancel="false" :visible.sync="visible">
</PopInput>
</view> </view>
</template> </template>
<script> <script>
import NoData from '@/components/no-data'; import NoData from '@/components/no-data';
import NavbarNormal from '@/components/navbar-normal'; import NavbarNormal from '@/components/navbar-normal';
import PopInput from '@/components/pop-input-view';
import WithdrawItem from './components/withdraw-item'; import WithdrawItem from './components/withdraw-item';
import BillCount from './components/bill-count.vue'; import BillCount from './components/bill-count.vue';
import { baseUrl, mineBaseUrl } from '@/utils/config.js'; import { baseUrl, mineBaseUrl } from '@/utils/config.js';
...@@ -69,11 +72,14 @@ export default { ...@@ -69,11 +72,14 @@ export default {
components: { components: {
NoData, NoData,
NavbarNormal, NavbarNormal,
PopInput,
WithdrawItem, WithdrawItem,
BillCount BillCount
}, },
data() { data() {
return { return {
visible:false,
rejectText:"",
bonusCountOptions, bonusCountOptions,
bonusEnterOptions, bonusEnterOptions,
backgroundImage: mineBaseUrl + 'jiangjinbeijing@3x.png', backgroundImage: mineBaseUrl + 'jiangjinbeijing@3x.png',
...@@ -118,6 +124,10 @@ export default { ...@@ -118,6 +124,10 @@ export default {
} }
}, },
methods: { methods: {
invalidClick(content){
this.rejectText=content
this.visible=true
},
cellClick(){}, cellClick(){},
async getList() { async getList() {
if (this.current == 1) { if (this.current == 1) {
......
...@@ -38,7 +38,14 @@ ...@@ -38,7 +38,14 @@
<NoData v-if="noData(index)" text="当前暂无邀请记录" customStyle="margin-top: 0rpx;" imageName="bill/wuqiankuanxinxi@3x.png" /> <NoData v-if="noData(index)" text="当前暂无邀请记录" customStyle="margin-top: 0rpx;" imageName="bill/wuqiankuanxinxi@3x.png" />
<template v-else> <template v-else>
<view class="container" v-if="listData && listData.length"> <view class="container" v-if="listData && listData.length">
<bill-detail v-for="item in listData" :key="item.id" :detail="item" :current="current" @cellClick="cellClick" @invalidClick="invalidClick"></bill-detail> <bill-detail
v-for="item in listData"
:key="item.id"
:detail="item"
:current="current"
@cellClick="cellClick"
@invalidClick="invalidClick"
></bill-detail>
</view> </view>
<view class="loading-view" v-if="!getCurrentPage(index).loaded && !getCurrentPage(index).freshing"><u-loading mode="flower"></u-loading></view> <view class="loading-view" v-if="!getCurrentPage(index).loaded && !getCurrentPage(index).freshing"><u-loading mode="flower"></u-loading></view>
...@@ -68,7 +75,7 @@ import BillCount from './components/bill-count.vue'; ...@@ -68,7 +75,7 @@ import BillCount from './components/bill-count.vue';
import { baseUrl, billBaseUrl } from '@/utils/config.js'; import { baseUrl, billBaseUrl } from '@/utils/config.js';
import { projectBillPages } from '@/utils/options/workpoint/index.js'; import { projectBillPages } from '@/utils/options/workpoint/index.js';
import { inviteRecordTabs } from '@/utils/options/mine/bonus.js'; import { inviteRecordTabs } from '@/utils/options/mine/bonus.js';
import { getInviteLists,getInvitationData } from '@/api/bonus/invite-record.js'; import { getInviteLists, getInvitationData } from '@/api/bonus/invite-record.js';
export default { export default {
components: { components: {
NoData, NoData,
...@@ -78,12 +85,12 @@ export default { ...@@ -78,12 +85,12 @@ export default {
}, },
data() { data() {
return { return {
visible:false, visible: false,
inviteInfo: { inviteInfo: {
total:0, total: 0,
paidCount:0, paidCount: 0,
unpaidCount:0, unpaidCount: 0,
invalidCount:0, invalidCount: 0
}, },
list: { list: {
'0': [ '0': [
...@@ -141,8 +148,8 @@ export default { ...@@ -141,8 +148,8 @@ export default {
uni.$off(this.notification); uni.$off(this.notification);
}, },
methods: { methods: {
invalidClick(){ invalidClick() {
this.visible=true this.visible = true;
}, },
cellClick(item) { cellClick(item) {
// uni.$on(this.notification, res => { // uni.$on(this.notification, res => {
...@@ -162,7 +169,7 @@ export default { ...@@ -162,7 +169,7 @@ export default {
async getInviteInfo() { async getInviteInfo() {
try { try {
let { data } = await getInvitationData(); let { data } = await getInvitationData();
this.inviteInfo=data this.inviteInfo = data;
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
console.log(e); console.log(e);
...@@ -268,9 +275,11 @@ export default { ...@@ -268,9 +275,11 @@ export default {
.search-wrap { .search-wrap {
width: 100%; width: 100%;
height: 156rpx; height: 156rpx;
background: #02a074; // background: #02a074;
border-radius: 12rpx; border-radius: 12rpx;
padding-top: 40rpx; padding-top: 40rpx;
overflow: hidden;
background: url(https://static-book.kaying.cc/icon/mine/jianbianbeijing%402x.png) no-repeat 100% 100%;
} }
.tabs-box { .tabs-box {
margin: 32upx 0; margin: 32upx 0;
...@@ -301,7 +310,7 @@ export default { ...@@ -301,7 +310,7 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.invalid-popup{ .invalid-popup {
text-align: center; text-align: center;
font-size: 32rpx; font-size: 32rpx;
line-height: 48rpx; line-height: 48rpx;
......
...@@ -241,8 +241,8 @@ export default { ...@@ -241,8 +241,8 @@ export default {
const detail = e.detail || {}; const detail = e.detail || {};
let params = { let params = {
encryptedData: detail.encryptedData, encryptedData: detail.encryptedData,
iv: detail.iv iv: detail.iv,
// code: detail.code, mobileCode: detail.code,
}; };
this.$store this.$store
.dispatch('Auto_login', params) .dispatch('Auto_login', params)
......
...@@ -171,6 +171,7 @@ export default { ...@@ -171,6 +171,7 @@ export default {
margin-right: 12rpx; margin-right: 12rpx;
overflow: hidden; overflow: hidden;
border: 2rpx solid #ffffff; border: 2rpx solid #ffffff;
background: #f6f7fa;
} }
} }
......
...@@ -176,7 +176,6 @@ const actions = { ...@@ -176,7 +176,6 @@ const actions = {
loginChannel: loginChannel, loginChannel: loginChannel,
code: code, code: code,
} }
// return false
if (params) { if (params) {
info = { info = {
...info, ...info,
...@@ -194,7 +193,6 @@ const actions = { ...@@ -194,7 +193,6 @@ const actions = {
refreshToken refreshToken
} = res.data } = res.data
let timestamp=res.timestamp let timestamp=res.timestamp
console.log("timestamp===",new Date(res.timestamp))
setToken(token) setToken(token)
setRefreshToken(refreshToken) setRefreshToken(refreshToken)
dispatch("Set_auto_login",true) dispatch("Set_auto_login",true)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment