Pārlūkot izejas kodu

前端小程序 sdy

zhongtianhaoyuan 3 gadi atpakaļ
vecāks
revīzija
a74654aadd

+ 1 - 0
main.js

@@ -174,6 +174,7 @@ const request = (_gp, _mt, data = {}, failCallback) => {
 // 现app调用方式
 
 const doRequest = (method, url, data)=> {
+	console.log(method,url,data)
 	// let baseUrl = config.def().baseUrl
 	let baseUrl = 'http://192.168.1.120:8090/'
         // 如果data为空

+ 303 - 24
pageA/product/lookup.vue

@@ -1,8 +1,15 @@
 <template>
 	<view class="content">
-		<view class="search-box">
+		
+			<view style='background:#fff;display:flex;' class="cu-bar search">
+			<view style='flex:6;' class="search-form round" >
+				<text style='color: #ccc;text-indent:6px;' class="cuIcon-search"></text>
+				<input type="text" v-model="searchKeyWord" @input="doSearch" placeholder="请输入货名或标题" confirm-type="search"></input>
+			</view>
+			<view style="width:4%;flex:1;">取消</view>
+			</view>
 			<!-- mSearch组件 如果使用原样式,删除组件元素-->
-			<mSearch class="mSearch-input-box" :mode="2" button="inside" :placeholder="defaultKeyword" @search="doSearch(false)" @input="inputChange" @confirm="doSearch(false)" v-model="keyword"></mSearch>
+			<!-- <mSearch class="mSearch-input-box" :mode="2" button="inside" :placeholder="defaultKeyword" @search="doSearch(false)" @input="inputChange" @confirm="doSearch(false)" v-model="keyword"></mSearch> -->
 			<!-- 原样式 如果使用原样式,恢复下方注销代码 -->
 			<!-- 			
 			<view class="input-box">
@@ -12,25 +19,57 @@
 			<view class="search-btn" @tap="doSearch(false)">搜索</view> 
 			-->
 			<!-- 原样式 end -->
-		</view>
 		<view class="search-keyword" @touchstart="blur">
-			<scroll-view class="keyword-list-box" v-show="isShowKeywordList" scroll-y>
-				<view class="keyword-entry" hover-class="keyword-entry-tap" v-for="row in keywordList" :key="row.keyword">
-					<view class="keyword-text" @tap="doSearch(row.keyword)">
-						<rich-text :nodes="row.htmlStr"></rich-text>
+			<scroll-view style='background:#F5F6FA;' class="keyword-list-box" v-show="isShowKeywordList&&keywordList.length>0" scroll-y>
+				<view style='background:#fff;padding:0 15px;'>
+					<view @click='tabcarchange(0)' class='line' :class='TabCur==0?"active":""'>采购</view>
+					<view @click='tabcarchange(1)' class='line'  :class='TabCur==1?"active":""'>销售</view>
+				</view>
+				<view class="introduce-section">
+					<view v-for="(item, index) in keywordList" :key="index" class="guess-item" @click="navToDetailPage(item)">
+						<view class="price-box">
+							<view class="title">{{item.title}}</view>
+							<view style='dsiplay:flex;' class='flex justify-between'>
+								<view class='address'>
+									{{item.receivePrivate}}{{item.receiveCity}}{{item.receiveArea}}{{item.receiveWarehouse}}
+								</view>
+								<view class='price' v-if='item.procurementPlanType=="期货"'>{{item.basisPrice}}<text style='font-size:13px;color:#333333;'>元/吨</text></view>
+								<view class='price' v-if='item.procurementPlanType=="现货"'>{{item.unitPrice}}<text style='font-size:13px;color:#333;'>元/吨</text></view>
+							</view>
+						</view>
+						<view class='flex justify-between'>
+							<view>
+								<view class='tag1 tag-bule radius line-pink' v-if='item.procurementPlanType=="现货"'>现货</view>
+								<view class='tag1 tag-bule radius line-pink' v-if='item.procurementPlanType=="期货"'>期货</view>
+								<view class='tag1 tag-yellow radius line-green'>{{item.goodsName}}</view>
+								<view class='tag1 tag-red radius line-yellow'>{{item.weight}}吨</view>
+							</view>
+							<view style='color:#878C9C;padding-top:5px;' v-if='item.procurementPlanType=="期货"'>今日基差</view>
+							<view style='color:#878C9C;padding-top:5px;' v-if='item.procurementPlanType=="现货"'>采购价格</view>
+						</view>
 					</view>
-					<view class="keyword-img" @tap="setkeyword(row)">
-						<image src="/static/HM-search/back.png"></image>
+					<view v-show="isLoadMore">
+						<uni-load-more :status="loadStatus"></uni-load-more>
 					</view>
 				</view>
 			</scroll-view>
+			<view style='height:80vh;' v-show="isShowKeywordList&&keywordList.length==0">
+				<view style='background:#fff;padding:0 15px;'>
+					<view @click='tabcarchange(0)' class='line' :class='TabCur==0?"active":""'>采购</view>
+					<view @click='tabcarchange(1)' class='line'  :class='TabCur==1?"active":""'>销售</view>
+				</view>
+				<view style='background:#F5F6FA;height:100%;line-height:80vh;text-align:center;'>
+					暂无相关结果
+				</view>
+			</view>
 			<scroll-view class="keyword-box" v-show="!isShowKeywordList" scroll-y>
 				<view class="keyword-block" v-if="oldKeywordList.length>0">
 					<view class="keyword-list-header">
-						<view>历史搜索</view>
+						<view style='font-size:16px;font-weight:600;'>最近搜索</view>
 						<view>
+							<image @tap="oldDelete" style='width:16px;height:16px;' src="../../static/img/jiaoyi/shanchu@3x.png"></image>
 							<!-- <image @tap="oldDelete" src="./static/delete.png"></image> -->
-							<text class="cuIcon-delete text-gray " @tap="oldDelete" ></text>
+						<!-- 	<text class="cuIcon-delete text-gray "  ></text> -->
 							
 						</view>
 					</view>
@@ -40,7 +79,7 @@
 				</view>
 				 <view class="keyword-block">
 					<view class="keyword-list-header">
-						<view>推荐搜索</view>
+						<view style='font-size:16px;font-weight:600;'>推荐搜索</view>
 						<view>
 							 <image @tap="hotToggle" :src="'/static/HM-search/attention'+forbid+'.png'"></image> 
 						</view>
@@ -61,7 +100,9 @@
 		data() {
 			return {
 				defaultKeyword: "",
-				keyword: "",
+				searchKeyWord: "",
+				pageSize:10,
+				currentPage:1,
 				oldKeywordList: [],
 				hotKeywordList: ["玉米","大豆","小麦","水稻","高粱","玉米淀粉","豆粕"],
 				keywordList: [],
@@ -71,8 +112,13 @@
 			}
 		},
 		onLoad(options) {
+			this.searchKeyWord=options.searchKeyWord
 			this.TabCur = options.TabCur
 			this.init();
+			if(this.searchKeyWord){
+				this.isShowKeywordList=truetrue
+				this.getData()
+			}
 		},
 		components: {
 			//引用mSearch组件,如不需要删除即可
@@ -100,6 +146,26 @@
 				this.isLoadMore = false
 				this.loadData()
 			},
+			getData(){
+				var param1=''
+				if (this.TabCur == 0) {
+					param1 = '/procurementPlanInfo/selectProcurementPlanInfo'
+				} else {
+					param1 = 'buy'
+				}
+				this.$api.doRequest('get', param1,{pageSize:this.pageSize,
+				currentPage:this.currentPage,searchKeyWord:this.searchKeyWord}).then(res => {
+					uni.hideLoading()
+					this.keywordList=res.data.data.records
+				})
+				.catch(res => {
+					uni.showToast({
+						title: res.errmsg,
+						icon:'none',
+						duration: 2000
+					})
+				});
+			},
 			//加载默认搜索关键字
 			loadDefaultKeyword() {
 				//定义默认搜索关键字,可以自己实现ajax请求数据再赋值,用户未输入时,以水印方式显示在输入框,直接不输入内容搜索会搜索默认关键字
@@ -176,16 +242,72 @@
 				this.forbid = this.forbid ? '' : '_forbid';
 			},
 			//执行搜索
-			doSearch(key) {
-				console.log(key)
-				console.log(this.keyword)
-				key = key ? key : this.keyword ? this.keyword : this.defaultKeyword;
-				this.keyword = key;
-				this.saveKeyword(key); //保存为历史 
-				var TabCur = this.TabCur
-				uni.navigateTo({
-					url: `/pageA/product/querylist?keywords=${key}&TabCur=${TabCur}`
+			doSearch(e) {
+				if(e.detail.value.length>0){
+					this.isShowKeywordList=true
+				}else{
+					this.isShowKeywordList=false
+				}
+				uni.showLoading({
+					title: '正在加载',
+					mask:true
 				})
+				var param1=''
+				if (this.TabCur == 0) {
+									param1 = '/procurementPlanInfo/selectProcurementPlanInfo'
+								} else {
+									param1 = 'buy'
+								}
+								this.$api.doRequest('get', param1,{pageSize:this.pageSize,
+				currentPage:this.currentPage,searchKeyWord:this.searchKeyWord}).then(res => {
+									uni.hideLoading()
+									this.keywordList=res.data.data.records
+								})
+								.catch(res => {
+									uni.showToast({
+										title: res.errmsg,
+										icon:'none',
+										duration: 2000
+									})
+								});
+				// console.log(key)
+				// console.log(this.keyword)
+				// key = key ? key : this.keyword ? this.keyword : this.defaultKeyword;
+				// this.keyword = key;
+				// this.saveKeyword(key); //保存为历史 
+				// var TabCur = this.TabCur
+				// uni.navigateTo({
+				// 	url: `/pageA/product/querylist?keywords=${key}&TabCur=${TabCur}`
+				// })
+			},
+			tabcarchange(status){
+				this.TabCur=status
+				if (this.TabCur == 0) {
+									param1 = '/procurementPlanInfo/selectProcurementPlanInfo'
+								} else {
+									param1 = 'buy'
+								}
+								this.$api.doRequest('get', param1,{pageSize:this.pageSize,
+				currentPage:this.currentPage,searchKeyWord:this.searchKeyWord}).then(res => {
+					if(res.data.code==200){
+						uni.hideLoading()
+						this.keywordList=res.data.data.records
+					}else{
+						uni.showToast({
+							title: res.data.message,
+							icon:'none',
+							duration: 2000
+						})
+					}
+									
+								})
+								.catch(res => {
+									uni.showToast({
+										title: res.errmsg,
+										icon:'none',
+										duration: 2000
+									})
+								});
 			},
 			//保存关键字到历史记录
 			saveKeyword(keyword) {
@@ -223,7 +345,29 @@
 	}
 </script>
 <style>
-	view{display:block;}
+	.search-form{
+		    background: #F5F6F9;
+	}
+	.line{
+		display:inline-block;
+		padding:5px;
+		position:relative;
+		font-size:17px;
+	}
+	.line.active{
+		font-size:19px;
+		font-weight: 900;
+	}
+	.line.active:after{
+		content:'';
+		display:block;
+		position:absolute;
+		width:18px;
+		left:50%;
+		transform: translateX(-50%);
+		bottom:0;
+		border-bottom:1px solid #22C572;
+	}
 	.search-box {width:100%;background-color:rgb(242,242,242);padding:15upx 2.5%;display:flex;justify-content:space-between;}
 	.search-box .mSearch-input-box{width: 100%;}
 	.search-box .input-box {width:85%;flex-shrink:1;display:flex;justify-content:center;align-items:center;}
@@ -231,7 +375,7 @@
 	.search-box .input-box>input {width:100%;height:60upx;font-size:32upx;border:0;border-radius:60upx;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0 3%;margin:0;background-color:#ffffff;}
 	.placeholder-class {color:#9e9e9e;}
 	.search-keyword {width:100%;background-color:rgb(242,242,242);}
-	.keyword-list-box {height:calc(100vh - 110upx);padding-top:10upx;border-radius:20upx 20upx 0 0;background-color:#fff;}
+	.keyword-list-box {background:#F5F6FA;height:calc(100vh - 110upx);padding-top:10upx;border-radius:20upx 20upx 0 0;}
 	.keyword-entry-tap {background-color:#eee;}
 	.keyword-entry {width:94%;height:80upx;margin:0 3%;font-size:30upx;color:#333;display:flex;justify-content:space-between;align-items:center;border-bottom:solid 1upx #e7e7e7;}
 	.keyword-entry image {width:60upx;height:60upx;}
@@ -245,4 +389,139 @@
 	.keyword-box .keyword-block .keyword {width:94%;padding:3px 3%;display:flex;flex-flow:wrap;justify-content:flex-start;}
 	.keyword-box .keyword-block .hide-hot-tis {display:flex;justify-content:center;font-size:28upx;color:#6b6b6b;}
 	.keyword-box .keyword-block .keyword>view {display:flex;justify-content:center;align-items:center;border-radius:60upx;padding:0 20upx;margin:10upx 20upx 10upx 0;height:60upx;font-size:28upx;background-color:rgb(242,242,242);color:#6b6b6b;}
+
+	.tag1 {
+		background:#F5F6F9;
+		padding: 5px;
+		color:#333333;
+		display: inline-flex;
+		font-size: 22rpx;
+		border-radius: 3px;
+		margin: 3px;
+	}
+	.tag {
+		background:#F5F6F9;
+		padding: 7px 12px;
+		color:#333333;
+		display: inline-flex;
+		font-size: 22rpx;
+		border-radius: 15px;
+		margin: 3px;
+	}
+	.tag-bule {
+		background: #EBEEFA;
+		color: #5C76DF;
+	}
+	.tag-green {
+		background: #C6F7BC;
+		color: #065112;
+	}
+	.tag-yellow {
+		background: #F9F2EA;
+		color: #BE9C69;
+	}
+	.tag-red {
+		background: #FEECE6;
+		color: #FE6430;
+	}
+.introduce-section .title{
+	font-size: 17px;
+	font-weight: bold;
+	height:40px;
+	line-height: 40px;
+	flex: 2.5;
+	border-bottom:1px solid #EEEEEE;
+}
+.introduce-section .address{
+	color:#878C9C;
+	font-size:12px;
+	padding:15px 0 10px;
+}
+.introduce-section .price{
+	padding:10px 0 10px;
+	color:#FD714F;
+	font-size:19px;
+	font-weight:700;
+}
+	/* 销售信息 */
+	.introduce-section {
+		background: #fff;
+		padding: 0upx 30upx 20upx;
+		margin:10px;
+		border-radius:4px;
+
+		.guess-item {
+			padding-bottom: 20upx;
+			border-bottom: 1px solid #ccc;
+		}
+
+		.title-tip {
+			flex: 1;
+		}
+
+		.price-box {
+			display: flex;
+			align-items: baseline;
+			height: 70upx;
+			padding: 10upx 0;
+			font-size: 26upx;
+			color: $uni-color-primary;
+		}
+
+		.price {
+			font-size: $font-lg + 2upx;
+		}
+
+		.m-price {
+			margin: 0 12upx;
+			color: $font-color-light;
+			text-decoration: line-through;
+		}
+
+		.coupon-tip {
+			align-items: center;
+			padding: 4upx 10upx;
+			background: $uni-color-primary;
+			font-size: $font-sm;
+			color: #fff;
+			border-radius: 6upx;
+			line-height: 1;
+			transform: translateY(-4upx);
+		}
+
+		.bot-row {
+			display: flex;
+			align-items: center;
+			height: 50upx;
+			font-size: $font-sm;
+			color: $font-color-light;
+
+			view {
+				flex: 1;
+			}
+		}
+	}
+	.side-bg{
+		position:absolute;
+		width: 64px;
+		height: 64px;
+		z-index: 1;
+	}
+	.drag {
+		position:relative;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+		color: $uni-text-color-inverse;
+		width: 64px;
+		height: 64px;
+		background:transparent;
+		font-size: $uni-font-size-sm;
+		position: fixed;
+		z-index: 9;
+		
+		&.transition {
+			transition: left .3s ease,top .3s ease;
+		}
+	}
 </style>

+ 13 - 157
pageA/product/querylist.vue

@@ -84,137 +84,6 @@
 				</block>
 				</scroll-view>
 			</swiper-item>
-			<!-- <swiper-item class="tab-content" data-id="3">
-				<scroll-view class="list-scroll-content" scroll-y @scrolltolower="onReachBottomTmp">
-					<block v-if="TabCur==2">
-					<view class="guess-section">
-						<view 
-							v-for="(item, index) in tranInfo" :key="index"
-							class="guess-item"
-							@click="navToDetailPage(item)"
-						>
-						<view class="flex justify-between padding-xs ">
-						  <view class="flex-sub padding-xs">
-							  <view class="cu-capsule radius">
-							  	<view class="cu-tag bg-blue">
-							  		{{item.startPlace }}
-							  	</view>
-							  	<view class="cu-tag line-blue">
-							  		{{item.endPlace }}
-							  	</view>
-							  </view>
-						  </view>
-						 
-						  <view class=" padding-xs">
-							  <view v-if="item.status == 0" class="cu-capsule radius">
-								<view  class="cu-tag bg-green">
-									可承运
-								</view>
-								<view class="cu-tag line-green">
-									 <text class="text-price">{{item.price }}</text>
-								</view>
-							  </view>
-							  <view v-else class="cu-capsule radius">
-							  	<view  class="cu-tag bg-red">
-							  		已结束
-							  	</view>
-							  	<view class="cu-tag line-red">
-							  		 <text class="text-price">{{item.price }}</text>
-							  	</view>
-							  </view>
-						  </view>
-						</view>
-						<view class="flex justify-between padding-xs">
-							<view class="flex-sub padding-xs">
-							  <view class="cu-capsule radius">
-								<view class="cu-tag bg-orange">
-									{{item.goodsName}}
-								</view>
-								<view class="cu-tag line-orange">
-									{{numFilter(item.total - item.tranCount) }}吨
-								</view>
-							  </view>
-							</view>
-							<view class=" text-sm padding-xs">
-								<view class=" text-sm padding-xs">
-									<text class="text-gray  text-sm text-right padding-xs-tmp ">{{item.gmtUpdate}}</text>
-								</view>
-							</view>
-						</view>
-						</view>
-						<view v-show="isLoadMore">
-						    <uni-load-more :status="loadStatus" ></uni-load-more>
-						</view>
-					</view>
-				</block>
-				</scroll-view>
-			</swiper-item> -->
-			<!-- <swiper-item class="tab-content" data-id="0">
-				<scroll-view class="list-scroll-content" scroll-y @scrolltolower="onReachBottomTmp">
-					<block v-if="TabCur==3">
-					<view class="guess-section">
-						<view 
-							v-for="(item, index) in carInfo" :key="index"
-							class="guess-item"
-							@click="navToDetailPage(item)"
-						>
-						<view class="flex justify-between padding-xs ">
-						  <view class="flex-sub padding-xs">
-							  <view class="cu-capsule radius">
-							  	<view class="cu-tag bg-blue">
-							  		{{item.startPlace }}
-							  	</view>
-							  	<view class="cu-tag line-blue">
-							  		{{item.endPlace }}
-							  	</view>
-							  </view>
-						  </view>
-						 
-						  <view class=" padding-xs">
-							  <view v-if="item.status == 2" class="cu-capsule radius">
-								<view  class="cu-tag bg-green">
-									可委托
-								</view>
-								<view class="cu-tag line-green">
-									 <text class="text-price">{{item.price }}</text>
-								</view>
-							  </view>
-							  <view v-else class="cu-capsule radius">
-							  	<view  class="cu-tag bg-red">
-							  		已承运
-							  	</view>
-							  	<view class="cu-tag line-red">
-							  		 <text class="text-price">{{item.price }}</text>
-							  	</view>
-							  </view>
-						  </view>
-						</view>
-						<view class="flex justify-between padding-xs">
-							<view class="flex-sub padding-xs">
-							  <view class="cu-capsule radius">
-								<view class="cu-tag bg-orange">
-									{{item.driver}}
-								</view>
-								<view class="cu-tag line-orange">
-									{{item.carNo}}
-								</view>
-							  </view>
-							</view>
-							<view class=" text-sm padding-xs">
-								<view class=" text-sm padding-xs">
-									<text class="text-gray  text-sm text-right padding-xs-tmp ">{{item.gmtUpdate}}</text>
-								</view>
-							</view>
-						</view>
-						</view>
-						<view v-show="isLoadMore">
-						    <uni-load-more :status="loadStatus" ></uni-load-more>
-						</view>
-					</view>
-				</block>
-				
-				</scroll-view>
-			</swiper-item> -->
 		</swiper>
 	</view>
 </template>
@@ -229,6 +98,7 @@
 				swiperLength: 0,
 				carouselList: [],
 				windowSpuList: [],
+				keywords:'',
 				categoryPickList: [],
 				categoryButtomList: [],
 				salesTop: [],
@@ -238,8 +108,8 @@
 				carInfo:[],
 				banner: undefined,
 				isVip: false,
-				pages:1,//页数
-				limit:10 ,//每次取条目数
+				pageSize:10,
+				currentPage:1,
 				loadStatus:'loading',  //加载样式:more-加载前样式,loading-加载中样式,nomore-没有数据样式
 				isLoadMore:false  ,//是否加载中
 				TabCur: 0,
@@ -479,30 +349,16 @@
 					})
 				}
 				else if(this.TabCur == 1){
-					that.$api.request('buy', 'getBuyListInfo', {
-						keywords: this.keywords,
-						page: pages,
-						limit:limit
-					},failres => {
-						that.$api.msg(failres.errmsg)
-						that.isLoadMore=false
-						that.loadStatus = 'nomore'
-						if(that.pages>1){that.pages-=1}
-						uni.hideLoading()
-					}).then(res => {
-						let data = res.data
-						//销售信息
-						if(data.length > 0){
-							that.buyInfo = that.buyInfo.concat(data)
-							that.isLoadMore=false
-						}
-						else{
-							if(that.pages>1){that.pages-=1}						
-							that.isLoadMore=true
-							that.loadStatus = 'nomore'
-						}
-						uni.hideLoading()
-					})
+				this.$api.doRequest('get', '/procurementPlanInfo/selectProcurementPlanInfo',{pageSize:this.pageSize,
+					currentPage:this.currentPage,keywords:this.keywords}).then(res => {
+									})
+									.catch(res => {
+										uni.showToast({
+											title: res.errmsg,
+											icon:'none',
+											duration: 2000
+										})
+									});
 				}
 				else if(this.TabCur == 2){
 					that.$api.request('tran', 'getTranListInfo', {

+ 206 - 0
pageD/identity/companyIdentity.vue

@@ -0,0 +1,206 @@
+<template>
+	<view class="center">
+		<view>
+			<label class="radio" v-model="radios">
+				<radio value="1" name="radios" /><text>公司</text>
+				<radio value="2" name="radios" /><text>个人</text>
+			</label>
+		</view>
+		<view v-if="radios == 1">
+		<view>
+			<button type="default">上传营业执照</button>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">公司名称</text>
+			<view class="con-list">
+				<input placeholder="请填写公司名称" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">纳税人识别号</text>
+			<view class="con-list">
+				<input placeholder="请填写纳税人识别号" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view>
+			<button type="default">上传身份证正面</button>
+			<button type="default">上传身份证反面</button>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">姓名</text>
+			<view class="con-list">
+				<input placeholder="请填写姓名" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">身份证号</text>
+			<view class="con-list">
+				<input placeholder="请填写身份证号" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view>
+			<button type="default">上传银行卡正面</button>
+			<button type="default">上传银行卡反面</button>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">银行卡号</text>
+			<view class="con-list">
+				<input placeholder="请填写银行卡号" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">开户行</text>
+			<view class="con-list">
+				<input placeholder="请填写开户行" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">开户支行</text>
+			<view class="con-list">
+				<input placeholder="请填写开户支行" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">手机号</text>
+			<view class="con-list">
+				<input placeholder="请填写手机号" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<button type="default">获取验证码</button>
+			<view class="con-list">
+				<input placeholder="请填写6位短信验证码" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">公司地址</text>
+			<view class="con-list">
+				<input placeholder="请填写公司地址" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		</view>
+		<view v-else>
+			<view>
+				<button type="default">上传身份证正面</button>
+				<button type="default">上传身份证反面</button>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">姓名</text>
+				<view class="con-list">
+					<input placeholder="请填写姓名" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">身份证号</text>
+				<view class="con-list">
+					<input placeholder="请填写身份证号" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view>
+				<button type="default">上传银行卡正面</button>
+				<button type="default">上传银行卡反面</button>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">银行卡号</text>
+				<view class="con-list">
+					<input placeholder="请填写银行卡号" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">开户行</text>
+				<view class="con-list">
+					<input placeholder="请填写开户行" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">开户支行</text>
+				<view class="con-list">
+					<input placeholder="请填写开户支行" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">收款人姓名</text>
+				<view class="con-list">
+					<input placeholder="请填写收款人姓名" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">收款人身份证号</text>
+				<view class="con-list">
+					<input placeholder="请填写收款身份证号" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">手机号</text>
+				<view class="con-list">
+					<input placeholder="请填写手机号" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<button type="default">获取验证码</button>
+				<view class="con-list">
+					<input placeholder="请填写6位短信验证码" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">联系地址</text>
+				<view class="con-list">
+					<input placeholder="请填写联系地址" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		name: "buy",
+		data() {
+			return {
+				radios: 2,
+
+			};
+		},
+		methods: {
+			radioschenge( index ) {
+				console.log(index)
+				this.radios = index
+			}
+		}
+	}
+</script>
+
+<style>
+	.center {
+		padding: 10px 20px;
+	}
+
+	.c-row {
+		display: -webkit-box;
+		display: -webkit-flex;
+		display: flex;
+		-webkit-box-align: center;
+		-webkit-align-items: center;
+		align-items: center;
+		padding: 20rpx 30rpx;
+		position: relative;
+	}
+
+	.con-list {
+		-webkit-box-flex: 1;
+		-webkit-flex: 1;
+		flex: 1;
+		display: -webkit-box;
+		display: -webkit-flex;
+		display: flex;
+		-webkit-box-orient: vertical;
+		-webkit-box-direction: normal;
+		-webkit-flex-direction: column;
+		flex-direction: column;
+		color: #303133;
+		line-height: 40rpx;
+		text-align: right;
+		padding-right: 20rpx;
+		font-size: 14px;
+	}
+</style>

+ 191 - 0
pageD/identity/companyIdentityLook.vue

@@ -0,0 +1,191 @@
+<template>
+	<view class="center">
+		<view>
+			<label class="radio" v-model="radios">
+				<radio value="1" name="radios" /><text>公司</text>
+				<radio value="2" name="radios" /><text>个人</text>
+			</label>
+		</view>
+		<view v-if="radios == 1">
+		<view>
+			<button type="default">上传营业执照</button>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">公司名称</text>
+			<view class="con-list">
+				<input placeholder="请填写公司名称" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">纳税人识别号</text>
+			<view class="con-list">
+				<input placeholder="请填写纳税人识别号" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view>
+			<button type="default">上传身份证正面</button>
+			<button type="default">上传身份证反面</button>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">姓名</text>
+			<view class="con-list">
+				<input placeholder="请填写姓名" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">身份证号</text>
+			<view class="con-list">
+				<input placeholder="请填写身份证号" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view>
+			<button type="default">上传银行卡正面</button>
+			<button type="default">上传银行卡反面</button>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">银行卡号</text>
+			<view class="con-list">
+				<input placeholder="请填写银行卡号" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">开户行</text>
+			<view class="con-list">
+				<input placeholder="请填写开户行" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">开户支行</text>
+			<view class="con-list">
+				<input placeholder="请填写开户支行" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">手机号</text>
+			<view class="con-list">
+				<input placeholder="请填写手机号" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">公司地址</text>
+			<view class="con-list">
+				<input placeholder="请填写公司地址" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		</view>
+		<view v-else>
+			<view>
+				<button type="default">上传身份证正面</button>
+				<button type="default">上传身份证反面</button>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">姓名</text>
+				<view class="con-list">
+					<input placeholder="请填写姓名" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">身份证号</text>
+				<view class="con-list">
+					<input placeholder="请填写身份证号" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view>
+				<button type="default">上传银行卡正面</button>
+				<button type="default">上传银行卡反面</button>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">银行卡号</text>
+				<view class="con-list">
+					<input placeholder="请填写银行卡号" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">开户行</text>
+				<view class="con-list">
+					<input placeholder="请填写开户行" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">开户支行</text>
+				<view class="con-list">
+					<input placeholder="请填写开户支行" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">收款人姓名</text>
+				<view class="con-list">
+					<input placeholder="请填写收款人姓名" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">收款人身份证号</text>
+				<view class="con-list">
+					<input placeholder="请填写收款身份证号" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">手机号</text>
+				<view class="con-list">
+					<input placeholder="请填写手机号" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">联系地址</text>
+				<view class="con-list">
+					<input placeholder="请填写联系地址" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		name: "buy",
+		data() {
+			return {
+				radios: 2,
+	
+			};
+		},
+		methods: {
+		
+		}
+	}
+</script>
+
+<style>
+	.center {
+		padding: 10px 20px;
+	}
+	
+	.c-row {
+		display: -webkit-box;
+		display: -webkit-flex;
+		display: flex;
+		-webkit-box-align: center;
+		-webkit-align-items: center;
+		align-items: center;
+		padding: 20rpx 30rpx;
+		position: relative;
+	}
+	
+	.con-list {
+		-webkit-box-flex: 1;
+		-webkit-flex: 1;
+		flex: 1;
+		display: -webkit-box;
+		display: -webkit-flex;
+		display: flex;
+		-webkit-box-orient: vertical;
+		-webkit-box-direction: normal;
+		-webkit-flex-direction: column;
+		flex-direction: column;
+		color: #303133;
+		line-height: 40rpx;
+		text-align: right;
+		padding-right: 20rpx;
+		font-size: 14px;
+	}
+</style>

+ 206 - 0
pageD/identity/driverIdentity.vue

@@ -0,0 +1,206 @@
+<template>
+	<view class="center">
+		<view>
+			<view class="labels">司机信息</view>
+			<button type="default">身份证正面</button>
+			<button type="default">身份证反面</button>
+			<view class="c-row b-b">
+				<text class="tit">姓名</text>
+				<view class="con-list">
+					<input placeholder="请填写姓名" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">身份证号</text>
+				<view class="con-list">
+					<input placeholder="请填写身份证号" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">手机号</text>
+				<view class="con-list">
+					<input placeholder="请填写手机号" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit"><button type="default">获取验证码</button></text>
+				<view class="con-list">
+					<input placeholder="请填写验证码" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">常驻城市</text>
+				<view class="con-list">
+					<input placeholder="请填写常驻城市" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+		
+		
+		</view>
+		<view class="margin-top">
+			<view class="labels">货车信息</view>
+			<view class="labels"> 车辆 -?</view>
+			<view class="c-row b-b">
+				<text class="tit">车牌号</text>
+				<view class="con-list">
+					<input placeholder="请填写车牌号" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">车型</text>
+				<!-- <view class="con-list"> -->
+				<picker @change="ModelChange" :value="ModelIndex" :range="ModelType" class="con-list">
+					<view class="picker " >
+						{{ModelIndex>-1?ModelType[ModelIndex]:'请选择车型'}}
+					</view>
+				</picker>
+				<!-- </view> -->
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">不含车头车长(米)</text>
+			<!-- 	 <view class="con-list"> -->
+				<picker @change="carLongChange" :value="carLongIndex" :range="carLongType" class="con-list">
+					<view class="picker">
+						{{carLongIndex>-1?carLongType[carLongIndex]:'请选择车长'}}
+					</view>
+				</picker>
+				<!-- </view> -->
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">载重(吨)</text>
+				<view class="con-list">
+					<input placeholder="请填写载重(吨)" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">出厂年份</text>
+				<view class="con-list">
+					<input placeholder="请填写载重(吨)" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			
+			<button type="default">添加车辆</button>
+			
+		</view>
+		<view class="margin-top">
+			<view class="labels">账户信息</view>
+			<view class="labels"> 账户 -?</view>
+			<view class="c-row b-b">
+				<text class="tit">账户类型</text>
+				<view class="con-list">
+					<input placeholder="请填写账户类型" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">银行卡照片(可选)</text>
+				<view class="con-list">
+					<input placeholder="请上传照片" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">银行卡号</text>
+				<view class="con-list">
+					<input placeholder="请输入银行卡号" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">开户行</text>
+				<view class="con-list">
+					<input placeholder="请输入开户行" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">开户支行</text>
+				<view class="con-list">
+					<input placeholder="请输入开户支行" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">收款人姓名</text>
+				<view class="con-list">
+					<input placeholder="请输入收款人姓名" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">收款人身份证号</text>
+				<view class="con-list">
+					<input placeholder="请输入收款人身份证号" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<button type="default">添加账号</button>
+		</view>
+		<view class="margin-top">
+				<view class="labels">上传附件</view>
+			
+			<button type="default">行驶证</button>
+			<button type="default">驾驶证</button>
+			<button type="default">道路运营证</button>
+			<button type="default">从业资格证</button>
+		</view>
+		
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				goods:{},
+				ModelIndex:'高栏',
+				Model:'',
+				ModelType:["高栏","集装箱","自卸车"],
+				carLong:'',
+				carLongType:['13','9.6','8.2','8.7','11.7','12.5','13.7','15','16','17.5'],
+
+			}
+		},
+		methods: {
+			ModelChange(e){
+				this.ModelIndex = e.detail.value
+				this.Model = this.ModelType[this.ModelIndex];
+			},
+			carLongChange(e){
+				this.carLongIndex = e.detail.value
+				this.carLong = this.carLongType[this.carLongIndex];
+			}
+		}
+	}
+</script>
+
+<style>
+	.center{
+		padding: 10px 20px;
+		}
+		.labels{
+			font-size: 16px;
+			font-weight: 400;
+		}
+		.c-row {
+		    display: -webkit-box;
+		    display: -webkit-flex;
+		    display: flex;
+		    -webkit-box-align: center;
+		    -webkit-align-items: center;
+		    align-items: center;
+		    padding: 20rpx 30rpx;
+		    position: relative;
+		}
+		.con-list {
+		    -webkit-box-flex: 1;
+		    -webkit-flex: 1;
+		    flex: 1;
+		    display: -webkit-box;
+		    display: -webkit-flex;
+		    display: flex;
+		    -webkit-box-orient: vertical;
+		    -webkit-box-direction: normal;
+		    -webkit-flex-direction: column;
+		    flex-direction: column;
+		    color: #303133;
+		    line-height: 40rpx;
+		    text-align: right;
+		    padding-right: 20rpx;
+			font-size: 14px;
+		}
+
+</style>

+ 176 - 0
pageD/identity/driverIdentityLook.vue

@@ -0,0 +1,176 @@
+<template>
+	<view class="center">
+		<view>
+			<view class="labels">司机信息</view>
+			<button type="default">身份证正面</button>
+			<button type="default">身份证反面</button>
+			<view class="c-row b-b">
+				<text class="tit">姓名</text>
+				<view class="con-list">
+					<input placeholder="请填写姓名" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">身份证号</text>
+				<view class="con-list">
+					<input placeholder="请填写身份证号" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">手机号</text>
+				<view class="con-list">
+					<input placeholder="请填写手机号" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">常驻城市</text>
+				<view class="con-list">
+					<input placeholder="请填写常驻城市" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+		
+		
+		</view>
+		<view class="margin-top">
+			<view class="labels">货车信息</view>
+			<view class="labels"> 车辆 -?</view>
+			<view class="c-row b-b">
+				<text class="tit">车牌号</text>
+				<view class="con-list">
+					<input placeholder="请填写车牌号" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">车型</text>
+				<view class="con-list">
+					<input placeholder="请填写车型" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">不含车头车长(米)</text>
+		         <view class="con-list">
+		         	<input placeholder="请填写车长" name="input" @input="addressInput"></input>
+		         </view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">载重(吨)</text>
+				<view class="con-list">
+					<input placeholder="请填写载重(吨)" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">出厂年份</text>
+				<view class="con-list">
+					<input placeholder="请填写载重(吨)" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			
+			
+		</view>
+		<view class="margin-top">
+			<view class="labels">账户信息</view>
+			<view class="labels"> 账户 -?</view>
+			<view class="c-row b-b">
+				<text class="tit">账户类型</text>
+				<view class="con-list">
+					<input placeholder="请填写账户类型" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">银行卡照片(可选)</text>
+				<view class="con-list">
+					<input placeholder="请上传照片" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">银行卡号</text>
+				<view class="con-list">
+					<input placeholder="请输入银行卡号" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">开户行</text>
+				<view class="con-list">
+					<input placeholder="请输入开户行" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">开户支行</text>
+				<view class="con-list">
+					<input placeholder="请输入开户支行" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">收款人姓名</text>
+				<view class="con-list">
+					<input placeholder="请输入收款人姓名" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">收款人身份证号</text>
+				<view class="con-list">
+					<input placeholder="请输入收款人身份证号" name="input" @input="addressInput"></input>
+				</view>
+			</view>
+		</view>
+		<view class="margin-top">
+				<view class="labels">上传附件</view>
+			
+			<button type="default">行驶证</button>
+			<button type="default">驾驶证</button>
+			<button type="default">道路运营证</button>
+			<button type="default">从业资格证</button>
+		</view>
+		
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+	
+			}
+		},
+		methods: {
+		
+		}
+	}
+</script>
+
+<style>
+	.center{
+		padding: 10px 20px;
+	}
+	.labels{
+		font-size: 16px;
+		font-weight: 400;
+	}
+	.c-row {
+	    display: -webkit-box;
+	    display: -webkit-flex;
+	    display: flex;
+	    -webkit-box-align: center;
+	    -webkit-align-items: center;
+	    align-items: center;
+	    padding: 20rpx 30rpx;
+	    position: relative;
+	}
+	.con-list {
+	    -webkit-box-flex: 1;
+	    -webkit-flex: 1;
+	    flex: 1;
+	    display: -webkit-box;
+	    display: -webkit-flex;
+	    display: flex;
+	    -webkit-box-orient: vertical;
+	    -webkit-box-direction: normal;
+	    -webkit-flex-direction: column;
+	    flex-direction: column;
+	    color: #303133;
+	    line-height: 40rpx;
+	    text-align: right;
+	    padding-right: 20rpx;
+		font-size: 14px;
+	}
+</style>

+ 246 - 0
pageD/myRelease/buyDetails.vue

@@ -0,0 +1,246 @@
+<template>
+	<view class="center">
+			<text class="title">基本信息</text>
+		<view class="c-row b-b">
+			<text class="tit">名头</text>
+			<view class="con-list">
+				<input placeholder="请填写名头" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">标题</text>
+			<view class="con-list">
+				<input placeholder="请填写标题,2-16个子" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">货名</text>
+			<view class="con-list">
+				<input placeholder="请填写货名" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">采购量(吨)</text>
+			<view class="con-list">
+				<input placeholder="请填写采购重量" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">最小成交量(吨)</text>
+			<view class="con-list">
+				<input placeholder="请填写最小成交量" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">类型</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="picker">
+					{{typesIndex>-1?typesType[typesIndex]:'请选择类型'}}
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">价格类型</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写价格类型" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">基差(元/吨)</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写基差(元/吨)" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">产地</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写产地" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">发货地区</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写发货地区" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">卖方手机号</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写卖方手机号" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<text class="title">附加要求</text>
+		<view class="c-row b-b">
+			<text class="tit">水分(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写水分占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">容重(g/L)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写容重" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+
+		<view class="c-row b-b">
+			<text class="tit">热损伤(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写热损伤占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">杂质(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写杂质占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">霉变粒(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写霉变粒占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">不完整粒(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写不完整粒占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">蛋白(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写蛋白占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">粒型 </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写粒型" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">品级 </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写品级" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">产出年份</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写产出年份" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">包装方式</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写包装方式" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">袋装备注</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写包装方式" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">运费承担方</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写包装方式" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				types:'',
+				typesType:["现货","期货"],
+		
+			}
+		},
+		methods: {
+			typeChange(e){
+				this.typesIndex = e.detail.value
+				this.types = this.typesType[this.typesIndex];
+			}
+		}
+	}
+</script>
+
+<style>
+	.center{
+		padding: 10px 20px;
+	}
+	.c-row {
+	    display: -webkit-box;
+	    display: -webkit-flex;
+	    display: flex;
+	    -webkit-box-align: center;
+	    -webkit-align-items: center;
+	    align-items: center;
+	    padding: 20rpx 30rpx;
+	    position: relative;
+	}
+	.con-list {
+	    -webkit-box-flex: 1;
+	    -webkit-flex: 1;
+	    flex: 1;
+	    display: -webkit-box;
+	    display: -webkit-flex;
+	    display: flex;
+	    -webkit-box-orient: vertical;
+	    -webkit-box-direction: normal;
+	    -webkit-flex-direction: column;
+	    flex-direction: column;
+	    color: #303133;
+	    line-height: 40rpx;
+	    text-align: right;
+	    padding-right: 20rpx;
+		font-size: 14px;
+	}
+	.title{
+		font-size: 18px;
+		font-weight: 600;
+	}
+
+
+</style>

+ 241 - 0
pageD/myRelease/buyGrain.vue

@@ -0,0 +1,241 @@
+<template>
+	<view class="center">
+		<view class="c-row b-b">
+			<text class="tit">名头</text>
+			<view class="con-list">
+				<input placeholder="请填写名头" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">标题</text>
+			<view class="con-list">
+				<input placeholder="请填写标题,2-16个子" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">货名</text>
+			<view class="con-list">
+				<input placeholder="请填写货名" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">采购量(吨)</text>
+			<view class="con-list">
+				<input placeholder="请填写出售重量" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">最小成交量(吨)</text>
+			<view class="con-list">
+				<input placeholder="请填写最小成交量" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">类型</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="picker">
+					{{typesIndex>-1?typesType[typesIndex]:'请选择类型'}}
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">价格类型</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写价格类型" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">单价(元/吨)</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写单价(元/吨)" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">收货地区</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写发货地区" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">买方手机号</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写卖方手机号" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<button type="default">获取验证码</button>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写6位短信验证码" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">水分(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写水分占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">容重(g/L)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写容重" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">热损伤(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写热损伤占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">杂质(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写杂质占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">霉变粒(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写霉变粒占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">不完整粒(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写不完整粒占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">蛋白(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写蛋白占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">粒型 </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写粒型" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">品级 </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写品级" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">产出年份</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写产出年份" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">包装方式</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写包装方式" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">袋装备注</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写包装方式" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">运费承担方</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写包装方式" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		
+		<button type="default">发布</button>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				types:'',
+				typesType:["现货","期货"],
+		
+			}
+		},
+		methods: {
+			typeChange(e){
+				this.typesIndex = e.detail.value
+				this.types = this.typesType[this.typesIndex];
+			}
+		}
+	}
+</script>
+
+<style>
+	.center{
+		padding: 10px 20px;
+	}
+	.c-row {
+	    display: -webkit-box;
+	    display: -webkit-flex;
+	    display: flex;
+	    -webkit-box-align: center;
+	    -webkit-align-items: center;
+	    align-items: center;
+	    padding: 20rpx 30rpx;
+	    position: relative;
+	}
+	.con-list {
+	    -webkit-box-flex: 1;
+	    -webkit-flex: 1;
+	    flex: 1;
+	    display: -webkit-box;
+	    display: -webkit-flex;
+	    display: flex;
+	    -webkit-box-orient: vertical;
+	    -webkit-box-direction: normal;
+	    -webkit-flex-direction: column;
+	    flex-direction: column;
+	    color: #303133;
+	    line-height: 40rpx;
+	    text-align: right;
+	    padding-right: 20rpx;
+		font-size: 14px;
+	}
+
+
+</style>

+ 246 - 0
pageD/myRelease/sellDetails.vue

@@ -0,0 +1,246 @@
+<template>
+	<view class="center">
+			<text class="title">基本信息</text>
+		<view class="c-row b-b">
+			<text class="tit">名头</text>
+			<view class="con-list">
+				<input placeholder="请填写名头" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">标题</text>
+			<view class="con-list">
+				<input placeholder="请填写标题,2-16个子" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">货名</text>
+			<view class="con-list">
+				<input placeholder="请填写货名" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">出售量(吨)</text>
+			<view class="con-list">
+				<input placeholder="请填写出售重量" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">最小成交量(吨)</text>
+			<view class="con-list">
+				<input placeholder="请填写最小成交量" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">类型</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="picker">
+					{{typesIndex>-1?typesType[typesIndex]:'请选择类型'}}
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">价格类型</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写价格类型" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">单价(元/吨)</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写单价(元/吨)" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">产地</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写产地" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">发货地区</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写发货地区" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">卖方手机号</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写卖方手机号" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<text class="title">附加要求</text>
+		<view class="c-row b-b">
+			<text class="tit">水分(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写水分占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">容重(g/L)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写容重" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+
+		<view class="c-row b-b">
+			<text class="tit">热损伤(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写热损伤占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">杂质(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写杂质占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">霉变粒(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写霉变粒占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">不完整粒(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写不完整粒占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">蛋白(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写蛋白占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">粒型 </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写粒型" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">品级 </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写品级" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">产出年份</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写产出年份" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">包装方式</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写包装方式" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">袋装备注</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写包装方式" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">运费承担方</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写包装方式" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				types:'',
+				typesType:["现货","期货"],
+		
+			}
+		},
+		methods: {
+			typeChange(e){
+				this.typesIndex = e.detail.value
+				this.types = this.typesType[this.typesIndex];
+			}
+		}
+	}
+</script>
+
+<style>
+	.center{
+		padding: 10px 20px;
+	}
+	.c-row {
+	    display: -webkit-box;
+	    display: -webkit-flex;
+	    display: flex;
+	    -webkit-box-align: center;
+	    -webkit-align-items: center;
+	    align-items: center;
+	    padding: 20rpx 30rpx;
+	    position: relative;
+	}
+	.con-list {
+	    -webkit-box-flex: 1;
+	    -webkit-flex: 1;
+	    flex: 1;
+	    display: -webkit-box;
+	    display: -webkit-flex;
+	    display: flex;
+	    -webkit-box-orient: vertical;
+	    -webkit-box-direction: normal;
+	    -webkit-flex-direction: column;
+	    flex-direction: column;
+	    color: #303133;
+	    line-height: 40rpx;
+	    text-align: right;
+	    padding-right: 20rpx;
+		font-size: 14px;
+	}
+	.title{
+		font-size: 18px;
+		font-weight: 600;
+	}
+
+
+</style>

+ 250 - 0
pageD/myRelease/sellGrain.vue

@@ -0,0 +1,250 @@
+<template>
+	<view class="center">
+		<view class="c-row b-b">
+			<text class="tit">名头</text>
+			<view class="con-list">
+				<input placeholder="请填写名头" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">标题</text>
+			<view class="con-list">
+				<input placeholder="请填写标题,2-16个子" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">货名</text>
+			<view class="con-list">
+				<input placeholder="请填写货名" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">出售量(吨)</text>
+			<view class="con-list">
+				<input placeholder="请填写出售重量" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">最小成交量(吨)</text>
+			<view class="con-list">
+				<input placeholder="请填写最小成交量" name="input" @input="addressInput"></input>
+			</view>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">类型</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="picker">
+					{{typesIndex>-1?typesType[typesIndex]:'请选择类型'}}
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">价格类型</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写价格类型" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">单价(元/吨)</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写单价(元/吨)" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">产地</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写产地" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">发货地区</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写发货地区" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">卖方手机号</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写卖方手机号" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<button type="default">获取验证码</button>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写6位短信验证码" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">水分(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写水分占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">容重(g/L)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写容重" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+
+		<view class="c-row b-b">
+			<text class="tit">热损伤(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写热损伤占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">杂质(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写杂质占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">霉变粒(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写霉变粒占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">不完整粒(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写不完整粒占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">蛋白(%)<= </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写蛋白占比" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">粒型 </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写粒型" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">品级 </text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写品级" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">产出年份</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写产出年份" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">包装方式</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写包装方式" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">袋装备注</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写包装方式" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		<view class="c-row b-b">
+			<text class="tit">运费承担方</text>
+			<picker @change="typeChange" :value="typesIndex" :range="typesType" class="con-list">
+				<view class="con-list">
+					<input placeholder="请填写包装方式" name="input" @input="addressInput"></input>
+				</view>
+			</picker>
+		</view>
+		
+		<button type="default">发布</button>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				types:'',
+				typesType:["现货","期货"],
+		
+			}
+		},
+		methods: {
+			typeChange(e){
+				this.typesIndex = e.detail.value
+				this.types = this.typesType[this.typesIndex];
+			}
+		}
+	}
+</script>
+
+<style>
+	.center{
+		padding: 10px 20px;
+	}
+	.c-row {
+	    display: -webkit-box;
+	    display: -webkit-flex;
+	    display: flex;
+	    -webkit-box-align: center;
+	    -webkit-align-items: center;
+	    align-items: center;
+	    padding: 20rpx 30rpx;
+	    position: relative;
+	}
+	.con-list {
+	    -webkit-box-flex: 1;
+	    -webkit-flex: 1;
+	    flex: 1;
+	    display: -webkit-box;
+	    display: -webkit-flex;
+	    display: flex;
+	    -webkit-box-orient: vertical;
+	    -webkit-box-direction: normal;
+	    -webkit-flex-direction: column;
+	    flex-direction: column;
+	    color: #303133;
+	    line-height: 40rpx;
+	    text-align: right;
+	    padding-right: 20rpx;
+		font-size: 14px;
+	}
+
+
+</style>

+ 9 - 12
pages.json

@@ -232,6 +232,7 @@
                 "enablePullDownRefresh": true
             }
         },
+		
 		{
 		    "path" : "pages/user/qr",
 		    "style" :                                                                                    
@@ -303,17 +304,6 @@
 		        "navigationBarTitleText": "到站下线"
 		    }
 		}
-		
-        
-        ,{
-            "path" : "pages/buy/purchase/purchase",
-            "style" :                                                                                    
-            {
-                "navigationBarTitleText": "",
-                "enablePullDownRefresh": false
-            }
-            
-        }
         ,{
             "path" : "pages/buy/purchase/purchase",
             "style" :                                                                                    
@@ -369,7 +359,14 @@
             "path" : "pages/release/release",
             "style" :                                                                                    
             {
-                "navigationBarTitleText": "我的发布",
+                "navigationBarTitleText": "我的发布"
+				}
+		},
+		{
+            "path" : "pages/task/my_task",
+            "style" :                                                                                    
+            {
+                "navigationBarTitleText": "我的任务",
                 "enablePullDownRefresh": false
             }
             

+ 230 - 114
pages/business/business.vue

@@ -1,62 +1,78 @@
 <template>
 	<view>
-		<view>	
-			<picker @change="locationChange" :value="location" :range="locationType">
+		<view style='background:#fff;border-bottom:1px solid #EEE;padding-bottom:10px;'>
+			<view class="cu-bar search">
+			<view style='position:absolute;left:30px;top:50%;transform: translateY(-50%);'>	
+			<picker style='display:inline-block;' @change="locationChange" :value="location" :range="locationType">
 				<view class="picker">
 					{{location>-1?locationType[location]:'请选择'}}
 				</view>
 			</picker>
+			<image style='width:10px;height:6px;margin-left:4px;position:relative;top:-2px;' src='../../static/img/jiaoyi/down.png'></image>
 		</view>
-		<view class='tag tag-bule radius line-pink'>采购</view>
-		<view class='tag tag-bule radius line-pink'>销售</view>
-		<view class="cu-bar search bg-white">
 			<view class="search-form round" @click="naviageToPage('/pageA/product/lookup?TabCur=')">
-				<text style='color: #ccc;' class="cuIcon-search"></text>
+				<text style='color: #ccc;text-indent:56px;' class="cuIcon-search"></text>
 				<input type="text" placeholder="请输入货名或标题" confirm-type="search"></input>
 			</view>
 		</view>
-		<view class='tag tag-bule radius line-pink' @click="sousuo">玉米</view>
-		<view class='tag tag-bule radius line-pink' @click="sousuo">大豆</view>
-		<view class='tag tag-bule radius line-pink' @click="sousuo">小麦</view>
-		<view class='tag tag-bule radius line-pink' @click="sousuo">水稻</view>
-		<view class='tag tag-bule radius line-pink' @click="sousuo">高粱</view>
-		<view class="introduce-section">
+		<view style='margin:0 15px;'>
+			<view class='tag radius line-pink' @click="sousuo('玉米')">玉米</view>
+			<view class='tag radius line-pink' @click="sousuo('大豆')">大豆</view>
+			<view class='tag radius line-pink' @click="sousuo('小麦')">小麦</view>
+			<view class='tag radius line-pink' @click="sousuo('水稻')">水稻</view>
+			<view class='tag radius line-pink' @click="sousuo('高粱')">高粱</view>
+		</view>
+		</view>
+		<view style='background:#fff;padding:0 15px;'>
+			<view @click='tabcarchange(0)' class='line' :class='TabCur==0?"active":""'>采购</view>
+			<view  @click='tabcarchange(1)' class='line'  :class='TabCur==1?"active":""'>销售</view>
+		</view>
+		<view v-if='buyInfo.length>0' class="introduce-section">
 			<view v-for="(item, index) in buyInfo" :key="index" class="guess-item" @click="navToDetailPage(item)">
 				<view class="price-box">
 					<view class="title">{{item.title}}</view>
-					<template v-if='item.isFutures==0'>
-
-						<view v-if="item.price !== 0" class="title-tip">
-							<text class="price-tip">¥</text>
-							<text class="price">{{item.price}}</text>
-							<text class="price-tip">元/吨</text>
-						</view>
-						<view v-else class="title-tip">
-							<text>市场价</text>
-						</view>
-					</template>
-					<view class="title-tip" v-if='item.isFutures==1'>
-						<text style='color:#828282;margin-bottom:10rpx;display:inline-block;'
-							class="price-tip">今日基差</text>&nbsp;
-						<view>
-							<text class="price-tip">¥</text>
-							<text class="price">{{item.basis}}</text>
-							<text class="price-tip">元/吨</text>
+					<view class='flex justify-between'>
+						<view class='address'>
+							{{item.receivePrivate}}{{item.receiveCity}}{{item.receiveArea}}{{item.receiveWarehouse}}
 						</view>
+						<view class='price' v-if='item.procurementPlanType=="期货"'>{{item.basisPrice}}<text style='font-size:13px;color:#333333;'>元/吨</text></view>
+						<view class='price' v-if='item.procurementPlanType=="现货"'>{{item.unitPrice}}<text style='font-size:13px;color:#333;'>元/吨</text></view>
 					</view>
 				</view>
-				<view class='tag tag-bule radius line-pink' v-if='item.isFutures==0'>现货</view>
-				<view class='tag tag-bule radius line-pink' v-if='item.isFutures==1'>期货</view>
-				<view class='tag tag-green radius line-green'>{{item.goodsName}}</view>
-				<view class='tag tag-yellow radius line-yellow'>易粮易运</view>
+				<view class='flex justify-between'>
+					<view>
+						<view class='tag1 tag-bule radius line-pink' v-if='item.procurementPlanType=="现货"'>现货</view>
+						<view class='tag1 tag-bule radius line-pink' v-if='item.procurementPlanType=="期货"'>期货</view>
+						<view class='tag1 tag-yellow radius line-green'>{{item.goodsName}}</view>
+						<view class='tag1 tag-red radius line-yellow'>{{item.weight}}吨</view>
+					</view>
+					<view style='color:#878C9C;padding-top:5px;' v-if='item.procurementPlanType=="期货"'>今日基差</view>
+					<view style='color:#878C9C;padding-top:5px;' v-if='item.procurementPlanType=="现货"'>采购价格</view>
+				</view>
 			</view>
 			<view v-show="isLoadMore">
 				<uni-load-more :status="loadStatus"></uni-load-more>
 			</view>
 		</view>
+		<view style='height:65vh;background:#F5F6FA;line-height:65vh;text-align:center;'  v-if='buyInfo.length==0'>
+			当前暂无结果
+		</view>
 		<u-back-top :scroll-top="scrollTop" tips="顶部" :custom-style="{backgroundColor: '#a0cfff',color: '#2979ff'}"
 			:iconStyle="{color: '#2979ff',fontSize: '34rpx'}" mode="square" icon="arrow-up"></u-back-top>
-		<drag-button :isDock="true" :existTabBar="true" :isIcon="true" text="发布" location="20" @btnClick="fabu" />
+			<view>
+				<view
+					id="_drag_button"
+					class="drag"
+					style="right:0;bottom:60px;"
+					@touchstart="touchstart"
+					@touchmove.stop.prevent="touchmove"
+					@touchend="touchend"
+					@click.stop.prevent="fabu"
+				>
+				<image class='side-bg' src='../../static/img/jiaoyi/ic_fabu@3x.png'></image>
+				</view>
+			</view>
+		<!-- <drag-button :isDock="true" :existTabBar="true" :isIcon="true" text="发布" location="20" @btnClick="fabu" /> -->
 	</view>
 </template>
 
@@ -67,12 +83,15 @@
 			return {
 				PageCur: "buy",
 				buyInfo: [],
-				pages: 1, //页数
 				limit: 10, //每次取条目数
 				loadStatus: 'loading', //加载样式:more-加载前样式,loading-加载中样式,nomore-没有数据样式
 				isLoadMore: false, //是否加载中
 				showTran: true,
 				scrollTop: 0,
+				pageSize:10,
+				searchKeyWord:'',
+				receivePrivate:'',
+				currentPage:1,
 				categoryList: [{
 					title: '我要买粮',
 					id: '0'
@@ -83,9 +102,9 @@
 				TabCur: 0,
 				current: 1,
 				location: 0,
-				locationType: ['黑龙江', '河南', '山东', '安徽', '吉林', '河北', '江苏', '内蒙古自治区', '四川', '湖南', '湖北', '辽宁',
-					'江西', '云南', '新疆维吾尔自治区', '山西', '广西壮族自治区', '陕西', '广东', '甘肃', '重庆', '贵州', '浙江', '福建',
-					'宁夏回族自治区', '天津', '海南', '青海', '西藏自治区', '上海', '北京'
+				locationType: ['全国','黑龙江', '河南', '山东', '安徽', '吉林', '河北', '江苏', '内蒙古', '四川', '湖南', '湖北', '辽宁',
+					'江西', '云南', '新疆', '山西', '广西', '陕西', '广东', '甘肃', '重庆', '贵州', '浙江', '福建',
+					'宁夏', '天津', '海南', '青海', '西藏', '上海', '北京'
 				]
 			}
 		},
@@ -106,7 +125,7 @@
 		},
 		//下拉刷新
 		onPullDownRefresh() {
-			this.pages = 1
+			this.pageSize = 1
 			this.isLoadMore = false
 			this.loadStatus = 'loading'
 			this.loadData()
@@ -119,6 +138,22 @@
 			}
 		},
 		methods: {
+			sousuo(name){
+				var page = '/pageA/product/lookup?TabCur=' + this.TabCur+'&searchKeyWord='+name
+				uni.navigateTo({
+					url: page,
+					fail() {
+						uni.switchTab({
+							url: page
+						})
+					}
+				})
+			},
+			tabcarchange(status){
+				this.TabCur=status
+				this.pageSize = 1
+				this.loadData()
+			},
 			naviageToPage(page) {
 				page = page + this.TabCur
 				uni.navigateTo({
@@ -131,18 +166,30 @@
 				})
 			},
 			locationChange(e) {
-				this.location = e.detail.value
+				
+				this.receivePrivate = e.detail.value
+				this.pageSize = 1
+				this.loadData()
 			},
 			tabSelect(e) {
 				this.TabCur = e.currentTarget.dataset.id;
 				this.category = this.TabCur
-				this.pages = 1
+				this.pageSize = 1
 				this.loadData()
 			},
 			fabu() {
-				uni.navigateTo({
-					url: `/pageB/trust/trust`
+				uni.showActionSheet({
+					itemList: ['我要买粮', '我要卖粮'],
+					success (res) {
+						console.log(res.tapIndex)
+					},
+					fail (res) {
+						console.log(res.errMsg)
+					}
 				})
+				// uni.navigateTo({
+				// 	url: `/pageB/trust/trust`
+				// })
 			},
 			//加载商品 ,带下拉刷新和上滑加载
 			async loadData(type = 'add', loading) {
@@ -152,53 +199,62 @@
 					mask: true
 				})
 				var param1 = ''
-				var param2 = ''
 				if (that.TabCur == 0) {
-					param1 = 'integral'
-					param2 = 'getIndexData'
+					param1 = '/procurementPlanInfo/selectProcurementPlanInfo'
 				} else {
 					param1 = 'buy'
-					param2 = 'getBuyListInfo'
 				}
-				console.log(param1, param2)
-				that.$api.request(param1, param2, {
-					page: 1,
-					limit: 10
-				}, failres => {
-					that.$api.msg(failres.errmsg)
-					that.isLoadMore = false
-					that.loadStatus = 'nomore'
-					if (that.pages > 1) {
-						that.pages -= 1
-					}
-					uni.hideLoading()
-				}).then(res => {
-					let data = null
-					if (that.TabCur == 0) {
-						data = res.data.saleInfo
-					} else {
-						data = res.data
-					}
-					uni.stopPullDownRefresh()
-
-					//采购信息
-					if (data.length > 0) {
-						that.buyInfo = data
-						that.isLoadMore = false
-					} else {
-						if (that.pages > 1) {
-							that.pages -= 1
-						}
-						that.isLoadMore = true
-						that.loadStatus = 'nomore'
-					}
+				this.$api.doRequest('get', param1,{pageSize:this.pageSize,
+				showFlag:1,
+currentPage:this.currentPage,searchKeyWord:this.searchKeyWord,receivePrivate:this.receivePrivate}).then(res => {
 					uni.hideLoading()
+					this.buyInfo=res.data.data.records
 				})
+				.catch(res => {
+					uni.showToast({
+						title: res.errmsg,
+						icon:'none',
+						duration: 2000
+					})
+				});
+				// that.$api.request(param1, param2, {
+				// 	page: 1,
+				// 	limit: 10
+				// }, failres => {
+				// 	that.$api.msg(failres.errmsg)
+				// 	that.isLoadMore = false
+				// 	that.loadStatus = 'nomore'
+				// 	if (that.pages > 1) {
+				// 		that.pages -= 1
+				// 	}
+				// 	uni.hideLoading()
+				// }).then(res => {
+				// 	let data = null
+				// 	if (that.TabCur == 0) {
+				// 		data = res.data.saleInfo
+				// 	} else {
+				// 		data = res.data
+				// 	}
+				// 	uni.stopPullDownRefresh()
+
+				// 	//采购信息
+				// 	if (data.length > 0) {
+				// 		that.buyInfo = data
+				// 		that.isLoadMore = false
+				// 	} else {
+				// 		if (that.pages > 1) {
+				// 			that.pages -= 1
+				// 		}
+				// 		that.isLoadMore = true
+				// 		that.loadStatus = 'nomore'
+				// 	}
+				// 	uni.hideLoading()
+				// })
 			},
 			//详情
 			navToDetailPage(item) {
 				let id = item.id;
-				if (item.price === 0) {
+				if (item.unitPrice === 0) {
 					this.contactUs();
 				} else {
 					if (this.TabCur == 0) {
@@ -272,55 +328,81 @@
 <style>
 	page,
 	.content {
-		// background: $page-color-base;
+		background: #F5F6FA;
+	}
+	.line{
+		display:inline-block;
+		padding:5px;
+		position:relative;
+		font-size:17px;
+	}
+	.line.active{
+		font-size:19px;
+		font-weight: 900;
+	}
+	.line.active:after{
+		content:'';
+		display:block;
+		position:absolute;
+		width:18px;
+		left:50%;
+		transform: translateX(-50%);
+		bottom:0;
+		border-bottom:1px solid #22C572;
 	}
-
 	.cu-tag.badge {
 		right: 26rpx;
 	}
-
 	.cu-item {
 		height: 80rpx;
 		display: inline-block;
 		line-height: 80rpx;
 	}
-
 	.search-form {
-		background: #fff;
-		box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
+		background: #F5F6F9;
 	}
-
 	.title-tip {
 		color: #E63113;
 		text-align: right;
 	}
-
+	
+	.tag1 {
+		background:#F5F6F9;
+		padding: 5px;
+		color:#333333;
+		display: inline-flex;
+		font-size: 22rpx;
+		border-radius: 3px;
+		margin: 3px;
+	}
+	.tag {
+		background:#F5F6F9;
+		padding: 7px 12px;
+		color:#333333;
+		display: inline-flex;
+		font-size: 22rpx;
+		border-radius: 15px;
+		margin: 3px;
+	}
 	.tag-bule {
-		background: #CDE7FB;
-		color: #0B4572;
+		background: #EBEEFA;
+		color: #5C76DF;
 	}
-
 	.tag-green {
 		background: #C6F7BC;
 		color: #065112;
 	}
-
 	.tag-yellow {
-		background: #FBF4B1;
-		color: #5C4409;
+		background: #F9F2EA;
+		color: #BE9C69;
 	}
-
-	.tag {
-		padding: 5px;
-		display: inline-flex;
-		font-size: 22rpx;
-		margin: 3px;
+	.tag-red {
+		background: #FEECE6;
+		color: #FE6430;
 	}
-
 	.text-white {
 		color: #fff;
 	}
-
 	.text-white text {
 		position: relative;
 		z-index: 2;
@@ -563,26 +645,37 @@
 		}
 	}
 
+.introduce-section .title{
+	font-size: 17px;
+	font-weight: bold;
+	height:40px;
+	line-height: 40px;
+	flex: 2.5;
+	border-bottom:1px solid #EEEEEE;
+}
+.introduce-section .address{
+	color:#878C9C;
+	font-size:12px;
+	padding:15px 0 10px;
+}
+.introduce-section .price{
+	padding:10px 0 10px;
+	color:#FD714F;
+	font-size:19px;
+	font-weight:700;
+}
 	/* 销售信息 */
 	.introduce-section {
 		background: #fff;
-		padding: 20upx 30upx;
-		padding-bottom: 100upx;
+		padding: 0upx 30upx 20upx;
+		margin:10px;
+		border-radius:4px;
 
 		.guess-item {
 			padding-bottom: 20upx;
 			border-bottom: 1px solid #ccc;
 		}
 
-		.title {
-			font-size: 28upx;
-			color: $font-color-dark;
-			font-weight: bold;
-			height: 50upx;
-			line-height: 50upx;
-			flex: 2.5;
-		}
-
 		.title-tip {
 			flex: 1;
 		}
@@ -629,4 +722,27 @@
 			}
 		}
 	}
+	.side-bg{
+		position:absolute;
+		width: 64px;
+		height: 64px;
+		z-index: 1;
+	}
+	.drag {
+		position:relative;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+		color: $uni-text-color-inverse;
+		width: 64px;
+		height: 64px;
+		background:transparent;
+		font-size: $uni-font-size-sm;
+		position: fixed;
+		z-index: 9;
+		
+		&.transition {
+			transition: left .3s ease,top .3s ease;
+		}
+	}
 </style>

+ 24 - 11
pages/public/code.vue

@@ -165,17 +165,30 @@
 						mask:true
 					})
 					this.$api.doRequest('get','/commonUser/loginVerifyCode',{phone:this.phone,verifyCode:this.inputList}).then(res => {
-					                uni.setStorageSync('userInfo', res.data)
-					                that.$store.commit('login', res.data)
-					                that.liangxinLogin()
-					                uni.switchTab({
-					                	url: '/pages/sale/information'
-					                });
-					                uni.hideLoading()
-					            })
-					            .catch(res => {
-					                console.log(res);
-					            });
+					    if(res.data.code==200){
+							uni.setStorageSync('userInfo', res.data.data)
+					        that.$store.commit('login', res.data.data)
+					        that.liangxinLogin()
+					        uni.switchTab({
+								url: '/pages/sale/information'
+								});
+							uni.hideLoading()
+						}else{
+							uni.hideLoading()
+							uni.showToast({
+								title: res.data.message,
+								icon:'none',
+								duration: 2000
+					        })
+						}
+					})
+					.catch(res => {
+						uni.showToast({
+							title: res.data.message,
+							icon:'none',
+							duration: 2000
+						})
+					});
 				}
 			}
 			

+ 16 - 34
pages/public/login_account_number.vue

@@ -97,14 +97,22 @@
 					mask:true
 				})
 				this.$api.doRequest('get','/commonUser/login',{phone:this.phone,password:this.password}).then(res => {
-				    // 获得数据
-					uni.setStorageSync('userInfo', res.data)
-					that.$store.commit('login', res.data)
-					that.liangxinLogin()
-					uni.switchTab({
-						url: '/pages/sale/information'
-					});
-					uni.hideLoading()
+					if(res.data.code==200){
+						uni.setStorageSync('userInfo', res.data.data)
+						that.$store.commit('login', res.data.data)
+						that.liangxinLogin()
+						uni.switchTab({
+							url: '/pages/sale/information'
+						});
+						uni.hideLoading()
+					}else{
+						uni.hideLoading()
+						uni.showToast({
+							title: res.data.message,
+							icon:'none',
+							duration: 2000
+						})
+					}
 				})
 				.catch(res => {
 				    console.log(res);
@@ -127,32 +135,6 @@
 					url:'/pages/public/reset'
 				})
 			},
-			phonelogin(){
-				var that=this
-				uni.showLoading({
-					title: '登录中',
-					mask:true
-				})
-				console.log("clientid",that.clientId)
-				this.$api.request('user', 'login',{
-					password:that.password,
-					phone:that.phone,
-					cid:that.clientId
-				}, failres => {
-			           that.$api.msg(failres.errmsg)
-			           uni.hideLoading()
-			    }).then(res => {
-					console.log(res.data)
-					uni.setStorageSync('userInfo', res.data)
-					// console.log(uni.getStorageSync('userInfo'))
-					that.$store.commit('login', res.data)
-					that.liangxinLogin()
-					uni.switchTab({
-						url: '/pages/sale/information'
-					});
-					uni.hideLoading()
-				})
-			},
 			appleLogin(){
 			    var that=this
 			    uni.getProvider({

+ 9 - 1
pages/public/register.vue

@@ -134,6 +134,7 @@
 				var that = this
 				if(/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(this.phone)){
 					this.$api.doRequest('get','/commonUser/sendVerifyCode',{phone:this.phone}).then(res => {
+						if(res.data.code==200){
 							that.sendDisabled = true
 							let sec = 60
 							let interval = setInterval(() => {
@@ -145,10 +146,17 @@
 									clearInterval(interval)
 								}
 							}, 1000)
+						}else{
+							uni.showToast({
+								title: res.data.message,
+								icon:'none',
+								duration: 2000
+							})
+						}
 					})
 					.catch(res => {
 						uni.showToast({
-							title: res.errmsg,
+							title: res.data.message,
 							icon:'none',
 							duration: 2000
 						})

+ 42 - 157
pages/public/reset.vue

@@ -136,26 +136,54 @@
 				var that = this
 				this.$api.doRequest('post','/commonUser/resetPassword',{phone:this.phone,password:this.password,verifyCode:this.verifyCode}).then(res => {
 				    // 获得数据
-				    console.log(res);
+					if(res.data.code==200){
+						var that=this
+						uni.showLoading({
+							title: '登录中',
+							mask:true
+						})
+						this.$api.doRequest('get','/commonUser/login',{phone:this.phone,password:this.password}).then(req => {
+						if(res.data.code==200){
+							uni.setStorageSync('userInfo', req.data.data)
+							that.$store.commit('login', req.data.data)
+							that.liangxinLogin()
+							uni.switchTab({
+								url: '/pages/sale/information'
+							});
+							uni.hideLoading()
+						}else{
+							uni.showToast({
+								title: res.data.message,
+								icon:'none',
+								duration: 2000
+							})
+						}
+						})
+						.catch(res => {
+						    uni.showToast({
+						    	title: res.data.message,
+						    	icon:'none',
+						    	duration: 2000
+						    })
+						});
+					}else{
+						uni.showToast({
+							title: res.data.message,
+							icon:'none',
+							duration: 2000
+						})
+					}
 					uni.showLoading({
 						title: '登录中',
 						mask:true
 					})
-					this.$api.doRequest('get','/commonUser/login',{phone:this.phone,password:this.password}).then(res => {
-					uni.setStorageSync('userInfo', res.data)
-					// that.$store.commit('login', res.data)
-					that.liangxinLogin()
-					uni.switchTab({
-						url: '/pages/sale/information'
-					});
-					uni.hideLoading()
-					})
-					.catch(res => {
-					    console.log(res);
-					});
 				})
 				.catch(res => {
-				    console.log(res);
+				    uni.showToast({
+				    	title: res.data.message,
+				    	icon:'none',
+				    	duration: 2000
+				    })
 				});
 			},
 			consent(){
@@ -182,154 +210,11 @@
 					url:'/pages/public/reset'
 				})
 			},
-			appleLogin(){
-			    var that=this
-			    uni.getProvider({
-			     service: 'oauth',
-			     success: function (res) {
-			      // console.log(res.provider)
-			      if(~res.provider.indexOf('apple')) {
-			       uni.login({
-			        provider: 'apple',
-			        success: loginRes => {
-			         uni.getUserInfo({
-			          provider: 'apple',
-			          success: userInfoRes => {
-			           
-			          that.$api.request('user', 'thirdPartLogin', {
-			           loginType: 4/*  */,
-			           raw: JSON.stringify(userInfoRes.userInfo)
-			          }, failres => {
-			           that.$api.msg(failres.errmsg)
-			           uni.hideLoading()
-			          }).then(res => {
-			           console.log("thirdPartLogin:"+res.data.phone)
-			           that.accessToken = res.data.accessToken
-			           that.logining = false
-			           uni.getUserInfo({
-			            lang: 'zh_CN',
-			            success: (e) => {
-			             uni.setStorageSync('userInfo', res.data)
-			             that.$store.commit('login', res.data)
-			             e.userInfo.nickname = e.userInfo.nickName
-						 e.userInfo.cid = uni.getStorageSync("clientId")
-			             that.$api.request('user', 'syncUserInfo', e.userInfo).then(syncRes => {
-			              //同步过后
-			              res.data.nickname = e.userInfo.nickName
-			              res.data.avatarUrl = e.userInfo.avatarUrl
-			              res.data.gender = e.userInfo.gender
-			              
-			              if(!res.data.phone){
-			               res.data.phone = e.userInfo.phone
-			              }
-			              
-			              uni.setStorageSync('userInfo', res.data)
-			              that.$store.commit('login', res.data)
-			             })
-			            },
-			            complete: (e) => {
-			             uni.hideLoading()
-			             
-			             if(!res.data.phone||res.data.phone==""||res.data.phone ==undefined){
-			              that.isPhone = true//显示自定义的获取手机权限提示框
-			              that.inputStatus = 'inline'
-			              that.inputContent = ''
-			             }
-			             else{
-			              uni.switchTab({
-			               url: '/pages/sale/sale'
-			              });
-			              console.log("complete")
-			             }
-			            }
-			           })
-			           
-			           })
-			           console.log('获取用户信息成功'+JSON.stringify(userInfoRes))
-			          }
-			         })
-			        },
-			        fail: err => {
-			         console.log('apple登录失败' + JSON.stringify(err))
-			         uni.showToast({
-			          title:'登录失败',
-			          icon:'none'
-			         })
-			        }
-			       })
-			      }
-			     },
-			     fail: err => {
-			      uni.showToast({
-			       title:'登录失败',
-			       icon:'none'
-			      })
-			     }
-			    })
-			   },
 			cancel() {
 				this.inputShow = false
 				this.inputStatus = 'none'
 				this.isPhone = false
 			},
-			confirm() {
-				var that = this
-				if (!this.inputContent || this.inputContent.length != 11) {
-					uni.showToast({
-						title:'请输入正确手机号!',
-						icon:'none'
-					})
-					return
-				}
-				if (!this.verifyCode) {
-					uni.showToast({
-						title:'请输入验证码!',
-						icon:'none'
-					})
-					return
-				}
-				this.$api.request('user', 'mergeUser', {
-					phone: that.inputContent,
-					verifyCode:that.verifyCode
-				},failres => {
-					that.$api.msg(failres.errmsg)
-					uni.hideLoading()
-				}).then(res => {
-					that.accessToken = res.data.accessToken
-					that.$api.setUserInfo(res.data)
-					that.logining = false
-					uni.getUserInfo({
-						lang: 'zh_CN',
-						success: (e) => {
-							uni.setStorageSync('userInfo', res.data)
-							that.$store.commit('login', res.data)
-							e.userInfo.nickname = e.userInfo.nickName
-							e.userInfo.cid = uni.getStorageSync("clientId")
-							console.log(e.userInfo)
-							that.$api.request('user', 'syncUserInfo', e.userInfo).then(syncRes => {
-								//同步过后
-								res.data.nickname = e.userInfo.nickName
-								res.data.avatarUrl = e.userInfo.avatarUrl
-								res.data.gender = e.userInfo.gender
-								res.data.phone = e.userInfo.phone
-								uni.setStorageSync('userInfo', res.data)
-								that.$store.commit('login', res.data)
-								that.liangxinLogin()
-							})
-						},
-						complete: (e) => {
-							uni.switchTab({
-								url: '/pages/sale/information'
-							});
-							uni.hideLoading()
-							that.isPhone=false
-							
-							uni.navigateBack()
-						}
-					})
-				})
-				
-			},
 			...mapMutations(['login']),
 			inputChange(e) {
 				const key = e.currentTarget.dataset.key;

+ 116 - 0
pages/release/release.vue

@@ -0,0 +1,116 @@
+<template>
+	<view class="center">
+		<view class="introduce-section">
+			<view class="informations" @click="details" v-for="(item , index) in procurementPlanInfos" :Key="index">
+				<view class="labels">{{item.goodsName}}</view>
+				<view class="labels">{{item.weight}}</view>
+				<view class="labels">{{item.unitPrice}}</view>
+				<view class="title">{{item.receivePrivate}}{{item.receiveCity}}{{item.receiveArea}}</view>
+			    <view class='cu-tag radius line-pink'>删除</view>
+				<view class='cu-tag radius line-pink put'>{{item.status}}</view>
+			</view>
+		</view>
+		<!-- <button type="default" class="fabuBut" @change="releaseChange">发布 -->
+		<view class="c-row b-b">
+			
+			<!-- <view class="con-list"> -->
+			<picker @change="releaseChange" :value="releaseIndex" :range="releaseType" class="con-list">
+				<view class="picker " >
+					{{releaseIndex>-1?releaseType[releaseIndex]:'请选择发布内容'}}
+				</view>
+			</picker>
+			<!-- </view> -->
+		</view>
+		<!-- </button> -->
+		<view class="page-bottom">
+			<view class="action-btn-group">
+				<button type="primary" class=" action-btn no-border add-cart-btn" @click="tradeNow">发布</button>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				releaseType:["我要卖粮","我要买粮"],
+				release:'',
+				procurementPlanInfo:{
+					pageSize:10,
+					currentPage:1
+				},
+				releaseIndex:"",
+				pageSize:10,
+				currentPage:1,
+				procurementPlanInfos:[],
+
+
+			}
+		},
+		onLoad(){
+			this.getList()
+		},
+		methods: {
+			releaseChange(e){
+					this.releaseIndex = e.detail.value
+					this.release = this.releaseType[this.releaseIndex];
+						if(this.release == "我要卖粮"){
+							uni.navigateTo({
+								url: `/pageD/myRelease/sellGrain`
+							})
+						}else if(this.release == "我要买粮"){
+							uni.navigateTo({
+								url: `/pageD/myRelease/buyGrain`
+							})
+						}
+			},
+			details(){
+				uni.navigateTo({
+					url: `/pageD/myRelease/buydetails`
+				})
+			},
+			getList(){
+				
+				this.$api.doRequest('get','/procurementPlanInfo/selectProcurementPlanInfo',this.procurementPlanInfo).then(res => {
+					
+					this.procurementPlanInfos = res.data.data.records
+					console.log(this.procurementPlanInfos,"对象")
+					
+				})
+				.catch(res => {
+					uni.showToast({
+						title: res.errmsg,
+						icon:'none',
+						duration: 2000
+					})
+				});
+			}
+
+		}
+	}
+</script>
+
+<style>
+	.center {
+		padding: 10px 20px;
+	}
+
+	.informations {
+		/* display: inline-flex; */
+	}
+
+	.labels {
+		display: inline-flex;
+		line-height: 20px;
+		margin-right: 40px;
+	}
+	.put{
+		float: right;
+	}
+	.fabuBut{
+		margin-bottom: 0px;
+	}
+
+
+</style>

+ 22 - 0
pages/task/my_task.vue

@@ -0,0 +1,22 @@
+<template>
+	<view>
+		
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				
+			}
+		},
+		methods: {
+			
+		}
+	}
+</script>
+
+<style>
+
+</style>

BIN
static/img/jiaoyi/down.png


BIN
static/img/jiaoyi/ic_fabu.png


BIN
static/img/jiaoyi/ic_fabu@2x.png


BIN
static/img/jiaoyi/ic_fabu@3x.png


BIN
static/img/jiaoyi/shanchu.png


BIN
static/img/jiaoyi/shanchu@2x.png


BIN
static/img/jiaoyi/shanchu@3x.png