Browse Source

修复了软键盘弹出bug

master
longjieli 7 months ago
parent
commit
f68fd7a54c
5 changed files with 22 additions and 28 deletions
  1. +1
    -1
      api/api.js
  2. +1
    -1
      manifest.json
  3. +0
    -6
      pages.json
  4. +1
    -0
      pages/finish/finish.vue
  5. +19
    -20
      pages/repair/repair.vue

+ 1
- 1
api/api.js View File

@ -8,7 +8,7 @@ const config = {
// }, // },
getConfig : {url : '/api/getConfig', method : 'GET', limit : 500}, getConfig : {url : '/api/getConfig', method : 'GET', limit : 500},
// 登录接口 // 登录接口
loginLogin: { url: '/api/login/login', method: 'GET' , limit : 500 },
loginLogin: { url: '/school/login/login', method: 'GET' , limit : 500 },
//修改个人信息接口 //修改个人信息接口
updateInfo: { url: '/api/info/updateInfo', method: 'POST' , limit : 500 }, updateInfo: { url: '/api/info/updateInfo', method: 'POST' , limit : 500 },
//获取用户信息接口 //获取用户信息接口


+ 1
- 1
manifest.json View File

@ -75,7 +75,7 @@
"vueVersion" : "2", "vueVersion" : "2",
"h5" : { "h5" : {
"router" : { "router" : {
"base" : ""
"base" : "/repair"
} }
} }
} }

+ 0
- 6
pages.json View File

@ -4,12 +4,6 @@
"style": { "style": {
"navigationBarTitleText": "申请报修" "navigationBarTitleText": "申请报修"
} }
}, {
"path": "pages/login/login",
"style": {
"navigationBarTitleText": "登录",
"navigationStyle": "custom"
}
}, },
{ {
"path": "pages/repairList/repairList", "path": "pages/repairList/repairList",


+ 1
- 0
pages/finish/finish.vue View File

@ -124,6 +124,7 @@
// //
processingPickerOpen() { processingPickerOpen() {
uni.hideKeyboard()
this.$refs.processing.open(); this.$refs.processing.open();
}, },


+ 19
- 20
pages/repair/repair.vue View File

@ -3,17 +3,17 @@
<view class="repair bx reserveSpace"> <view class="repair bx reserveSpace">
<uv-form :model="form" :rules="rules" errorType="toast" ref="form" labelPosition="left" labelWidth="140"> <uv-form :model="form" :rules="rules" errorType="toast" ref="form" labelPosition="left" labelWidth="140">
<uv-form-item label="楼栋" prop="building" borderBottom>
<uv-input @focus="floorPickerOpen" placeholder="请选择楼层" v-model="form.building" border="none"
:fontSize="30"></uv-input>
<uv-form-item label="楼栋" prop="building" borderBottom @click="floorPickerOpen">
<uv-input placeholder="请选择楼层" v-model="form.building" border="none"
readonly :fontSize="30"></uv-input>
<template v-slot:right> <template v-slot:right>
<uv-icon name="arrow-right"></uv-icon> <uv-icon name="arrow-right"></uv-icon>
</template> </template>
</uv-form-item> </uv-form-item>
<uv-form-item label="室号" prop="room" borderBottom>
<uv-input @focus="roomPickerOpen" placeholder="请选择室号" v-model="form.room" border="none"
:fontSize="30"></uv-input>
<uv-form-item label="室号" prop="room" borderBottom @click="roomPickerOpen">
<uv-input placeholder="请选择室号" v-model="form.room" border="none"
readonly :fontSize="30"></uv-input>
<template v-slot:right> <template v-slot:right>
<uv-icon name="arrow-right"></uv-icon> <uv-icon name="arrow-right"></uv-icon>
</template> </template>
@ -54,7 +54,7 @@
</uv-form> </uv-form>
<!-- 报修地址选择(楼栋) --> <!-- 报修地址选择(楼栋) -->
<uv-picker ref="floorPicker" :columns="floorList" :itemHeight="100" :round="20" keyName="label" title="选择楼栋"
<uv-picker ref="floorPicker" :columns="floorList" :round="20" :itemHeight="100" keyName="label" title="选择楼栋"
@confirm="floorConfirm"></uv-picker> @confirm="floorConfirm"></uv-picker>
<!-- 报修地址选择(室号) --> <!-- 报修地址选择(室号) -->
@ -157,6 +157,18 @@
{ {
id: 1, id: 1,
label: '楼栋2' label: '楼栋2'
},
{
id: 1,
label: '楼栋3'
},
{
id: 1,
label: '楼栋4'
},
{
id: 1,
label: '楼栋5'
} }
] ]
], // ], //
@ -182,19 +194,6 @@
this.$refs.showPrivacy.init(resolve) this.$refs.showPrivacy.init(resolve)
}) })
} }
setTimeout(() => {
this.$refs.showPrivacy.init({})
},2000)
wx.getPrivacySetting({
success: res => {
console.log(res)
if (res.needAuthorization) {
}
}
})
}, },
onReady() { onReady() {
this.$refs.form.setRules(this.rules); this.$refs.form.setRules(this.rules);


Loading…
Cancel
Save