|
|
|
@ -1,26 +1,34 @@ |
|
|
|
|
<template> |
|
|
|
|
<view class="page"> |
|
|
|
|
<view class="info"> |
|
|
|
|
<view v-if="incomeDetail !== ''" class="page"> |
|
|
|
|
<view v-if="!incomeDetail.id" style="text-align: center;padding-top: 40vh;">暂无数据</view> |
|
|
|
|
<view v-if="incomeDetail.type === 2" class="info" style="padding: 10px 0 10px 10px;position: relative;"> |
|
|
|
|
<view style="padding-bottom: 5px;">付款人:{{incomeDetail.buyer.nickname}}</view> |
|
|
|
|
<view style="padding-bottom: 5px;">联系电话:{{incomeDetail.buyer.mobile}}</view> |
|
|
|
|
<view>付款金额:{{incomeDetail.amount}}元</view> |
|
|
|
|
<view v-if="incomeDetail.pay_voucher" class="saveBtn other-btn" style="background-color: orange;border: 0;" @click="lookPic">支付凭证</view> |
|
|
|
|
<view class="saveBtn other-btn" style="top: 50px !important" @click="sureIncome">确认收款</view> |
|
|
|
|
</view> |
|
|
|
|
<view v-if="incomeDetail.type === 1" class="info"> |
|
|
|
|
<view class="title">测试优先公司</view> |
|
|
|
|
<view>收款人:xxx 付款金额:xxx元</view> |
|
|
|
|
<view>收款人:{{incomeDetail.seller.nickname}} <text style="padding-left: 30px;">付款金额:{{incomeDetail.amount}}元</text></view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<view class="tabs"> |
|
|
|
|
<view v-if="incomeDetail.type === 1" class="tabs"> |
|
|
|
|
<view :class="activeIndex==item.id?'tabsItem active':'tabsItem'" @click="getPay(item)" v-for="item in list4" :key="item.id"> |
|
|
|
|
{{item.name}} |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
<view > |
|
|
|
|
<view v-if="incomeDetail.type === 1" > |
|
|
|
|
<view class="yhk" v-show="activeIndex==1"> |
|
|
|
|
<view class="list-input"> |
|
|
|
|
<view class="title"> |
|
|
|
|
<text>银行卡姓名</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="content"> |
|
|
|
|
<text>{{yhk.bank_realname}}</text> |
|
|
|
|
<text>{{incomeDetail.seller.bank_realname}}</text> |
|
|
|
|
<image |
|
|
|
|
v-clipboard:copy="yhk.bank_realname" |
|
|
|
|
v-clipboard:copy="incomeDetail.seller.bank_realname" |
|
|
|
|
v-clipboard:success="(type) => onCopyResult('success')" |
|
|
|
|
v-clipboard:error="(type) => onCopyResult('error')" |
|
|
|
|
src="../../static/image/copy.png" mode="widthFix"></image> |
|
|
|
@ -31,9 +39,9 @@ |
|
|
|
|
<text>卡号</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="content" > |
|
|
|
|
<text>{{yhk.bank_no}}</text> |
|
|
|
|
<text>{{incomeDetail.seller.bank_no}}</text> |
|
|
|
|
<image |
|
|
|
|
v-clipboard:copy="yhk.bank_no" |
|
|
|
|
v-clipboard:copy="incomeDetail.seller.bank_no" |
|
|
|
|
v-clipboard:success="(type) => onCopyResult('success')" |
|
|
|
|
v-clipboard:error="(type) => onCopyResult('error')" |
|
|
|
|
src="../../static/image/copy.png" mode="widthFix"></image> |
|
|
|
@ -44,9 +52,9 @@ |
|
|
|
|
<text>开户行</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="content"> |
|
|
|
|
<text>{{yhk.bank_address}}</text> |
|
|
|
|
<text>{{incomeDetail.seller.bank_address}}</text> |
|
|
|
|
<image |
|
|
|
|
v-clipboard:copy="yhk.bank_address" |
|
|
|
|
v-clipboard:copy="incomeDetail.seller.bank_address" |
|
|
|
|
v-clipboard:success="(type) => onCopyResult('success')" |
|
|
|
|
v-clipboard:error="(type) => onCopyResult('error')" |
|
|
|
|
src="../../static/image/copy.png" mode="widthFix"></image> |
|
|
|
@ -57,9 +65,9 @@ |
|
|
|
|
<text>支行</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="content"> |
|
|
|
|
<text>{{yhk.bank_address}}</text> |
|
|
|
|
<text>{{incomeDetail.seller.bank_sub_address}}</text> |
|
|
|
|
<image |
|
|
|
|
v-clipboard:copy="yhk.bank_address" |
|
|
|
|
v-clipboard:copy="incomeDetail.seller.bank_sub_address" |
|
|
|
|
v-clipboard:success="(type) => onCopyResult('success')" |
|
|
|
|
v-clipboard:error="(type) => onCopyResult('error')" |
|
|
|
|
src="../../static/image/copy.png" mode="widthFix"></image> |
|
|
|
@ -67,6 +75,13 @@ |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
<view v-show="activeIndex!=1" class="ping-zheng"> |
|
|
|
|
<image v-show="activeIndex==2" style="width: 60%;height: 110px;" :src="incomeDetail.buyer.alipay_image||''" mode="aspectFit" ></image> |
|
|
|
|
<image v-show="activeIndex==3" style="width: 60%;height: 110px;" :src="incomeDetail.buyer.wechat_image||''" mode="aspectFit" ></image> |
|
|
|
|
|
|
|
|
|
<view>收款码</view> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
<view class="ping-zheng"> |
|
|
|
|
<u-upload |
|
|
|
|
:fileList="finishImageList" |
|
|
|
@ -85,7 +100,7 @@ |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="saveBtn">提交</view> |
|
|
|
|
<view v-if="incomeDetail.type === 1" class="saveBtn" @click="submit">提交</view> |
|
|
|
|
<u-popup :show="show" mode="bottom" @close="close" round="10" > |
|
|
|
|
<view style="padding:24rpx;max-height:calc(60vh);overflow: auto;"> |
|
|
|
|
<u-parse :content="content" style="margin-top:45px;"></u-parse> |
|
|
|
@ -97,7 +112,7 @@ |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import {getToken} from '@/common/auth.js' |
|
|
|
|
import {orderDetail,privacyPolicy} from '@/common/api.js' |
|
|
|
|
import {incomeDetail,privacyPolicy,submitPingzheng,confirmPay} from '@/common/api.js' |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
@ -126,15 +141,38 @@ |
|
|
|
|
}, |
|
|
|
|
pingzhengUrl:'', |
|
|
|
|
wxurl:'', |
|
|
|
|
incomeDetail: '', |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
onLoad(option) { |
|
|
|
|
this.num = option.num; |
|
|
|
|
this.id = option.id; |
|
|
|
|
onShow() { |
|
|
|
|
this.getOrderDetails() |
|
|
|
|
this.getText() |
|
|
|
|
}, |
|
|
|
|
methods:{ |
|
|
|
|
submit(){ |
|
|
|
|
if(this.finishImageList.length === 0){ |
|
|
|
|
this.$refs.uToast.show({ |
|
|
|
|
message:'请上传支付凭证' |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
submitPingzheng({ |
|
|
|
|
id: this.incomeDetail.id, |
|
|
|
|
pay_voucher: this.finishImageList[0].url |
|
|
|
|
}).then(res => { |
|
|
|
|
console.log(res,'res') |
|
|
|
|
if(res.code === 1){ |
|
|
|
|
this.$refs.uToast.show({ |
|
|
|
|
message:'已上传' |
|
|
|
|
}) |
|
|
|
|
const tem = setTimeout(() => { |
|
|
|
|
uni.navigateBack({ |
|
|
|
|
delta:1 |
|
|
|
|
}) |
|
|
|
|
clearTimeout(tem) |
|
|
|
|
},1000) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
uploadPingzheng(){ |
|
|
|
|
this.finishImageList = [] |
|
|
|
|
this.$refs.upload.chooseFile() |
|
|
|
@ -153,13 +191,13 @@ |
|
|
|
|
}) |
|
|
|
|
for (let i = 0; i < lists.length; i++) { |
|
|
|
|
const result = await this.uploadFilePromise(lists[i].url) |
|
|
|
|
this.avatarUrl = JSON.parse(result).data.fullurl; |
|
|
|
|
this.avatarUrl_short = JSON.parse(result).data.url; |
|
|
|
|
updateUserInfo({avatar:this.avatarUrl}).then(res=>{ |
|
|
|
|
this.$refs.uToast.show({ |
|
|
|
|
message:'修改头像成功' |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
// this.avatarUrl = JSON.parse(result).data.fullurl; |
|
|
|
|
// this.avatarUrl_short = JSON.parse(result).data.url; |
|
|
|
|
// updateUserInfo({avatar:this.avatarUrl}).then(res=>{ |
|
|
|
|
// this.$refs.uToast.show({ |
|
|
|
|
// message:'修改头像成功' |
|
|
|
|
// }) |
|
|
|
|
// }) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
@ -200,10 +238,27 @@ |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
lookPic(imgArr){ |
|
|
|
|
sureIncome(){ |
|
|
|
|
confirmPay({ |
|
|
|
|
id: this.incomeDetail.id, |
|
|
|
|
}).then(res => { |
|
|
|
|
if(res.code === 1){ |
|
|
|
|
this.$refs.uToast.show({ |
|
|
|
|
message:'确认收款' |
|
|
|
|
}) |
|
|
|
|
const tem = setTimeout(() => { |
|
|
|
|
uni.navigateBack({ |
|
|
|
|
delta:1 |
|
|
|
|
}) |
|
|
|
|
clearTimeout(tem) |
|
|
|
|
},1000) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
lookPic(){ |
|
|
|
|
uni.previewImage({ |
|
|
|
|
// current: imgArr[indez], |
|
|
|
|
urls: imgArr, |
|
|
|
|
urls: [this.incomeDetail.pay_voucher], |
|
|
|
|
success: (res) => { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
@ -225,12 +280,16 @@ |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getOrderDetails(){ |
|
|
|
|
orderDetail({id:this.id,custom: { auth: true }}).then(res=>{ |
|
|
|
|
Object.keys(this.yhk).forEach(item=>{ |
|
|
|
|
this.yhk[item] = res.data.seller[item] |
|
|
|
|
}) |
|
|
|
|
this.pingzhengUrl = res.data.seller.alipay_image |
|
|
|
|
this.wxurl = res.data.seller.wechat_image |
|
|
|
|
incomeDetail({custom: { auth: true }}).then(res=>{ |
|
|
|
|
console.log(res, 'res'); |
|
|
|
|
if(res.data.length > 0){ |
|
|
|
|
this.incomeDetail = res.data[0] |
|
|
|
|
if(this.incomeDetail.pay_voucher){ |
|
|
|
|
this.finishImageList = [{url:this.incomeDetail.pay_voucher,path:this.incomeDetail.pay_voucher}] |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
this.incomeDetail = {} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
@ -255,7 +314,7 @@ |
|
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
|
.info{ |
|
|
|
|
padding: 10px 0 20px 20px; |
|
|
|
|
padding: 10px 0 20px 10px; |
|
|
|
|
background: #fff; |
|
|
|
|
.title{ |
|
|
|
|
text-align: center; |
|
|
|
@ -417,4 +476,15 @@ |
|
|
|
|
color: #999; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.other-btn{ |
|
|
|
|
width: 75px !important; |
|
|
|
|
height: 30px !important; |
|
|
|
|
font-size: 13px !important; |
|
|
|
|
line-height: 30px !important; |
|
|
|
|
position: absolute !important; |
|
|
|
|
right: 10px; |
|
|
|
|
top: 10px !important; |
|
|
|
|
margin-top: 0px !important; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|