首页上拉加载优化,云仓优化
This commit is contained in:
parent
90295d897a
commit
4f5351e190
@ -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
|
||||
|
@ -161,8 +161,7 @@
|
||||
})
|
||||
},
|
||||
go_shop() {
|
||||
|
||||
if (this.mer_id == 0) {
|
||||
if (this.isYunCang == 0) {
|
||||
return Toast('当前区域没有云仓库')
|
||||
}
|
||||
uni.navigateTo({
|
||||
|
@ -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: '请登录',
|
||||
|
Loading…
x
Reference in New Issue
Block a user