ZZ 1 month ago
parent
commit
23308313fa

+ 1 - 1
mer_uniapp/api/merchant.js

@@ -47,7 +47,7 @@ export function getMerIndexInfoApi(id) {
  * @param Obj data
  * @param Obj data
  */
  */
 export function getMerSearchApi(data) {
 export function getMerSearchApi(data) {
-  return request.get(`merchant/search/list/v1`, data, {noAuth:true});
+  return request.get(`merchant/search/list`, data, {noAuth:true});
 }
 }
 
 
 /**
 /**

+ 0 - 31
mer_uniapp/pages.json

@@ -1332,37 +1332,6 @@
 			]
 			]
 		},
 		},
 		{
 		{
-			"root": "pages/rider",
-			"name": "rider",
-			"pages": [{
-					"path": "rider_shipping/index",
-					"style": {
-						"navigationBarTitleText": "接单",
-						"app-plus": {
-							// #ifdef APP-PLUS
-							"titleNView": {
-								"type": "default"
-							}
-							// #endif
-						}
-					}
-				},
-				{
-					"path": "rider_me/index",
-					"style": {
-						"navigationBarTitleText": "我的",
-						"app-plus": {
-							// #ifdef APP-PLUS
-							"titleNView": {
-								"type": "default"
-							}
-							// #endif
-						}
-					}
-				}
-			]
-		},
-		{
 			"root": "pages/admin/",
 			"root": "pages/admin/",
 			"name": "admin",
 			"name": "admin",
 			"pages": [{
 			"pages": [{

+ 3 - 4
mer_uniapp/pages/rider_index/components/rider_me/index.vue

@@ -33,23 +33,22 @@
 				riderInfo: [{
 				riderInfo: [{
 					id: 1,
 					id: 1,
 					name: '跑腿记录',
 					name: '跑腿记录',
-					img: require('./static/run-errands.png'),
+					img: '/statis/img/run-errands.png',
 					pagePath: ''
 					pagePath: ''
 				}, {
 				}, {
 					id: 2,
 					id: 2,
 					name: '提现',
 					name: '提现',
-					img: require('./static/withdrawal.png'),
+					img: '/statis/img/withdrawal.png',
 					pagePath: ''
 					pagePath: ''
 				}, {
 				}, {
 					id: 3,
 					id: 3,
 					name: '返回用户端',
 					name: '返回用户端',
-					img: require('./static/run-errands.png'),
+					img: '/statis/img/run-errands.png',
 					pagePath: ''
 					pagePath: ''
 				}],
 				}],
 			}
 			}
 		},
 		},
 		methods: {
 		methods: {
-
 			onRiderClick(id) {
 			onRiderClick(id) {
 				if (id === 3) {
 				if (id === 3) {
 					uni.switchTab({
 					uni.switchTab({

+ 4 - 4
mer_uniapp/pages/rider_index/components/rider_shipping/index.vue

@@ -6,7 +6,7 @@
 			</view>
 			</view>
 		</view>
 		</view>
 		<scroll-view scroll-y style="overflow: hidden;">
 		<scroll-view scroll-y style="overflow: hidden;">
-			<view v-for="item in riderData" :key="item.id" style="margin: 10rpx 0;">
+			<view v-for="(item, index) in riderData" :key="index" style="margin: 10rpx 0;">
 				<rider-order :orderInfo="item" @orderCilck="goOrderClick" :statusId="riderStatus"></rider-order>
 				<rider-order :orderInfo="item" @orderCilck="goOrderClick" :statusId="riderStatus"></rider-order>
 			</view>
 			</view>
 		</scroll-view>
 		</scroll-view>
@@ -53,6 +53,9 @@
 				],
 				],
 			}
 			}
 		},
 		},
+		created() {
+			this.getRiderDataList()
+		},
 		methods: {
 		methods: {
 			/**
 			/**
 			 * 切换类型
 			 * 切换类型
@@ -96,9 +99,6 @@
 				console.log(id)
 				console.log(id)
 			}
 			}
 		},
 		},
-		onLoad(options) {
-			this.getRiderDataList()
-		},
 		mounted() {
 		mounted() {
 
 
 		},
 		},

+ 2 - 16
mer_uniapp/pages/rider_index/index.vue

@@ -8,10 +8,10 @@
 			{{activeRole == '0' ? '接单' : '我的' }}
 			{{activeRole == '0' ? '接单' : '我的' }}
 		</view>
 		</view>
 		<!-- <view class="content-dom"> -->
 		<!-- <view class="content-dom"> -->
-		<view v-if="activeRole == '0'">
+		<view style="flex: 1;width: 100%;overflow: hidden;" v-if="activeRole == '0'">
 			<rider-shipping></rider-shipping>
 			<rider-shipping></rider-shipping>
 		</view>
 		</view>
-		<view v-if="activeRole == '1'">
+		<view style="flex: 1;width: 100%;overflow: hidden;" v-if="activeRole == '1'">
 			<rider-me></rider-me>
 			<rider-me></rider-me>
 		</view>
 		</view>
 		<!-- </view> -->
 		<!-- </view> -->
@@ -66,12 +66,6 @@
 				],
 				],
 				statusBarHeight: app.globalData.statusBarHeight,
 				statusBarHeight: app.globalData.statusBarHeight,
 				navigationBarHeight: 112,
 				navigationBarHeight: 112,
-				riderData: [], // 订单数组
-				loading: false, //是否加载中
-				loadend: false, //是否加载完毕
-				loadTitle: '加载更多', //提示语
-				page: 1,
-				limit: 20
 			}
 			}
 		},
 		},
 		methods: {
 		methods: {
@@ -84,13 +78,6 @@
 				// 	animationType: 'none' // 关闭默认的滑动效果
 				// 	animationType: 'none' // 关闭默认的滑动效果
 				// });
 				// });
 			},
 			},
-			onRiderClick(id) {
-				if (id === 3) {
-					uni.switchTab({
-						url: '/pages/user/index'
-					});
-				}
-			},
 		},
 		},
 		onLoad(options) {
 		onLoad(options) {
 			let that = this
 			let that = this
@@ -101,7 +88,6 @@
 					that.winHeight = res.windowHeight
 					that.winHeight = res.windowHeight
 				},
 				},
 			});
 			});
-			this.getRiderDataList()
 		},
 		},
 		mounted() {
 		mounted() {
 
 

+ 0 - 0
mer_uniapp/pages/rider_index/static/run-errands.png → mer_uniapp/static/img/run-errands.png


+ 0 - 0
mer_uniapp/pages/rider_index/static/withdrawal.png → mer_uniapp/static/img/withdrawal.png