|
|
|
<template>
|
|
|
|
<view class="invoice">
|
|
|
|
<view class="invoice-goods">
|
|
|
|
<view class="a">
|
|
|
|
可提现金额
|
|
|
|
</view>
|
|
|
|
<view class="b">
|
|
|
|
¥<text>1889.00</text>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
<view class="invoice-company">
|
|
|
|
<view class="a">
|
|
|
|
<view class="l">提现金</view>
|
|
|
|
<view class="r">
|
|
|
|
<view class="p">¥<input type="number" placeholder="请输入金额" /></view>
|
|
|
|
<view class="w">全部提现</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="b">
|
|
|
|
<view class="item">
|
|
|
|
<view class="l">姓名:</view>
|
|
|
|
<view class="r">
|
|
|
|
<input type="text" placeholder="请输入姓名" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="item">
|
|
|
|
<view class="l">身份证号:</view>
|
|
|
|
<view class="r">
|
|
|
|
<input type="text" placeholder="请输入身份证号" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="item">
|
|
|
|
<view class="l">银行卡号:</view>
|
|
|
|
<view class="r">
|
|
|
|
<input type="number" placeholder="请输入银行卡号" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="item">
|
|
|
|
<view class="l">银行预留手机号:</view>
|
|
|
|
<view class="r">
|
|
|
|
<input type="number" placeholder="请输入银行预留手机号" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="item">
|
|
|
|
<view class="l">验证码:</view>
|
|
|
|
<view class="r">
|
|
|
|
<input type="number" placeholder="请输入验证码" />
|
|
|
|
<view class="code">获取验证码</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="invoice-info">
|
|
|
|
<view class="b">
|
|
|
|
<view class="item">
|
|
|
|
<view class="l">是否开发票:</view>
|
|
|
|
<view class="r">
|
|
|
|
<view class="lis" @click="toggleItem(1)">
|
|
|
|
<image v-if="toggleIndex == 1" src="@/static/invoice/select-on.png"></image>
|
|
|
|
<image v-else src="@/static/invoice/select.png"></image>
|
|
|
|
是
|
|
|
|
</view>
|
|
|
|
<view class="lis" @click="toggleItem(2)">
|
|
|
|
<image v-if="toggleIndex == 2" src="@/static/invoice/select-on.png"></image>
|
|
|
|
<image v-else src="@/static/invoice/select.png"></image>
|
|
|
|
否
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="items" v-if="toggleIndex == 2">
|
|
|
|
您当前未选择开票,平台将收取20%的手续费
|
|
|
|
</view>
|
|
|
|
<template v-if="toggleIndex == 1">
|
|
|
|
<view class="item">
|
|
|
|
<view class="l">发票类型:</view>
|
|
|
|
<view class="r">
|
|
|
|
<view class="li" :class="tabIndex == 1?'li-on':''" @click="tabItem(1)">个人</view>
|
|
|
|
<view class="li" :class="tabIndex == 2?'li-on':''" @click="tabItem(2)">单位</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="item" v-if="tabIndex == 1">
|
|
|
|
<view class="l">发票抬头:</view>
|
|
|
|
<view class="r">
|
|
|
|
<input type="text" placeholder="请输入个人姓名" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="item" v-if="tabIndex == 2">
|
|
|
|
<view class="l">发票抬头:</view>
|
|
|
|
<view class="r">
|
|
|
|
<input type="text" v-model="invoicList[index1].header" placeholder="请输入单位名称" />
|
|
|
|
<picker :value="index1" :range="invoicList" :range-key="'header'" mode="selector" @change="bindPickerChange1">
|
|
|
|
<view class="tt">更改抬头</view>
|
|
|
|
</picker>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="item" v-if="tabIndex == 2">
|
|
|
|
<view class="l">单位税号:</view>
|
|
|
|
<view class="r">
|
|
|
|
<input type="text" v-model="invoicList[index1].duty_no" placeholder="请输入纳税人识别号" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="invoice-fd">
|
|
|
|
提交
|
|
|
|
</view>
|
|
|
|
<u-modal v-model="show" :content="content" :show-cancel-button="true" :show-title="false"
|
|
|
|
confirm-color="#F55349"></u-modal>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import * as InvoiceApi from '@/api/invoice'
|
|
|
|
import * as wallet from '@/api/wallet'
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
content: "确认您的发票信息无误后再提交",
|
|
|
|
show: false,
|
|
|
|
toggleIndex: 2,
|
|
|
|
index: -1,
|
|
|
|
array: ['普通增值税发票','普通发票'],
|
|
|
|
index1: -1,
|
|
|
|
invoicList:[],
|
|
|
|
tabIndex: 1,
|
|
|
|
obj:{money:'',//提现金额
|
|
|
|
pay_type:'',//提现方式(10微信支付 20支付宝支付 30银行卡支付)
|
|
|
|
alipay_account:'',//支付宝账号(仅提现方式为支付宝)
|
|
|
|
alipay_name:'',//陈旭 支付宝姓名(仅提现方式为支付宝)
|
|
|
|
bank_name:'',//开户姓名(仅提现方式为银行卡)
|
|
|
|
bank_card:'',//银行卡号(仅提现方式为银行卡)
|
|
|
|
bank_account:'',//开户行名称/地址(仅提现方式为银行卡)}
|
|
|
|
};
|
|
|
|
},
|
|
|
|
onLoad() {
|
|
|
|
this.getMyInvoicing()
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
getMyInvoicing() {
|
|
|
|
let app = this;
|
|
|
|
InvoiceApi.myInvoicing()
|
|
|
|
.then(result => {
|
|
|
|
app.invoicList = result.data.list
|
|
|
|
|
|
|
|
})
|
|
|
|
},
|
|
|
|
onClose() {},
|
|
|
|
tabItem(i) {
|
|
|
|
this.tabIndex = i;
|
|
|
|
},
|
|
|
|
toggleItem(i) {
|
|
|
|
this.toggleIndex = i;
|
|
|
|
if(i==1){
|
|
|
|
this.show=true;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
toDetail(i) {
|
|
|
|
uni.navigateTo({
|
|
|
|
url: "/pages/invoice/edit"
|
|
|
|
})
|
|
|
|
},
|
|
|
|
bindPickerChange(e) {
|
|
|
|
this.index = e.detail.value
|
|
|
|
},
|
|
|
|
bindPickerChange1(e) {
|
|
|
|
this.index1 = e.detail.value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.invoice {
|
|
|
|
&-goods {
|
|
|
|
padding: 0 60rpx;
|
|
|
|
overflow: hidden;
|
|
|
|
height: 482rpx;
|
|
|
|
background: #F55349;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
.a {
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #FFFFFF;
|
|
|
|
padding: 30rpx 0;
|
|
|
|
margin-top: 30rpx;
|
|
|
|
}
|
|
|
|
|
|
|
|
.b {
|
|
|
|
font-size: 36rpx;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #FFFFFF;
|
|
|
|
|
|
|
|
text {
|
|
|
|
font-size: 63rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-info {
|
|
|
|
width: 710rpx;
|
|
|
|
margin: 0 auto;
|
|
|
|
margin-top: 20rpx;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
background-color: #fff;
|
|
|
|
top: -230rpx;
|
|
|
|
|
|
|
|
.b {
|
|
|
|
padding: 0 30rpx 0 45rpx;
|
|
|
|
box-sizing: border-box;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.items {
|
|
|
|
padding-top: 20rpx;
|
|
|
|
padding-bottom: 30rpx;
|
|
|
|
font-size: 28rpx;
|
|
|
|
color: #FF3126;
|
|
|
|
}
|
|
|
|
|
|
|
|
.item {
|
|
|
|
padding: 30rpx 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border-top: 1px solid #F3F3F3;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #414141;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
border-top-color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.l {
|
|
|
|
width: 180rpx;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #414141;
|
|
|
|
}
|
|
|
|
|
|
|
|
.r {
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #414141;
|
|
|
|
|
|
|
|
.lis {
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #414141;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
width: 120rpx;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
image {
|
|
|
|
width: 30rpx;
|
|
|
|
height: 30rpx;
|
|
|
|
display: block;
|
|
|
|
margin-right: 10rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.li {
|
|
|
|
width: 150rpx;
|
|
|
|
height: 78rpx;
|
|
|
|
background: #F3F3F3;
|
|
|
|
border-radius: 8rpx;
|
|
|
|
text-align: center;
|
|
|
|
line-height: 78rpx;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #262626;
|
|
|
|
margin-right: 12rpx;
|
|
|
|
|
|
|
|
&-on {
|
|
|
|
background: #FDF4F4;
|
|
|
|
background: url(/static/invoice/select-active.png) center top no-repeat;
|
|
|
|
background-size: contain;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
|
|
|
flex: 1;
|
|
|
|
font-size: 28rpx;
|
|
|
|
}
|
|
|
|
|
|
|
|
picker {
|
|
|
|
flex: 1;
|
|
|
|
|
|
|
|
.tt {
|
|
|
|
width: 180rpx;
|
|
|
|
position: relative;
|
|
|
|
color: #4894FF;
|
|
|
|
text-align: right;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: "";
|
|
|
|
width: 16rpx;
|
|
|
|
height: 16rpx;
|
|
|
|
border-top: 1px solid #4894FF;
|
|
|
|
border-left: 1px solid #4894FF;
|
|
|
|
position: absolute;
|
|
|
|
right: -20rpx;
|
|
|
|
top: 14rpx;
|
|
|
|
z-index: 1;
|
|
|
|
transform: rotate(135deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.lx {
|
|
|
|
width: 100%;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: "";
|
|
|
|
width: 16rpx;
|
|
|
|
height: 16rpx;
|
|
|
|
border-top: 1px solid #B8B8B8;
|
|
|
|
border-left: 1px solid #B8B8B8;
|
|
|
|
position: absolute;
|
|
|
|
right: 20rpx;
|
|
|
|
top: 14rpx;
|
|
|
|
z-index: 1;
|
|
|
|
transform: rotate(135deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-fd {
|
|
|
|
width: 664rpx;
|
|
|
|
height: 104rpx;
|
|
|
|
background: #F55349;
|
|
|
|
border-radius: 8rpx;
|
|
|
|
text-align: center;
|
|
|
|
margin: 0 auto;
|
|
|
|
margin-top: 60rpx;
|
|
|
|
font-size: 32rpx;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #FFFFFF;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-company {
|
|
|
|
width: 710rpx;
|
|
|
|
background: #F55349;
|
|
|
|
border-radius: 8rpx;
|
|
|
|
position: relative;
|
|
|
|
background-color: #fff;
|
|
|
|
top: -230rpx;
|
|
|
|
overflow: hidden;
|
|
|
|
z-index: 1;
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
|
|
.a {
|
|
|
|
padding: 35rpx 50rpx 0;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #FF3126;
|
|
|
|
|
|
|
|
.r {
|
|
|
|
display: flex;
|
|
|
|
align-items: baseline;
|
|
|
|
padding: 30rpx 0;
|
|
|
|
border-bottom: 1px solid #F3F3F3;
|
|
|
|
|
|
|
|
.p {
|
|
|
|
display: flex;
|
|
|
|
align-items: baseline;
|
|
|
|
font-size: 56rpx;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #414141;
|
|
|
|
|
|
|
|
input {
|
|
|
|
flex: 1;
|
|
|
|
font-size: 36rpx;
|
|
|
|
margin-left: 20rpx;
|
|
|
|
color: #212121;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.b {
|
|
|
|
padding: 0 30rpx 0 45rpx;
|
|
|
|
box-sizing: border-box;
|
|
|
|
background-color: #fff;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.item {
|
|
|
|
padding: 30rpx 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border-top: 1px solid #F3F3F3;
|
|
|
|
font-size: 32rpx;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #262626;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
border-top-color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.l {
|
|
|
|
width: 250rpx;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #414141;
|
|
|
|
}
|
|
|
|
|
|
|
|
.r {
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #414141;
|
|
|
|
|
|
|
|
input {
|
|
|
|
font-size: 28rpx;
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.code {
|
|
|
|
color: #F55349;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|