zs 1 年之前
父节点
当前提交
fd7b99e9d5
共有 4 个文件被更改,包括 9 次插入21 次删除
  1. 1 2
      pages/index/index.js
  2. 7 7
      pagesCommon/login/index.js
  3. 0 11
      pagesCommon/login/index.wxss
  4. 1 1
      pagesMy/home/index.js

+ 1 - 2
pages/index/index.js

@@ -36,7 +36,7 @@ Page({
         const that = this;
         const res = await app.$api('config', 'GET', {});
         if (res.errcode == '0') {
-            // index,长图。
+            // logo
             if (res.data && res.data.logo_url && res.data.logo_url.length > 0) {
                 let logo = res.data.logo_url[0].url
                 that.setData({ logo })
@@ -46,7 +46,6 @@ Page({
     },
     // 监听用户是否登录
     watchLogin: async function () {
-        const that = this;
         wx.login({
             success: async (arr) => {
                 const { code: js_code } = arr;

+ 7 - 7
pagesCommon/login/index.js

@@ -13,13 +13,6 @@ Page({
         let index = e.currentTarget.dataset.code;
         that.setData({ current: index })
     },
-    // 验证表单
-    initValidate() {
-        const rules = { account: { required: true }, password: { required: true, } }
-        // 验证字段的提示信息,若不传则调用默认的信息
-        const messages = { account: { required: '请输入账号', }, password: { required: '请输入密码', } };
-        this.WxValidate = new WxValidate(rules, messages)
-    },
     // 选择用户类别
     typeChange: function (e) {
         const that = this;
@@ -88,6 +81,13 @@ Page({
         await that.search()
         wx.hideLoading()
     },
+    // 验证表单
+    initValidate() {
+        const rules = { account: { required: true }, password: { required: true, } }
+        // 验证字段的提示信息,若不传则调用默认的信息
+        const messages = { account: { required: '请输入账号', }, password: { required: '请输入密码', } };
+        this.WxValidate = new WxValidate(rules, messages)
+    },
     async searchOther() {
         const that = this;
         let res;

+ 0 - 11
pagesCommon/login/index.wxss

@@ -112,17 +112,6 @@ page {
     margin: -30rpx 80rpx 0 80rpx;
 }
 
-/* 最底部 */
-.bottom-box {
-    position: fixed;
-    bottom: 10rpx;
-    width: 100%;
-    font-size: 24rpx;
-    color: gray;
-    display: flex;
-    justify-content: center;
-}
-
 .select {
     font-weight: bold;
     color: var(--rgb40E);

+ 1 - 1
pagesMy/home/index.js

@@ -32,7 +32,7 @@ Page({
     async toAvatarUrl(e) {
         const that = this;
         const { avatarUrl } = e.detail
-        let res = await app.$apifile('files/zkzx/schfriend/upload', null, avatarUrl)
+        let res = await app.$apifile('files/ball/users/upload', null, avatarUrl)
         res = JSON.parse(res);
         if (res.errcode == '0') {
             let icon = [{ id: res.id, name: res.name, uri: res.uri, url: `${app.globalData.fileserverUrl}` + res.uri }]