You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.7 KiB
73 lines
1.7 KiB
<template>
|
|
<view>
|
|
<uni-nav-bar shadow title="查看已开发票" left-icon="left" @clickLeft="back" backgroundColor="#000" color="#fff" />
|
|
<view style="padding: 30rpx 0px 0rpx 0px;">
|
|
<view v-if="bool == true">
|
|
<view class="invoiced_box">
|
|
<view class="text-center"><icon type="success" size="120rpx" color="#05c160" /></view>
|
|
<view class="text-center title">提交成功</view>
|
|
<view class="text-center title1">开发票成功后,请留意!</view>
|
|
</view>
|
|
<view style="margin: 140rpx 80rpx 0px 80rpx;font-weight: bold;">
|
|
<button class="button" type="primary" @click="toindex">查看申请</button>
|
|
</view>
|
|
</view>
|
|
<view v-else>
|
|
<view class="text-center" style="padding-top: 100rpx;"><image v-if="img" :src="img" mode="widthFix" style="width: 400rpx;"></image></view>
|
|
<view class="text-center title1" style="color: #878787;">发票已开具,请扫描二维码获取发票!</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import API from '@/common/js/api.js'
|
|
export default {
|
|
data() {
|
|
return {
|
|
bool:false,
|
|
img:""
|
|
}
|
|
},
|
|
onLoad(option) { //option为object类型,会序列化上个页面传递的参数
|
|
this.bool = option.bool === 'true';
|
|
|
|
if(option.id){
|
|
let data = {
|
|
id:option.id
|
|
}
|
|
API.getQrCode(data, res => {
|
|
this.img = res.data.qrCodeImage
|
|
})
|
|
}
|
|
},
|
|
methods: {
|
|
toindex(){
|
|
uni.redirectTo({
|
|
url:'/pages/index/index'
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.invoiced_box{
|
|
padding: 60rpx;
|
|
margin: 0px 30rpx;
|
|
background-color: #fff;
|
|
}
|
|
.text-center{
|
|
text-align: center;
|
|
}
|
|
.title{
|
|
margin-top: 40rpx;
|
|
font-size: 34rpx;
|
|
font-weight: bold;
|
|
}
|
|
.title1{
|
|
margin-top: 40rpx;
|
|
font-size: 32rpx;
|
|
color: #acacac;
|
|
}
|
|
</style>
|
|
|