This commit is contained in:
messi
2024-08-19 17:17:52 +08:00
3 changed files with 17 additions and 2 deletions

View File

@@ -156,6 +156,7 @@
import * as UserApi from '@/api/user'
import * as OrderApi from '@/api/order'
import { checkLogin } from '@/core/app'
import {updateOrderNo} from "../../websoft/api/order";
// 订单操作
const orderNavbar = [
@@ -217,7 +218,8 @@
/**
* 生命周期函数--监听页面显示
*/
onLoad(options) {},
onLoad(options) {
},
/**
* 生命周期函数--监听页面显示
@@ -249,6 +251,7 @@
app.initService()
// 初始化订单操作数据
app.initOrderTabbar()
OrderApi.updateOrderNo()
// 执行回调函数
callback && callback()
})

View File

@@ -143,6 +143,7 @@
import storage from '@/utils/storage'
import { getMobile } from '@/utils/util.js'
import http from '@/websoft/api'
import * as OrderApi from '@/api/order'
// 订单操作
const orderNavbar = [
@@ -246,6 +247,8 @@
app.userInfo = res.data
store.dispatch('setUserInfo',res.data)
app.isLogin = true
OrderApi.updateOrderNo()
console.log(OrderApi)
}else{
app.isLogin = false
app.handleLogout()