|
|
@ -1,26 +1,34 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<view class="page"> |
|
|
|
<view v-if="incomeDetail !== ''" class="page"> |
|
|
|
<view class="info"> |
|
|
|
<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 class="title">测试优先公司</view> |
|
|
|
<view>收款人:xxx 付款金额:xxx元</view> |
|
|
|
<view>收款人:{{incomeDetail.seller.nickname}} <text style="padding-left: 30px;">付款金额:{{incomeDetail.amount}}元</text></view> |
|
|
|
</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"> |
|
|
|
<view :class="activeIndex==item.id?'tabsItem active':'tabsItem'" @click="getPay(item)" v-for="item in list4" :key="item.id"> |
|
|
|
{{item.name}} |
|
|
|
{{item.name}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view > |
|
|
|
<view v-if="incomeDetail.type === 1" > |
|
|
|
<view class="yhk" v-show="activeIndex==1"> |
|
|
|
<view class="yhk" v-show="activeIndex==1"> |
|
|
|
<view class="list-input"> |
|
|
|
<view class="list-input"> |
|
|
|
<view class="title"> |
|
|
|
<view class="title"> |
|
|
|
<text>银行卡姓名</text> |
|
|
|
<text>银行卡姓名</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="content"> |
|
|
|
<view class="content"> |
|
|
|
<text>{{yhk.bank_realname}}</text> |
|
|
|
<text>{{incomeDetail.seller.bank_realname}}</text> |
|
|
|
<image |
|
|
|
<image |
|
|
|
v-clipboard:copy="yhk.bank_realname" |
|
|
|
v-clipboard:copy="incomeDetail.seller.bank_realname" |
|
|
|
v-clipboard:success="(type) => onCopyResult('success')" |
|
|
|
v-clipboard:success="(type) => onCopyResult('success')" |
|
|
|
v-clipboard:error="(type) => onCopyResult('error')" |
|
|
|
v-clipboard:error="(type) => onCopyResult('error')" |
|
|
|
src="../../static/image/copy.png" mode="widthFix"></image> |
|
|
|
src="../../static/image/copy.png" mode="widthFix"></image> |
|
|
@ -31,9 +39,9 @@ |
|
|
|
<text>卡号</text> |
|
|
|
<text>卡号</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="content" > |
|
|
|
<view class="content" > |
|
|
|
<text>{{yhk.bank_no}}</text> |
|
|
|
<text>{{incomeDetail.seller.bank_no}}</text> |
|
|
|
<image |
|
|
|
<image |
|
|
|
v-clipboard:copy="yhk.bank_no" |
|
|
|
v-clipboard:copy="incomeDetail.seller.bank_no" |
|
|
|
v-clipboard:success="(type) => onCopyResult('success')" |
|
|
|
v-clipboard:success="(type) => onCopyResult('success')" |
|
|
|
v-clipboard:error="(type) => onCopyResult('error')" |
|
|
|
v-clipboard:error="(type) => onCopyResult('error')" |
|
|
|
src="../../static/image/copy.png" mode="widthFix"></image> |
|
|
|
src="../../static/image/copy.png" mode="widthFix"></image> |
|
|
@ -44,9 +52,9 @@ |
|
|
|
<text>开户行</text> |
|
|
|
<text>开户行</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="content"> |
|
|
|
<view class="content"> |
|
|
|
<text>{{yhk.bank_address}}</text> |
|
|
|
<text>{{incomeDetail.seller.bank_address}}</text> |
|
|
|
<image |
|
|
|
<image |
|
|
|
v-clipboard:copy="yhk.bank_address" |
|
|
|
v-clipboard:copy="incomeDetail.seller.bank_address" |
|
|
|
v-clipboard:success="(type) => onCopyResult('success')" |
|
|
|
v-clipboard:success="(type) => onCopyResult('success')" |
|
|
|
v-clipboard:error="(type) => onCopyResult('error')" |
|
|
|
v-clipboard:error="(type) => onCopyResult('error')" |
|
|
|
src="../../static/image/copy.png" mode="widthFix"></image> |
|
|
|
src="../../static/image/copy.png" mode="widthFix"></image> |
|
|
@ -57,15 +65,22 @@ |
|
|
|
<text>支行</text> |
|
|
|
<text>支行</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="content"> |
|
|
|
<view class="content"> |
|
|
|
<text>{{yhk.bank_address}}</text> |
|
|
|
<text>{{incomeDetail.seller.bank_sub_address}}</text> |
|
|
|
<image |
|
|
|
<image |
|
|
|
v-clipboard:copy="yhk.bank_address" |
|
|
|
v-clipboard:copy="incomeDetail.seller.bank_sub_address" |
|
|
|
v-clipboard:success="(type) => onCopyResult('success')" |
|
|
|
v-clipboard:success="(type) => onCopyResult('success')" |
|
|
|
v-clipboard:error="(type) => onCopyResult('error')" |
|
|
|
v-clipboard:error="(type) => onCopyResult('error')" |
|
|
|
src="../../static/image/copy.png" mode="widthFix"></image> |
|
|
|
src="../../static/image/copy.png" mode="widthFix"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</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> |
|
|
|
<view class="ping-zheng"> |
|
|
|
<view class="ping-zheng"> |
|
|
|
<u-upload |
|
|
|
<u-upload |
|
|
@ -85,7 +100,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</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" > |
|
|
|
<u-popup :show="show" mode="bottom" @close="close" round="10" > |
|
|
|
<view style="padding:24rpx;max-height:calc(60vh);overflow: auto;"> |
|
|
|
<view style="padding:24rpx;max-height:calc(60vh);overflow: auto;"> |
|
|
|
<u-parse :content="content" style="margin-top:45px;"></u-parse> |
|
|
|
<u-parse :content="content" style="margin-top:45px;"></u-parse> |
|
|
@ -97,7 +112,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import {getToken} from '@/common/auth.js' |
|
|
|
import {getToken} from '@/common/auth.js' |
|
|
|
import {orderDetail,privacyPolicy} from '@/common/api.js' |
|
|
|
import {incomeDetail,privacyPolicy,submitPingzheng,confirmPay} from '@/common/api.js' |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
@ -126,15 +141,38 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
pingzhengUrl:'', |
|
|
|
pingzhengUrl:'', |
|
|
|
wxurl:'', |
|
|
|
wxurl:'', |
|
|
|
|
|
|
|
incomeDetail: '', |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad(option) { |
|
|
|
onShow() { |
|
|
|
this.num = option.num; |
|
|
|
|
|
|
|
this.id = option.id; |
|
|
|
|
|
|
|
this.getOrderDetails() |
|
|
|
this.getOrderDetails() |
|
|
|
this.getText() |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
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(){ |
|
|
|
uploadPingzheng(){ |
|
|
|
this.finishImageList = [] |
|
|
|
this.finishImageList = [] |
|
|
|
this.$refs.upload.chooseFile() |
|
|
|
this.$refs.upload.chooseFile() |
|
|
@ -153,13 +191,13 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
for (let i = 0; i < lists.length; i++) { |
|
|
|
for (let i = 0; i < lists.length; i++) { |
|
|
|
const result = await this.uploadFilePromise(lists[i].url) |
|
|
|
const result = await this.uploadFilePromise(lists[i].url) |
|
|
|
this.avatarUrl = JSON.parse(result).data.fullurl; |
|
|
|
// this.avatarUrl = JSON.parse(result).data.fullurl; |
|
|
|
this.avatarUrl_short = JSON.parse(result).data.url; |
|
|
|
// this.avatarUrl_short = JSON.parse(result).data.url; |
|
|
|
updateUserInfo({avatar:this.avatarUrl}).then(res=>{ |
|
|
|
// updateUserInfo({avatar:this.avatarUrl}).then(res=>{ |
|
|
|
this.$refs.uToast.show({ |
|
|
|
// this.$refs.uToast.show({ |
|
|
|
message:'修改头像成功' |
|
|
|
// 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({ |
|
|
|
uni.previewImage({ |
|
|
|
// current: imgArr[indez], |
|
|
|
urls: [this.incomeDetail.pay_voucher], |
|
|
|
urls: imgArr, |
|
|
|
|
|
|
|
success: (res) => { |
|
|
|
success: (res) => { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
@ -225,12 +280,16 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getOrderDetails(){ |
|
|
|
getOrderDetails(){ |
|
|
|
orderDetail({id:this.id,custom: { auth: true }}).then(res=>{ |
|
|
|
incomeDetail({custom: { auth: true }}).then(res=>{ |
|
|
|
Object.keys(this.yhk).forEach(item=>{ |
|
|
|
console.log(res, 'res'); |
|
|
|
this.yhk[item] = res.data.seller[item] |
|
|
|
if(res.data.length > 0){ |
|
|
|
}) |
|
|
|
this.incomeDetail = res.data[0] |
|
|
|
this.pingzhengUrl = res.data.seller.alipay_image |
|
|
|
if(this.incomeDetail.pay_voucher){ |
|
|
|
this.wxurl = res.data.seller.wechat_image |
|
|
|
this.finishImageList = [{url:this.incomeDetail.pay_voucher,path:this.incomeDetail.pay_voucher}] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
this.incomeDetail = {} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
@ -255,7 +314,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
<style scoped lang="scss"> |
|
|
|
.info{ |
|
|
|
.info{ |
|
|
|
padding: 10px 0 20px 20px; |
|
|
|
padding: 10px 0 20px 10px; |
|
|
|
background: #fff; |
|
|
|
background: #fff; |
|
|
|
.title{ |
|
|
|
.title{ |
|
|
|
text-align: center; |
|
|
|
text-align: center; |
|
|
@ -417,4 +476,15 @@ |
|
|
|
color: #999; |
|
|
|
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> |
|
|
|
</style> |
|
|
|