Browse Source

验证登录,登录成功后操作

master
453530270@qq.com 2 years ago
parent
commit
7d51977ec0
  1. 9
      pages/order/index.vue

9
pages/order/index.vue

@ -147,6 +147,7 @@
import * as OrderApi from '@/api/order'
import { wxPayment } from '@/core/app'
import { list } from '../../api/goods'
import { checkLogin } from '@/core/app'
//
const pageSize = 15
@ -236,6 +237,14 @@
//
initCurTab(options) {
//
this.isLogin = checkLogin()
if(!this.isLogin){
uni.navigateTo({
url:"/pages/login/index"
})
}
//
const app = this
if (options.dataType) {
const index = app.tabs.findIndex(item => item.value == options.dataType)

Loading…
Cancel
Save