Commit 8d32015968a6b5a20d954e853d832d02a88ab747

Authored by chenbiao
2 parents 93c5ecb3 752e0b8b

Merge remote-tracking branch 'origin/branch' into branch

# Conflicts:
#	common/common.js
#	pages/index/index.vue
common/common.js
@@ -35,13 +35,16 @@ const walletAccount = serverUrl + "/business/h5/wallet/account"; @@ -35,13 +35,16 @@ const walletAccount = serverUrl + "/business/h5/wallet/account";
35 const requestSign = function(inputData) { 35 const requestSign = function(inputData) {
36 36
37 var jsonList = inputData || {}; 37 var jsonList = inputData || {};
  38 +
  39 + jsonList.orgId = public_orgId;
38 jsonList.sign_type = "md5"; 40 jsonList.sign_type = "md5";
39 jsonList.app_id = "0eca8f5373ca4866aec2f8e9d9367104"; 41 jsonList.app_id = "0eca8f5373ca4866aec2f8e9d9367104";
40 jsonList.deviceInfo = "BC0703A4-AFB0-4B51-9089-9B7487C0CC6E"; 42 jsonList.deviceInfo = "BC0703A4-AFB0-4B51-9089-9B7487C0CC6E";
41 jsonList.salt = getSalt(); 43 jsonList.salt = getSalt();
42 jsonList.terminalSource = "11"; 44 jsonList.terminalSource = "11";
43 - jsonList.token = getGlobalUser("globalUser").token;  
44 - // jsonList.token = '84b5a8edb5974f7989e7888b9f48a765'; 45 + // jsonList.token = getGlobalUser("globalUser").token;
  46 + // jsonList.token = getGlobalUser("globalUser").token;
  47 + jsonList.token = 'eb1538c4c2ee45d7b2610cf071c4a27f';
45 48
46 var arrData = []; 49 var arrData = [];
47 for (var key in jsonList) { 50 for (var key in jsonList) {
@@ -126,4 +129,6 @@ export default { @@ -126,4 +129,6 @@ export default {
126 userLoginout, 129 userLoginout,
127 useraboutUs, 130 useraboutUs,
128 walletAccount, 131 walletAccount,
  132 + // 通过商户ID查询停车记录信息
  133 + getBusinessParkOrderByBusIdForPage:serverUrl + "/business/h5/order/getBusinessParkOrderByBusIdForPage",
129 } 134 }
pages.json
@@ -13,13 +13,30 @@ @@ -13,13 +13,30 @@
13 }, 13 },
14 "pages": [ 14 "pages": [
15 // pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages 15 // pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
16 - 16 + {
  17 + "path": "pages/parkRecordList/parkRecordList",
  18 + "style": {
  19 + "navigationBarTitleText": "停车记录"
  20 + }
  21 + },
17 { 22 {
18 "path": "pages/index/index", 23 "path": "pages/index/index",
19 "style": { 24 "style": {
20 "navigationBarTitleText": "商户管理" 25 "navigationBarTitleText": "商户管理"
21 } 26 }
22 }, 27 },
  28 +
  29 + {
  30 + "path": "pages/login/login",
  31 + "style": {
  32 + "navigationBarTitleText": "商户中心",
  33 + "enablePullDownRefresh": false
  34 + }
  35 +
  36 + },
  37 +
  38 +
  39 +
23 { 40 {
24 "path": "pages/businessCard/cardPrint", 41 "path": "pages/businessCard/cardPrint",
25 "style": { 42 "style": {
@@ -58,12 +75,7 @@ @@ -58,12 +75,7 @@
58 "navigationBarTitleText": "订单详情" 75 "navigationBarTitleText": "订单详情"
59 } 76 }
60 }, 77 },
61 - {  
62 - "path": "pages/parkRecordList/parkRecordList",  
63 - "style": {  
64 - "navigationBarTitleText": "停车记录"  
65 - }  
66 - }, 78 +
67 { 79 {
68 "path": "pages/parkPay/parkPay", 80 "path": "pages/parkPay/parkPay",
69 "style": { 81 "style": {
@@ -127,14 +139,7 @@ @@ -127,14 +139,7 @@
127 "navigationBarTitleText": "账单详情" 139 "navigationBarTitleText": "账单详情"
128 } 140 }
129 }, 141 },
130 - {  
131 - "path": "pages/login/login",  
132 - "style": {  
133 - "navigationBarTitleText": "商户中心",  
134 - "enablePullDownRefresh": false  
135 - }  
136 -  
137 - }, { 142 + {
138 "path": "pages/setting/setting", 143 "path": "pages/setting/setting",
139 "style": { 144 "style": {
140 "navigationBarTitleText": "设置", 145 "navigationBarTitleText": "设置",
pages/index/index.vue
@@ -48,7 +48,7 @@ @@ -48,7 +48,7 @@
48 </view> 48 </view>
49 <view class="index-title">停车缴费</view> 49 <view class="index-title">停车缴费</view>
50 </view> 50 </view>
51 - <view class="flex-item"> 51 + <view class="flex-item" @click="toRecordPage">
52 <view class=""> 52 <view class="">
53 <image src="../../static/me/me-recoder.png" class="index-icon"></image> 53 <image src="../../static/me/me-recoder.png" class="index-icon"></image>
54 </view> 54 </view>
@@ -178,7 +178,7 @@ @@ -178,7 +178,7 @@
178 toPursePage() { 178 toPursePage() {
179 uni.navigateTo({ 179 uni.navigateTo({
180 url: '../moneyRecharge/moneyRecharge' 180 url: '../moneyRecharge/moneyRecharge'
181 - 181 +
182 }); 182 });
183 }, 183 },
184 toInvoicePage() { 184 toInvoicePage() {
@@ -193,7 +193,15 @@ @@ -193,7 +193,15 @@
193 193
194 }); 194 });
195 }, 195 },
196 - 196 + toRecordPage() {
  197 + uni.navigateTo({
  198 + url: '../parkRecordList/parkRecordList'
  199 +
  200 + });
  201 + },
  202 +
  203 +
  204 +
197 } 205 }
198 } 206 }
199 </script> 207 </script>
pages/parkRecordList/parkRecordList.vue
1 <template> 1 <template>
2 <view> 2 <view>
3 <!--<view class="uni-title uni-common-pl">日期选择器</view>--> 3 <!--<view class="uni-title uni-common-pl">日期选择器</view>-->
4 -  
5 - 4 +
  5 +
6 <view class="uni-list"> 6 <view class="uni-list">
7 <view class="uni-list-cell"> 7 <view class="uni-list-cell">
8 <view class="uni-list-cell-left"> 8 <view class="uni-list-cell-left">
@@ -71,12 +71,8 @@ @@ -71,12 +71,8 @@
71 </template> 71 </template>
72 72
73 <script> 73 <script>
74 -import common from "../../common/common.js";  
75 -import requestServer from "../../common/requestServer.js";  
76 -  
77 74
78 export default { 75 export default {
79 -  
80 data() { 76 data() {
81 const currentDate = this.getDate({ 77 const currentDate = this.getDate({
82 format: true 78 format: true
@@ -100,8 +96,7 @@ export default { @@ -100,8 +96,7 @@ export default {
100 this.mycarNumber = params.carNumber; 96 this.mycarNumber = params.carNumber;
101 // this.mycarNumber = '苏B3M913'; 97 // this.mycarNumber = '苏B3M913';
102 } 98 }
103 - // this.getRecordOrder(this.mycarNumber, 10);  
104 - //console.log("xxxmake = "+this.makedateFormat()); 99 + this.getBusinessParkOrderByBusIdForPage()
105 }, 100 },
106 onShow() { 101 onShow() {
107 var me = this; 102 var me = this;
@@ -113,9 +108,7 @@ export default { @@ -113,9 +108,7 @@ export default {
113 } 108 }
114 }, 109 },
115 // 过滤器 110 // 过滤器
116 - filters: {  
117 -  
118 - }, 111 + filters: {},
119 //计算属性 112 //计算属性
120 computed: { 113 computed: {
121 startDate() { 114 startDate() {
@@ -126,6 +119,23 @@ export default { @@ -126,6 +119,23 @@ export default {
126 } 119 }
127 }, 120 },
128 methods: { 121 methods: {
  122 + // 通过商户ID查询停车记录信息
  123 + getBusinessParkOrderByBusIdForPage() {
  124 + let that = this
  125 + let paramsData = {
  126 + businessId: uni.getStorageSync("indexInfo").businessId,
  127 + startTime: that.date,
  128 + endTime: that.date
  129 + }
  130 + // 首页信息获取 接口
  131 + that.$myRequest({
  132 + url: that.$common.getBusinessParkOrderByBusIdForPage,
  133 + method: 'POST',
  134 + data: that.$common.requestSign(paramsData)
  135 + }).then(res => {
  136 + console.log(res)
  137 + })
  138 + },
129 bindDateChange: function (e) { 139 bindDateChange: function (e) {
130 this.date = e.detail.value 140 this.date = e.detail.value
131 }, 141 },
@@ -151,16 +161,17 @@ export default { @@ -151,16 +161,17 @@ export default {
151 .parkRecordWrap { 161 .parkRecordWrap {
152 padding: 5px 40px 5px 15px; 162 padding: 5px 40px 5px 15px;
153 border-bottom: 1px solid #ccc; 163 border-bottom: 1px solid #ccc;
154 - position:relative;  
155 - :after{ 164 + position: relative;
  165 + :after {
156 content: '>'; 166 content: '>';
157 position: absolute; 167 position: absolute;
158 - top:20px; 168 + top: 20px;
159 right: 5px; 169 right: 5px;
160 font-size: 18px; 170 font-size: 18px;
161 } 171 }
162 } 172 }
163 - .recordCon{ 173 +
  174 + .recordCon {
164 color: #999; 175 color: #999;
165 display: flex; 176 display: flex;
166 justify-content: space-between; 177 justify-content: space-between;