zhaoxiaohai 3 anni fa
parent
commit
3e8006cb12
5 ha cambiato i file con 0 aggiunte e 142 eliminazioni
  1. 0 1
      app.json
  2. 0 109
      pages/login/index.js
  3. 0 6
      pages/login/index.json
  4. 0 17
      pages/login/index.scss
  5. 0 9
      pages/login/index.wxml

+ 0 - 1
app.json

@@ -1,7 +1,6 @@
 {
     "pages": [
         "pages/login/phone",
-        "pages/login/index",
         "pages/tabbar/home/index",
         "pages/tabbar/mine/index",
         "pages/tabbar/smartStore/index",

+ 0 - 109
pages/login/index.js

@@ -1,109 +0,0 @@
-import Toast from '@vant/weapp/toast/toast';
-const _Http = getApp().globalData.http;
-const loginMsg = require("./modules/login");
-Page({
-
-    /**
-     * 页面的初始数据
-     */
-    data: {
-        isAgree: true
-    },
-
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad(options) {
-
-    },
-    toPhoneLodin() {
-        if (!this.data.isAgree) return Toast({
-            message: '请阅读并勾选用户协议',
-            position: 'bottom'
-        });
-        wx.navigateTo({
-            url: './phone'
-        })
-    },
-    agreementChange({
-        detail
-    }) {
-        this.setData({
-            isAgree: detail
-        })
-    },
-    wechatLogin() {
-        if (!this.data.isAgree) return Toast({
-            message: '请阅读并勾选用户协议',
-            position: 'bottom'
-        });
-        wx.login({
-            success(res) {
-                if (res.code) {
-                    _Http.loginbywechat({
-                        wechat_code: res.code,
-                        "systemclient": "wechatsaletool"
-                    }).then(res => {
-                        console.log(res)
-                        if (res.code == 0) return wx.showToast({
-                            title: res.msg,
-                            icon: "none"
-                        })
-                        loginMsg.loginMsg(res);
-                    })
-                } else {
-                    console.log('登录失败!' + res.errMsg)
-                }
-            }
-        })
-    },
-
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady() {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow() {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide() {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload() {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh() {
-
-    },
-
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    onReachBottom() {
-
-    },
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage() {
-
-    }
-})

+ 0 - 6
pages/login/index.json

@@ -1,6 +0,0 @@
-{
-    "navigationBarTitleText": "登录",
-    "usingComponents": {
-        "Agreement": "./modules/agreement"
-    }
-}

+ 0 - 17
pages/login/index.scss

@@ -1,17 +0,0 @@
-page {
-    background: #ffffff;
-}
-
-.login-fun {
-    width: 650rpx;
-    height: 90rpx;
-    border-radius: 16rpx !important;
-    font-size: 28rpx;
-    font-family: PingFang SC-Regular, PingFang SC;
-    color: #FFFFFF;
-}
-
-.phone-login {
-    color: #666666 !important;
-}
-

+ 0 - 9
pages/login/index.wxml

@@ -1,9 +0,0 @@
-<view style="width: 100vw;text-align: center; margin-top: 480rpx;">
-    <van-button custom-class='login-fun' color="linear-gradient(90deg, #3874F6 0%, #095DE0 100%);" bindtap="wechatLogin">微信用户一键登录</van-button>
-    <view style="height: 30rpx;" />
-    <van-button custom-class='login-fun phone-login' color="#CCCCCC" plain bindtap="toPhoneLodin">账户登录</van-button>
-</view>
-
-<view style="height: 60rpx;" />
-<Agreement isAgree='{{isAgree}}' bindcallBack='agreementChange' />
-<van-toast id="van-toast" />