From e5cd5597aad68f294fcfff465e0a312713804c0d Mon Sep 17 00:00:00 2001 From: shishuaikang <280848880@qq.com> Date: 星期二, 12 十二月 2023 13:40:25 +0800 Subject: [PATCH] h5大屏伴和站样式修改 --- xcx/pages/loginIndex/index.vue | 136 +++++++++++++++++++++++---------------------- 1 files changed, 70 insertions(+), 66 deletions(-) diff --git a/xcx/pages/loginIndex/index.vue b/xcx/pages/loginIndex/index.vue index e52abc6..a194043 100644 --- a/xcx/pages/loginIndex/index.vue +++ b/xcx/pages/loginIndex/index.vue @@ -40,7 +40,8 @@ </template> </u-input> </u-form-item> - <u-text type="primary" text="立即注册" @click="navGotoRegister()"></u-text> + <!-- <u-text type="primary" text="立即注册" @click="navGotoRegister()"></u-text> --> + <u-text type="primary" text="管理员电话:13800138008"></u-text> <view class="login_content_button"> <u-button type="primary" @@ -63,8 +64,8 @@ data() { return { formLogin: { + // username: '18103009188', username: '', - // username: '14798989898', password: '' }, rulesLogin: { @@ -92,69 +93,72 @@ }, onShow() { const that = this; - uni.clearStorage(); - uni.clearStorageSync(); - wx.getSetting({ - complete: (info) => { - if(!info.authSetting['scope.userInfo']) { - uni.showModal({ - title: '提示', - content: '是否授权获取您的信息,该信息仅用于确认身份信息', - success: function (res) { - if (res.confirm) { - wx.login({ - success(res) { - uni.$u.toast('授权成功!'); - that.$api.system.getUserInfo(res.code).then((res) => { - if(res.success) { - uni.setStorageSync('openId', res.data.openid); - that.$api.system.changeWChartUser({ - openId: res.data.openid - }).then((reslut) => { - console.log(reslut); - that.switchUserInfo(reslut.data.regstatus, reslut.data.reginfo); - }) - } else { - uni.$u.toast(res.statusMsg); - } - }) - }, - fail: (err) => { - console.log(err,'---'); - } - }) - } else if (res.cancel) { - wx.exitMiniProgram({ - success: (res) => { - console.log(res,'--'); - } - }) - } - } - }); - } else { - wx.login({ - success(res) { - that.$api.system.getUserInfo(res.code).then((res) => { - if(res.success) { - uni.setStorageSync('openId', res.data.openid); - that.$api.system.changeWChartUser({ - openId: res.data.openid - }).then((reslut) => { - that.switchUserInfo(reslut.data.regstatus, reslut.data.reginfo); - }) - } else { - uni.$u.toast(res.statusMsg); - } - }) - }, - fail: (err) => { - console.log(err,'---'); - } - }) - } - } - }) + // uni.clearStorage(); + // uni.clearStorageSync(); + // wx.getSetting({ + // complete: (info) => { + // if(!info.authSetting['scope.userInfo']) { + // uni.showModal({ + // title: '提示', + // content: '是否授权获取您的信息,该信息仅用于确认身份信息', + // success: function (res) { + // if (res.confirm) { + // wx.login({ + // success(res) { + // uni.$u.toast('授权成功!'); + // that.$api.system.getUserInfo(res.code).then((res) => { + // if(res.success) { + // uni.setStorageSync('openId', res.data.openid); + // that.$api.system.changeWChartUser({ + // openId: res.data.openid + // }).then((reslut) => { + // console.log(reslut); + // that.switchUserInfo(reslut.data.regstatus, reslut.data.reginfo); + // }) + // } else { + // uni.$u.toast(res.statusMsg); + // } + // }) + // }, + // fail: (err) => { + // console.log(err,'---'); + // } + // }) + // } else if (res.cancel) { + // wx.exitMiniProgram({ + // success: (res) => { + // console.log(res,'--'); + // } + // }) + // } + // } + // }); + // } else { + // wx.login({ + // success(res) { + // that.$api.system.getUserInfo(res.code).then((res) => { + // if(res.success) { + // uni.setStorageSync('openId', res.data.openid); + // that.$api.system.changeWChartUser({ + // openId: res.data.openid + // }).then((reslut) => { + // that.switchUserInfo(reslut.data.regstatus, reslut.data.reginfo); + // // uni.navigateTo({ + // // url: '../../robePages/safeManage/addHidden' + // // }) + // }) + // } else { + // uni.$u.toast(res.statusMsg); + // } + // }) + // }, + // fail: (err) => { + // console.log(err,'---'); + // } + // }) + // } + // } + // }) }, onReady() { this.$refs.form.setRules(this.rulesLogin); @@ -240,7 +244,7 @@ width: 100%; height: 50%; // background: #556DFE; - background: url('http://filemanage.thhy-tj.com:8888/group1/M00/00/04/bx5d1GR1awaAOSrGAADytgHWrpk815.png') no-repeat; + background: url('https://szpipe.thhy-tj.com/group1/M00/00/04/bx5d1GR1awaAOSrGAADytgHWrpk815.png') no-repeat; background-size: 100% 100%; border-radius: 0 0 20px 20px; -- Gitblit v1.9.3