@@ -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 {
- title: '不可以'
- }
- },
search() {
// 查询当前所在平台
uni.getSystemInfo({
@@ -48,7 +28,6 @@
success: function() {
uni.redirectTo({
url: `/pages/home/index`
- // url: `/pagesMy/order/info`
})
}
});
@@ -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() {},