fanfan 5 months ago
parent a9ea1a45e2
commit 36f8aae934
  1. 9
      pages/goods/list.vue

@ -1,7 +1,7 @@
<template>
<view class="container" :style="appThemeStyle">
<mescroll-body ref="mescrollRef" :sticky="true" @init="mescrollInit" :down="{ native: true,auto: false}"
@down="downCallback" :up="upOption" @up="upCallback">
<mescroll-body ref="mescrollRef" :sticky="true" @init="mescrollInit"
:down="{ native: true,auto: true, use: true}" @down="downCallback" :up="upOption" @up="upCallback">
<!-- 页面头部 -->
<view class="head">
<view class="header">
@ -267,7 +267,7 @@
//
upOption: {
//
auto: false,
auto: true,
// ; 10
page: {
size: pageSize
@ -401,7 +401,7 @@
upCallback(page) {
const app = this
//
app.getGoodsList(page.num?(Number(page.num)+1):page)
app.getGoodsList(page.num)
.then(list => {
const curPageLen = list.data.length
const totalSize = list.data.total
@ -496,7 +496,6 @@
//
onTargetDetail(item) {
console.log(item);
if (this.from === 'dynamic') {
let pages = getCurrentPages(); //
let prevPage = pages[pages.length - 2].$vm; //

Loading…
Cancel
Save