应该是最后的更新
增加了与用户的互动,提示性更强,
This commit is contained in:
parent
51c36430da
commit
585a75aaeb
@ -120,7 +120,7 @@ Page({
|
||||
var that=this;
|
||||
var dbPost = new DBPost();
|
||||
wx.request({
|
||||
url: 'http://maoye.club/yingbo/res/API/shangchuan.php', //仅为示例,并非真实的接口地址
|
||||
url: 'https://powerrain.cn/res/API/shangchuan.php', //仅为示例,并非真实的接口地址
|
||||
data: {
|
||||
time:that.data.shijian,
|
||||
add:that.data.didian,
|
||||
|
@ -101,8 +101,21 @@ Page({
|
||||
|
||||
guanli: function() {
|
||||
if (this.data.admin != 0) {
|
||||
wx.redirectTo({
|
||||
url: '../../manage/manage'
|
||||
wx.vibrateShort()
|
||||
wx.showModal({
|
||||
title: '确认',
|
||||
content: '是否开始点名',
|
||||
confirmColor: '#10aeff',
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
wx.redirectTo({
|
||||
url: '../../manage/manage'
|
||||
})
|
||||
console.log('用户点击确定')
|
||||
} else if (res.cancel) {
|
||||
console.log('用户点击取消')
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -10,23 +10,23 @@
|
||||
<view class="category-item">
|
||||
<view class="detail-item">
|
||||
<image src="http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/xinxi/xingming.png"></image>
|
||||
<text>姓名: {{xingming}}</text>
|
||||
<text>姓名:{{xingming}}</text>
|
||||
</view>
|
||||
<view class="detail-item">
|
||||
<image src="http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/xinxi/xuehao.png"></image>
|
||||
<text>学号: {{xuehao}}</text>
|
||||
<text>学号:{{xuehao}}</text>
|
||||
</view>
|
||||
<view class="detail-item">
|
||||
<image src="http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/xinxi/zhuanye.png"></image>
|
||||
<text>专业: {{zhuanye}}</text>
|
||||
<text>专业:{{zhuanye}}</text>
|
||||
</view>
|
||||
<view class="detail-item">
|
||||
<image src="http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/xinxi/xueyuan.png"></image>
|
||||
<text>学院: {{xueyuan}}</text>
|
||||
<text>学院:{{xueyuan}}</text>
|
||||
</view>
|
||||
<view class="detail-item">
|
||||
<image src="http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/xinxi/qianming.png"></image>
|
||||
<text>校训: 明德博学,求是创新</text>
|
||||
<text>校训:明德博学,求是创新</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
"ignore": []
|
||||
},
|
||||
"setting": {
|
||||
"urlCheck": false,
|
||||
"urlCheck": true,
|
||||
"es6": true,
|
||||
"postcss": true,
|
||||
"minified": true,
|
||||
@ -24,13 +24,23 @@
|
||||
"current": -1,
|
||||
"list": []
|
||||
},
|
||||
"plugin": {
|
||||
"current": -1,
|
||||
"list": []
|
||||
},
|
||||
"game": {
|
||||
"currentL": -1,
|
||||
"list": []
|
||||
},
|
||||
"miniprogram": {
|
||||
"current": -1,
|
||||
"list": []
|
||||
"current": 0,
|
||||
"list": [
|
||||
{
|
||||
"id": -1,
|
||||
"name": "update",
|
||||
"pathName": "welcome/login/login"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -80,7 +80,7 @@ Page({
|
||||
success: function (res) {
|
||||
if (res.code) {
|
||||
wx.request({
|
||||
url: 'http://maoye.club/yingbo/rcs/API/login.php',
|
||||
url: 'https://powerrain.cn/rcs/API/login.php',
|
||||
data: {
|
||||
code: res.code
|
||||
},
|
||||
@ -97,6 +97,7 @@ Page({
|
||||
}
|
||||
if (!that.data.xuehao) {
|
||||
wx.hideLoading()
|
||||
wx.vibrateShort()
|
||||
wx.showModal({
|
||||
title: '警告',
|
||||
content: '您还未曾注册过~',
|
||||
@ -113,9 +114,19 @@ Page({
|
||||
wx.showModal({
|
||||
title: '联系客服',
|
||||
content: 'QQ:1144131090',
|
||||
confirmText: '复制',
|
||||
confirmColor: '#10aeff',
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
wx.setClipboardData({
|
||||
data: '1144131090',
|
||||
success: function (res) {
|
||||
wx.showToast({
|
||||
title: '复制成功',
|
||||
icon: 'success'
|
||||
})
|
||||
}
|
||||
})
|
||||
console.log('用户点击确定')
|
||||
} else if (res.cancel) {
|
||||
console.log('用户点击取消')
|
||||
|
@ -251,6 +251,7 @@ Page({
|
||||
sumit: function () {
|
||||
var that=this;
|
||||
var dbPost = new DBPost();
|
||||
wx.vibrateShort()
|
||||
wx.showModal({
|
||||
title: '确认',
|
||||
content: '如果您绑定了他人的学号,将给您造成很大的麻烦',
|
||||
@ -263,7 +264,7 @@ Page({
|
||||
success: function (res) {
|
||||
if (res.code) {
|
||||
wx.request({
|
||||
url: 'http://maoye.club/yingbo/rcs/API/bangding.php',
|
||||
url: 'https://powerrain.cn/rcs/API/bangding.php',
|
||||
data: {
|
||||
code: res.code,
|
||||
xuehao:that.data.newxuehao
|
||||
@ -327,7 +328,7 @@ Page({
|
||||
var that=this;
|
||||
|
||||
wx.request({
|
||||
url: 'http://maoye.club/yingbo/rcs/API/yanzheng.php', //仅为示例,并非真实的接口地址
|
||||
url: 'https://powerrain.cn/rcs/API/yanzheng.php', //仅为示例,并非真实的接口地址
|
||||
data: {
|
||||
code:that.data.newxuehao
|
||||
},
|
||||
@ -364,6 +365,7 @@ var that=this;
|
||||
disabled: true,
|
||||
opacity: 0.4
|
||||
})
|
||||
wx.vibrateShort()
|
||||
wx.showModal({
|
||||
title: '警告',
|
||||
content: '此学号已经被其他人绑定',
|
||||
@ -377,9 +379,19 @@ var that=this;
|
||||
wx.showModal({
|
||||
title: '联系客服',
|
||||
content: 'QQ:1144131090',
|
||||
confirmText: '复制',
|
||||
confirmColor: '#10aeff',
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
wx.setClipboardData({
|
||||
data:'1144131090',
|
||||
success: function(res){
|
||||
wx.showToast({
|
||||
title:'复制成功',
|
||||
icon:'success'
|
||||
})
|
||||
}
|
||||
})
|
||||
console.log('用户点击确定')
|
||||
} else if (res.cancel) {
|
||||
console.log('用户点击取消')
|
||||
|
Loading…
x
Reference in New Issue
Block a user