diff --git a/api/api.js b/api/api.js
index ad6e710..dca411d 100644
--- a/api/api.js
+++ b/api/api.js
@@ -21,6 +21,10 @@ const config = {
editSchoolOrderSuccess : {url : '/school-api/editSchoolOrderSuccess', method : 'GET', limit : 500},
//报修列表
getSchoolOrderPage : {url : '/school-api/getSchoolOrderPage', method : 'GET', limit : 500},
+ //获取楼栋
+ getActorGoList : {url : '/school-api/getActorGoList', method : 'GET', limit : 500},
+ //获取室号
+ getFloorList : {url : '/school-api/getFloorList', method : 'GET', limit : 500},
}
diff --git a/config.js b/config.js
index 49694c8..ccbdff2 100644
--- a/config.js
+++ b/config.js
@@ -13,7 +13,8 @@ const type = 'dev'
// 环境配置
const config = {
dev : {
- baseUrl : 'http://admin.anqi.shop/a-notice-api',
+ // baseUrl : 'http://admin.anqi.shop/a-notice-api',
+ baseUrl : 'http://h5.xzaiyp.top/a-notice-api/',
},
prod : {
baseUrl : 'http://xxx.xxx.xxx/xxx',
diff --git a/pages.json b/pages.json
index 86d2432..a4b382e 100644
--- a/pages.json
+++ b/pages.json
@@ -4,8 +4,13 @@
"style": {
"navigationBarTitleText": "申请报修"
}
- },
- {
+ }, {
+ "path": "pages/login/login",
+ "style": {
+ "navigationBarTitleText": "登录",
+ "enablePullDownRefresh": false
+ }
+ }, {
"path": "pages/repairList/repairList",
"style": {
"navigationBarTitleText": "我的报修",
diff --git a/pages/login/login.vue b/pages/login/login.vue
index fb7d1ae..eac0fa9 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -1,146 +1,142 @@
-
-
-
-
-
- 欢迎使用xx报修
-
-
-
-
-
-
- 微信授权登录
-
-
-
-
-
-
-
-
-
-
-
-
- 阅读并同意我们的“服务协议与隐私条款”
-
-
- 以及个人信息保护指引
-
-
-
-
-
-
-
-
+
+
+ {{ index ? "注册" : "登录"}}
+ 欢迎使用xx报修
+
+
+
+ 学号
+
+
+
+ 密码
+
+
+
+
+
+
+
+
-
+
\ No newline at end of file
diff --git a/pages/login/login1.vue b/pages/login/login1.vue
new file mode 100644
index 0000000..fb7d1ae
--- /dev/null
+++ b/pages/login/login1.vue
@@ -0,0 +1,146 @@
+
+
+
+
+
+
+ 欢迎使用xx报修
+
+
+
+
+
+
+ 微信授权登录
+
+
+
+
+
+
+
+
+
+
+
+
+ 阅读并同意我们的“服务协议与隐私条款”
+
+
+ 以及个人信息保护指引
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/repair/repair.vue b/pages/repair/repair.vue
index 0c94cd6..a7e69dc 100644
--- a/pages/repair/repair.vue
+++ b/pages/repair/repair.vue
@@ -4,16 +4,14 @@
-
+
-
+
@@ -54,11 +52,11 @@
-
-
@@ -149,40 +147,8 @@
}
],
currentIndex: undefined, //当前操作的图片索引
- floorList: [
- [{
- id: 0,
- label: '楼栋1'
- },
- {
- id: 1,
- label: '楼栋2'
- },
- {
- id: 1,
- label: '楼栋3'
- },
- {
- id: 1,
- label: '楼栋4'
- },
- {
- id: 1,
- label: '楼栋5'
- }
- ]
- ], //楼栋列表
- roomNumberList: [
- [{
- id: 0,
- label: 'A1001'
- },
- {
- id: 1,
- label: 'A1002'
- }
- ]
- ], //室号列表
+ floorList: [], //楼栋列表
+ roomNumberList: [], //室号列表
}
},
onShow() {
@@ -194,6 +160,9 @@
this.$refs.showPrivacy.init(resolve)
})
}
+ if(this.floorList.length < 1){
+ this.getActorGoList()
+ }
},
onReady() {
this.$refs.form.setRules(this.rules);
@@ -244,7 +213,8 @@
//用户选择了楼栋
floorConfirm(floor) {
- this.form.building = floor.value[0].label
+ this.form.building = floor.value[0].name
+ this.getFloorList(floor.value[0].id)
},
//打开选择楼栋
@@ -254,7 +224,7 @@
//用户选择了室号
roomConfirm(floor) {
- this.form.room = floor.value[0].label
+ this.form.room = floor.value[0].name
},
//打开选择室号
@@ -270,11 +240,11 @@
...this.form,
image: images
}, res => {
- uni.showToast({
- icon: 'none',
- title: '申请报修成功'
- })
if (res.code == 200) {
+ uni.showToast({
+ icon: 'none',
+ title: '申请报修成功'
+ })
this.cleanfrom()
this.$refs.form.clearValidate();
this.toRepairList()
@@ -301,6 +271,22 @@
context: '', //简介
image: []
}
+ },
+
+ //获取楼栋列表
+ getActorGoList() {
+ this.$api('getFloorList', res => {
+ this.floorList.push(res.result)
+ })
+ },
+
+ //获取室号列表
+ getFloorList(id) {
+ this.$api('getActorGoList',{id},res => {
+ this.roomNumberList = []
+ if(res.result.length > 0 && this.form.room) this.form.room = res.result[0].name
+ this.roomNumberList.push(res.result)
+ })
}
}
}
diff --git a/static/login/6.png b/static/login/6.png
deleted file mode 100644
index d173011..0000000
Binary files a/static/login/6.png and /dev/null differ
diff --git a/static/login/bj.jpg b/static/login/bj.jpg
new file mode 100644
index 0000000..c539eeb
Binary files /dev/null and b/static/login/bj.jpg differ