lhl 2 years ago
parent
commit
8646780df8

+ 33 - 12
pages/goods/goods_list/list.vue

@@ -1,24 +1,34 @@
 <template>
 <template>
 	<view class="content">
 	<view class="content">
 		<view class="good-list">
 		<view class="good-list">
-			<view class="good" v-for="item in list" @click="navTo('/pages/goods_details/index?id=' + item.product.id)">
-				<image :src="item.slider_image" mode="" class="good-image"></image>
+			<view class="good" v-for="item in list" @click="navTo('/pages/goods_details/index?id=' + (type == 1 ? item.product_id :item.product.id))" :style="{'height': type == 1 ? '450rpx': '500rpx'}">
+				<image :src="type == 1?item.image : item.slider_image" mode="" class="good-image"></image>
 				<view class="good-name ">
 				<view class="good-name ">
-					<view class="clamp">
+					<view class="clamp" v-if="type !=1">
 						{{item.store_name}}
 						{{item.store_name}}
 					</view>
 					</view>
+					<view class="clamp" v-else>
+						{{item.card_name}}
+					</view>
 				</view>
 				</view>
-				<view class="time-wrap">
-					<view class="time">
-						时间:{{item.product.unit_name}}
+				<view class="time-wrap" v-if="type != 1">
+					<view class="time" v-if="item.product.keyword">
+						时间:{{item.product.keyword}}
 					</view>
 					</view>
 				</view>
 				</view>
 				<view class="good-price">
 				<view class="good-price">
-					<view class="price">
+					<view class="price" v-if="type != 1">
 						¥{{item.product.price}}
 						¥{{item.product.price}}
 					</view>
 					</view>
-					<view class="xl">
+					<view class="price" v-else>
+						¥{{item.card_price}}
+					</view>
+					<view class="xl" v-if="type != 1 &&item.product.ot_price*1 > item.product.price ">
+						¥{{item.product.ot_price}}
 					</view>
 					</view>
+					<!-- <view class="xl" v-if="type == 1 && item.card_price ">
+						¥{{item.card_price}}
+					</view> -->
 				</view>
 				</view>
 			</view>
 			</view>
 		</view>
 		</view>
@@ -28,7 +38,8 @@
 
 
 <script>
 <script>
 	import {
 	import {
-		getServeItem
+		getServeItem,
+		getSeverCardList
 	} from "@/api/store.js"
 	} from "@/api/store.js"
 	export default {
 	export default {
 		data() {
 		data() {
@@ -44,10 +55,10 @@
 			if (opt.type) {
 			if (opt.type) {
 				this.type = opt.type
 				this.type = opt.type
 			}
 			}
-			this.getList()
+			
 		},
 		},
 		onShow() {
 		onShow() {
-
+			this.getList()
 		},
 		},
 		onReachBottom() {
 		onReachBottom() {
 			// this.getList()
 			// this.getList()
@@ -70,6 +81,8 @@
 				that.loadingType = 'loading'
 				that.loadingType = 'loading'
 				if (that.type == 0) {
 				if (that.type == 0) {
 					getList = getServeItem
 					getList = getServeItem
+				}else {
+					getList = getSeverCardList
 				}
 				}
 				getList({
 				getList({
 					page: that.page,
 					page: that.page,
@@ -208,7 +221,8 @@
 			.good-price {
 			.good-price {
 				display: flex;
 				display: flex;
 				width: 336rpx;
 				width: 336rpx;
-				justify-content: space-between;
+				justify-content: flex-start;
+				align-items: flex-end;
 				font-size: 28rpx;
 				font-size: 28rpx;
 				font-weight: bold;
 				font-weight: bold;
 				color: #ff6973;
 				color: #ff6973;
@@ -217,11 +231,18 @@
 				padding: 0 20rpx;
 				padding: 0 20rpx;
 
 
 				.xl {
 				.xl {
+					padding-left: 10rpx;
 					font-size: 20rpx;
 					font-size: 20rpx;
 					font-weight: bold;
 					font-weight: bold;
 					color: #999999;
 					color: #999999;
+					text-decoration: line-through;
 				}
 				}
 			}
 			}
 		}
 		}
 	}
 	}
+	.clamp {
+		white-space: nowrap;
+		overflow: hidden;
+		text-overflow: ellipsis;
+	}
 </style>
 </style>

+ 78 - 39
pages/goods/order_confirm/index.vue

@@ -103,6 +103,18 @@
 				<orderGoods v-else :cartInfo="cartInfo" :giveData="giveData" :shippingType="shippingType"
 				<orderGoods v-else :cartInfo="cartInfo" :giveData="giveData" :shippingType="shippingType"
 					:product_type='product_type' :giveCartInfo="giveCartInfo"></orderGoods>
 					:product_type='product_type' :giveCartInfo="giveCartInfo"></orderGoods>
 			</view>
 			</view>
+			<view class='moneyList' v-if="ptype == 5">
+				<view class="item acea-row row-between-wrapper" >
+					<view>销售员工</view>
+				</view>
+				<scroll-view scroll-x="true" class="zp-wrap" @scrolltolower="">
+					<view class="zp-item" v-for="ygitem in saleyg.list" @click="choosYg(ygitem)"
+						:class="{'choose': ygitem.id == sale_yg.id}">
+						<image :src="ygitem.avatar || '../../../static/images/avt.png'" mode="" class="zp-logo"></image>
+						<view class="zp-name">{{ygitem.alias}}</view>
+					</view>
+				</scroll-view>
+			</view>
 			<view class='wrapper'>
 			<view class='wrapper'>
 				<view class="item acea-row row-between-wrapper" v-if="ptype == 6">
 				<view class="item acea-row row-between-wrapper" v-if="ptype == 6">
 					<view>预约时间</view>
 					<view>预约时间</view>
@@ -321,6 +333,7 @@
 					</view>
 					</view>
 				</view>
 				</view>
 			</view>
 			</view>
+			
 			<view class='moneyList'>
 			<view class='moneyList'>
 				<view class='item acea-row row-between-wrapper'>
 				<view class='item acea-row row-between-wrapper'>
 					<view>商品总价:</view>
 					<view>商品总价:</view>
@@ -617,16 +630,10 @@
 				codeData: {},
 				codeData: {},
 				ptype: 1,
 				ptype: 1,
 				yytime: '',//预约时间
 				yytime: '',//预约时间
-				yg: {
-					page: 1,
-					limit: 100,
+				saleyg: {
 					list: [],
 					list: [],
-					loadingType: 'loadmore',
-					loaded: false,
-				},
-				choose_yg: {
-				
 				},
 				},
+				sale_yg: {}
 			};
 			};
 		},
 		},
 		computed: mapGetters(['isLogin']),
 		computed: mapGetters(['isLogin']),
@@ -635,6 +642,7 @@
 			if (this.ptype == 6) {
 			if (this.ptype == 6) {
 				this.getList()
 				this.getList()
 			}
 			}
+			this.getMen()
 			// #ifdef H5
 			// #ifdef H5
 			this.from = this.$wechat.isWeixin() ? 'weixin' : 'weixinh5'
 			this.from = this.$wechat.isWeixin() ? 'weixin' : 'weixinh5'
 			// #endif
 			// #endif
@@ -727,42 +735,26 @@
 			this.timeranges = arrayNew;
 			this.timeranges = arrayNew;
 		},
 		},
 		methods: {
 		methods: {
-			// 选择员工
-			choosYg(item) {
-				this.choose_yg = item
-			},
 			// 获取员工列表
 			// 获取员工列表
-			getMen() {
+			getMen(type) {
 				let that = this
 				let that = this
-				if(that.yg.loadingType == 'noMore' || that.yg.loadingType == 'loading' ) {
-					return
-				}
-				that.yg.loadingType = 'loading'
 				getMen({
 				getMen({
-					page: that.yg.page,
-					limit: that.yg.limit,
-					store_id: this.system_store.id
+					page: 1,
+					limit: 100,
 				}).then(res => {
 				}).then(res => {
-					console.log(res)
-					let arr = []
-					if(that.yg.page == 1) {
-						arr = [{
-							uid: 0,
-							id: 0,
-							name: '随机指派'
-						}]
-					}
-					arr = arr.concat(res.data.list)
-					that.yg.list = that.yg.list.concat(arr)
-					if(that.yg.limit == res.data.list.length) {
-						that.yg.loadingType = 'more'
-						that.yg.page++
-					}else {
-						that.yg.loadingType = 'noMore'
-					}
-					that.yg.loaded = true
+					let arr1 = res.data.list
+					let arr2 = [{
+						id: 0,
+						alias: '暂无'
+					}]
+					that.saleyg.list = arr2.concat(arr1)
 				})
 				})
 			},
 			},
+			// 选择员工
+			choosYg(item) {
+				this.sale_yg = item
+			},
+			
 			// 打开picker
 			// 打开picker
 			    openDatetimePicker() {
 			    openDatetimePicker() {
 			      this.$refs.myPicker.show();
 			      this.$refs.myPicker.show();
@@ -1088,7 +1080,6 @@
 					if (fromType != 1) {
 					if (fromType != 1) {
 						this.getConfirm();
 						this.getConfirm();
 					}
 					}
-					this.getMen()
 				}).catch(err => {})
 				}).catch(err => {})
 			},
 			},
 			// 关闭地址弹窗;
 			// 关闭地址弹窗;
@@ -1908,6 +1899,7 @@
 					title: '请选择支付方式'
 					title: '请选择支付方式'
 				});
 				});
 				data = {
 				data = {
+					sale_uid: that.sale_yg.id || 0,
 					collate_code_id: that.collage_id || that.tableId,
 					collate_code_id: that.collage_id || that.tableId,
 					custom_form: that.confirm,
 					custom_form: that.confirm,
 					real_name: that.contacts,
 					real_name: that.contacts,
@@ -2616,6 +2608,53 @@
 	
 	
 	
 	
 	
 	
+		.zp-item {
+			display: inline-block;
+			margin-right: 15rpx;
+			padding-top: 34rpx;
+			width: 172rpx;
+			height: 216rpx;
+			// background: #E02020;
+			background-color: #fff;
+			border-radius: 10rpx;
+	
+			.zp-logo {
+				display: block;
+				width: 106rpx;
+				height: 106rpx;
+				margin: auto;
+				border-radius: 50%;
+				background-color: #eee;
+			}
+	
+			.zp-name {
+				margin-top: 15rpx;
+				width: 100%;
+				text-align: center;
+				font-size: 30rpx;
+				font-weight: bold;
+				color: #333333;
+			}
+		}
+	
+		.choose {
+			background-color: #262261 !important;
+	
+			.zp-name {
+				color: #fff !important;
+			}
+	
+		}
+	}
+	//指派
+	.zp-wrap {
+		margin-top: 20rpx;
+		width: 650rpx;
+		height: 216rpx;
+		white-space: nowrap;
+	
+	
+	
 		.zp-item {
 		.zp-item {
 			display: inline-block;
 			display: inline-block;
 			margin-right: 15rpx;
 			margin-right: 15rpx;

+ 94 - 77
pages/goods/order_confirm/yuyue.vue

@@ -1,7 +1,7 @@
 <template>
 <template>
 	<view :style="colorStyle">
 	<view :style="colorStyle">
 		<view class='order-submission'>
 		<view class='order-submission'>
-			<view class="headerCon" >
+			<view class="headerCon">
 				<view class="add-title acea-row row-between-wrapper">
 				<view class="add-title acea-row row-between-wrapper">
 					<view class="acea-row row-middle">
 					<view class="acea-row row-middle">
 						<view class="icon ">
 						<view class="icon ">
@@ -54,41 +54,41 @@
 					:product_type='product_type' :giveCartInfo="giveCartInfo"></orderGoods>
 					:product_type='product_type' :giveCartInfo="giveCartInfo"></orderGoods>
 			</view>
 			</view>
 			<view class='wrapper'>
 			<view class='wrapper'>
-				<view class="item acea-row row-between-wrapper" >
+				<view class="item acea-row row-between-wrapper">
 					<view>预约时间</view>
 					<view>预约时间</view>
 					<view class='discount' @click="openDatetimePicker">
 					<view class='discount' @click="openDatetimePicker">
 						{{yytime || '请选择预约时间'}}
 						{{yytime || '请选择预约时间'}}
 						<text class='iconfont icon-jiantou'></text>
 						<text class='iconfont icon-jiantou'></text>
 					</view>
 					</view>
-					
+
 				</view>
 				</view>
 			</view>
 			</view>
-			
+
 			<view class='moneyList'>
 			<view class='moneyList'>
-				<view class="item acea-row row-between-wrapper" >
+				<!-- <view class="item acea-row row-between-wrapper" >
 					<view>销售员工</view>
 					<view>销售员工</view>
 				</view>
 				</view>
 				<scroll-view scroll-x="true" class="zp-wrap" @scrolltolower="">
 				<scroll-view scroll-x="true" class="zp-wrap" @scrolltolower="">
 					<view class="zp-item" v-for="ygitem in saleyg.list" @click="choosYg(ygitem,1)"
 					<view class="zp-item" v-for="ygitem in saleyg.list" @click="choosYg(ygitem,1)"
 						:class="{'choose': ygitem.id == sale_yg.id}">
 						:class="{'choose': ygitem.id == sale_yg.id}">
 						<image :src="ygitem.avatar || '../../../static/images/avt.png'" mode="" class="zp-logo"></image>
 						<image :src="ygitem.avatar || '../../../static/images/avt.png'" mode="" class="zp-logo"></image>
-						<view class="zp-name">{{ygitem.name}}</view>
+						<view class="zp-name">{{ygitem.alias}}</view>
 					</view>
 					</view>
-				</scroll-view>
-				<view class="item acea-row row-between-wrapper" >
+				</scroll-view> -->
+				<view class="item acea-row row-between-wrapper">
 					<view>预约员工</view>
 					<view>预约员工</view>
 				</view>
 				</view>
 				<scroll-view scroll-x="true" class="zp-wrap" @scrolltolower="">
 				<scroll-view scroll-x="true" class="zp-wrap" @scrolltolower="">
 					<view class="zp-item" v-for="ygitem in yg.list" @click="choosYg(ygitem,2)"
 					<view class="zp-item" v-for="ygitem in yg.list" @click="choosYg(ygitem,2)"
 						:class="{'choose': ygitem.id == choose_yg.id}">
 						:class="{'choose': ygitem.id == choose_yg.id}">
 						<image :src="ygitem.avatar || '../../../static/images/avt.png'" mode="" class="zp-logo"></image>
 						<image :src="ygitem.avatar || '../../../static/images/avt.png'" mode="" class="zp-logo"></image>
-						<view class="zp-name">{{ygitem.name}}</view>
+						<view class="zp-name">{{ygitem.alias}}</view>
 					</view>
 					</view>
 				</scroll-view>
 				</scroll-view>
-				
+
 			</view>
 			</view>
 			<view class='moneyList'>
 			<view class='moneyList'>
-				
+
 				<view class='item acea-row row-between-wrapper'>
 				<view class='item acea-row row-between-wrapper'>
 					<view>商品总价:</view>
 					<view>商品总价:</view>
 					<view class='money'>
 					<view class='money'>
@@ -102,7 +102,7 @@
 					</view>
 					</view>
 				</view>
 				</view>
 			</view>
 			</view>
-			
+
 			<view class="height-add"></view>
 			<view class="height-add"></view>
 			<view class='footer acea-row row-between-wrapper'>
 			<view class='footer acea-row row-between-wrapper'>
 				<view>合计:
 				<view>合计:
@@ -113,7 +113,7 @@
           立即结算</view>
           立即结算</view>
         <view class='settlement bg-color-hui' style='z-index:100' v-else>立即结算</view> -->
         <view class='settlement bg-color-hui' style='z-index:100' v-else>立即结算</view> -->
 				<view class='settlement' style='z-index:100' @tap.stop="goPay">立即结算</view>
 				<view class='settlement' style='z-index:100' @tap.stop="goPay">立即结算</view>
-				
+
 			</view>
 			</view>
 		</view>
 		</view>
 		<view class="alipaysubmit" v-html="formContent"></view>
 		<view class="alipaysubmit" v-html="formContent"></view>
@@ -146,9 +146,9 @@
 		<timeranges :isShow='isShow' :time='timeranges' @confrim="confrim" @cancel="cancels"></timeranges>
 		<timeranges :isShow='isShow' :time='timeranges' @confrim="confrim" @cancel="cancels"></timeranges>
 		<areaWindow ref="areaWindow" :display="display" :address='addressInfoArea' :cityShow='cityShow'
 		<areaWindow ref="areaWindow" :display="display" :address='addressInfoArea' :cityShow='cityShow'
 			@submit="OnAreaAddress" @changeClose="changeAddressClose"></areaWindow>
 			@submit="OnAreaAddress" @changeClose="changeAddressClose"></areaWindow>
-			<buuug7-simple-datetime-picker ref="myPicker" @submit="handleSubmit" @err="datetimePickerErr" :start-year="start_year" :time-init="time_init"
-				:end-year="2030"  :time-hide="[true, true, true, true, true, false]"
-				:time-label="['年', '月', '日', '时', '分', '秒']" />
+		<buuug7-simple-datetime-picker ref="myPicker" @submit="handleSubmit" @err="datetimePickerErr"
+			:start-year="start_year" :end-year="2030" :time-hide="[true, true, true, true, true, false]"
+			:time-label="['年', '月', '日', '时', '分', '秒']" />
 	</view>
 	</view>
 </template>
 </template>
 <script>
 <script>
@@ -201,7 +201,7 @@
 	import payment from '@/components/payment';
 	import payment from '@/components/payment';
 	import colors from "@/mixins/color";
 	import colors from "@/mixins/color";
 	let newTime = new Date()
 	let newTime = new Date()
-	
+
 	export default {
 	export default {
 		components: {
 		components: {
 			payment,
 			payment,
@@ -218,7 +218,7 @@
 		mixins: [colors],
 		mixins: [colors],
 		data() {
 		data() {
 			return {
 			return {
-				time_init: newTime.getTime() + 60*30,
+				time_init: newTime.getTime() + 60 * 30,
 				start_year: newTime.getFullYear(),
 				start_year: newTime.getFullYear(),
 				addressInfoArea: [],
 				addressInfoArea: [],
 				cityShow: 2,
 				cityShow: 2,
@@ -347,7 +347,7 @@
 				tableId: 0,
 				tableId: 0,
 				codeData: {},
 				codeData: {},
 				ptype: 1,
 				ptype: 1,
-				yytime: '',//预约时间
+				yytime: '', //预约时间
 				yg: {
 				yg: {
 					page: 1,
 					page: 1,
 					limit: 100,
 					limit: 100,
@@ -411,11 +411,11 @@
 				let that = this
 				let that = this
 				getUserInfo().then(res => {
 				getUserInfo().then(res => {
 					this.userInfo = res.data
 					this.userInfo = res.data
-						//#ifdef MP
-						that.cartArr[1].payStatus = 0;
-						//#endif
-						//余额支付是否开启
-						that.cartArr[2].title = '可用余额:' + this.userInfo.now_money;
+					//#ifdef MP
+					that.cartArr[1].payStatus = 0;
+					//#endif
+					//余额支付是否开启
+					that.cartArr[2].title = '可用余额:' + this.userInfo.now_money;
 				})
 				})
 			},
 			},
 			computedServe() {
 			computedServe() {
@@ -429,22 +429,22 @@
 				})
 				})
 			},
 			},
 			// 选择员工
 			// 选择员工
-			choosYg(item,index) {
-				if(index == 1) {
+			choosYg(item, index) {
+				if (index == 1) {
 					this.sale_yg = item
 					this.sale_yg = item
-				}else {
+				} else {
 					this.choose_yg = item
 					this.choose_yg = item
 				}
 				}
 			},
 			},
 			// 获取员工列表
 			// 获取员工列表
-			getMen(type ) {
+			getMen(type) {
 				let that = this
 				let that = this
-				if(type == 're') {
+				if (type == 're') {
 					that.yg.loadingType = 'more'
 					that.yg.loadingType = 'more'
 					that.yg.page = 1
 					that.yg.page = 1
 					that.yg.list = []
 					that.yg.list = []
 				}
 				}
-				if(that.yg.loadingType == 'noMore' || that.yg.loadingType == 'loading' ) {
+				if (that.yg.loadingType == 'noMore' || that.yg.loadingType == 'loading') {
 					return
 					return
 				}
 				}
 				that.yg.loadingType = 'loading'
 				that.yg.loadingType = 'loading'
@@ -455,39 +455,48 @@
 				}).then(res => {
 				}).then(res => {
 					console.log(res)
 					console.log(res)
 					let arr = []
 					let arr = []
-					
+
 					let arr1 = res.data.list
 					let arr1 = res.data.list
+					arr1.forEach(item => {
+						if (item.is_reservation == 1) {
+							arr.push(item)
+						}
+					})
 					let arr2 = [{
 					let arr2 = [{
 						id: 0,
 						id: 0,
-						name: '暂无'
+						alias: '暂无'
 					}]
 					}]
-					that.yg.list = arr1
+					that.yg.list = arr
 					that.saleyg.list = arr2.concat(arr1)
 					that.saleyg.list = arr2.concat(arr1)
-					if(that.yg.limit == res.data.list.length) {
+					if (that.yg.limit == res.data.list.length) {
 						that.yg.loadingType = 'more'
 						that.yg.loadingType = 'more'
 						that.yg.page++
 						that.yg.page++
-					}else {
+					} else {
 						that.yg.loadingType = 'noMore'
 						that.yg.loadingType = 'noMore'
 					}
 					}
 					that.yg.loaded = true
 					that.yg.loaded = true
 				})
 				})
 			},
 			},
 			// 打开picker
 			// 打开picker
-			    openDatetimePicker() {
-			      this.$refs.myPicker.show();
-			    },
-			
-			    // 关闭picker
-			    closeDatetimePicker() {
-			      this.$refs.myPicker.hide();
-			    },
-				datetimePickerErr() {
-					this.yytime = ''
-				},
-			    handleSubmit(e) {
-			      console.log(e);
-			      this.yytime = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}`;
-			    },
+			openDatetimePicker() {
+				this.$refs.myPicker.show();
+			},
+
+			// 关闭picker
+			closeDatetimePicker() {
+				this.$refs.myPicker.hide();
+			},
+			datetimePickerErr() {
+				this.yytime = ''
+				return this.$util.Tips({
+					title: '所选预约时间已过时'
+				});
+
+			},
+			handleSubmit(e) {
+				console.log(e);
+				this.yytime = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}`;
+			},
 			// #ifdef MP
 			// #ifdef MP
 			// 桌码信息
 			// 桌码信息
 			getCodeData() {
 			getCodeData() {
@@ -748,11 +757,11 @@
 				// action && this[action] && this[action](value);
 				// action && this[action] && this[action](value);
 				console.log(e)
 				console.log(e)
 				let that = this
 				let that = this
-				if(e.action == 'payClose') {
+				if (e.action == 'payClose') {
 					console.log(this.payType)
 					console.log(this.payType)
 					this.pay_close = false
 					this.pay_close = false
-				}else {
-					
+				} else {
+
 					SubscribeCreate({
 					SubscribeCreate({
 						uid: this.userInfo.uid,
 						uid: this.userInfo.uid,
 						work_member_id: this.choose_yg.id,
 						work_member_id: this.choose_yg.id,
@@ -760,14 +769,18 @@
 						pay_type: e.value,
 						pay_type: e.value,
 						store_id: that.system_store.id,
 						store_id: that.system_store.id,
 						reservation_time: that.yytime,
 						reservation_time: that.yytime,
-						sale_uid: that.sale_yg.id || 0
+						sale_uid: that.sale_yg.id || 0,
+						// #ifdef MP-WEIXIN
+						from: "routine"
+						// #endif
 					}).then(res => {
 					}).then(res => {
 						let status = res.data.status,
 						let status = res.data.status,
 							orderId = res.data.result.order_id,
 							orderId = res.data.result.order_id,
 							jsConfig = res.data.result.jsConfig,
 							jsConfig = res.data.result.jsConfig,
 							goPages = '/pages/goods/order_pay_status/index?order_id=' + orderId + '&msg=' + res
 							goPages = '/pages/goods/order_pay_status/index?order_id=' + orderId + '&msg=' + res
 							.msg +
 							.msg +
-							'&type=6' + '&totalPrice=' + this.totalPrice + '&pay_type=' + e.value + '&pay_end=' + status
+							'&type=6' + '&totalPrice=' + this.totalPrice + '&pay_type=' + e.value +
+							'&pay_end=' + status
 						switch (status) {
 						switch (status) {
 							case 'ORDER_EXIST':
 							case 'ORDER_EXIST':
 							case 'EXTEND_ORDER':
 							case 'EXTEND_ORDER':
@@ -782,7 +795,8 @@
 								break;
 								break;
 							case 'SUCCESS':
 							case 'SUCCESS':
 								uni.hideLoading();
 								uni.hideLoading();
-								if (that.BargainId || that.combinationId || that.pinkId || that.seckillId || that
+								if (that.BargainId || that.combinationId || that.pinkId || that.seckillId ||
+									that
 									.discountId)
 									.discountId)
 									return that.$util.Tips({
 									return that.$util.Tips({
 										title: res.msg,
 										title: res.msg,
@@ -817,7 +831,8 @@
 									paySign: jsConfig.paySign,
 									paySign: jsConfig.paySign,
 									success: function(res) {
 									success: function(res) {
 										uni.hideLoading();
 										uni.hideLoading();
-										if (that.BargainId || that.combinationId || that.pinkId || that
+										if (that.BargainId || that.combinationId || that.pinkId ||
+											that
 											.seckillId || that.discountId)
 											.seckillId || that.discountId)
 											return that.$util.Tips({
 											return that.$util.Tips({
 												title: '支付成功',
 												title: '支付成功',
@@ -846,7 +861,8 @@
 									complete: function(e) {
 									complete: function(e) {
 										uni.hideLoading();
 										uni.hideLoading();
 										//关闭当前页面跳转至订单状态
 										//关闭当前页面跳转至订单状态
-										if (res.errMsg == 'requestPayment:cancel') return that.$util
+										if (res.errMsg == 'requestPayment:cancel') return that
+											.$util
 											.Tips({
 											.Tips({
 												title: '取消支付'
 												title: '取消支付'
 											}, {
 											}, {
@@ -941,7 +957,7 @@
 									location.href = res.data.result.jsConfig.mweb_url;
 									location.href = res.data.result.jsConfig.mweb_url;
 								}, 2000);
 								}, 2000);
 								break;
 								break;
-						
+
 							case 'ALIPAY_PAY':
 							case 'ALIPAY_PAY':
 								//#ifdef H5
 								//#ifdef H5
 								if (this.from === 'weixin') {
 								if (this.from === 'weixin') {
@@ -977,7 +993,7 @@
 												url: url
 												url: url
 											})
 											})
 										}, 2000)
 										}, 2000)
-						
+
 									},
 									},
 									fail: (e) => {
 									fail: (e) => {
 										let url = '/pages/goods/order_pay_status/index?order_id=' +
 										let url = '/pages/goods/order_pay_status/index?order_id=' +
@@ -1006,7 +1022,7 @@
 						}
 						}
 					})
 					})
 				}
 				}
-				
+
 			},
 			},
 			payClose: function() {
 			payClose: function() {
 				this.pay_close = false;
 				this.pay_close = false;
@@ -1017,17 +1033,17 @@
 				// 		title: '请选择销售员工'
 				// 		title: '请选择销售员工'
 				// 	});
 				// 	});
 				// }
 				// }
-				if(!this.choose_yg.id) {
+				if (!this.choose_yg.id) {
 					return this.$util.Tips({
 					return this.$util.Tips({
 						title: '请选择预约员工'
 						title: '请选择预约员工'
 					});
 					});
 				}
 				}
-				if(!this.yytime) {
+				if (!this.yytime) {
 					return this.$util.Tips({
 					return this.$util.Tips({
 						title: '请选择预约时间'
 						title: '请选择预约时间'
 					});
 					});
 				}
 				}
-				
+
 				this.formVerify();
 				this.formVerify();
 			},
 			},
 			payCheck(type) {
 			payCheck(type) {
@@ -1217,8 +1233,7 @@
 			 * 获取当前订单详细信息
 			 * 获取当前订单详细信息
 			 * 
 			 * 
 			 */
 			 */
-			getConfirm: function(numType) {
-			},
+			getConfirm: function(numType) {},
 			/*
 			/*
 			 * 获取默认收货地址或者获取某条地址信息
 			 * 获取默认收货地址或者获取某条地址信息
 			 */
 			 */
@@ -1589,7 +1604,7 @@
 				this.confirm[index].value = val
 				this.confirm[index].value = val
 			},
 			},
 			formVerify() {
 			formVerify() {
-				
+
 				this.pay_close = true;
 				this.pay_close = true;
 			},
 			},
 			SubOrder: function(e) {
 			SubOrder: function(e) {
@@ -1614,7 +1629,8 @@
 					pinkId: that.pinkId,
 					pinkId: that.pinkId,
 					seckill_id: that.seckillId,
 					seckill_id: that.seckillId,
 					mark: that.mark,
 					mark: that.mark,
-					store_id: that.ptype == 6 ? that.system_store.id : (that.deliveryType == 1 ? 0 : that.system_store.id || 0),
+					store_id: that.ptype == 6 ? that.system_store.id : (that.deliveryType == 1 ? 0 : that
+						.system_store.id || 0),
 					'from': that.from,
 					'from': that.from,
 					shipping_type: that.tableId ? 4 : that.$util.$h.Add(that.shippingType, 1),
 					shipping_type: that.tableId ? 4 : that.$util.$h.Add(that.shippingType, 1),
 					'new': that.news,
 					'new': that.news,
@@ -2298,15 +2314,16 @@
 			color: var(--view-theme);
 			color: var(--view-theme);
 		}
 		}
 	}
 	}
+
 	//指派
 	//指派
 	.zp-wrap {
 	.zp-wrap {
 		margin-top: 20rpx;
 		margin-top: 20rpx;
-		width: 750rpx;
+		width: 650rpx;
 		height: 216rpx;
 		height: 216rpx;
 		white-space: nowrap;
 		white-space: nowrap;
-	
-	
-	
+
+
+
 		.zp-item {
 		.zp-item {
 			display: inline-block;
 			display: inline-block;
 			margin-right: 15rpx;
 			margin-right: 15rpx;
@@ -2316,7 +2333,7 @@
 			// background: #E02020;
 			// background: #E02020;
 			background-color: #fff;
 			background-color: #fff;
 			border-radius: 10rpx;
 			border-radius: 10rpx;
-	
+
 			.zp-logo {
 			.zp-logo {
 				display: block;
 				display: block;
 				width: 106rpx;
 				width: 106rpx;
@@ -2325,7 +2342,7 @@
 				border-radius: 50%;
 				border-radius: 50%;
 				background-color: #eee;
 				background-color: #eee;
 			}
 			}
-	
+
 			.zp-name {
 			.zp-name {
 				margin-top: 15rpx;
 				margin-top: 15rpx;
 				width: 100%;
 				width: 100%;
@@ -2335,14 +2352,14 @@
 				color: #333333;
 				color: #333333;
 			}
 			}
 		}
 		}
-	
+
 		.choose {
 		.choose {
 			background-color: #262261 !important;
 			background-color: #262261 !important;
-	
+
 			.zp-name {
 			.zp-name {
 				color: #fff !important;
 				color: #fff !important;
 			}
 			}
-	
+
 		}
 		}
 	}
 	}
 </style>
 </style>

+ 4 - 4
pages/user/index.vue

@@ -393,12 +393,12 @@
             </view>
             </view>
           </block>
           </block>
         </view>
         </view>
-		<view class="menus-list" v-if="userInfo.adminid || service_status==1">
+		<view class="menus-list" v-if="userInfo.adminid ||( service_status == 1 && storeMenu.length)">
 		<!-- <view class="menus-list"> -->
 		<!-- <view class="menus-list"> -->
 		  <view class="title">员工功能</view>
 		  <view class="title">员工功能</view>
 		    <view class="item acea-row row-between-wrapper" hover-class="none"
 		    <view class="item acea-row row-between-wrapper" hover-class="none"
 		      @click="goMenuPage('/pages/goods/order_list/ygOrder', '我的订单')">
 		      @click="goMenuPage('/pages/goods/order_list/ygOrder', '我的订单')">
-		      <image src="/static/images/staffOrder.png"></image>
+		      <image src="/static/images/staffSq.png"></image>
 		      <view class="text acea-row row-between-wrapper">
 		      <view class="text acea-row row-between-wrapper">
 		        <view>我的订单</view>
 		        <view>我的订单</view>
 		        <view class="iconfont icon-xiangyou"></view>
 		        <view class="iconfont icon-xiangyou"></view>
@@ -414,7 +414,7 @@
 			</view> -->
 			</view> -->
 			<view class="item acea-row row-between-wrapper" hover-class="none"
 			<view class="item acea-row row-between-wrapper" hover-class="none"
 			  @click="goMenuPage('/pages/users/user_spread_money/index?type=2', '我的佣金')">
 			  @click="goMenuPage('/pages/users/user_spread_money/index?type=2', '我的佣金')">
-			  <image src="/static/images/staffMoney.png"></image>
+			  <image src="/static/images/staffOrder.png"></image>
 			  <view class="text acea-row row-between-wrapper">
 			  <view class="text acea-row row-between-wrapper">
 			    <view>我的佣金</view>
 			    <view>我的佣金</view>
 			    <view class="iconfont icon-xiangyou"></view>
 			    <view class="iconfont icon-xiangyou"></view>
@@ -430,7 +430,7 @@
 			</view>
 			</view>
 			<view class="item acea-row row-between-wrapper" hover-class="none"
 			<view class="item acea-row row-between-wrapper" hover-class="none"
 			  @click="goMenuPage('/pages/users/user_cash/index', '立即提现')">
 			  @click="goMenuPage('/pages/users/user_cash/index', '立即提现')">
-			  <image src="/static/images/staffSq.png"></image>
+			  <image src="/static/images/staffMoney.png"></image>
 			  <view class="text acea-row row-between-wrapper">
 			  <view class="text acea-row row-between-wrapper">
 			    <view>立即提现</view>
 			    <view>立即提现</view>
 			    <view class="iconfont icon-xiangyou"></view>
 			    <view class="iconfont icon-xiangyou"></view>

BIN
static/images/staffMoney.png


BIN
static/images/staffOrder.png


BIN
static/images/staffSq.png


BIN
static/images/staffTarget.png