| xqd
@@ -94,7 +94,7 @@ Page({
|
|
|
},
|
|
|
updateShareInfo() {
|
|
|
var pt_student = wx.getStorageSync('pt_student')
|
|
|
- if (!pt_student) {
|
|
|
+ if (pt_student) {
|
|
|
wx.request({
|
|
|
url: api.getShareInfoUrl,
|
|
|
method: 'GET',
|
| xqd
@@ -270,10 +270,13 @@ Page({
|
|
|
showPopup: true
|
|
|
})
|
|
|
var pt_student = wx.getStorageSync('pt_student')
|
|
|
- if(!pt_student) {
|
|
|
+ if(pt_student) {
|
|
|
wx.request({
|
|
|
url: api.getShareTextUrl,
|
|
|
method: 'GET',
|
|
|
+ data: {
|
|
|
+ 'student_id': app.globalData.ptStudent.id
|
|
|
+ },
|
|
|
success: res => {
|
|
|
if (res.data.status == 'success') {
|
|
|
wx.setStorageSync('check_card_start_time', '')
|