|
|
@ -1,6 +1,7 @@ |
|
|
|
// pages/article/index.js
|
|
|
|
import {ArticeModel} from '../../models/artice.js' |
|
|
|
import dayjs from '../../utils/dayjs/index.js' |
|
|
|
import { store } from '../../utils/store.js' |
|
|
|
let artice = new ArticeModel() |
|
|
|
|
|
|
|
Page({ |
|
|
@ -27,7 +28,14 @@ Page({ |
|
|
|
}, |
|
|
|
onlineSubmit () { |
|
|
|
console.log('在线报名') |
|
|
|
this.onlineSignApi() // 在线报名
|
|
|
|
if (store.hasPhone()) { |
|
|
|
this.onlineSignApi() // 在线报名
|
|
|
|
} else { |
|
|
|
wx.redirectTo({ |
|
|
|
url: `/pages/register/index`, |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
/** |
|
|
|
* 生命周期函数--监听页面加载 |
|
|
|