|
|
|
@ -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; //上一页页面实例 |
|
|
|
|