guhongwei vor 2 Jahren
Ursprung
Commit
56b991b063

+ 0 - 1
app.json

@@ -13,7 +13,6 @@
 
         "pages/superAdmin/suser/list",
         "pages/superAdmin/suser/add",
-        "pages/superAdmin/suser/bind",
         "pages/superAdmin/sadmin/list",
         "pages/superAdmin/sadmin/add",
         "pages/superAdmin/scoach/list",

+ 1 - 1
pages/superAdmin/scoach/list.js

@@ -70,7 +70,7 @@ Page({
     },
     makeQRCode(template = 0) {
         const that = this;
-        const url = `${app.globalData.publicUrl}/courtappbind?id=${that.data.form.id}&type='2'`;
+        const url = `${that.data.form.id}&&'2'`;
         var qrcode = new QRCode(`myQrcode`, {
             text: url,
             width: 110,

+ 1 - 1
pages/superAdmin/sstudent/list.js

@@ -65,7 +65,7 @@ Page({
     },
     makeQRCode(template = 0) {
         const that = this;
-        const url = `${app.globalData.publicUrl}/courtappbind?id=${that.data.form.id}&type='3'`;
+        const url = `${that.data.form.id}&&'3'`;
         var qrcode = new QRCode(`myQrcode`, {
             text: url,
             width: 110,

+ 0 - 92
pages/superAdmin/suser/bind.js

@@ -1,92 +0,0 @@
-const app = getApp()
-Page({
-
-    /**
-     * 页面的初始数据
-     */
-    data: {
-        frameStyle: { useTop: true, name: '账号绑定', leftArrow: false, useBar: false },
-        id: '',
-        type: ''
-    },
-    // 返回
-    back: function () {
-        wx.navigateBack({ delta: 1 })
-    },
-    toBind: function () {
-        const that = this;
-        let id = that.data.id;
-        let type = that.data.type;
-        wx.showModal({
-            title: '提示',
-            content: '你确定要使用此微信绑定账号吗?',
-            async success(res) {
-                if (res.confirm) {
-                    // 学校
-                    let arr;
-                    if (type == '1') { arr = await app.$get(`/school/${id}`) };
-                    if (arr.errcode == '0') {
-                        let params = {}
-                    } else { wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 }) }
-
-                }
-            }
-        })
-    },
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad: function (options) {
-        const that = this;
-        that.setData({ id: options.id || '62ff209808c3ce998df15dd3', type: options.type || '1' })
-    },
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow: function () {
-        const that = this;
-    },
-
-
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide: function () {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload: function () {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh: function () {
-
-    },
-
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    onReachBottom: function () {
-
-    },
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage: function () {
-
-    }
-})

+ 0 - 6
pages/superAdmin/suser/bind.json

@@ -1,6 +0,0 @@
-{
-    "component": true,
-    "usingComponents": {
-      "mobile-main": "/commpents/mobile-frame/index"
-    }
-  }

+ 0 - 16
pages/superAdmin/suser/bind.less

@@ -1,16 +0,0 @@
-.main {
-    background-color: var(--mainColor);
-
-    .one {
-        text-align: center;
-        margin: 0 0 2vw 0;
-
-        .one_1 {
-            margin: 0 0 2vw 0;
-        }
-    }
-
-    .two {
-        text-align: center;
-    }
-}

+ 0 - 11
pages/superAdmin/suser/bind.wxml

@@ -1,11 +0,0 @@
-<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
-    <view slot="info" class="container main">
-        <view class="one">
-            <view class="one_1">账号id:{{id}}</view>
-            <view class="one_1">账号类型:{{type}}</view>
-        </view>
-        <view class="two">
-            <button type="primary" bindtap="toBind">账号绑定</button>
-        </view>
-    </view>
-</mobile-main>

+ 0 - 13
pages/superAdmin/suser/bind.wxss

@@ -1,13 +0,0 @@
-.main {
-  background-color: var(--mainColor);
-}
-.main .one {
-  text-align: center;
-  margin: 0 0 2vw 0;
-}
-.main .one .one_1 {
-  margin: 0 0 2vw 0;
-}
-.main .two {
-  text-align: center;
-}