Browse Source

前端小程序 sdy

zhongtianhaoyuan 3 years ago
parent
commit
9c80946f95
2 changed files with 7 additions and 40 deletions
  1. 3 39
      pageD/myRelease/buyGrain.vue
  2. 4 1
      pages/task/my_task.vue

+ 3 - 39
pageD/myRelease/buyGrain.vue

@@ -10,8 +10,7 @@
 			<view class="c-row b-b">
 				<text class="tit">标题</text>
 				<view class="con-list">
-					<input maxlength='16' minlength='2' placeholder="请输入标题,不超过16个字" name="input"
-						v-model="deptList.title"></input>
+					<input maxlength='16' minlength='2' placeholder="请输入标题,不超过16个字" name="input" v-model="deptList.title"></input>
 				</view>
 			</view>
 			<view class="c-row b-b">
@@ -71,13 +70,6 @@
 					<input placeholder="请输入买方手机号" name="input" v-model="deptList.buyerPhone"></input>
 				</view>
 			</view>
-			<!-- <view class="c-row ">
-				<text class="validate">获取验证码</text>
-				<view class="con-list">
-					<input placeholder="请填写6位短信验证码" name="input" v-model="deptList.title1"></input>
-				</view>
-			</view> -->
-			
 			<view style='width:100%;position:relative;padding:10px;' class="flex">
 				<button :class='codestatus&&!sendDisabled?"active":""' @click='getcode'
 					class='getcode'>{{sendText}}</button>
@@ -213,9 +205,9 @@
 					priceType: "定价采购",
 					procurementPlanType: "现货",
 					grain: "塔粮",
-					grade: "不限(默认)",
+					grade: "",
 					outputYear: "2020",
-					packingType: "不限(默认)",
+					packingType: "",
 					freightPayer: "",
 				},
 				params: {
@@ -279,33 +271,6 @@
 			})
 		},
 		methods: {
-			// async amendprice() {
-			// 	var that = this
-			// 	this.$api.doRequest('get', '/commonUser/loginVerifyCode', {
-			// 			phone: this.deptList.buyerPhone,
-			// 			verifyCode: this.verifyCode
-			// 		}).then(res => {
-			// 			if (res.data.code == 200) {	
-			// 			} else {
-			// 				that.verification = false
-			// 				uni.showToast({
-			// 					title: res.data.message,
-			// 					icon: 'none',
-			// 					duration: 2000
-			// 				})
-			// 				return false
-			// 			}
-			// 		})
-			// 		.catch(res => {
-			// 			that.verification = false
-			// 			uni.showToast({
-			// 				title: res.data.message,
-			// 				icon: 'none',
-			// 				duration: 2000
-			// 			})
-			// 			return false
-			// 		});
-			// },
 			getcode() {
 				var that = this
 				if (/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(that.deptList.buyerPhone)) {
@@ -471,7 +436,6 @@
 						}
 					}
 				}
-				
 				if (!this.region2) {
 					this.$api.msg('收货地区不能为空')
 					return

+ 4 - 1
pages/task/my_task.vue

@@ -59,9 +59,12 @@
 				keyword:""
 			};
 		},
-		onLoad(options) {
+		onShow() {
 			this.getIndexBuyData()
 		},
+		// onLoad(options) {
+		// 	this.getIndexBuyData()
+		// },
 		filters: {
 			formatDate (date) {
 				var date=new Date(date)