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