首页上拉加载优化,云仓优化

This commit is contained in:
cc_zbp 2023-06-02 11:17:45 +08:00
parent 90295d897a
commit 4f5351e190
3 changed files with 60 additions and 64 deletions

View File

@ -77,7 +77,7 @@
where: {
category_id: 0,
page: 1,
limit: 30
limit: 15
},
currentItemId: 69, // 0 || 69
keyword: '',
@ -88,6 +88,7 @@
}
},
onPullDownRefresh() {
this.where.page = 1
this.getCateList()
this.getGoods()
this.selfLocation()
@ -196,7 +197,9 @@
}, ...data]
},
tabsChange(item) {
this.cateGoods = []
this.where.category_id = item.category_id
this.where.page = 1
this.getGoods()
this.street_id = item.id
this.tabsData.tabsActive = item.index

View File

@ -161,8 +161,7 @@
})
},
go_shop() {
if (this.mer_id == 0) {
if (this.isYunCang == 0) {
return Toast('当前区域没有云仓库')
}
uni.navigateTo({

View File

@ -7,18 +7,12 @@
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import {
HTTP_REQUEST_URL,
HEADER,
TOKENNAME
} from '@/config/app';
import {
checkLogin
} from '../libs/login';
import { HTTP_REQUEST_URL, HEADER, TOKENNAME } from '@/config/app';
import { checkLogin } from '../libs/login';
import store from '../store';
function toLogin(){
function toLogin() {
store.commit("LOGOUT");
uni.showToast({
title: '请登录',