Browse Source

商户端权益券标识

baijunde 1 năm trước cách đây
mục cha
commit
0ea91b3d60
5 tập tin đã thay đổi với 52 bổ sung25 xóa
  1. 1 1
      manifest.json
  2. 28 20
      pages/order/index.vue
  3. 12 2
      pages/product/creatStandard.vue
  4. 11 2
      pages/product/index.vue
  5. BIN
      static/product/ticket.png

+ 1 - 1
manifest.json

@@ -1,5 +1,5 @@
 {
-    "name" : "本地生活",
+    "name" : "掌柜生活商户版",
     "appid" : "__UNI__E0EA6E1",
     "description" : "",
     "versionName" : "0.0.2",

+ 28 - 20
pages/order/index.vue

@@ -4,7 +4,6 @@
 
 			<view class="top"></view>
 			<view class="head">
-				<!-- <span class="cuIcon-back" @click="back"></span> -->
 				<view class="case">
 					<view class="select_type">
 						<div class="tab-item" :class="tabIndex == 0?'active':''"
@@ -40,7 +39,7 @@
 			</view>
 		</view>
 		<mescroll-uni class="list" :fixed="false" ref="mescrollRef" @up="getList" @init="mescrollInit" :use="false"
-			v-show="tabIndex ==0">
+			v-if="tabIndex ==0">
 			<view class="order_item" v-for="(item,index) in orderList" :key="item.id" @click="geDetail(item)">
 				<view class="order_id">
 					<view class="id_left">
@@ -68,6 +67,9 @@
 						{{item.productName}}
 						<span>¥{{item.orderPrice}}</span>
 					</view>
+					<view class="ticket" v-if="item.isUseRights">
+						<image src="/static/product/ticket.png" mode=""></image>
+					</view>
 				</view>
 				<view class="time">
 					<view class="time_left">
@@ -81,7 +83,7 @@
 		</mescroll-uni>
 		<!-- 服务订单 -->
 		<mescroll-uni class="list" :fixed="false" ref="mescrollRef" @up="getserviceList" @init="mescrollInit" :use="false"
-			v-show="tabIndex == 1">
+			v-if="tabIndex == 1">
 			<view class="service_order" v-for="item in serviceList" :key="item.orderNo" @click="goDetail(item)">
 				<view class="item_title">
 					<span>订单编号:{{item.orderNo}}</span>
@@ -128,8 +130,8 @@
 							去评价
 						</view>
 					</view>
-					<!-- 送车到站按钮区域结束-->
-					<!-- 上门取车按钮区域开始item.checkType==0 -->
+					<!-- 送车到站按钮区域结束
+					上门取车按钮区域开始item.checkType==0 -->
 					<view class="" v-if="item.checkType == 0" style="flex:1;display: flex;justify-content: space-around;">
 						<view class="btn join" @click.stop="goGetCar(item)" v-if="item.statusCode ==5 && item.flowStatus == 4">
 							去取车
@@ -152,7 +154,7 @@
 							去评价
 						</view>
 					</view>
-					<!-- 上门取车按钮区域结束-->
+					<!-- 上门取车按钮区域结束 -->
 				</view>
 				<view class="add_service" @click.stop="addService(item)" v-if="item.statusCode==4 ||item.statusCode==3 ">
 					<span>添加收费服务</span>
@@ -270,7 +272,7 @@
 						tip: '暂无相关数据'
 					}
 				},
-				tabIndex: 1,
+				tabIndex: 0,
 				serviceList: [],
 				isReceive: false, //接单成功弹窗
 				isServiceDeatil: false, //服务明细弹窗
@@ -315,18 +317,23 @@
 				this.currentIndex = index
 				this.state = item.type
 				this.orderList = []
-				this.mescroll.resetUpScroll();
-				// let page = {
-				// 	num: 1,
-				// 	size: 10
-				// }
-				// this.getList(page)
+				// this.mescroll.resetUpScroll();
+				let page = {
+					num: 1,
+					size: 10
+				}
+				this.getList(page)
 			},
 			//服务订单
 			selectSeiviceType(item, index) {
 				this.currentIndex = index
 				this.statusCode = item.type
 				this.serviceList = []
+				// let page = {
+				// 	num: 1,
+				// 	size: 10
+				// }
+				
 				this.mescroll.resetUpScroll();
 			},
 			searchList() {
@@ -366,15 +373,9 @@
 					buyEndTime: this.buyEndTime
 				}
 				this.$http.post("/app/order/locaOrder/list", data).then(res => {
-					console.log(res)
-					if (res.data.code == 200) {
 						this.orderList = this.orderList.concat(res.data.result.records)
 						this.mescroll.endSuccess(res.data.result.records.length, res.data.result.total);
 						uni.showTabBar()
-					} else {
-						this.mescroll.endErr()
-						this.orderList = []
-					}
 				}).catch(() => {
 					this.mescroll.endErr()
 				})
@@ -384,6 +385,7 @@
 					url: '/pages/order/details?orderId=' + item.orderId
 				})
 			},
+			//获取服务订单列表
 			getserviceList(page) {
 				let data = {
 					merchantId: this.merchantId,
@@ -393,7 +395,7 @@
 				}
 				this.$http.post("/ts/merchant/serviceOrder", data).then(res => {
 						if (res.data.code == 200) {
-							this.serviceList = res.data.result.records
+							this.serviceList =this.serviceList.cancat(res.data.result.records) 
 							this.mescroll.endSuccess(res.data.result.records.length, res.data.result.total);
 						}
 					})
@@ -839,6 +841,12 @@
 							color: #F0761D;
 						}
 					}
+					.ticket{
+						image{
+							width: 50rpx;
+							height: 50rpx;
+						}
+					}
 
 					.schedule {
 						width: 15%;

+ 12 - 2
pages/product/creatStandard.vue

@@ -36,6 +36,9 @@
 								style="color:#999 ;font-size: 22rpx; text-decoration: line-through;">¥{{ item.price }}</span>
 						</view>
 					</view>
+					<view class="ticket" v-if="item.isRights == 1">
+							<image src="/static/product/ticket.png" mode=""></image>
+					</view>
 					<view class="tag" @click.stop="select(item)">
 						<!-- <span>组合套餐</span>
 						<span class="frame"></span> -->
@@ -141,7 +144,7 @@ export default {
 							item.select = false;
 							item.saleEndDate = item.saleEndDate.includes('00:00:00') ? item.saleEndDate.slice(0, 10) : item.saleEndDate
 							item.saleStartDate = item.saleStartDate.includes('00:00:00') ? item.saleStartDate.slice(0, 10) : item.saleStartDate
-							item.productImage = configService.apiUrl + '/' + item.productImage
+							// item.productImage = configService.apiUrl + '/' + item.productImage
 						})
 						this.productList = res.data.result.records
 					}
@@ -385,7 +388,7 @@ export default {
 				width: 100%;
 				height: auto;
 				min-height: 132rpx;
-				height: 132rpx;
+				// height: 132rpx;
 				display: flex;
 				align-items: center;
 				margin-top: 20rpx;
@@ -433,6 +436,13 @@ export default {
 						}
 					}
 				}
+				.ticket{
+					margin: 0 20rpx;
+					image{
+						width: 50rpx;
+						height: 50rpx;
+					}
+				}
 
 				.tag {
 					width: 40rpx;

+ 11 - 2
pages/product/index.vue

@@ -69,6 +69,7 @@
 							<span style="font-size: 22rpx;margin: 0px;">¥</span>{{item.soldPrice}}
 							<span style="color:#999 ;font-size: 22rpx; text-decoration: line-through;">¥{{item.price}}</span>
 						</view>
+						<image src="/static/product/ticket.png" mode="" class="ticket" v-if="item.isRights == 1"></image>
 					</view>
 					<view class="tag" v-if="isManage" @click.stop="select(item)">
 						<!-- <span>组合套餐</span> -->
@@ -81,7 +82,7 @@
 					<view class="delist" @click.stop="sell(item)" v-if="item.productStatus==0">
 						上架
 					</view>
-					<view class="delist select" @click.stop="goSelect(item)" >
+					<view class="delist select" @click.stop="goSelect(item)" style="margin-left: 20rpx;">
 						选择检测站
 					</view>
 					<view class="delist" @click.stop="delist(item)" v-if="item.productStatus==1">
@@ -706,7 +707,7 @@
 						justify-content: space-between;
 						font-weight: 600;
 						font-style: 28rpx;
-
+						position: relative;
 						.repertory {
 							font-size: 24rpx;
 							display: flex;
@@ -736,6 +737,14 @@
 
 							}
 						}
+						image{
+							position: absolute;
+							top: 50%;
+							right: 50rpx;
+							transform: translateY(-50%);
+							width: 50rpx;
+							height: 50rpx;
+						}
 					}
 
 					.tag {

BIN
static/product/ticket.png