| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- <template>
- <view class="flex-common-css">
- <Nav :leftShow='false' :customNav='true' title="" bgckgroundBox='rgba(51,51,51,0.6)'></Nav>
- <view class="bgc-3-6 flex-1 flex-direction authorization iPhone-bottom">
- <view
- class="authorization-box flex-direction flex-justify-end bgc-f b-rad-20-20-0-0 p-40-32 box-border-box">
- <view class="text-align-center fs-36 fc-3 mb-30 fw-500">
- 服务协议与隱私政策概
- </view>
- <view class="authorization-text mb-24 fs-28 fc-6">
- 感谢您使用喜茶小程序。我们非常重视您的个人信息和隐私保护,我们深知个人信息对您的重要性,因此,我们将竭尽全力保障您的隐私信息安全。我们承诺,未经您的同意,不会从第三方获取,共享或向第三方提供您的隐私信息。我们致力于维护您对我们的信任,将按业界成熟的安全标准,采取各种安全保护措施及配套的管理体制来保护您的个人信息。所提供的产品及服务分为基础业务和拓展业务。我们产品及服务中关于点单、外卖配送的功能为基础业务,即通过喜茶GO
- App或小程序完成点 二、我们产品或服务中一部分的拓展业务是基于手机账号实现.当您使用点单、外卖基础业务及除点单、外卖以外的坏屏防能叶面西林但你的垣和土林收佳个人信自
- </view>
- <view class="but-box mb-8 ptb-22 text-align-center but-c fs-32 fc-f b-rad-200" @click="login">
- 同意
- </view>
- <view class="but-box ptb-22 text-align-center fs-32 fc-6" @click="refuse">
- 不同意
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import tools from "@/service/tools";
- import {
- appletLogin
- } from "@/api/member";
- export default {
- data() {
- return {
- isFlag: false,
- isAjax: false,
- from: {
- code: "",
- system_type: '',
- phone: '',
- sms_code: '',
- invite_code: ''
- },
- isCode: false,
- codeText: '获取验证码',
- codeNUm: 0,
- isPop: false,
- html: '',
- agreementData: []
- };
- },
- onShow() {},
- onLoad(data) {
- console.log('00000');
- uni.setStorageSync('shop_id', 111)
- uni.setStorageSync('table_number', 1)
- this.firstLogin()
- },
- mounted() {},
- methods: {
- firstLogin() {
- tools.showLoading()
- uni.login({
- provider: "weixin",
- success: (loginRes) => {
- this.appletLogin(loginRes.code);
- },
- fail: (loginRes) => {
- this.isAjax = false;
- tools.error("获取授权信息失败");
- },
- });
- },
- appletLogin(code) {
- appletLogin({
- 'code': code
- }).then(res => {
- if (res.code === 1) {
- uni.setStorageSync('token', res.data.token)
- uni.setStorageSync('m_id', res.data.m_id)
- tools.hideLoading()
- // this.goToUrl()
- }
- })
- },
- refuse() {
- // #ifdef MP-WEIXIN
- // 微信小程序平台
- wx.exitMiniProgram({
- success: (res) => {}
- });
- // #endif
- // #ifdef MP-ALIPAY
- // 支付宝小程序
- my.exitMiniProgram({
- success: (res) => {}
- });
- // #endif
- },
- login() {
- // uni.setStorageSync('token', 165165165156)
- // uni.setStorageSync('m_id', 88)
- // uni.reLaunch({
- // url: "/pages/index/index",
- // });
- // return
- console.log('11111111111111');
- if (this.isAjax) {
- return false;
- }
- this.isAjax = false;
- uni.reLaunch({
- url: "/pages/index/index",
- });
- }
- },
- };
- </script>
- <style scoped lang="scss">
- .authorization {
- position: relative;
- }
- .authorization-box {
- width: 100%;
- height: auto;
- max-height: 69%;
- position: absolute;
- left: 0;
- bottom: 0;
- }
- .authorization-text {
- width: 100%;
- max-height: 62%;
- overflow: auto;
- }
- .but-box {
- width: 100%;
- }
- .but-c {
- background: linear-gradient(270deg, #FF3333 0%, #FE6122 100%);
- }
- </style>
|