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

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

Loading…
Cancel
Save