Commit 3e498dc18f5d26e1a4ed2ef89604534919a31dc1

Authored by 刘淇
1 parent 7f049c3f

历史记录

src/main.js
@@ -6,8 +6,8 @@ import router from './router' @@ -6,8 +6,8 @@ import router from './router'
6 6
7 import './assets/css/reset.css' // 引入公共样式 7 import './assets/css/reset.css' // 引入公共样式
8 8
9 -import h5Popup from 'vue-h5-popup' // 引入弹窗  
10 -Vue.use(h5Popup) 9 +// import h5Popup from 'vue-h5-popup' // 引入弹窗
  10 +// Vue.use(h5Popup)
11 11
12 12
13 // import MintUI from 'mint-ui' 13 // import MintUI from 'mint-ui'
@@ -42,6 +42,9 @@ Vue.prototype.$utils = utils @@ -42,6 +42,9 @@ Vue.prototype.$utils = utils
42 import common from './utils/common' // 公共 42 import common from './utils/common' // 公共
43 Vue.prototype.$common = common 43 Vue.prototype.$common = common
44 44
  45 +import variables from './utils/variables' // 公共验证
  46 +Vue.prototype.$variables = variables
  47 +
45 import Mint from 'mint-ui'; 48 import Mint from 'mint-ui';
46 import 'mint-ui/lib/style.css' 49 import 'mint-ui/lib/style.css'
47 Vue.use(Mint); 50 Vue.use(Mint);
src/router/index.js
@@ -103,12 +103,12 @@ export default new Router({ @@ -103,12 +103,12 @@ export default new Router({
103 103
104 104
105 105
106 - // //---------------- 个人页面导航  
107 - // {  
108 - // path: '/selfNav',  
109 - // name: 'selfNav',  
110 - // component: () => import("@/views/mySelf/selfNav.vue")  
111 - // }, 106 + //---------------- 个人页面导航
  107 + {
  108 + path: '/selfNav',
  109 + name: 'selfNav',
  110 + component: () => import("@/views/mySelf/selfNav.vue")
  111 + },
112 // 112 //
113 // // ------------------------建议反馈 113 // // ------------------------建议反馈
114 // { 114 // {
@@ -125,13 +125,13 @@ export default new Router({ @@ -125,13 +125,13 @@ export default new Router({
125 // }, 125 // },
126 // 126 //
127 // 127 //
128 - // // ------------------------停车记录  
129 - // {  
130 - // path: '/binDing',  
131 - // name: 'binDing',  
132 - // component: () => import("@/views/binding/binDing.vue")  
133 - // },  
134 - // 128 + // ------------------------绑定手机
  129 + {
  130 + path: '/binDing',
  131 + name: 'binDing',
  132 + component: () => import("@/views/binding/binDing.vue")
  133 + },
  134 +
135 // 135 //
136 // // ------------------------购买会员卡提示 136 // // ------------------------购买会员卡提示
137 // { 137 // {
src/utils/variables.js
  1 +export default {
  2 + /* 是否手机号码*/
  3 + isPhone: function(rule, value, callback) {
  4 + const reg = /^[1][3,4,5,7,8][0-9]{9}$/;
  5 + if (value == "" || value == undefined || value == null) {
  6 + callback();
  7 + } else {
  8 + if ((!reg.test(value)) && value != "") {
  9 + callback(new Error("请输入正确的电话号码"));
  10 + } else {
  11 + callback();
  12 + }
  13 + }
  14 + }
  15 +};
  16 +
src/views/binding/binDing.vue
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 3
4 <mt-field label="手机号" placeholder="请输入正确的手机号" type="tel" v-model="phone" :attr="{ maxlength: 13 }"></mt-field> 4 <mt-field label="手机号" placeholder="请输入正确的手机号" type="tel" v-model="phone" :attr="{ maxlength: 13 }"></mt-field>
5 5
6 - <mt-field label="验证码" v-model="codeText"> 6 + <mt-field label="验证码" v-model="codeText" :disabled="disabled">
7 <div class="getCode" @click="getCode">{{timeNum}}</div> 7 <div class="getCode" @click="getCode">{{timeNum}}</div>
8 </mt-field> 8 </mt-field>
9 9
@@ -21,7 +21,8 @@ export default { @@ -21,7 +21,8 @@ export default {
21 codeText: '', 21 codeText: '',
22 phone: '', 22 phone: '',
23 timeText: '获取验证码', 23 timeText: '获取验证码',
24 - timeNum: 60, 24 + time: 0,
  25 + disabled:false
25 } 26 }
26 }, 27 },
27 created(){ 28 created(){
@@ -29,17 +30,33 @@ export default { @@ -29,17 +30,33 @@ export default {
29 }, 30 },
30 methods: { 31 methods: {
31 getCode: function () { 32 getCode: function () {
32 - var _this = this  
33 - // this.timeText = this.timeNum+'S'  
34 - let Num = 5  
35 - var timer = setInterval(function () {  
36 - _this.timeNum = Num-- +'s'  
37 - if(Num== -1){  
38 - _this.timeNum = '获取验证码'  
39 - clearInterval(timer)  
40 - }  
41 - }, 1000)  
42 - } 33 + var reg=11 && /^((13|14|15|17|18)[0-9]{1}\d{8})$/;
  34 + //var url="/nptOfficialWebsite/apply/sendSms?mobile="+this.ruleForm.phone;
  35 + if(this.phone==''){
  36 + this.$vux.toast.text('请输入手机号码', 'top')
  37 + }else if(!reg.test(this.phone)){
  38 + this.$vux.toast.text('手机格式不正确', 'top')
  39 + }else{
  40 + this.time=60;
  41 + this.disabled=true;
  42 + this.timer();
  43 + /*axios.post(url).then(
  44 + res=>{
  45 + this.phonedata=res.data;
  46 + })*/
  47 + }
  48 + },
  49 + timer() {
  50 + if (this.time > 0) {
  51 + this.time--;
  52 + this.btntxt=this.time+"s后重新获取";
  53 + setTimeout(this.timer, 1000);
  54 + } else{
  55 + this.time=0;
  56 + this.btntxt="获取验证码";
  57 + this.disabled=false;
  58 + }
  59 + },
43 } 60 }
44 } 61 }
45 </script> 62 </script>
src/views/eInvoice/invoiceRecord/exchange.vue
1 <template> 1 <template>
2 <div> 2 <div>
3 <group> 3 <group>
4 - <cell v-for="(i, index) in list" align-items="left" class="inovice-list" :value="'¥'+ (i.orderTotalFee/100).toFixed(2)"> 4 + <cell v-for="(i, index) in list" align-items="left" class="inovice-list" :value="'¥'+ (i.orderTotalFee/100).toFixed(2)" :key="index">
5 <div slot="title"> 5 <div slot="title">
6 <span>{{i.carNumber}}</span> 6 <span>{{i.carNumber}}</span>
7 </div> 7 </div>
src/views/eInvoice/invoiceRecord/invoiceRecord.vue
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 <group title="开票历史"> 3 <group title="开票历史">
4 <cell :title="i.invoiceBigType | invoiceBigTypeFilter" @click.native="toInvoiceDetail(i)" 4 <cell :title="i.invoiceBigType | invoiceBigTypeFilter" @click.native="toInvoiceDetail(i)"
5 :inline-desc="$utils.getLocalTime(i.invoiceDate)" 5 :inline-desc="$utils.getLocalTime(i.invoiceDate)"
6 - v-for="(i, index) in list"> 6 + v-for="(i, index) in list" :key="index">
7 <div> 7 <div>
8 <p>{{i.invoiceState | invoiceStateFilter}}</p> 8 <p>{{i.invoiceState | invoiceStateFilter}}</p>
9 <p>¥ {{(i.invoiceTotalFee/100).toFixed(2)}}</p> 9 <p>¥ {{(i.invoiceTotalFee/100).toFixed(2)}}</p>