Commit 2271bcd71fed62b3634b2ce3ee4de6823e9901c2
1 parent
65f63bf8
购买券
Showing
1 changed file
with
64 additions
and
26 deletions
pages/businessCard/buyCard.vue
... | ... | @@ -55,6 +55,45 @@ |
55 | 55 | @close="dialogClose"></uni-popup-dialog> |
56 | 56 | </uni-popup> |
57 | 57 | </view> |
58 | + <view class="example"> | |
59 | + <uni-forms ref="baseForm" :modelValue="baseFormData" > | |
60 | + <uni-forms-item label="车牌号码" required> | |
61 | + <uni-easyinput v-model="baseFormData.name" placeholder="请输入车牌号码" /> | |
62 | + </uni-forms-item> | |
63 | + <uni-section :title="'日期时间用法:' + datetimesingle" type="line"></uni-section> | |
64 | + <view class="example-body"> | |
65 | + <uni-datetime-picker type="datetime" v-model="datetimesingle" @change="changeLog" /> | |
66 | + </view> | |
67 | + </uni-forms> | |
68 | + </view> | |
69 | + | |
70 | + | |
71 | + | |
72 | + <!--<view class="uni-list">--> | |
73 | + <!--<view class="uni-list-cell">--> | |
74 | + <!--<view class="uni-list-cell-left">--> | |
75 | + <!--生效时间--> | |
76 | + <!--</view>--> | |
77 | + <!--<view class="uni-list-cell-db">--> | |
78 | + <!--<picker mode="date" :value="date" :start="startDate" :end="endDate" @change="bindStartDateChange">--> | |
79 | + <!--<view class="uni-input">{{benginDate}}</view>--> | |
80 | + <!--</picker>--> | |
81 | + <!--</view>--> | |
82 | + <!--</view>--> | |
83 | + <!--</view>--> | |
84 | + | |
85 | + <!--<view class="uni-list">--> | |
86 | + <!--<view class="uni-list-cell">--> | |
87 | + <!--<view class="uni-list-cell-left">--> | |
88 | + <!--失效时间--> | |
89 | + <!--</view>--> | |
90 | + <!--<view class="uni-list-cell-db">--> | |
91 | + <!--<picker mode="date" :value="date" :start="startDate" :end="endDate" @change="bindEndDateChange">--> | |
92 | + <!--<view class="uni-input">{{overDate}}</view>--> | |
93 | + <!--</picker>--> | |
94 | + <!--</view>--> | |
95 | + <!--</view>--> | |
96 | + <!--</view>--> | |
58 | 97 | |
59 | 98 | </view> |
60 | 99 | </template> |
... | ... | @@ -75,39 +114,30 @@ export default { |
75 | 114 | indexWay: 0, |
76 | 115 | benginDate: currentDate, |
77 | 116 | overDate: currentDate, |
78 | - rows:[], | |
79 | - pageNum:1,//当前页 | |
80 | - pageSize:1,//每页条数 | |
81 | - reload:false, | |
82 | - status:'more', | |
83 | - contentText:{ | |
84 | - contentdown:'上拉加载更多~', | |
85 | - contentrefresh:'正在加载更多~', | |
86 | - contentmore:'我是有底线的~' | |
87 | - }, | |
117 | + | |
88 | 118 | iconType:'auto', // 图标样式 |
119 | + datetimesingle: '', | |
120 | + // 基础表单数据 | |
121 | + baseFormData: { | |
122 | + name: '', | |
123 | + datetimesingle: 1627529992399 | |
124 | + }, | |
125 | + // 校验规则 | |
126 | + rules: { | |
127 | + name: { | |
128 | + rules: [{ | |
129 | + required: true, | |
130 | + errorMessage: '车牌号码不能为空' | |
131 | + }] | |
132 | + } | |
133 | + }, | |
89 | 134 | } |
90 | 135 | }, |
91 | 136 | onLoad(params) { |
92 | 137 | wx.showShareMenu({ |
93 | 138 | withShareTicket: true |
94 | 139 | }) |
95 | - // this.mycarNumber = params.carNumber; | |
96 | - // this.myorderId = params.orderId; | |
97 | - // this.myparkCode = params.parkCode; | |
98 | - // this.myorderState = params.orderState; | |
99 | - // this.totalFee = params.totalFee | |
100 | - // this.unPayFee = params.unPayFee | |
101 | - // if (params.orderState == 5) { | |
102 | - // //停车补缴单 103 | |
103 | - // this.mypaySrcType = '103' | |
104 | - // } else { | |
105 | - // this.mypaySrcType = '101' | |
106 | - // } | |
107 | - // // this.GetbillQueryInfo(this.mycarNumber, this.myorderId, this.myparkCode); | |
108 | - // this.getWxCode(); | |
109 | - // this.PDlogin(); | |
110 | - //console.log("xxxmake = "+this.makedateFormat()); | |
140 | + | |
111 | 141 | }, |
112 | 142 | onShow() { |
113 | 143 | var me = this; |
... | ... | @@ -133,6 +163,9 @@ export default { |
133 | 163 | } |
134 | 164 | }, |
135 | 165 | methods: { |
166 | + changeLog(e) { | |
167 | + console.log('change事件:', e); | |
168 | + }, | |
136 | 169 | dialogClose() { |
137 | 170 | console.log('点击关闭') |
138 | 171 | }, |
... | ... | @@ -193,6 +226,11 @@ export default { |
193 | 226 | </script> |
194 | 227 | |
195 | 228 | <style lang="scss" scoped> |
229 | + .example { | |
230 | + padding: 15px; | |
231 | + background-color: #fff; | |
232 | + } | |
233 | + | |
196 | 234 | /deep/ .uni-section{ |
197 | 235 | padding-bottom: 10px; |
198 | 236 | } | ... | ... |