Commit 98538603b8627209050b1e37d7a404445d1a2941

Authored by chenbiao
1 parent 78dcf61c

add 删除无用图片 代码 添加卡券管理链接

pages.json
... ... @@ -259,31 +259,7 @@
259 259 "enablePullDownRefresh": false
260 260 }
261 261  
262   - }, {
263   - "path": "pages/creditRating/creditRating",
264   - "style": {
265   - "navigationBarTitleText": "信用等级",
266   - "enablePullDownRefresh": false
267   - }
268   -
269   - }, {
270   - "path": "pages/nameAuthentication/nameAuthentication",
271   - "style": {
272   - "navigationBarTitleText": "实名认证",
273   - "enablePullDownRefresh": false
274   - }
275   -
276 262 }
277   -
278   - ,{
279   - "path" : "pages/wxpaySuccess/wxpaySuccess",
280   - "style" :
281   - {
282   - "navigationBarTitleText": "",
283   - "enablePullDownRefresh": false
284   - }
285   -
286   - }
287 263 ],
288 264 "globalStyle": {
289 265 "navigationBarTextStyle": "black",
... ...
pages/creditRating/creditRating.vue deleted
1   -<template>
2   - <view>
3   - <uni-section title="实名认证" type="line">
4   - <uni-list>
5   - <uni-list-item title="信用等级" :rightText="ratingText" clickable showArrow @click="ratingCell()" />
6   - </uni-list>
7   - </uni-section>
8   - </view>
9   -</template>
10   -
11   -<script>
12   - export default {
13   - data() {
14   - return {
15   - ratingText:"未认证"
16   - };
17   - },
18   - methods:{
19   - ratingCell(){
20   - uni.navigateTo({
21   - url: '../nameAuthentication/nameAuthentication'
22   - });
23   - }
24   - }
25   - }
26   -</script>
27   -
28   -<style lang="scss">
29   -
30   -</style>
pages/index/index.vue
... ... @@ -63,7 +63,7 @@
63 63  
64 64 </view>
65 65 <view class="uni-flex uni-row">
66   - <view class="flex-item">
  66 + <view class="flex-item" @="toBusinessCardPage">
67 67 <view class="">
68 68 <image src="../../static/me/me-coupon.png" class="index-icon"></image>
69 69 </view>
... ... @@ -187,9 +187,9 @@
187 187  
188 188 });
189 189 },
190   - toRatingPage() {
  190 + toBusinessCardPage() {
191 191 uni.navigateTo({
192   - url: '../creditRating/creditRating'
  192 + url: '../businessCard/businessCard'
193 193  
194 194 });
195 195 },
... ...
pages/nameAuthentication/nameAuthentication.vue deleted
1   -<template>
2   - <view>
3   - <uni-section title="实名认证" type="line">
4   - <view class="paddinglr30">
5   - <!-- 基础用法,不包含校验规则 -->
6   - <uni-forms ref="baseForm" :rules="rules" :modelValue="baseFormData">
7   - <uni-forms-item label="姓名" name="username" required>
8   - <uni-easyinput v-model="baseFormData.username" placeholder="请输入姓名" />
9   - </uni-forms-item>
10   - <uni-forms-item label="身份证号" name="userId" required>
11   - <uni-easyinput v-model="baseFormData.userId" placeholder="请输入身份证号" />
12   - </uni-forms-item>
13   - <uni-file-picker
14   - v-model="baseFormData.fontimageValue"
15   - fileMediatype="image"
16   -
17   - :image-styles="imageStyles"
18   - return-type="array"
19   - file-extname="png,jpg"
20   - :limit="1"
21   - @select="select"
22   - @progress="progress"
23   - @success="success"
24   - @fail="fail"
25   - title="身份证正面" />
26   -
27   - <uni-file-picker
28   - v-model="baseFormData.sideimageValue"
29   - fileMediatype="image"
30   -
31   - :image-styles="imageStyles"
32   - return-type="array"
33   - file-extname="png,jpg"
34   - :limit="1"
35   - @select="select"
36   - @progress="progress"
37   - @success="success"
38   - @fail="fail"
39   - title="身份证反面" />
40   -
41   - </uni-forms>
42   - </view>
43   - </uni-section>
44   - <view class="paddinglr30 margin-top-30 uni-common-mb">
45   - <button type="primary" @click="submit('baseForm')">确认</button>
46   - </view>
47   - </view>
48   -</template>
49   -
50   -<script>
51   - export default {
52   - data() {
53   - return {
54   - baseFormData: {
55   - invoicetitle: '',
56   - userId: '',
57   - fontimageValue:[],
58   - sideimageValue:[],
59   - },
60   - // 校验规则
61   - rules: {
62   - username: {
63   - rules: [{
64   - required: true,
65   - errorMessage: '姓名不能为空'
66   - }]
67   - },
68   - userId: {
69   - rules: [{
70   - required: true,
71   - errorMessage: '身份证号不能为空'
72   - }, {
73   - format: 'number',
74   - errorMessage: '身份证号只能输入数字'
75   - }]
76   - },
77   - },
78   - imageStyles: {
79   - width: 300,
80   - height: 200,
81   - // 线条样式
82   - borderStyle: {
83   - width: 1,
84   - color: 'blue',
85   - style: 'dashed',
86   - radius: 2
87   - }
88   - },
89   -
90   - }
91   -
92   - },
93   - methods: {
94   - // 获取上传状态
95   - select(e) {
96   - console.log('选择文件:', e)
97   - },
98   - // 获取上传进度
99   - progress(e) {
100   - console.log('上传进度:', e)
101   - },
102   -
103   - // 上传成功
104   - success(e) {
105   - console.log('上传成功')
106   - },
107   -
108   - // 上传失败
109   - fail(e) {
110   - console.log('上传失败:', e)
111   - },
112   -
113   - // 提交
114   - submit(ref) {
115   - this.$refs[ref].validate().then(res => {
116   - console.log('success', res);
117   - uni.showToast({
118   - title: `校验通过`
119   - })
120   - }).catch(err => {
121   - console.log('err', err);
122   - })
123   - }
124   - }
125   - }
126   -</script>
127   -
128   -<style lang="scss">
129   -
130   -</style>
pages/wxpaySuccess/wxpaySuccess.vue deleted
1   -<template>
2   - <view class="page-fill">
3   - <view class="successicon">
4   - <image class="imageIcon" src="../../static/orderInfo/orderinfo-success.png" mode=""></image>
5   - </view>
6   - <text class="paystatus">支付成功</text>
7   - <text class="payinfo">
8   - {{mycarNumber}} ¥{{payMoney|priceFormat()}}
9   - </text>
10   - <text class="paytime">
11   - 支付时间:{{dateStr}}
12   - </text>
13   - <view style="background: #d9d9d9;height:1px;margin-top:7px ;margin-left:15px ;opacity: 0.5; padding:0px;overflow:hidden;"></view>
14   -
15   - <text class="payways">
16   - 支付方式:{{payWays}}
17   - </text>
18   - <view style="background: #d9d9d9;height:1px;margin-top:7px;margin-left:15px ;opacity: 0.5;padding:0px;overflow:hidden;"></view>
19   -
20   - <text v-if="appOrderTimeout !=''" class="payways">
21   - 温馨提示:{{appOrderTimeout}}
22   - </text>
23   - <view v-if="appOrderTimeout !=''" style="background: #d9d9d9;height:1px;margin-top:7px;margin-left:15px ;opacity: 0.5;padding:0px;overflow:hidden;"></view>
24   -
25   - <button @click="Click" class="button-sp-area" type="primary" plain="true">完成</button>
26   - </view>
27   -</template>
28   -
29   -<script>
30   - export default {
31   - data() {
32   - return {
33   - mycarNumber:'',
34   - payWays:'',
35   - payMoney:0,
36   - appOrderTimeout:'',
37   - dateStr:''
38   - }
39   - },
40   -
41   - onLoad(params) {
42   - wx.showShareMenu({
43   - withShareTicket: true
44   - })
45   - this.mycarNumber = params.carNumber;
46   -
47   - this.payWays = params.payWays;
48   - this.payMoney = params.payMoney;
49   - this.appOrderTimeout = params.appOrderTimeout;
50   - this.getNowDate();
51   - },
52   - methods: {
53   - Click() {
54   - uni.navigateTo({
55   - url: '../index/idnex'
56   -
57   - });
58   - },
59   - getNowDate(){
60   - var dateTime = new Date();
61   - this.dateStr = this.getDateWeek(dateTime);
62   -
63   - },
64   -
65   - getDateWeek(now) {
66   - // var now=new Date();
67   - var year = now.getFullYear(); //获取四位数年数
68   - var month = now.getMonth() + 1;
69   - var date = now.getDate();
70   - var weeknum = now.getDay();
71   -
72   - var s = year + '-' + this.Appendzero(month) + '-' + this.Appendzero(date);
73   - return s;
74   - },
75   - Appendzero(obj) {
76   - if (obj < 10) return '0' + '' + obj;
77   - else return obj;
78   - }
79   - }
80   - }
81   -</script>
82   -
83   -<style>
84   - .page-fill {
85   - width: 100%;
86   - height: 100%;
87   - display: flex;
88   - flex-direction: column;
89   - }
90   -
91   - .imageIcon {
92   - width: 96px;
93   - height: 95px;
94   - margin-top: 42px;
95   - margin-left: auto;
96   - margin-right: auto;
97   - /* margin: 42px auto; */
98   - display: flex;
99   - justify-content: center;
100   -
101   -
102   - }
103   -
104   - .paystatus {
105   - margin-top: 20px;
106   - font-weight: bold;
107   - font-size: 18px;
108   - color: #404040;
109   - display: flex;
110   - justify-content: center;
111   - }
112   -
113   - .payinfo {
114   - margin-top: 3px;
115   - font-size: 16px;
116   - color: #404040;
117   - display: flex;
118   - justify-content: center;
119   - }
120   -
121   - .paytime {
122   - margin-top: 51px;
123   - margin-left: 15px;
124   - font-size: 14px;
125   - color: #404040;
126   - display: flex;
127   - justify-content: flex-start;
128   - }
129   -
130   - .payways {
131   - margin-top: 17px;
132   - margin-left: 15px;
133   - font-size: 14px;
134   - color: #404040;
135   - display: flex;
136   - justify-content: flex-start;
137   - }
138   -
139   - .button-sp-area {
140   - margin: 0 auto;
141   - width: 60%;
142   - margin-top: 114px;
143   -
144   - }
145   -</style>