invoiceForm.vue
1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<template>
<view>
<uni-notice-bar backgroundColor="#f2fded" color="#51c24e" single showIcon text="已发送电子邮箱"></uni-notice-bar>
<uni-list>
<uni-list-item title="发票预览" clickable showArrow @click="previewCell" />
</uni-list>
<uni-list>
<view class="recordCon uni-list-cell-pd">
<text class="color-black">发票信息</text>
</view>
<view class="recordCon uni-list-cell-pd">
<text>电子邮箱:{{invoiceInfo.email}}</text>
</view>
</uni-list>
<view class="bg-white border-bottom-1 pos-rel" @click="recordClick">
<view class="recordCon uni-list-cell-pd">
<text class="color-black">发票包含内容</text>
</view>
<view class="recordCon uni-list-cell-pd">
<text>该发票包含{{invoiceInfo.number}}笔交易</text>
</view>
<view class="uni-icon pos-abs icon-arrowright uni-icon-arrowright">
</view>
</view>
<view class="margin-top-30">
<button type="primary" class="tel-btn">重发邮件</button>
<button class="tel-btn" v-if="tel.length>0" type="primary" plain="true" @click="call">客服电话:{{tel}}</button>
</view>
</view>
</template>
<script>
export default {
data() {
return {
invoiceInfo: {
email: '123456@qq.com',
number: 0
},
tel: '400-6345688'
}
},
methods: {
previewCell() {
uni.navigateTo({
url: '../invoicePreview/invoicePreview'
});
},
recordClick() {
uni.navigateTo({
url: '../elecRecord/elecRecord'
});
},
}
}
</script>
<style lang="scss">
.icon-arrowright {
color: #bbb;
font-size: 20px;
right: 2upx;
top: 60upx;
}
.tel-btn {
width: 90%;
margin: 30upx auto;
}
</style>