Commit 28010de091a2c27c843fc2ad3716a35473b936d5
1 parent
48e03f64
add 发票申领 发票填充
Showing
12 changed files
with
1205 additions
and
1 deletions
common/uni.css
| ... | ... | @@ -1744,10 +1744,18 @@ checkbox-group label { |
| 1744 | 1744 | margin-left: 13px; |
| 1745 | 1745 | } |
| 1746 | 1746 | |
| 1747 | +.margin-left-5 { | |
| 1748 | + margin-left: 5px; | |
| 1749 | +} | |
| 1750 | + | |
| 1747 | 1751 | .paddinglr30 { |
| 1748 | 1752 | padding: 0 30px; |
| 1749 | 1753 | } |
| 1750 | 1754 | |
| 1755 | +.paddingl10 { | |
| 1756 | + padding: 0 10rpx; | |
| 1757 | +} | |
| 1758 | + | |
| 1751 | 1759 | .text-center { |
| 1752 | 1760 | text-align: center; |
| 1753 | 1761 | } |
| ... | ... | @@ -1759,9 +1767,11 @@ checkbox-group label { |
| 1759 | 1767 | .bg-white { |
| 1760 | 1768 | background: white; |
| 1761 | 1769 | } |
| 1762 | -.border-bottom-1{ | |
| 1770 | + | |
| 1771 | +.border-bottom-1 { | |
| 1763 | 1772 | border-bottom: 1px solid #e5e5e5; |
| 1764 | 1773 | } |
| 1774 | + | |
| 1765 | 1775 | .pos-rel { |
| 1766 | 1776 | position: relative; |
| 1767 | 1777 | } |
| ... | ... | @@ -1792,3 +1802,13 @@ checkbox-group label { |
| 1792 | 1802 | padding-top: 8px; |
| 1793 | 1803 | padding-bottom: 8px; |
| 1794 | 1804 | } |
| 1805 | + | |
| 1806 | +.jy-fix-height34 { | |
| 1807 | + height: 34px; | |
| 1808 | + line-height: 34px; | |
| 1809 | + | |
| 1810 | +} | |
| 1811 | + | |
| 1812 | +.color-bbb { | |
| 1813 | + color: #bbb; | |
| 1814 | +} | ... | ... |
pages/aboutOur/aboutOur.vue
0 → 100644
| 1 | +<template> | |
| 2 | + <view> | |
| 3 | + <view class="about-content"> | |
| 4 | + <view class="text-center"> | |
| 5 | + <image class="logo" src="/static/logo.png"></image> | |
| 6 | + <view> | |
| 7 | + <view class="title">{{appName}}</view> | |
| 8 | + <view class="title-msg">{{apptitle}}</view> | |
| 9 | + </view> | |
| 10 | + </view> | |
| 11 | + <uni-list class=""> | |
| 12 | + <view class="recordCon uni-list-cell-pd"> | |
| 13 | + <text class="fontColor000">微信公众号</text> | |
| 14 | + <text>江阴慧停车</text> | |
| 15 | + </view> | |
| 16 | + <view class="recordCon uni-list-cell-pd"> | |
| 17 | + <text class="fontColor000">客服电话</text> | |
| 18 | + <text>400900800</text> | |
| 19 | + </view> | |
| 20 | + <view class="recordCon uni-list-cell-pd"> | |
| 21 | + <text class="fontColor000">门户网站</text> | |
| 22 | + <text>暂无</text> | |
| 23 | + </view> | |
| 24 | + </uni-list> | |
| 25 | + | |
| 26 | + <view class="info"> | |
| 27 | + | |
| 28 | + <view class=""> | |
| 29 | + <view class="titleinfo">江阴慧停车版权所有</view> | |
| 30 | + <view class="titleinfo">All Rights Reserved</view> | |
| 31 | + </view> | |
| 32 | + | |
| 33 | + </view> | |
| 34 | + </view> | |
| 35 | + | |
| 36 | + </view> | |
| 37 | +</template> | |
| 38 | + | |
| 39 | +<script> | |
| 40 | + export default { | |
| 41 | + data() { | |
| 42 | + return { | |
| 43 | + appName: '江阴慧停车', | |
| 44 | + apptitle: '江阴慧停车·智慧便捷', | |
| 45 | + } | |
| 46 | + }, | |
| 47 | + methods: { | |
| 48 | + | |
| 49 | + } | |
| 50 | + } | |
| 51 | +</script> | |
| 52 | + | |
| 53 | +<style lang="scss"> | |
| 54 | + .about-content { | |
| 55 | + // padding-top: 30rpx; | |
| 56 | + background-color: #f6f6f6; | |
| 57 | + height: 100vh; | |
| 58 | + } | |
| 59 | + | |
| 60 | + .logo { | |
| 61 | + height: 200upx; | |
| 62 | + width: 200upx; | |
| 63 | + margin-top: 50upx; | |
| 64 | + } | |
| 65 | + | |
| 66 | + .title { | |
| 67 | + font-size: 32upx; | |
| 68 | + color: #000; | |
| 69 | + font-weight: 400; | |
| 70 | + } | |
| 71 | + | |
| 72 | + .title-msg { | |
| 73 | + font-size: 26upx; | |
| 74 | + color: #8d8d8d; | |
| 75 | + margin-bottom: 30upx; | |
| 76 | + } | |
| 77 | + | |
| 78 | + .fontColor000 { | |
| 79 | + color: #000; | |
| 80 | + } | |
| 81 | + | |
| 82 | + .recordCon { | |
| 83 | + color: #999; | |
| 84 | + display: flex; | |
| 85 | + justify-content: space-between; | |
| 86 | + border-bottom: 2px solid #f6f6f6; | |
| 87 | + } | |
| 88 | + | |
| 89 | + .info { | |
| 90 | + width: 100%; | |
| 91 | + bottom: 50px; | |
| 92 | + text-align: center; | |
| 93 | + position: absolute; | |
| 94 | + } | |
| 95 | + | |
| 96 | + .info { | |
| 97 | + width: 100%; | |
| 98 | + bottom: 50px; | |
| 99 | + text-align: center; | |
| 100 | + position: absolute; | |
| 101 | + } | |
| 102 | + | |
| 103 | + .titleinfo { | |
| 104 | + font-size: 20upx; | |
| 105 | + | |
| 106 | + } | |
| 107 | +</style> | ... | ... |
pages/billing/billing.vue
0 → 100644
| 1 | +<template> | |
| 2 | + <view> | |
| 3 | + <view class="billing-content"> | |
| 4 | + <view class="uni-title uni-common-mt uni-common-pl">开票类型</view> | |
| 5 | + <view class="uni-list"> | |
| 6 | + <radio-group @change="typeChange"> | |
| 7 | + <label class="uni-list-cell uni-list-cell-pd" v-for="(item, index) in items" :key="item.value"> | |
| 8 | + <view> | |
| 9 | + <radio :value="item.value" :checked="index === current" /> | |
| 10 | + </view> | |
| 11 | + <view>{{item.name}}</view> | |
| 12 | + </label> | |
| 13 | + </radio-group> | |
| 14 | + </view> | |
| 15 | + | |
| 16 | + <view class="paddinglr30 bg-white uni-text border-bottom-1 pos-rel" @click="detailClick"> | |
| 17 | + <view class="jy-fix-height34"> | |
| 18 | + <text class="color-black">抬头类型:</text> | |
| 19 | + <text class="color-black">公司</text> | |
| 20 | + </view> | |
| 21 | + <view class="jy-fix-height34"> | |
| 22 | + <text class="color-black">发票抬头:</text> | |
| 23 | + <text class="color-black">111</text> | |
| 24 | + </view> | |
| 25 | + <view class="jy-fix-height34"> | |
| 26 | + <text class="color-black">纳税人识别号:</text> | |
| 27 | + <text class="color-black">1111</text> | |
| 28 | + </view> | |
| 29 | + <view class="jy-fix-height34" v-if="current === 0"> | |
| 30 | + <text class="color-black">电子邮箱:</text> | |
| 31 | + <text class="color-black">111</text> | |
| 32 | + </view> | |
| 33 | + <view class="jy-fix-height34" v-if="current === 1"> | |
| 34 | + <text class="color-black">邮寄地址:</text> | |
| 35 | + <text class="color-black">北京市海淀区玲珑路中关村产业园15A三层</text> | |
| 36 | + </view> | |
| 37 | + <view class="jy-fix-height34" v-if="current === 1"> | |
| 38 | + <text class="color-black">联系方式:</text> | |
| 39 | + <text class="color-black">王旭 13810587647</text> | |
| 40 | + </view> | |
| 41 | + <view class="jy-fix-height34"> | |
| 42 | + <text class="color-black">备注:</text> | |
| 43 | + <text class="color-black">111</text> | |
| 44 | + </view> | |
| 45 | + | |
| 46 | + <view class="uni-icon pos-abs icon-arrowright uni-icon-arrowright"> | |
| 47 | + </view> | |
| 48 | + </view> | |
| 49 | + | |
| 50 | + <!-- 每项选择 --> | |
| 51 | + <view class="billing-list"> | |
| 52 | + <checkbox-group name="check" @change="changeCheck" class="check"> | |
| 53 | + <!-- 注意v-for不要设在checkbox-group上 --> | |
| 54 | + <label class="uni-list paddingl10 pos-rel" v-for="(item, index) in content" :key="item.id"> | |
| 55 | + <view class="jy-fix-height34"> | |
| 56 | + <checkbox :value="item.value" :checked="item.checked" /><text | |
| 57 | + class="margin-left-5">余额充值</text> | |
| 58 | + </view> | |
| 59 | + <view class="jy-fix-height34 paddinglr30 margin-left-5">{{item.name}}</view> | |
| 60 | + <view class="jy-fix-height34 paddinglr30 margin-left-5">{{item.time}}</view> | |
| 61 | + <view class="pos-abs billing-money"> | |
| 62 | + {{item.money}} | |
| 63 | + </view> | |
| 64 | + </label> | |
| 65 | + </checkbox-group> | |
| 66 | + </view> | |
| 67 | + <view class="billing-total"> | |
| 68 | + 您已选中0笔交易,共0元 | |
| 69 | + </view> | |
| 70 | + <!-- 全选 --> | |
| 71 | + <checkbox-group name="allCheck" @change="changeAll"> | |
| 72 | + <label class="billing-all paddinglr30"> | |
| 73 | + <checkbox :value="allCheck.value" :checked="allCheck.checked" /><text>{{allCheck.name}}</text> | |
| 74 | + <button type="primary" class="billing-submit" @click="billingSubmit">提交发票</button> | |
| 75 | + </label> | |
| 76 | + </checkbox-group> | |
| 77 | + | |
| 78 | + </view> | |
| 79 | + </view> | |
| 80 | +</template> | |
| 81 | + | |
| 82 | +<script> | |
| 83 | + export default { | |
| 84 | + data() { | |
| 85 | + return { | |
| 86 | + items: [{ | |
| 87 | + value: '1', | |
| 88 | + name: '增值税电子普通发票', | |
| 89 | + checked: 'true' | |
| 90 | + }, | |
| 91 | + { | |
| 92 | + value: '2', | |
| 93 | + name: '增值税纸质专用发票', | |
| 94 | + | |
| 95 | + } | |
| 96 | + ], | |
| 97 | + current: 0, | |
| 98 | + allCheck: { | |
| 99 | + name: '全选', | |
| 100 | + value: 'all', | |
| 101 | + checked: false | |
| 102 | + }, | |
| 103 | + content: [{ | |
| 104 | + name: '微信支付', | |
| 105 | + value: '1', | |
| 106 | + id: 1, | |
| 107 | + money: '5000', | |
| 108 | + time: '2022-01-12', | |
| 109 | + whether: true | |
| 110 | + }, | |
| 111 | + { | |
| 112 | + name: '微信支付', | |
| 113 | + value: '2', | |
| 114 | + money: '5000', | |
| 115 | + time: '2022-01-12', | |
| 116 | + id: 2, | |
| 117 | + whether: true | |
| 118 | + }, | |
| 119 | + { | |
| 120 | + name: '微信支付', | |
| 121 | + value: '2', | |
| 122 | + money: '5000', | |
| 123 | + time: '2022-01-12', | |
| 124 | + id: 2, | |
| 125 | + whether: true | |
| 126 | + }, | |
| 127 | + { | |
| 128 | + name: '微信支付', | |
| 129 | + value: '2', | |
| 130 | + money: '5000', | |
| 131 | + time: '2022-01-12', | |
| 132 | + id: 2, | |
| 133 | + whether: true | |
| 134 | + }, | |
| 135 | + { | |
| 136 | + name: '线下公对公', | |
| 137 | + value: '3', | |
| 138 | + money: '5000', | |
| 139 | + time: '2022-01-12', | |
| 140 | + id: 3, | |
| 141 | + whether: true | |
| 142 | + } | |
| 143 | + ] | |
| 144 | + | |
| 145 | + } | |
| 146 | + }, | |
| 147 | + methods: { | |
| 148 | + typeChange: function(evt) { | |
| 149 | + for (let i = 0; i < this.items.length; i++) { | |
| 150 | + if (this.items[i].value === evt.detail.value) { | |
| 151 | + this.current = i; | |
| 152 | + break; | |
| 153 | + } | |
| 154 | + } | |
| 155 | + }, | |
| 156 | + detailClick() { | |
| 157 | + | |
| 158 | + }, | |
| 159 | + // 全选 | |
| 160 | + changeAll: function(e) { | |
| 161 | + if (e.detail.value.length == 0) { | |
| 162 | + this.content.map(item => this.$set(item, 'checked', false)); | |
| 163 | + this.$set(this.allCheck, 'checked', false); | |
| 164 | + } else { | |
| 165 | + this.content.map(item => this.$set(item, 'checked', true)); | |
| 166 | + this.$set(this.allCheck, 'checked', true); | |
| 167 | + } | |
| 168 | + }, | |
| 169 | + // 多选 | |
| 170 | + changeCheck: function(e) { | |
| 171 | + var items = this.content; | |
| 172 | + var len = this.content.length; | |
| 173 | + var values = e.detail.value; | |
| 174 | + // console.log(values) | |
| 175 | + for (var i = 0; i < len; i++) { | |
| 176 | + var item = items[i]; | |
| 177 | + if (values.includes(item.value)) { | |
| 178 | + this.$set(item, 'checked', true); | |
| 179 | + } else { | |
| 180 | + this.$set(item, 'checked', false); | |
| 181 | + } | |
| 182 | + } | |
| 183 | + // 判断选中状态 | |
| 184 | + var arr = []; | |
| 185 | + this.content.forEach(item => item.whether == true ? arr.push(item) : ''); | |
| 186 | + var isAll = arr.every(item => item.checked == true); | |
| 187 | + isAll ? this.$set(this.allCheck, 'checked', true) : this.$set(this.allCheck, 'checked', false) | |
| 188 | + }, | |
| 189 | + billingSubmit() { | |
| 190 | + | |
| 191 | + }, | |
| 192 | + | |
| 193 | + } | |
| 194 | + } | |
| 195 | +</script> | |
| 196 | + | |
| 197 | +<style lang="scss"> | |
| 198 | + .icon-arrowright { | |
| 199 | + color: #bbb; | |
| 200 | + // font-size: 20px; | |
| 201 | + right: 2upx; | |
| 202 | + top: 73px; | |
| 203 | + } | |
| 204 | + | |
| 205 | + .billing-list { | |
| 206 | + width: 100%; | |
| 207 | + margin-bottom: 82px; | |
| 208 | + } | |
| 209 | + | |
| 210 | + .billing-money { | |
| 211 | + top: 34px; | |
| 212 | + right: 20px; | |
| 213 | + height: 34px; | |
| 214 | + list-height: 34px; | |
| 215 | + // z-index: 1; | |
| 216 | + } | |
| 217 | + | |
| 218 | + .billing-total { | |
| 219 | + position: fixed; | |
| 220 | + bottom: 46px; | |
| 221 | + left: 0; | |
| 222 | + width: 100%; | |
| 223 | + height: 34px; | |
| 224 | + line-height: 34px; | |
| 225 | + // color: #51c24e; | |
| 226 | + background-color: #f2fded; | |
| 227 | + } | |
| 228 | + | |
| 229 | + .billing-all { | |
| 230 | + position: fixed; | |
| 231 | + bottom: 0; | |
| 232 | + left: 0; | |
| 233 | + width: 100%; | |
| 234 | + height: 46px; | |
| 235 | + line-height: 46px; | |
| 236 | + // font-size: 24px; | |
| 237 | + background-color: #f6f6f6; | |
| 238 | + } | |
| 239 | + | |
| 240 | + .billing-submit { | |
| 241 | + position: fixed; | |
| 242 | + bottom: 0; | |
| 243 | + right: 0; | |
| 244 | + width: 100px; | |
| 245 | + height: 46px; | |
| 246 | + line-height: 46px; | |
| 247 | + } | |
| 248 | +</style> | ... | ... |
pages/elecRecord/elecRecord.vue
0 → 100644
| 1 | +<template> | |
| 2 | + <view> | |
| 3 | + <view class="elec-content"> | |
| 4 | + <view class="elec-card bg-white"> | |
| 5 | + <view class="elec-card-left float-left"> | |
| 6 | + <view class="elec-card-msg">黄石肯特科技发展有限公司</view> | |
| 7 | + <view class="elec-card-msg">折扣券</view> | |
| 8 | + <view class="elec-card-msg">万达车场8折折扣券</view> | |
| 9 | + <view class="elec-card-msg">¥5元/张 X 15张</view> | |
| 10 | + </view> | |
| 11 | + <view class="elec-card-right float-right"> | |
| 12 | + <view class="elec-card-text"> | |
| 13 | + 75.00元 | |
| 14 | + </view> | |
| 15 | + </view> | |
| 16 | + </view> | |
| 17 | + <view class="elec-card bg-white"> | |
| 18 | + <view class="elec-card-left float-left"> | |
| 19 | + <view class="elec-card-msg">黄石肯特科技发展有限公司</view> | |
| 20 | + <view class="elec-card-msg">折扣券</view> | |
| 21 | + <view class="elec-card-msg">万达车场8折折扣券</view> | |
| 22 | + <view class="elec-card-msg">¥5元/张 X 15张</view> | |
| 23 | + </view> | |
| 24 | + <view class="elec-card-right float-right"> | |
| 25 | + <view class="elec-card-text"> | |
| 26 | + 75.00元 | |
| 27 | + </view> | |
| 28 | + </view> | |
| 29 | + </view> | |
| 30 | + </view> | |
| 31 | + </view> | |
| 32 | +</template> | |
| 33 | + | |
| 34 | +<script> | |
| 35 | + export default { | |
| 36 | + data() { | |
| 37 | + return { | |
| 38 | + | |
| 39 | + } | |
| 40 | + }, | |
| 41 | + methods: { | |
| 42 | + | |
| 43 | + } | |
| 44 | + } | |
| 45 | +</script> | |
| 46 | + | |
| 47 | +<style lang="scss"> | |
| 48 | + .elec-content { | |
| 49 | + width: 100%; | |
| 50 | + height: 100vh; | |
| 51 | + } | |
| 52 | + | |
| 53 | + .elec-card { | |
| 54 | + width: 100%; | |
| 55 | + height: 200upx; | |
| 56 | + padding: 22upx 30upx; | |
| 57 | + line-height: 32upx; | |
| 58 | + border-bottom: 1px solid #e5e5e5; | |
| 59 | + } | |
| 60 | + | |
| 61 | + .elec-card-left { | |
| 62 | + width: 70%; | |
| 63 | + height: 200upx; | |
| 64 | + | |
| 65 | + } | |
| 66 | + | |
| 67 | + .elec-card-right { | |
| 68 | + width: 30%; | |
| 69 | + height: 200upx; | |
| 70 | + line-height: 200upx; | |
| 71 | + } | |
| 72 | + | |
| 73 | + .elec-card-msg { | |
| 74 | + line-height: 50upx; | |
| 75 | + color: rgba(0, 0, 0, .7); | |
| 76 | + | |
| 77 | + } | |
| 78 | + | |
| 79 | + .elec-card-text { | |
| 80 | + font-size: 32upx; | |
| 81 | + font-weight: bold; | |
| 82 | + } | |
| 83 | +</style> | ... | ... |
pages/invoiceClaim/invoiceClaim.vue
0 → 100644
| 1 | +<template> | |
| 2 | + <view> | |
| 3 | + <view class="claim-content"> | |
| 4 | + <uni-list> | |
| 5 | + <uni-list-item title="充值发票" note="支持账户余额充值金额开具发票" clickable showArrow @click="payCell()" /> | |
| 6 | + <uni-list-item title="开票历史" clickable showArrow @click="recordCell()" /> | |
| 7 | + </uni-list> | |
| 8 | + </view> | |
| 9 | + </view> | |
| 10 | +</template> | |
| 11 | + | |
| 12 | +<script> | |
| 13 | + export default { | |
| 14 | + data() { | |
| 15 | + return { | |
| 16 | + | |
| 17 | + } | |
| 18 | + }, | |
| 19 | + methods: { | |
| 20 | + payCell(){ | |
| 21 | + uni.navigateTo({ | |
| 22 | + url: '../billing/billing' | |
| 23 | + | |
| 24 | + }); | |
| 25 | + }, | |
| 26 | + recordCell() { | |
| 27 | + uni.navigateTo({ | |
| 28 | + url: '../invoiceRecord/invoiceRecord' | |
| 29 | + | |
| 30 | + }); | |
| 31 | + } | |
| 32 | + } | |
| 33 | + } | |
| 34 | +</script> | |
| 35 | + | |
| 36 | +<style> | |
| 37 | + | |
| 38 | +</style> | ... | ... |
pages/invoiceForm/invoiceForm.vue
0 → 100644
| 1 | +<template> | |
| 2 | + <view> | |
| 3 | + <uni-notice-bar backgroundColor="#f2fded" color="#51c24e" single showIcon text="已发送电子邮箱"></uni-notice-bar> | |
| 4 | + <uni-list> | |
| 5 | + <uni-list-item title="发票预览" clickable showArrow @click="previewCell" /> | |
| 6 | + </uni-list> | |
| 7 | + | |
| 8 | + <uni-list> | |
| 9 | + <view class="recordCon uni-list-cell-pd"> | |
| 10 | + <text class="color-black">发票信息</text> | |
| 11 | + </view> | |
| 12 | + <view class="recordCon uni-list-cell-pd"> | |
| 13 | + <text>电子邮箱:{{invoiceInfo.email}}</text> | |
| 14 | + </view> | |
| 15 | + </uni-list> | |
| 16 | + | |
| 17 | + <view class="bg-white border-bottom-1 pos-rel" @click="recordClick"> | |
| 18 | + <view class="recordCon uni-list-cell-pd"> | |
| 19 | + <text class="color-black">发票包含内容</text> | |
| 20 | + </view> | |
| 21 | + <view class="recordCon uni-list-cell-pd"> | |
| 22 | + <text>该发票包含{{invoiceInfo.number}}笔交易</text> | |
| 23 | + </view> | |
| 24 | + <view class="uni-icon pos-abs icon-arrowright uni-icon-arrowright"> | |
| 25 | + </view> | |
| 26 | + </view> | |
| 27 | + | |
| 28 | + <view class="margin-top-30"> | |
| 29 | + <button type="primary" class="tel-btn">重发邮件</button> | |
| 30 | + <button class="tel-btn" v-if="tel.length>0" type="primary" plain="true" @click="call">客服电话:{{tel}}</button> | |
| 31 | + </view> | |
| 32 | + | |
| 33 | + </view> | |
| 34 | +</template> | |
| 35 | + | |
| 36 | +<script> | |
| 37 | + export default { | |
| 38 | + data() { | |
| 39 | + return { | |
| 40 | + invoiceInfo: { | |
| 41 | + email: '123456@qq.com', | |
| 42 | + number: 0 | |
| 43 | + }, | |
| 44 | + tel: '400-6345688' | |
| 45 | + } | |
| 46 | + }, | |
| 47 | + methods: { | |
| 48 | + previewCell() { | |
| 49 | + uni.navigateTo({ | |
| 50 | + url: '../invoicePreview/invoicePreview' | |
| 51 | + | |
| 52 | + }); | |
| 53 | + }, | |
| 54 | + recordClick() { | |
| 55 | + uni.navigateTo({ | |
| 56 | + url: '../elecRecord/elecRecord' | |
| 57 | + | |
| 58 | + }); | |
| 59 | + }, | |
| 60 | + } | |
| 61 | + } | |
| 62 | +</script> | |
| 63 | + | |
| 64 | +<style lang="scss"> | |
| 65 | + .icon-arrowright { | |
| 66 | + color: #bbb; | |
| 67 | + font-size: 20px; | |
| 68 | + right: 2upx; | |
| 69 | + top: 60upx; | |
| 70 | + } | |
| 71 | + | |
| 72 | + .tel-btn { | |
| 73 | + width: 90%; | |
| 74 | + margin: 30upx auto; | |
| 75 | + } | |
| 76 | +</style> | ... | ... |
pages/invoicePreview/invoicePreview.vue
0 → 100644
pages/invoiceRecord/invoiceRecord.vue
0 → 100644
| 1 | +<template> | |
| 2 | + <view> | |
| 3 | + <view class="record-content"> | |
| 4 | + <view class="bg-white border-bottom-1 pos-rel" @click="payClick"> | |
| 5 | + <view class="recordCon uni-list-cell-pd"> | |
| 6 | + <text class="color-black">余额充值</text> | |
| 7 | + <text>已发送电子邮箱</text> | |
| 8 | + </view> | |
| 9 | + <view class="recordCon uni-list-cell-pd"> | |
| 10 | + <text>2020-10-01 01:01:01</text> | |
| 11 | + <text>¥3.00</text> | |
| 12 | + </view> | |
| 13 | + <view class="uni-icon pos-abs icon-arrowright uni-icon-arrowright"> | |
| 14 | + </view> | |
| 15 | + </view> | |
| 16 | + <view class="bg-white pos-rel" @click="payClick"> | |
| 17 | + <view class="recordCon uni-list-cell-pd"> | |
| 18 | + <text class="color-black">余额充值</text> | |
| 19 | + <text>已发送电子邮箱</text> | |
| 20 | + </view> | |
| 21 | + <view class="recordCon uni-list-cell-pd"> | |
| 22 | + <text>2020-10-01 01:01:01</text> | |
| 23 | + <text>¥3.00</text> | |
| 24 | + </view> | |
| 25 | + <view class="uni-icon pos-abs icon-arrowright uni-icon-arrowright"> | |
| 26 | + </view> | |
| 27 | + </view> | |
| 28 | + | |
| 29 | + </view> | |
| 30 | + </view> | |
| 31 | +</template> | |
| 32 | + | |
| 33 | +<script> | |
| 34 | + export default { | |
| 35 | + data() { | |
| 36 | + return { | |
| 37 | + | |
| 38 | + } | |
| 39 | + }, | |
| 40 | + methods: { | |
| 41 | + payClick() { | |
| 42 | + uni.navigateTo({ | |
| 43 | + url: '../invoiceForm/invoiceForm' | |
| 44 | + | |
| 45 | + }); | |
| 46 | + }, | |
| 47 | + } | |
| 48 | + } | |
| 49 | +</script> | |
| 50 | + | |
| 51 | +<style lang="scss"> | |
| 52 | + .icon-arrowright { | |
| 53 | + color: #bbb; | |
| 54 | + font-size: 20px; | |
| 55 | + right: 2upx; | |
| 56 | + top: 60upx; | |
| 57 | + } | |
| 58 | +</style> | ... | ... |
pages/login/login.vue
0 → 100644
| 1 | +<template> | |
| 2 | + <view> | |
| 3 | + <view class="login-content"> | |
| 4 | + <view> | |
| 5 | + <image class="logo" src="/static/logo.png"></image> | |
| 6 | + <view> | |
| 7 | + <view class="title">{{appName}}</view> | |
| 8 | + <view class="title-msg">{{apptitle}}</view> | |
| 9 | + </view> | |
| 10 | + </view> | |
| 11 | + <view class="uni-common-mt paddinglr30"> | |
| 12 | + <view class="uni-form-item uni-column"> | |
| 13 | + <input class="uni-input" type="text" v-model="username" placeholder="请输入用户名" /> | |
| 14 | + </view> | |
| 15 | + <view class="uni-form-item uni-column"> | |
| 16 | + <input class="uni-input" password type="text" v-model="password" placeholder="请输入密码" /> | |
| 17 | + </view> | |
| 18 | + </view> | |
| 19 | + | |
| 20 | + <view class="paddinglr30 uni-common-mt"> | |
| 21 | + <button type="primary" @click="login">登录</button> | |
| 22 | + </view> | |
| 23 | + <view class="uni-common-mt login-foot"> | |
| 24 | + 点击”登录“,即表示你同意《商户用户协议》 | |
| 25 | + </view> | |
| 26 | + </view> | |
| 27 | + | |
| 28 | + </view> | |
| 29 | +</template> | |
| 30 | + | |
| 31 | +<script> | |
| 32 | + export default { | |
| 33 | + data() { | |
| 34 | + return { | |
| 35 | + appName: '江阴慧停车', | |
| 36 | + apptitle: '江阴慧停车·智慧便捷', | |
| 37 | + username:'', | |
| 38 | + password:'', | |
| 39 | + } | |
| 40 | + }, | |
| 41 | + methods: { | |
| 42 | + login(){ | |
| 43 | + | |
| 44 | + } | |
| 45 | + } | |
| 46 | + } | |
| 47 | +</script> | |
| 48 | + | |
| 49 | +<style lang="scss"> | |
| 50 | + .page { | |
| 51 | + width: 100%; | |
| 52 | + height: 100%; | |
| 53 | + display: flex; | |
| 54 | + justify-content: center; | |
| 55 | + position: relative; | |
| 56 | + | |
| 57 | + } | |
| 58 | + | |
| 59 | + .login-content { | |
| 60 | + background-color: #f6f6f6; | |
| 61 | + text-align: center; | |
| 62 | + height: 100vh; | |
| 63 | + } | |
| 64 | + | |
| 65 | + .logo { | |
| 66 | + height: 200upx; | |
| 67 | + width: 200upx; | |
| 68 | + margin-top: 200upx; | |
| 69 | + } | |
| 70 | + | |
| 71 | + .title { | |
| 72 | + font-size: 32upx; | |
| 73 | + color: #000; | |
| 74 | + font-weight: 400; | |
| 75 | + } | |
| 76 | + | |
| 77 | + .title-msg { | |
| 78 | + font-size: 26upx; | |
| 79 | + color: #8d8d8d; | |
| 80 | + } | |
| 81 | + | |
| 82 | + .login-foot{ | |
| 83 | + font-size: 26upx; | |
| 84 | + | |
| 85 | + } | |
| 86 | +</style> | ... | ... |
pages/manuals/manuals.vue
0 → 100644
pages/pages.json
0 → 100644
| 1 | +{ | |
| 2 | + "pages": [ | |
| 3 | + //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages | |
| 4 | + { | |
| 5 | + "path": "pages/index/index", | |
| 6 | + "style": { | |
| 7 | + "navigationBarTitleText": "商户管理" | |
| 8 | + } | |
| 9 | + }, | |
| 10 | + { | |
| 11 | + "path": "pages/setting/setting", | |
| 12 | + "style": { | |
| 13 | + "navigationBarTitleText": "设置", | |
| 14 | + "enablePullDownRefresh": false | |
| 15 | + } | |
| 16 | + | |
| 17 | + }, | |
| 18 | + { | |
| 19 | + "path": "pages/manuals/manuals", | |
| 20 | + "style": { | |
| 21 | + "navigationBarTitleText": "使用指南", | |
| 22 | + "enablePullDownRefresh": false | |
| 23 | + } | |
| 24 | + | |
| 25 | + }, { | |
| 26 | + "path": "pages/aboutOur/aboutOur", | |
| 27 | + "style": { | |
| 28 | + "navigationBarTitleText": "关于我们", | |
| 29 | + "enablePullDownRefresh": false | |
| 30 | + } | |
| 31 | + | |
| 32 | + }, | |
| 33 | + { | |
| 34 | + "path": "pages/login/login", | |
| 35 | + "style": { | |
| 36 | + "navigationBarTitleText": "商户中心" | |
| 37 | + } | |
| 38 | + }, | |
| 39 | + { | |
| 40 | + "path": "pages/inputCarNumber/inputCarNumber", | |
| 41 | + "style": { | |
| 42 | + "navigationBarTitleText": "停车缴费" | |
| 43 | + } | |
| 44 | + }, | |
| 45 | + { | |
| 46 | + "path": "pages/mapPark/mapPark", | |
| 47 | + "style": { | |
| 48 | + "navigationBarTitleText": "附近车场" | |
| 49 | + } | |
| 50 | + }, | |
| 51 | + { | |
| 52 | + "path": "pages/carM/carM", | |
| 53 | + "style": { | |
| 54 | + "navigationBarTitleText": "车辆管理" | |
| 55 | + } | |
| 56 | + }, | |
| 57 | + { | |
| 58 | + "path": "pages/orderInfo/use_couponList/use_couponList", | |
| 59 | + "style": { | |
| 60 | + "navigationBarTitleText": "选择优惠券" | |
| 61 | + } | |
| 62 | + }, | |
| 63 | + { | |
| 64 | + "path": "pages/balance/balance", | |
| 65 | + "style": { | |
| 66 | + "navigationBarTitleText": "账户充值" | |
| 67 | + } | |
| 68 | + }, | |
| 69 | + { | |
| 70 | + "path": "pages/inputCarNumb/inputCarNumb", | |
| 71 | + "style": { | |
| 72 | + "navigationBarTitleText": "添加车辆" | |
| 73 | + } | |
| 74 | + }, | |
| 75 | + { | |
| 76 | + "path": "pages/me/me", | |
| 77 | + "style": { | |
| 78 | + "navigationBarTitleText": "我的" | |
| 79 | + } | |
| 80 | + }, | |
| 81 | + { | |
| 82 | + "path": "pages/vipCard/vipCard", | |
| 83 | + "style": { | |
| 84 | + "navigationBarTitleText": "会员卡" | |
| 85 | + } | |
| 86 | + }, | |
| 87 | + { | |
| 88 | + "path": "pages/vipCard/vipCardDetail/vipCardDetail", | |
| 89 | + "style": { | |
| 90 | + "navigationBarTitleText": "购买会员卡" | |
| 91 | + } | |
| 92 | + }, | |
| 93 | + { | |
| 94 | + "path": "pages/orderInfo/orderInfo", | |
| 95 | + "style": { | |
| 96 | + "navigationBarTitleText": "支付" | |
| 97 | + } | |
| 98 | + }, | |
| 99 | + // 江阴 | |
| 100 | + { | |
| 101 | + "path": "pages/parkPay/parkPay", | |
| 102 | + "style": { | |
| 103 | + "navigationBarTitleText": "支付" | |
| 104 | + } | |
| 105 | + }, | |
| 106 | + { | |
| 107 | + "path": "pages/parkRecord/parkRecord", | |
| 108 | + "style": { | |
| 109 | + "navigationBarTitleText": "停车记录" | |
| 110 | + } | |
| 111 | + }, | |
| 112 | + // 江阴 | |
| 113 | + { | |
| 114 | + "path": "pages/parkRecordList/parkRecordList", | |
| 115 | + "style": { | |
| 116 | + "navigationBarTitleText": "停车记录" | |
| 117 | + } | |
| 118 | + }, | |
| 119 | + { | |
| 120 | + "path": "pages/parkRecordList/recordDetail", | |
| 121 | + "style": { | |
| 122 | + "navigationBarTitleText": "订单详情" | |
| 123 | + } | |
| 124 | + }, | |
| 125 | + | |
| 126 | + { | |
| 127 | + "path": "pages/meInfo/meInfo", | |
| 128 | + "style": { | |
| 129 | + "navigationBarTitleText": "个人信息" | |
| 130 | + } | |
| 131 | + }, | |
| 132 | + { | |
| 133 | + "path": "pages/meInfo/meFace/meFace", | |
| 134 | + "style": { | |
| 135 | + "navigationBarTitleText": "头像" | |
| 136 | + } | |
| 137 | + }, | |
| 138 | + { | |
| 139 | + "path": "pages/meInfo/meNickname/meNickname", | |
| 140 | + "style": { | |
| 141 | + "navigationBarTitleText": "昵称" | |
| 142 | + } | |
| 143 | + }, | |
| 144 | + { | |
| 145 | + "path": "pages/meInfo/meBirthday/meBirthday", | |
| 146 | + "style": { | |
| 147 | + "navigationBarTitleText": "生日" | |
| 148 | + } | |
| 149 | + }, | |
| 150 | + { | |
| 151 | + "path": "pages/meInfo/sex/sex", | |
| 152 | + "style": { | |
| 153 | + "navigationBarTitleText": "性别" | |
| 154 | + } | |
| 155 | + }, | |
| 156 | + { | |
| 157 | + "path": "pages/balance/balanceRecord/balanceRecord", | |
| 158 | + "style": { | |
| 159 | + "navigationBarTitleText": "账单查询" | |
| 160 | + } | |
| 161 | + }, | |
| 162 | + { | |
| 163 | + "path": "pages/wxPaySuccess/wxPaySuccess", | |
| 164 | + "style": { | |
| 165 | + "navigationBarTitleText": "支付" | |
| 166 | + } | |
| 167 | + }, | |
| 168 | + { | |
| 169 | + "path": "pages/quickPay/quickPay", | |
| 170 | + "style": { | |
| 171 | + "navigationBarTitleText": "无感支付" | |
| 172 | + } | |
| 173 | + }, | |
| 174 | + { | |
| 175 | + "path": "pages/feedBack/feedBack", | |
| 176 | + "style": { | |
| 177 | + "navigationBarTitleText": "建议反馈" | |
| 178 | + } | |
| 179 | + }, | |
| 180 | + { | |
| 181 | + "path": "pages/feedBack/mySuggestions/mySuggestions", | |
| 182 | + "style": { | |
| 183 | + "navigationBarTitleText": "我的提问" | |
| 184 | + } | |
| 185 | + }, | |
| 186 | + { | |
| 187 | + "path": "pages/feedBack/mySuggestions/suggestionDetail/suggestionDetail", | |
| 188 | + "style": { | |
| 189 | + "navigationBarTitleText": "提问详情" | |
| 190 | + } | |
| 191 | + }, | |
| 192 | + { | |
| 193 | + "path": "pages/couponList/bindcoupon/bindcoupon", | |
| 194 | + "style": { | |
| 195 | + "navigationBarTitleText": "优惠券绑定" | |
| 196 | + } | |
| 197 | + }, | |
| 198 | + { | |
| 199 | + "path": "pages/couponList/couponList", | |
| 200 | + "style": { | |
| 201 | + "navigationBarTitleText": "优惠券" | |
| 202 | + } | |
| 203 | + }, | |
| 204 | + { | |
| 205 | + "path": "pages/quickPay/openQuickPay/openQuickPay", | |
| 206 | + "style": { | |
| 207 | + "navigationBarTitleText": "开通无感支付" | |
| 208 | + } | |
| 209 | + }, | |
| 210 | + { | |
| 211 | + "path": "pages/mapPark/searchPark/searchPark", | |
| 212 | + "style": { | |
| 213 | + "navigationBarTitleText": "搜索车场" | |
| 214 | + } | |
| 215 | + }, | |
| 216 | + { | |
| 217 | + "path": "pages/mapPark/parkList/parkList", | |
| 218 | + "style": { | |
| 219 | + "navigationBarTitleText": "车场列表" | |
| 220 | + } | |
| 221 | + }, | |
| 222 | + { | |
| 223 | + "path": "pages/mapPark/parkInfo/parkInfo", | |
| 224 | + "style": { | |
| 225 | + "navigationBarTitleText": "车场详情" | |
| 226 | + } | |
| 227 | + }, | |
| 228 | + { | |
| 229 | + "path": "pages/me/aboutUs/aboutUs", | |
| 230 | + "style": { | |
| 231 | + "navigationBarTitleText": "关于我们" | |
| 232 | + } | |
| 233 | + }, | |
| 234 | + { | |
| 235 | + "path": "pages/vipCard/vipCardDetail/buyVipCard/buyVipCard", | |
| 236 | + "style": { | |
| 237 | + "navigationBarTitleText": "会员卡购买" | |
| 238 | + } | |
| 239 | + }, | |
| 240 | + { | |
| 241 | + "path": "pages/vipCard/vipCardDetail/buyVipCard/vipcardPay/vipcardPay", | |
| 242 | + "style": { | |
| 243 | + "navigationBarTitleText": "会员卡支付" | |
| 244 | + } | |
| 245 | + }, | |
| 246 | + { | |
| 247 | + "path": "pages/vipCard/myVipCard/myVipCard", | |
| 248 | + "style": { | |
| 249 | + "navigationBarTitleText": "我的会员卡" | |
| 250 | + } | |
| 251 | + }, | |
| 252 | + { | |
| 253 | + "path": "pages/vipCard/myVipCard/myVipCardDetail/myVipCardDetail", | |
| 254 | + "style": { | |
| 255 | + "navigationBarTitleText": "会员卡详情" | |
| 256 | + } | |
| 257 | + }, | |
| 258 | + { | |
| 259 | + "path": "pages/carM/rzCarNumber/rzCarNumber", | |
| 260 | + "style": {} | |
| 261 | + }, | |
| 262 | + | |
| 263 | + { | |
| 264 | + "path": "pages/moneyRecharge/moneyRecharge", | |
| 265 | + "style": { | |
| 266 | + "navigationBarTitleText": "钱包充值" | |
| 267 | + } | |
| 268 | + }, | |
| 269 | + { | |
| 270 | + "path": "pages/rechargeDetail/rechargeDetail", | |
| 271 | + "style": { | |
| 272 | + "navigationBarTitleText": "充值明细" | |
| 273 | + } | |
| 274 | + } | |
| 275 | + | |
| 276 | + ,{ | |
| 277 | + "path" : "pages/invoiceClaim/invoiceClaim", | |
| 278 | + "style" : | |
| 279 | + { | |
| 280 | + "navigationBarTitleText": "发票申领", | |
| 281 | + "enablePullDownRefresh": false | |
| 282 | + } | |
| 283 | + | |
| 284 | + } | |
| 285 | + ,{ | |
| 286 | + "path" : "pages/billing/billing", | |
| 287 | + "style" : | |
| 288 | + { | |
| 289 | + "navigationBarTitleText": "发票申领", | |
| 290 | + "enablePullDownRefresh": false | |
| 291 | + } | |
| 292 | + | |
| 293 | + } | |
| 294 | + ,{ | |
| 295 | + "path" : "pages/invoiceRecord/invoiceRecord", | |
| 296 | + "style" : | |
| 297 | + { | |
| 298 | + "navigationBarTitleText": "开票历史", | |
| 299 | + "enablePullDownRefresh": false | |
| 300 | + } | |
| 301 | + | |
| 302 | + } | |
| 303 | + ,{ | |
| 304 | + "path" : "pages/invoiceForm/invoiceForm", | |
| 305 | + "style" : | |
| 306 | + { | |
| 307 | + "navigationBarTitleText": "开票历史", | |
| 308 | + "enablePullDownRefresh": false | |
| 309 | + } | |
| 310 | + | |
| 311 | + } | |
| 312 | + ,{ | |
| 313 | + "path" : "pages/elecRecord/elecRecord", | |
| 314 | + "style" : | |
| 315 | + { | |
| 316 | + "navigationBarTitleText": "电子包含记录", | |
| 317 | + "enablePullDownRefresh": false | |
| 318 | + } | |
| 319 | + | |
| 320 | + } | |
| 321 | + ], | |
| 322 | + "globalStyle": { | |
| 323 | + "navigationBarTextStyle": "black", | |
| 324 | + "navigationBarTitleText": "停车小码头", | |
| 325 | + "navigationBarBackgroundColor": "#F8F8F8", | |
| 326 | + "backgroundColor": "#F8F8F8" | |
| 327 | + }, | |
| 328 | + "tabBar": { | |
| 329 | + "color": "#bfbfbf", | |
| 330 | + "selectedColor": "#515151", | |
| 331 | + "borderStyle": "black", | |
| 332 | + "backgroundColor": "#ffffff", | |
| 333 | + "list": [{ | |
| 334 | + "pagePath": "pages/mapPark/mapPark", | |
| 335 | + "text": "首页", | |
| 336 | + "iconPath": "static/tabicon/mid-tabunsel.png", | |
| 337 | + "selectedIconPath": "static/tabicon/mid-tabsel.png" | |
| 338 | + }, | |
| 339 | + { | |
| 340 | + "pagePath": "pages/inputCarNumber/inputCarNumber", | |
| 341 | + "text": "停车缴费", | |
| 342 | + "iconPath": "static/tabicon/index-tabunsel.png", | |
| 343 | + "selectedIconPath": "static/tabicon/index-tabsel.png" | |
| 344 | + }, | |
| 345 | + { | |
| 346 | + "pagePath": "pages/me/me", | |
| 347 | + "text": "我的", | |
| 348 | + "iconPath": "static/tabicon/me-tabunsel.png", | |
| 349 | + "selectedIconPath": "static/tabicon/me-tabsel.png" | |
| 350 | + } | |
| 351 | + ] | |
| 352 | + }, | |
| 353 | + "condition": { //模式配置,仅开发期间生效 | |
| 354 | + "current": 0, //当前激活的模式(list 的索引项) | |
| 355 | + "list": [{ | |
| 356 | + "name": "", //模式名称 | |
| 357 | + "path": "", //启动页面,必选 | |
| 358 | + "query": "" //启动参数,在页面的onLoad函数里面得到 | |
| 359 | + }] | |
| 360 | + } | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | +} | ... | ... |
pages/setting/setting.vue
0 → 100644
| 1 | +<template> | |
| 2 | + <view> | |
| 3 | + <view class="setting-content"> | |
| 4 | + <uni-list v-for="(key,index) in listInfo " :key="index"> | |
| 5 | + <uni-list-item :title="key.listTitle" clickable @click="selCell(index)" showArrow></uni-list-item> | |
| 6 | + </uni-list> | |
| 7 | + | |
| 8 | + <view class="uni-padding-wrap uni-common-mt"> | |
| 9 | + <button type="warn" @click="loginOut">退出登录</button> | |
| 10 | + </view> | |
| 11 | + | |
| 12 | + </view> | |
| 13 | + | |
| 14 | + </view> | |
| 15 | +</template> | |
| 16 | + | |
| 17 | +<script> | |
| 18 | + import common from "../../common/common.js"; | |
| 19 | + | |
| 20 | + export default { | |
| 21 | + data() { | |
| 22 | + return { | |
| 23 | + // userIsLogin: false, | |
| 24 | + // userInfo: {}, | |
| 25 | + listInfo: [{ | |
| 26 | + listTitle: '使用指南', | |
| 27 | + // listIcon: '../../static/me/me-balance.png' | |
| 28 | + }, | |
| 29 | + { | |
| 30 | + listTitle: '关于我们', | |
| 31 | + // listIcon: '../../static/me/me-aboutus.png' | |
| 32 | + }, | |
| 33 | + { | |
| 34 | + listTitle: '清除缓存', | |
| 35 | + // listIcon: '../../static/me/me-carm.png' | |
| 36 | + } | |
| 37 | + | |
| 38 | + | |
| 39 | + ] | |
| 40 | + } | |
| 41 | + }, | |
| 42 | + methods: { | |
| 43 | + selCell(e) { | |
| 44 | + var _this = this; | |
| 45 | + var name = _this.listInfo[e].listTitle; | |
| 46 | + | |
| 47 | + switch (name) { | |
| 48 | + case '使用指南': { | |
| 49 | + | |
| 50 | + uni.navigateTo({ | |
| 51 | + url: '../manuals/manuals' | |
| 52 | + | |
| 53 | + }); | |
| 54 | + } | |
| 55 | + break; | |
| 56 | + | |
| 57 | + case '关于我们': //关于我们 | |
| 58 | + { | |
| 59 | + | |
| 60 | + uni.navigateTo({ | |
| 61 | + url: '../aboutOur/aboutOur' | |
| 62 | + | |
| 63 | + }); | |
| 64 | + } | |
| 65 | + break; | |
| 66 | + default: | |
| 67 | + break; | |
| 68 | + } | |
| 69 | + } | |
| 70 | + } | |
| 71 | + } | |
| 72 | +</script> | |
| 73 | + | |
| 74 | +<style lang="scss"> | |
| 75 | + .setting-content { | |
| 76 | + background-color: #f6f6f6; | |
| 77 | + height: 100vh; | |
| 78 | + } | |
| 79 | + | |
| 80 | + | |
| 81 | +</style> | ... | ... |