Commit 2966ded8 authored by youjie's avatar youjie

上传发票

parent 9680daf5
...@@ -29,10 +29,12 @@ ...@@ -29,10 +29,12 @@
<view class="SetListCenTNumL"> <view class="SetListCenTNumL">
¥<text>{{ Details.TotalClosePrice.toFixed(2) }}</text> ¥<text>{{ Details.TotalClosePrice.toFixed(2) }}</text>
</view> </view>
<view class="SetListCenTImgR" v-if="Details.ContractStatus==3&& <!--
v-if="Details.ContractStatus==3&&
Details.Status==2&& Details.Status==2&&
Details.TotalClosePrice>0" Details.TotalClosePrice>0"-->
@click="Applyfor"> <view class="SetListCenTImgR"
@click="showPreviwe=true">
<view> <view>
立即提现 立即提现
</view> </view>
...@@ -95,6 +97,28 @@ ...@@ -95,6 +97,28 @@
</view> </view>
<u-popup v-model="showPreviwe" mode="bottom"
border-radius="50" length="50%"
:safe-area-inset-bottom="true">
<view class="signAconForm column">
<view class="signAconBox col">
<view class="signAconTitle">发票</view>
<view class="signAconImg row items-center"
:class="[InvoiceUrl==''?'signAconImgYYZZ':'']">
<view v-if="InvoiceUrl==''" class="signAconImgBut">上传发票</view>
<uploadImg class="signAconUp"
type="1"
:img="InvoiceUrl"
@onSuccess="(data)=>{onSuccess(data)}"
></uploadImg>
</view>
</view>
<view class="signAconNext col"
:class="[!loading&&InvoiceUrl?'active':'']" @click="Applyfor()">
提交
</view>
</view>
</u-popup>
<u-picker mode="time" v-model="showTime" :defaultTime="times" :params="params" @confirm = 'confirm'></u-picker> <u-picker mode="time" v-model="showTime" :defaultTime="times" :params="params" @confirm = 'confirm'></u-picker>
<auth v-if="showAuth&&is_show_auth==1" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth> <auth v-if="showAuth&&is_show_auth==1" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
</view> </view>
...@@ -142,6 +166,9 @@ export default { ...@@ -142,6 +166,9 @@ export default {
CustomerOrderList: [], CustomerOrderList: [],
UserInformation: null, UserInformation: null,
total: 0, total: 0,
showPreviwe: false,
InvoiceUrl: '',
loading: false,
} }
}, },
watch:{ watch:{
...@@ -194,6 +221,9 @@ export default { ...@@ -194,6 +221,9 @@ export default {
this.getSignDetails() this.getSignDetails()
}, },
methods: { methods: {
onSuccess(data) {
this.InvoiceUrl = data.BusinessLicense?data.BusinessLicense:'';
},
goDetails(item){ goDetails(item){
return return
let url = null let url = null
...@@ -221,13 +251,21 @@ export default { ...@@ -221,13 +251,21 @@ export default {
icon:'none', icon:'none',
duration: 2000, duration: 2000,
}) })
if(this.InvoiceUrl=="") return uni.showToast({
title: '请上传发票',
icon:'none',
duration: 2000,
})
if(this.loading) return
uni.showLoading({ uni.showLoading({
title: '提交中...', title: '提交中...',
mask: true mask: true
}) })
this.loading =true
this.apipost('app_customer_Update2025ClearingAlliance', this.apipost('app_customer_Update2025ClearingAlliance',
{ {
ContractId: this.ContractId ContractId: this.ContractId,
InvoiceUrl: this.InvoiceUrl,
}, },
(res) => { (res) => {
if(res.resultCode == 1){ if(res.resultCode == 1){
...@@ -236,6 +274,7 @@ export default { ...@@ -236,6 +274,7 @@ export default {
icon: 'success', icon: 'success',
duration: 2000, duration: 2000,
}) })
this.loading = false
uni.navigateTo({ uni.navigateTo({
url: `/pages/bigredrnvelope/PaymentProgress?type=3&ContractId=${this.ContractId}` url: `/pages/bigredrnvelope/PaymentProgress?type=3&ContractId=${this.ContractId}`
}) })
...@@ -247,6 +286,7 @@ export default { ...@@ -247,6 +286,7 @@ export default {
icon:'none', icon:'none',
duration: 2000, duration: 2000,
}) })
this.loading = false
uni.hideLoading() uni.hideLoading()
} }
); );
...@@ -339,6 +379,62 @@ export default { ...@@ -339,6 +379,62 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import url("@/asset/css/flex.css"); @import url("@/asset/css/flex.css");
.signAconBox{
background: #fff;
border-radius: 20rpx;
padding: 50rpx 43rpx 43rpx 43rpx;
margin: 0 30rpx;
}
.signAconTitle{
font-size: 38rpx;
font-weight: 800;
margin-bottom: 40rpx;
}
.signAconText{
font-size: 28rpx;
color: #7686A3;
font-weight: 500;
margin-top: 10rpx;
margin-bottom: 40rpx;
}
.signAconImgBut{
border-radius: 50rpx;
border: 1rpx solid #0399FF;
color: #0399FF;
background: #F3F5F9;
font-size: 32rpx;
font-weight: 800;
margin: auto;
line-height: 80rpx;
padding: 0 31rpx;
}
.signAconImg{
width: 100%;
height: 379rpx;
border-radius:20rpx;
position: relative;
overflow: hidden;
margin-bottom: 20rpx;
background: #F3F5F9;
}
.signAconImg.signAconImgYYZZ{
background: url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638796480136781668.png')no-repeat;
background-size: 100% 100%;
}
.signAconNext{
border-radius: 10rpx;
background: #AAD7F7;
margin: 0 30rpx;
line-height: 85rpx;
text-align: center;
color: #fff;
margin-top: 65rpx;
margin-bottom: 100rpx;
}
.signAconNext.active{
background: #0399FF;
border: 2rpx solid #0399FF;
}
.SetListBox{ .SetListBox{
height: 100vh; height: 100vh;
overflow: hidden; overflow: hidden;
......
...@@ -578,7 +578,7 @@ export default { ...@@ -578,7 +578,7 @@ export default {
}) })
return return
} }
if(this.msg.StepNum==4) return if(this.msg.StepNum==4) return this.goWebUrl(1)
const oldData = this.newMsg(type) const oldData = this.newMsg(type)
// console.log(oldData,'--------',type,!oldData) // console.log(oldData,'--------',type,!oldData)
// return // return
......
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