gjy 2 年之前
父节点
当前提交
2d88c14132
共有 3 个文件被更改,包括 11 次插入12 次删除
  1. 8 10
      components/mehaotian-search-revision.vue
  2. 1 0
      pages/business/businessNew.vue
  3. 2 2
      pages/business/release.vue

+ 8 - 10
components/mehaotian-search-revision.vue

@@ -59,22 +59,20 @@
 		data() {
 			return {
 				active: false,
-				inputVal: '',
+				inputVal: uni.getStorageSync('jiaoyikeyword')?uni.getStorageSync('jiaoyikeyword'):'',
 				searchName: '取消',
 				isDelShow: false,
 				isFocus: false
 			};
 		},
-		watch: {
-			oldsearch:{
+		watch:{
+			inputVal:{
 				handler(oldValue, newValue) {
-					console.log(oldValue, newValue,22222)
-					// if (val != '') {
-					// 	this.place = val
-					// }
-				},
-				deep:true,
-				immediate:true,
+					console.log(oldValue, newValue,11111)
+
+					},
+					deep:true,
+					immediate:true,
 			}
 		},
 		methods: {

+ 1 - 0
pages/business/businessNew.vue

@@ -300,6 +300,7 @@
 			},
 			toSearch() {
 				this.keyword1=this.keyword
+				uni.setStorageSync('jiaoyikeyword',this.keyword)
 				this.isShowSearch = true
 			
 				console.log(this.keyword1)

+ 2 - 2
pages/business/release.vue

@@ -171,7 +171,7 @@
 		},
 		methods: {
 			deleteImg(index) {
-				this.imglist.splice(index, 1)
+				this.imgList.splice(index, 1)
 			},
 			async uploadClick() {
 				let baseUrlNew = config.def().baseUrlNew
@@ -184,7 +184,7 @@
 					return 
 				}
 				uni.chooseImage({
-					count:10,
+					count:9,
 					success: (chooseImageRes) => {
 						console.log('chooseImageRes',chooseImageRes)
 						let files = []