|
|
@ -147,6 +147,7 @@ |
|
|
import * as OrderApi from '@/api/order' |
|
|
import * as OrderApi from '@/api/order' |
|
|
import { wxPayment } from '@/core/app' |
|
|
import { wxPayment } from '@/core/app' |
|
|
import { list } from '../../api/goods' |
|
|
import { list } from '../../api/goods' |
|
|
|
|
|
import { checkLogin } from '@/core/app' |
|
|
|
|
|
|
|
|
// 每页记录数量 |
|
|
// 每页记录数量 |
|
|
const pageSize = 15 |
|
|
const pageSize = 15 |
|
|
@ -236,6 +237,14 @@ |
|
|
|
|
|
|
|
|
// 初始化当前选中的标签 |
|
|
// 初始化当前选中的标签 |
|
|
initCurTab(options) { |
|
|
initCurTab(options) { |
|
|
|
|
|
// 判断是否已登录 |
|
|
|
|
|
this.isLogin = checkLogin() |
|
|
|
|
|
if(!this.isLogin){ |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url:"/pages/login/index" |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
// 登录成功后才可以操作 |
|
|
const app = this |
|
|
const app = this |
|
|
if (options.dataType) { |
|
|
if (options.dataType) { |
|
|
const index = app.tabs.findIndex(item => item.value == options.dataType) |
|
|
const index = app.tabs.findIndex(item => item.value == options.dataType) |
|
|
|