|
|
@ -7,7 +7,7 @@ |
|
|
<view class="content"> |
|
|
<view class="content"> |
|
|
<!-- Logo和标题区域 --> |
|
|
<!-- Logo和标题区域 --> |
|
|
<view class="logo-section"> |
|
|
<view class="logo-section"> |
|
|
<image class="logo" :src="configParamImage('app_logo')" mode="aspectFit"></image> |
|
|
|
|
|
|
|
|
<image class="logo" :src="configParamContent('login_logo')" mode="aspectFit"></image> |
|
|
<text class="title-text">展品维保报修小程序</text> |
|
|
<text class="title-text">展品维保报修小程序</text> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
@ -40,19 +40,19 @@ |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<!-- 用户协议和隐私政策弹窗 --> |
|
|
<!-- 用户协议和隐私政策弹窗 --> |
|
|
<uv-modal ref="serviceModal" title="《服务协议与隐私条款》" :show-cancel-button="false" confirm-text="我知道了" confirm-color="#C70019" @confirm="isAgreed = true"> |
|
|
|
|
|
|
|
|
<uv-modal ref="serviceModal" title="《服务协议与隐私条款》" :show-cancel-button="false" confirm-text="我知道了" confirm-color="#06DADC" @confirm="isAgreed = true"> |
|
|
<view class="privacy-content"> |
|
|
<view class="privacy-content"> |
|
|
<!-- 如果是富文本 --> |
|
|
<!-- 如果是富文本 --> |
|
|
<rich-text :nodes="configParamTextarea('app_agreement')"> |
|
|
|
|
|
|
|
|
<rich-text :nodes="configParamContent('privacy_policy')"> |
|
|
</rich-text> |
|
|
</rich-text> |
|
|
</view> |
|
|
</view> |
|
|
</uv-modal> |
|
|
</uv-modal> |
|
|
|
|
|
|
|
|
<!-- 用户协议和隐私政策弹窗 --> |
|
|
<!-- 用户协议和隐私政策弹窗 --> |
|
|
<uv-modal ref="guideModal" title="《个人信息保护指引》" :show-cancel-button="false" confirm-text="我知道了" confirm-color="#C70019" @confirm="isAgreed = true"> |
|
|
|
|
|
|
|
|
<uv-modal ref="guideModal" title="《个人信息保护指引》" :show-cancel-button="false" confirm-text="我知道了" confirm-color="#06DADC" @confirm="isAgreed = true"> |
|
|
<view class="privacy-content"> |
|
|
<view class="privacy-content"> |
|
|
<!-- 如果是富文本 --> |
|
|
<!-- 如果是富文本 --> |
|
|
<rich-text :nodes="configParamTextarea('app_guideline')"> |
|
|
|
|
|
|
|
|
<rich-text :nodes="configParamContent('user_agreement ')"> |
|
|
</rich-text> |
|
|
</rich-text> |
|
|
</view> |
|
|
</view> |
|
|
</uv-modal> |
|
|
</uv-modal> |
|
|
@ -71,19 +71,17 @@ export default { |
|
|
// 授权登录 |
|
|
// 授权登录 |
|
|
handleLogin() { |
|
|
handleLogin() { |
|
|
|
|
|
|
|
|
// uni.redirectTo({ url: '/subPages/login/userInfo' }) |
|
|
|
|
|
// return |
|
|
|
|
|
|
|
|
|
|
|
if (!this.isAgreed) { |
|
|
if (!this.isAgreed) { |
|
|
this.$refs.serviceModal.open(); |
|
|
this.$refs.serviceModal.open(); |
|
|
this.$refs.guideModal.open(); |
|
|
this.$refs.guideModal.open(); |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
uni.login({ |
|
|
uni.login({ |
|
|
provider: 'weixin', |
|
|
provider: 'weixin', |
|
|
success: async (res) => { |
|
|
success: async (res) => { |
|
|
console.log('登录成功', res); |
|
|
console.log('登录成功', res); |
|
|
const { result: loginRes} = await this.$api.login.login({ |
|
|
|
|
|
|
|
|
const { result: loginRes } = await this.$api.login.login({ |
|
|
code: res.code |
|
|
code: res.code |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|