Commit 6355ce27 authored by 张杰's avatar 张杰

no message

parent 4ee9204e
......@@ -11,8 +11,8 @@ const ERR_NOT_ACCESS_TOKEN = 21;
var DEF_APP_CONFIG = {
appId: "wxfc3355043e579968", // 勾芒小程序测试号
// 开发环境
domain: 'http://dev.gomoretech.com/preschool',
baseUrl: "http://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",
......
......@@ -151,6 +151,13 @@ Page({
}
var arrRecordList = []
var item = arrRecord[0].recordItems[0]
if (item == null) {
wx.showToast({
title: '该记录已经删除',
icon: 'none'
})
return
}
req.deleteRecord(item.id).then(res=>{
console.log(res)
......
......@@ -17,6 +17,11 @@ Page({
*/
onLoad: function(options) {
let classId = options.classId
this.getAllStudent(classId)
},
getAllStudent: function(classId) {
req.getAllStudent(classId).then(res => {
console.log(res)
for (var i = 0; i < res.length; i++) {
......@@ -35,9 +40,6 @@ Page({
classId: classId
})
})
},
tapBox: function(e) {
console.log(e)
......@@ -53,7 +55,7 @@ Page({
operateTap: function(event) {
console.log(event._relatedInfo.anchorTargetText)
let records = this.data.records
let that = this
var studentIds = []
for (var i = 0; i < records.length; i++) {
let item = records[i]
......@@ -91,6 +93,7 @@ Page({
})
}, 1500)
}).catch(function (err) {
that.getAllStudent(that.data.classId)
wx.showToast({
title: err.message,
icon: 'none',
......
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