guhongwei 2 years ago
parent
commit
0ff396fd69
2 changed files with 2 additions and 23 deletions
  1. 1 22
      pages/index/index.vue
  2. 1 1
      pagesHome/shop/index.vue

+ 1 - 22
pages/index/index.vue

@@ -2,12 +2,6 @@
 	<mobile-frame>
 		<view class="main">
 			系统首页
-
-			<uni-forms ref="form" :rules="rules" :model="form" label-width="auto">
-				<uni-forms-item label="test" name="num">
-					<uni-easyinput type="digit" v-model="form.num" @input="toInput" aceholder="请输入内容"></uni-easyinput>
-				</uni-forms-item>
-			</uni-forms>
 		</view>
 	</mobile-frame>
 </template>
@@ -16,10 +10,7 @@
 	export default {
 		components: {},
 		data() {
-			return {
-				form: {},
-				rules: {}
-			};
+			return {};
 		},
 		onLoad: function() {},
 		onShow: function() {
@@ -27,17 +18,6 @@
 			that.search();
 		},
 		methods: {
-			toInput(value) {
-				if (value > 10) {
-					uni.showToast({
-						title: '可以'
-					})
-				} else {
-					uni.showToast({
-						title: '不可以'
-					})
-				}
-			},
 			search() {
 				// 查询当前所在平台
 				uni.getSystemInfo({
@@ -48,7 +28,6 @@
 							success: function() {
 								uni.redirectTo({
 									url: `/pages/home/index`
-									// url: `/pagesMy/order/info`
 								})
 							}
 						});

+ 1 - 1
pagesHome/shop/index.vue

@@ -194,7 +194,7 @@
 		},
 		onLoad: function(e) {
 			const that = this;
-			that.$set(that, `id`, e.id || '6333d71d32c5f69745f9bd32');
+			that.$set(that, `id`, e.id || '');
 			that.search()
 		},
 		onShow: function() {},