|
@@ -1,4 +1,5 @@
|
|
// pages/personorder/personorder.js
|
|
// pages/personorder/personorder.js
|
|
|
|
+const app = getApp()
|
|
Page({
|
|
Page({
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -14,7 +15,13 @@ Page({
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
*/
|
|
onLoad: async function () {
|
|
onLoad: async function () {
|
|
-
|
|
|
|
|
|
+ console.log(this)
|
|
|
|
+ const isAuth = await app.isAuth()
|
|
|
|
+ if (!isAuth){
|
|
|
|
+ wx.redirectTo({
|
|
|
|
+ url: '/pages/prompt/prompt?page='+this.route,
|
|
|
|
+ })
|
|
|
|
+ }
|
|
var tabs = await this.getOrderList();
|
|
var tabs = await this.getOrderList();
|
|
this.setData({
|
|
this.setData({
|
|
tabs
|
|
tabs
|