Explorar el Código

更新代客下单流程

xiaogang hace 3 años
padre
commit
f7d1613b29

+ 2 - 1
src/components/basic-component/app-tab-bar/app-tab-bar.vue

xqd
@@ -37,7 +37,8 @@
 							"key": "",
 							"open_type": "redirect",
 							"text": "代客下单",
-							"url": "/pages/cats/cats"
+							// "url": "/pages/cats/cats",
+							"url":"/pages/sale/cusmter/dklist"
 						},
 						{
 							"active_color": "#A18353",

+ 8 - 0
src/pages.json

xqd
@@ -163,6 +163,14 @@
 						"navigationBarBackgroundColor": "#fff"
 					}
 
+				},{
+					"path": "cusmter/dklist",
+					"style": {
+						"navigationBarTitleText": "代客下单",
+						"enablePullDownRefresh": false,
+						"navigationBarBackgroundColor": "#fff"
+					}
+
 				}, {
 					"path": "cusmter/info",
 					"style": {

+ 2 - 2
src/pages/index/hxj_index_component.vue

xqd xqd
@@ -89,7 +89,7 @@
 
 		</view>
 		<view class="hxdz">
-			<view class="main-left q">
+			<view class="main-left q" style="margin-bottom: 30rpx;">
 				<view class="l" @click="goPage(homePages[7].data.list[0].link.new_link_url)">
 					<view class="title_2">明星套装</view>
 					<view class="desc_2">自然高端好家居</view>
@@ -109,7 +109,7 @@
 				</view>
 			</view>
 			<scroll-view scroll-x="true">
-				<view class="main-left w">
+				<view class="main-left w" style="margin-top: 0rpx;">
 					<view class="item" v-for="(item,index) in homePages[8].data.navs" :key="index" @click="goPage(item.link_url)">
 						<image class="borradu_20"
 							:src="item.icon_url"

+ 14 - 11
src/pages/order-submit/order-submit.vue

xqd xqd
@@ -5,14 +5,14 @@
 			<view class="page" v-if="previewData">
 				<view style="background-image: url(https://t17.9026.com/web/statics/image/index/appointment_top.png);background-size: 100% 100%;padding-bottom: 24rpx;">
 					<app-nav-bar :fixed="true" :background-color="''" :background-image="'url(https://t17.9026.com/web/statics/image/index/appointment_top.png)'" :title="'确认订单'" :xStyle="1" :hasMallSetting="2" :hasHeight="true"></app-nav-bar>
-					<template v-if="getIsEnterSales">
+					<!-- <template v-if="getIsEnterSales">
 						<view v-if="!customerInfo" @click="navCustomer" class="select-customer" >
 							请选择客户
 						</view>
 						<view v-else @click="navCustomer" class="select-customer" >
 							客户:{{customerInfo.name}} 手机号:{{customerInfo.mobile}}
 						</view>
-					</template>
+					</template> -->
 					<view v-if="!previewData.hasCity && previewData.show_address !== false && previewData.hasRecipient" class="group">
 						<app-address-bar :address="previewData.address" :has-ziti="previewData.has_ziti"
 							:all-ziti="previewData.allZiti" @address-input="handleAddressInput"></app-address-bar>
@@ -1324,15 +1324,18 @@
 				}
 				const formData = this.$store.state.orderSubmit.formData;
 				if(this.getIsEnterSales){
-					if(!this.customerInfo || !this.$store.state.user.customerAccessToken){
-						uni.showModal({
-							title: '提示',
-							content: '请选择客户',
-							showCancel: false,
-						});
-						return
-					}
-					formData.place_sale_id=this.info.salesperson_id
+					// if(!this.customerInfo || !this.$store.state.user.customerAccessToken){
+					// 	uni.showModal({
+					// 		title: '提示',
+					// 		content: '请选择客户',
+					// 		showCancel: false,
+					// 	});
+					// 	return
+					// }
+					//formData.place_sale_id=this.info.salesperson_id
+					
+					formData.place_sale_id = uni.getStorageSync('dk_sale_id');
+					formData.place_estate_id = uni.getStorageSync('dk_estate_id');
 				}
 				if(this.isNeedInvoice){ //判断是否选择发票,并设置发票信息
 					let invoice_info=this.$storage.getStorageSync('invoice_info')

+ 3 - 0
src/pages/sale/cusmter/list.vue

xqd
@@ -51,10 +51,13 @@
 				
 				noMore:false,
 				why:'',
+				dk:0,
 			};
 		},
 		onLoad(option) {
 			this.why=option.why
+			this.dk = option.dk
+			console.log(this.dk)
 		},
 		onShow() {
 			this.getData()

BIN
src/static/image/icon/order-submit/dkorder.png