十一月十一凌晨更新
This commit is contained in:
@@ -36,12 +36,46 @@
|
||||
<view class="margin-lg padding-lg bottom-bg">
|
||||
<button class="bg-main-oil round" v-if="showRandom" @tap="loginRandom">登录</button>
|
||||
<button class="bg-main-oil round" v-else @tap="loginPwd">登录</button>
|
||||
|
||||
<view class="text-center margin-top text-gray text-sm padding-right" @tap="showTips">
|
||||
<text class="cuIcon-question padding-right-xs"></text>突然登不上了
|
||||
</view>
|
||||
</view>
|
||||
<official-account @binderror="bindload" @bindload="binderror"></official-account>
|
||||
|
||||
<view class="bottom-part">
|
||||
<service-hotline />
|
||||
</view>
|
||||
<view class="cu-modal" :class="modalName">
|
||||
<view class="cu-dialog">
|
||||
<view class="cu-bar bg-red light justify-end">
|
||||
<view class="content ">
|
||||
{{'温馨提示'}}
|
||||
</view>
|
||||
<view class="action" @tap="hideModal">
|
||||
<text class="cuIcon-close text-red"></text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="text-left padding-xl padding-bottom padding-top bg-white">
|
||||
<view class="padding-bottom-sm">
|
||||
由于微信平台规则变更,现用户要关注 “星油云站” 公众号,才能登陆
|
||||
</view>
|
||||
<view class="padding-bottom-sm ">
|
||||
之前已经关注过的小部分用户,可能需要重新关注才能登陆,即取消关注,再关注
|
||||
</view>
|
||||
<official-account @binderror="bindload" @bindload="binderror"></official-account>
|
||||
<view class="text-center" @longpress="navToQr" @tap="toQr">
|
||||
<view class=" img-view">
|
||||
<image height="200" src="https://xingka51.oss-cn-hangzhou.aliyuncs.com/applets/cloudSite/yunzhan.jpg" mode="widthFix"></image>
|
||||
星油云站公众号
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="text-center padding-top padding-bottom">
|
||||
<button class="cu-btn bg-red light round" open-type='contact' @tap="hideModal">未解决,联系在线客服</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -53,6 +87,7 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
modalName: '',
|
||||
baseURL: this.global.baseURL,
|
||||
mainURL: this.global.mainURL,
|
||||
forcedLogin: true,
|
||||
@@ -68,76 +103,98 @@
|
||||
uni.showShareMenu()
|
||||
},
|
||||
methods: {
|
||||
bindload(){
|
||||
toQr() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/test/test'
|
||||
})
|
||||
},
|
||||
navToQr() {
|
||||
uni.setClipboardData({
|
||||
data: 'https://xingka51.oss-cn-hangzhou.aliyuncs.com/applets/cloudSite/yunzhan.jpg',
|
||||
success: () => {
|
||||
uni.showToast({
|
||||
title: '二维码链接已复制',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
hideModal() {
|
||||
this.modalName = ''
|
||||
},
|
||||
showTips() {
|
||||
this.modalName = 'show'
|
||||
},
|
||||
bindload() {
|
||||
console.log('组件夹杂')
|
||||
},
|
||||
binderror(){
|
||||
binderror() {
|
||||
console.log('组件夹杂失败')
|
||||
},
|
||||
loginWeixin() {
|
||||
uni.login({
|
||||
provider: 'weixin',
|
||||
success: loginRes => {
|
||||
const code = loginRes.code
|
||||
console.log('启动页code', code)
|
||||
loginApi.loginWeixin(code).then(res => {
|
||||
if (res.code === 20000) {
|
||||
uni.reLaunch({
|
||||
url: '/pages/index/index',
|
||||
fail: (err) => {
|
||||
console.log(err)
|
||||
}
|
||||
})
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'success',
|
||||
duration: 3000
|
||||
})
|
||||
uni.setStorage({
|
||||
key: 'Authorization',
|
||||
data: res.data.accessToken,
|
||||
success: () => {
|
||||
console.log('Authorization成功', res.data.accessToken)
|
||||
}
|
||||
})
|
||||
uni.setStorage({
|
||||
key: 'device',
|
||||
data: res.data.openid,
|
||||
success: () => {
|
||||
console.log('deviceopenid', res.data.openid)
|
||||
}
|
||||
})
|
||||
uni.setStorageSync('userMenu', res.data.loginUser.procedureAuthList)
|
||||
uni.setStorageSync('loginUser', {
|
||||
id: res.data.loginUser.id,
|
||||
name: res.data.loginUser.name,
|
||||
userPhone: res.data.loginUser.userPhone
|
||||
})
|
||||
} else {
|
||||
uni.reLaunch({
|
||||
url: '/pages/login/boforeLogin/boforeLogin',
|
||||
fail: (err) => {
|
||||
console.log(err)
|
||||
}
|
||||
})
|
||||
console.log('res', res.code)
|
||||
}
|
||||
|
||||
|
||||
}).catch(err => {
|
||||
uni.reLaunch({
|
||||
url: '/pages/login/boforeLogin/boforeLogin',
|
||||
fail: (err) => {
|
||||
console.log(err)
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
fail: err => {
|
||||
console.log(err)
|
||||
}
|
||||
});
|
||||
},
|
||||
// loginWeixin() {
|
||||
// uni.login({
|
||||
// provider: 'weixin',
|
||||
// success: loginRes => {
|
||||
// const code = loginRes.code
|
||||
// console.log('启动页code', code)
|
||||
// loginApi.loginWeixin(code).then(res => {
|
||||
// if (res.code === 20000) {
|
||||
// uni.reLaunch({
|
||||
// url: '/pages/index/index',
|
||||
// fail: (err) => {
|
||||
// console.log(err)
|
||||
// }
|
||||
// })
|
||||
// uni.showToast({
|
||||
// title: res.msg,
|
||||
// icon: 'success',
|
||||
// duration: 3000
|
||||
// })
|
||||
// uni.setStorage({
|
||||
// key: 'Authorization',
|
||||
// data: res.data.accessToken,
|
||||
// success: () => {
|
||||
// console.log('Authorization成功', res.data.accessToken)
|
||||
// }
|
||||
// })
|
||||
// uni.setStorage({
|
||||
// key: 'device',
|
||||
// data: res.data.openid,
|
||||
// success: () => {
|
||||
// console.log('deviceopenid', res.data.openid)
|
||||
// }
|
||||
// })
|
||||
// uni.setStorageSync('userMenu', res.data.loginUser.procedureAuthList)
|
||||
// uni.setStorageSync('loginUser', {
|
||||
// id: res.data.loginUser.id,
|
||||
// name: res.data.loginUser.name,
|
||||
// userPhone: res.data.loginUser.userPhone
|
||||
// })
|
||||
// } else {
|
||||
// uni.reLaunch({
|
||||
// url: '/pages/login/boforeLogin/boforeLogin',
|
||||
// fail: (err) => {
|
||||
// console.log(err)
|
||||
// }
|
||||
// })
|
||||
// console.log('res', res.code)
|
||||
// }
|
||||
|
||||
|
||||
// }).catch(err => {
|
||||
// uni.reLaunch({
|
||||
// url: '/pages/login/boforeLogin/boforeLogin',
|
||||
// fail: (err) => {
|
||||
// console.log(err)
|
||||
// }
|
||||
// })
|
||||
// })
|
||||
// },
|
||||
// fail: err => {
|
||||
// console.log(err)
|
||||
// }
|
||||
// });
|
||||
// },
|
||||
|
||||
loginPwd() {
|
||||
uni.login({
|
||||
@@ -439,4 +496,15 @@
|
||||
position: sticky;
|
||||
bottom: 50upx;
|
||||
}
|
||||
|
||||
.img-view {
|
||||
max-width: 300upx;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.qrimg-yunzhan {
|
||||
width: 200upx;
|
||||
height: 200rpx;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user