diff --git a/common/http.interceptor.js b/common/http.interceptor.js index a0dfa0c..6ad01e4 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -20,8 +20,8 @@ const install = (Vue, vm) => { // }, // https://yxd.ccttiot.com/prod-api}); Vue.prototype.$u.http.setConfig({ - // baseUrl: 'http://192.168.2.43:8089', - baseUrl: 'https://testcha.chuangtewl.com/prod-api', + baseUrl: 'http://192.168.2.43:8089', + // baseUrl: 'https://testcha.chuangtewl.com/prod-api', loadingText: '努力加载中~', loadingTime: 800, // 设置自定义头部content-type diff --git a/page_fenbaotwo/bangzhu.vue b/page_fenbaotwo/bangzhu.vue index b1b25c3..eb814ca 100644 --- a/page_fenbaotwo/bangzhu.vue +++ b/page_fenbaotwo/bangzhu.vue @@ -29,10 +29,10 @@ - + diff --git a/page_fenbaotwo/wifipz.vue b/page_fenbaotwo/wifipz.vue index 0afcbca..79f2dee 100644 --- a/page_fenbaotwo/wifipz.vue +++ b/page_fenbaotwo/wifipz.vue @@ -18,11 +18,11 @@ WIFI密码 操作 - - chuangteA - 123456789 + + {{item.wifi == null ? '--' : item.wifi}} + {{item.password == null ? '--' : item.password}} - 编辑 删除 + 编辑 删除 @@ -33,21 +33,16 @@ WIFI配置 - + - 房间{{index}} + {{item.name == null ? '--' : item.name}} - chuangteA + {{item.wifiName == null ? '--' : item.wifiName}} - @@ -57,15 +52,15 @@ WIFI名称 - + WIFI密码 - + - + 保存 × @@ -79,15 +74,15 @@ WIFI名称 - + WIFI密码 - + - + 修改 × @@ -105,21 +100,128 @@ }, flag:false, delflag:false, - editflag:false + editflag:false, + wifilist:[], + wifiname:'', + wifipwd:'', + wifiid:'', + sheshilist:[] } }, onLoad() { + }, + onShow() { + this.getwifilist() + this.getsheshilist() }, methods: { + // 获取所有的房间与设施 + getsheshilist(){ + this.$u.get(`/app/room/getWifiList`).then(res => { + if (res.code == 200) { + this.sheshilist = res.data + } + }) + }, + // 点击删除wifi + btndel(wifiId){ + let that = this + uni.showModal({ + title: '温馨提示', + content: '您确定要删除此WiFi吗?', + success: function (res) { + if (res.confirm) { + that.$u.delete(`/app/wifi/${wifiId}`).then(res => { + if (res.code == 200) { + uni.showToast({ + title: '删除成功', + icon: 'success', + duration:2000 + }) + that.getwifilist() + }else{ + uni.showToast({ + title: res.msg, + icon: 'none', + duration:2000 + }) + } + }) + } else if (res.cancel) { + + } + } + }) + }, + // 新增wifi + btnadd(){ + let data = { + wifi:this.wifiname, + password:this.wifipwd + } + this.$u.post(`/app/wifi`,data).then(res => { + if (res.code == 200) { + uni.showToast({ + title: '新增成功', + icon: 'success', + duration:2000 + }) + this.flag = false + this.getwifilist() + }else{ + uni.showToast({ + title: res.msg, + icon: 'none', + duration:2000 + }) + } + }) + }, + // 获取所有wifi列表 + getwifilist(){ + this.$u.get(`/app/wifi/list`).then(res => { + if (res.code == 200) { + this.wifilist = res.rows + } + }) + }, // 点击修改WIFI - btnxg(){ + btnxg(item){ + this.wifiname = item.wifi + this.wifipwd = item.password + this.wifiid = item.wifiId this.editflag = true }, + // 点击确认修改wifi + btnedit(){ + let data = { + wifiId:this.wifiid, + wifi:this.wifiname, + password:this.wifipwd + } + this.$u.put(`/app/wifi`,data).then(res => { + if (res.code == 200) { + uni.showToast({ + title: '修改成功', + icon: 'success', + duration:2000 + }) + this.editflag = false + this.getwifilist() + }else{ + uni.showToast({ + title: res.msg, + icon: 'none', + duration:2000 + }) + } + }) + }, // 点击房间或者大厅配置WIFI - btnroom(){ + btnroom(objId){ uni.navigateTo({ - url:'/page_fenbaotwo/wifixz' + url:'/page_fenbaotwo/wifixz?objId=' + objId }) } diff --git a/page_fenbaotwo/wifixz.vue b/page_fenbaotwo/wifixz.vue index af27ec9..154cd9c 100644 --- a/page_fenbaotwo/wifixz.vue +++ b/page_fenbaotwo/wifixz.vue @@ -8,13 +8,16 @@ WiFi列表 - - chuangteA - + + + {{ item.wifi }} + - + 确认选择 @@ -28,13 +31,60 @@ bgc: { backgroundColor: "#fff", }, + wifilist:[], + selectedIds: '', + objId:'' } }, - onLoad() { - + onLoad(option) { + this.objId = option.objId + this.getwifilist() }, methods: { - + // 获取所有wifi列表 + getwifilist(){ + this.$u.get(`/app/wifi/list`).then(res => { + if (res.code == 200) { + this.wifilist = res.rows + } + }) + }, + // 点击选择wifi + btnxz(id){ + this.selectedIds = id + // const index = this.selectedIds.indexOf(id) + // if (index > -1) { + // this.selectedIds.splice(index, 1) + // } else { + // this.selectedIds.push(id) + // } + // console.log(this.selectedIds) + }, + // 确认选择wifi + btnqr(){ + let data = { + roomId:Number(this.objId), + wifiId:this.selectedIds + } + this.$u.put(`/app/room/setWifi`,data).then(res => { + if (res.code == 200) { + uni.showToast({ + title: '配置成功', + icon: 'success', + duration:2000 + }) + setTimeout(() =>{ + uni.navigateBack() + },1000) + }else{ + uni.showToast({ + title: res.msg, + icon: 'none', + duration:2000 + }) + } + }) + } } } @@ -44,6 +94,10 @@ /deep/ .u-title{ padding-bottom: 20rpx; } + #active { + background-color: #48893B !important; + color: #fff !important; + } .anniu{ width: 750rpx; height: 152rpx; diff --git a/page_moban/baojie.vue b/page_moban/baojie.vue index 432bbe3..7bdbec6 100644 --- a/page_moban/baojie.vue +++ b/page_moban/baojie.vue @@ -23,7 +23,7 @@ 保洁单数 - 2 + {{item.orderNum == null ? '--' : item.orderNum}} 所属店铺 @@ -121,7 +121,7 @@ }) }, getlist() { - this.$u.get(`/app/user/list`).then(res => { + this.$u.get(`/app/user/list?userType=04`).then(res => { if (res.code == 200) { this.wateringList = res.data } diff --git a/page_moban/baojieadd.vue b/page_moban/baojieadd.vue index 58aa6b9..356ef7e 100644 --- a/page_moban/baojieadd.vue +++ b/page_moban/baojieadd.vue @@ -101,7 +101,7 @@ realName:this.level, phonenumber:this.tel } - this.$u.put(`/app/user/editCleaner`,data).then(res => { + this.$u.put(`/app/user/editUser`,data).then(res => { if (res.code == 200) { uni.showToast({ title: '编辑成功', diff --git a/page_moban/baojieorder.vue b/page_moban/baojieorder.vue index cf2bb1a..03739f9 100644 --- a/page_moban/baojieorder.vue +++ b/page_moban/baojieorder.vue @@ -56,12 +56,12 @@ - 完成保洁 + 完成保洁 - + 没有更多保洁订单啦... @@ -90,6 +90,28 @@ this.getlist() }, methods: { + // 点击完成保洁 + btnwc(cleanId){ + this.$u.get(`/app/clean/completeCleaning?cleanId=${cleanId}`).then(res =>{ + if(res.code == 200){ + uni.showToast({ + title: '保洁完成', + icon: 'success', + duration:2000 + }) + this.tabindex = 1 + this.orderlist = [] + this.pagenum = 1 + this.getlist() + }else{ + uni.showToast({ + title:res.msg, + icon: 'none', + duration:2000 + }) + } + }) + }, // 点击切换列表状态 btntab(num){ this.tabindex = num diff --git a/page_moban/datingxq.vue b/page_moban/datingxq.vue index 0a64487..610887b 100644 --- a/page_moban/datingxq.vue +++ b/page_moban/datingxq.vue @@ -171,7 +171,7 @@ let id = getQueryParam(decodedValue, 'sn') let that = this let data = { - deviceId: id, + sn: id, equipmentId: this.obj.equipmentId } that.$u.put(`/app/store/bandGate`, data).then(res => { diff --git a/page_moban/hehuoren.vue b/page_moban/hehuoren.vue index f4dc88a..ad6ed3d 100644 --- a/page_moban/hehuoren.vue +++ b/page_moban/hehuoren.vue @@ -2,18 +2,12 @@ - - - 搜索 - - - + - {{item.userName}}-合伙人 - 点击扫码绑定 + {{item.realName == null ? '--' : item.realName}}-合伙人 @@ -21,119 +15,67 @@ 绑定店铺 - {{item.storeName}} + {{item.storeName == null ? '--' : item.storeName}} 月收入 - ¥{{item.monthIncome == undefined ? '--' : item.monthIncome}} + {{item.monthIncome == null ? '--' : item.monthIncome}} - 设备数 - {{item.deviceCount == undefined ? '--' : item.deviceCount}}台 + 分成比例 + {{item.dividendProportion == null ? '--' : item.dividendProportion * 10}} - 联系电话:18855566655 + 联系电话:{{item.phonenumber}} - {{item.createTime}} 分成比例:{{item.point}}% + {{item.createTime == null ? '--' : item.createTime}} - - 暂无更多合伙人... + + 没有更多合伙人啦... - - - - 请扫描二维码进行绑定 - - - - 新建合伙人 - - 关闭二维码 - @@ -140,6 +225,104 @@ /deep/ .u-title{ padding-bottom: 20rpx; } + .ones{ + display: flex; + justify-content: space-between; + padding-bottom: 34rpx; + /* border-bottom: 1px solid #D8D8D8; */ + /* margin-top: 58rpx; */ + box-sizing: border-box; + font-size: 32rpx; + color: #3D3D3D; + background-color: #fff; + width: 680rpx; + padding: 0 20rpx; + box-sizing: border-box; + height: 100rpx; + line-height: 100rpx; + margin: auto; + margin-top: 30rpx; + border-radius: 16rpx; + view{ + display: flex; + input{ + width: 80rpx; + margin-left: 10rpx; + height: 100rpx; + line-height: 100rpx; + } + } + } + .addwifi{ + width: 750rpx; + height: 598rpx; + background: #FFFFFF; + position: fixed; + left: 0; + bottom: 0; + border-radius: 50rpx 50rpx 0 0; + padding: 0 72rpx; + box-sizing: border-box; + .cha{ + color: #3D3D3D; + font-size: 50rpx; + font-weight: 600; + position: absolute; + top: 30rpx; + right: 30rpx; + } + .baocun{ + width: 680rpx; + height: 104rpx; + background: #48893B; + font-weight: 600; + font-size: 36rpx; + color: #FFFFFF; + margin: auto; + text-align: center; + line-height: 104rpx; + border-radius: 24rpx; + position: fixed; + left: 50%; + transform: translateX(-50%); + bottom: 32rpx; + } + .one{ + display: flex; + justify-content: space-between; + padding-bottom: 34rpx; + border-bottom: 1px solid #D8D8D8; + margin-top: 58rpx; + box-sizing: border-box; + font-size: 32rpx; + color: #3D3D3D; + view{ + display: flex; + input{ + width: 80rpx; + margin-left: 10rpx; + } + } + } + .name{ + font-weight: 600; + font-size: 36rpx; + color: #3D3D3D; + width: 100%; + text-align: center; + margin-top: 42rpx; + margin-bottom: 86rpx; + } + } + .mask{ + width: 100%; + height: 100vh; + position: fixed; + top: 0; + left: 0; + background-color: #000; + opacity: .2; + } .box{ height: 80vh; overflow: scroll; @@ -198,6 +381,21 @@ padding-bottom: 20rpx; box-sizing: border-box; border-bottom: 1px solid #D8D8D8; + .two{ + font-size: 28rpx; + display: flex; + align-items: center; + /deep/ .uicon-arrow-right{ + padding-bottom: 0; + } + input{ + width: 200rpx; + height: 22rpx; + line-height: 22rpx; + text-align: right; + margin-right: 20rpx; + } + } } .bottab{ width: 100%; @@ -209,6 +407,11 @@ view{ width: 50%; text-align: center; + text{ + display: inline-block; + margin-left: 20rpx; + color: red; + } } } .toptab{ @@ -235,6 +438,11 @@ .two{ font-size: 28rpx; color: #48893B; + display: flex; + align-items: center; + input{ + width: 200rpx; + } } } } diff --git a/page_shanghu/cesuoxq.vue b/page_shanghu/cesuoxq.vue index 325eec6..b9e371e 100644 --- a/page_shanghu/cesuoxq.vue +++ b/page_shanghu/cesuoxq.vue @@ -209,7 +209,7 @@ let id = getQueryParam(decodedValue, 'sn') let that = this let data = { - deviceId: id, + sn: id, equipmentId: this.obj.equipmentId } that.$u.put(`/app/store/bandGate`, data).then(res => { diff --git a/page_shanghu/roomsheshi.vue b/page_shanghu/roomsheshi.vue index 5414e70..380736e 100644 --- a/page_shanghu/roomsheshi.vue +++ b/page_shanghu/roomsheshi.vue @@ -216,7 +216,7 @@ let id = getQueryParam(decodedValue, 'sn') let that = this let data = { - deviceId: id, + sn: id, equipmentId: this.obj.equipmentId } that.$u.put(`/app/store/bandGate`, data).then(res => { diff --git a/page_shanghu/toufsb.vue b/page_shanghu/toufsb.vue index a11b6bb..58e08d6 100644 --- a/page_shanghu/toufsb.vue +++ b/page_shanghu/toufsb.vue @@ -239,7 +239,7 @@ let id = getQueryParam(decodedValue, 'sn') let that = this let data = { - deviceId: id, + sn: id, equipmentId: this.xxobj.equipmentId } that.$u.put(`/app/store/bandGate`, data).then(res => { diff --git a/page_shanghu/yunying.vue b/page_shanghu/yunying.vue index cc21732..67ede40 100644 --- a/page_shanghu/yunying.vue +++ b/page_shanghu/yunying.vue @@ -140,7 +140,7 @@ + + \ No newline at end of file diff --git a/page_user/changjian.vue b/page_user/changjian.vue index 470141d..0bc51b0 100644 --- a/page_user/changjian.vue +++ b/page_user/changjian.vue @@ -47,7 +47,7 @@ methods: { // 获取常见问题 getchangjian(){ - this.$u.get(`app/article/21`).then(res => { + this.$u.get(`/app/article/21`).then(res => { if (res.code == 200) { this.content = res.data.content } diff --git a/pages.json b/pages.json index 85cc376..e09782b 100644 --- a/pages.json +++ b/pages.json @@ -104,6 +104,13 @@ "enablePullDownRefresh": false, "navigationStyle": "custom" } + },{ + "path": "bangzhuxq", + "style": { + "navigationBarTitleText": "上传", + "enablePullDownRefresh": false, + "navigationStyle": "custom" + } },{ "path": "lijikaishi", "style": { diff --git a/pages/login/index.vue b/pages/login/index.vue index 4e62cc6..6fb2fb4 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -34,7 +34,7 @@ 没有账户? 去注册