Commit 920c7a31 authored by jie zhang's avatar jie zhang

修复登陆页登陆按钮在某些机型上被遮挡问题、课表界面报错界面

parent 3bc30253
......@@ -11,14 +11,14 @@ const ERR_NOT_ACCESS_TOKEN = 21;
var DEF_APP_CONFIG = {
appId: "wxe19b38d5dbc061c6", // 勾芒小程序测试号
// 开发环境
domain: 'https://dev.gomoretech.com/preschool',
baseUrl: "https://dev.gomoretech.com/preschool"
// domain: 'https://dev.gomoretech.com/preschool',
// baseUrl: "https://dev.gomoretech.com/preschool"
// 川哥本地环境
// domain: 'http://192.168.199.230:8080/preschool',
// baseUrl: "http://192.168.199.230:8080/preschool",
// 正式环境
// domain: 'https://preschool.gomoretech.com/preschool',
// baseUrl: "https://preschool.gomoretech.com/preschool"
domain: 'https://preschool.gomoretech.com/preschool',
baseUrl: "https://preschool.gomoretech.com/preschool"
}
const extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : DEF_APP_CONFIG;
const APP_ID = extConfig.appId || DEF_APP_CONFIG.appId;
......
......@@ -90,6 +90,7 @@ Page({
})
}).catch(function(err) {
console.log(err)
wx.showToast({
title: err.message,
icon: 'none',
......@@ -112,9 +113,9 @@ Page({
var classId = student.classId
request.getSchedule(classId).then(res => {
console.log("ddd")
let b = res.attachment == null
console.log(b)
if (res == null) {
return
}
this.setData({
attachment: res.attachment,
......@@ -150,6 +151,7 @@ Page({
})
}).catch(function(err) {
console.log(err)
wx.showToast({
title: err.message,
icon: 'none',
......
<!--pages/login/index.wxml-->
<import src='/template/operate_btn/index.wxml'></import>
<image class='login_bottom' src='/src/img/login_bottom.png' mode='widthFix'></image>
<view class='kg-separater' style='height:2rpx;'></view>
<image class='login_logo' src='/src/img/login_top.png' mode='widthFix' ></image>
<view class='login-board'>
......@@ -13,4 +14,3 @@
<view class='kg-operate-btn-bg'>
<button class='kg-operate-btn kg-btn-no-border' bindtap='operateTap' open-type='getUserInfo' >登录</button>
</view>
<image class='login_bottom' src='/src/img/login_bottom.png' mode='widthFix'></image>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment