上拉刷新下拉加载

main
Csqqqqq 4 months ago
parent f4e6f60bcf
commit ca79a163a3

@ -20,7 +20,13 @@
"path": "pages/cloudStore/cloudStoreList",
"style": {
"navigationBarTitleText": "全部云拣仓",
"enablePullDownRefresh": true
"enablePullDownRefresh": false ,//
"app-plus": {
"bounce": "none" //APPIOS
},
"mp-alipay": {
"allowsBounceVertical": "NO"//iOS
}
}
},
{
@ -35,7 +41,8 @@
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
"backgroundColor": "#F8F8F8",
"backgroundColorTop": "#FFFFFF"
},
"uniIdRouter": {},
"tabBar": {

@ -1,8 +1,10 @@
<template>
<view class="cloudStoreList">
<view class="shopItemIcon" v-for="(item) in shopList" >
<shop-item-vue :shopName="item.shopName" :shopIcon="item.shopIcon" :value="item.likeValue"></shop-item-vue>
</view>
<mescroll-uni @init="mescrollInit" @down="downCallback" @up="upCallback" :down="downOption" :up="upOption">
<view class="shopItemIcon" v-for="(item) in shopList" >
<shop-item-vue :shopName="item.shopName" :shopIcon="item.shopIcon" :value="item.likeValue"></shop-item-vue>
</view>
</mescroll-uni>
<tabBar :current="0"></tabBar>
</view>
</template>
@ -10,23 +12,25 @@
<script>
import tabBar from '@/components/tab-bar.vue'
import shopItemVue from './components/shopItem.vue'
import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
export default {
mixins: [MescrollMixin], //使mixin
components:{
tabBar,
shopItemVue
shopItemVue,
},
data(){
return{
shopList:[{
shopName:"susu",
shopName:"bbbbb",
shopIcon:'https://wx2.sinaimg.cn/large/00754ABFgy1hrslrtgykuj318g18gwph.jpg',
likeValue:2
},{
shopName:"宋鱼鱼",
shopName:"aaaaa",
shopIcon:'https://wx2.sinaimg.cn/large/00754ABFgy1hrslrlxs7sj318g18gk2g.jpg',
likeValue:3
},{
shopName:"信号灯塔",
shopName:"cccccc",
shopIcon:'https://wx2.sinaimg.cn/large/00754ABFgy1hrslrrlp2jj30ze0zejt3.jpg',
likeValue:3.5
},{
@ -36,17 +40,12 @@
}]
}
},
//
onLoad() {
},
//
onPullDownRefresh() {
this.getnewsList();
},
//
onReachBottom(){
},
methods:{
upCallback(page){
let pageNum = page.num;
let pageSize = page.size;
}
}
}
</script>

@ -7,6 +7,7 @@
<u-icon name="arrow-down-fill" size="10"></u-icon>
</view>
</view>
<mescroll-body @init="mescrollInit" @down="downCallback" @up="upCallback" :down="downOption" :up="upOption">
<view class="detail">
<view class="goodsBox"v-for="(item,index) in 10">
<image src="https://wx1.sinaimg.cn/large/006zUvE2gy1hs8ubk0i3ij30iu0iu40b.jpg" mode="scaleToFill"></image>
@ -17,11 +18,14 @@
</view>
</view>
</view>
</mescroll-body>
</view>
</template>
<script>
import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
export default {
mixins: [MescrollMixin], //使mixin
data(){
return{
searchKeyword:"",
@ -56,6 +60,11 @@
methods:{
filterClick(item){
this.activeId = item.value
},
upCallback(page){
let pageNum = page.num;
let pageSize = page.size;
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -10,7 +10,8 @@
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
"backgroundColor": "#F8F8F8",
"backgroundColorTop": "#FFFFFF"
},
"tabBar": {
"custom": true,

@ -105,11 +105,11 @@
/******/
/******/
/******/ // mini-css-extract-plugin CSS loading
/******/ var cssChunks = {"components/tab-bar":1,"uni_modules/uview-ui/components/u-form-item/u-form-item":1,"uni_modules/uview-ui/components/u-input/u-input":1,"uni_modules/uview-ui/components/u-navbar/u-navbar":1,"uni_modules/uview-ui/components/u-upload/u-upload":1,"pages/cloudStore/components/shopDetailCard":1,"pages/cloudStore/components/shopItem":1,"pages/cloudStore/components/wholeSales":1,"uni_modules/uview-ui/components/u-rate/u-rate":1,"pages/cloudStore/components/couponsAct":1,"pages/cloudStore/components/dropshipping":1,"pages/cloudStore/components/shopIntroduce":1,"uni_modules/uview-ui/components/u-tabbar-item/u-tabbar-item":1,"uni_modules/uview-ui/components/u-tabbar/u-tabbar":1,"uni_modules/uview-ui/components/u-icon/u-icon":1,"uni_modules/uview-ui/components/u-line/u-line":1,"uni_modules/uview-ui/components/u-status-bar/u-status-bar":1,"uni_modules/uview-ui/components/u-loading-icon/u-loading-icon":1,"uni_modules/uview-ui/components/u-number-box/u-number-box":1,"uni_modules/uview-ui/components/u-picker/u-picker":1,"uni_modules/uview-ui/components/u-search/u-search":1,"uni_modules/uview-ui/components/u-badge/u-badge":1,"uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom":1,"uni_modules/uview-ui/components/u-popup/u-popup":1,"uni_modules/uview-ui/components/u-toolbar/u-toolbar":1,"uni_modules/uview-ui/components/u-overlay/u-overlay":1,"uni_modules/uview-ui/components/u-transition/u-transition":1};
/******/ var cssChunks = {"components/tab-bar":1,"uni_modules/uview-ui/components/u-form-item/u-form-item":1,"uni_modules/uview-ui/components/u-input/u-input":1,"uni_modules/uview-ui/components/u-navbar/u-navbar":1,"uni_modules/uview-ui/components/u-upload/u-upload":1,"pages/cloudStore/components/shopDetailCard":1,"uni_modules/mescroll-uni/components/mescroll-uni/mescroll-uni":1,"pages/cloudStore/components/shopItem":1,"pages/cloudStore/components/dropshipping":1,"pages/cloudStore/components/wholeSales":1,"uni_modules/uview-ui/components/u-rate/u-rate":1,"pages/cloudStore/components/couponsAct":1,"pages/cloudStore/components/shopIntroduce":1,"uni_modules/uview-ui/components/u-tabbar-item/u-tabbar-item":1,"uni_modules/uview-ui/components/u-tabbar/u-tabbar":1,"uni_modules/uview-ui/components/u-icon/u-icon":1,"uni_modules/uview-ui/components/u-line/u-line":1,"uni_modules/uview-ui/components/u-status-bar/u-status-bar":1,"uni_modules/uview-ui/components/u-loading-icon/u-loading-icon":1,"uni_modules/mescroll-uni/components/mescroll-empty/mescroll-empty":1,"uni_modules/mescroll-uni/components/mescroll-uni/components/mescroll-top":1,"uni_modules/mescroll-uni/components/mescroll-body/mescroll-body":1,"uni_modules/uview-ui/components/u-search/u-search":1,"uni_modules/uview-ui/components/u-number-box/u-number-box":1,"uni_modules/uview-ui/components/u-picker/u-picker":1,"uni_modules/uview-ui/components/u-badge/u-badge":1,"uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom":1,"uni_modules/uview-ui/components/u-popup/u-popup":1,"uni_modules/uview-ui/components/u-toolbar/u-toolbar":1,"uni_modules/uview-ui/components/u-overlay/u-overlay":1,"uni_modules/uview-ui/components/u-transition/u-transition":1};
/******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);
/******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {
/******/ promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {
/******/ var href = "" + ({"components/tab-bar":"components/tab-bar","uni_modules/uview-ui/components/u-form-item/u-form-item":"uni_modules/uview-ui/components/u-form-item/u-form-item","uni_modules/uview-ui/components/u-form/u-form":"uni_modules/uview-ui/components/u-form/u-form","uni_modules/uview-ui/components/u-input/u-input":"uni_modules/uview-ui/components/u-input/u-input","uni_modules/uview-ui/components/u-navbar/u-navbar":"uni_modules/uview-ui/components/u-navbar/u-navbar","uni_modules/uview-ui/components/u-upload/u-upload":"uni_modules/uview-ui/components/u-upload/u-upload","pages/cloudStore/components/shopDetailCard":"pages/cloudStore/components/shopDetailCard","pages/cloudStore/components/shopItem":"pages/cloudStore/components/shopItem","pages/cloudStore/components/wholeSales":"pages/cloudStore/components/wholeSales","uni_modules/uview-ui/components/u-rate/u-rate":"uni_modules/uview-ui/components/u-rate/u-rate","pages/cloudStore/components/couponsAct":"pages/cloudStore/components/couponsAct","pages/cloudStore/components/dropshipping":"pages/cloudStore/components/dropshipping","pages/cloudStore/components/shopIntroduce":"pages/cloudStore/components/shopIntroduce","uni_modules/uview-ui/components/u-tabbar-item/u-tabbar-item":"uni_modules/uview-ui/components/u-tabbar-item/u-tabbar-item","uni_modules/uview-ui/components/u-tabbar/u-tabbar":"uni_modules/uview-ui/components/u-tabbar/u-tabbar","uni_modules/uview-ui/components/u-icon/u-icon":"uni_modules/uview-ui/components/u-icon/u-icon","uni_modules/uview-ui/components/u-line/u-line":"uni_modules/uview-ui/components/u-line/u-line","uni_modules/uview-ui/components/u-status-bar/u-status-bar":"uni_modules/uview-ui/components/u-status-bar/u-status-bar","uni_modules/uview-ui/components/u-loading-icon/u-loading-icon":"uni_modules/uview-ui/components/u-loading-icon/u-loading-icon","uni_modules/uview-ui/components/u-number-box/u-number-box":"uni_modules/uview-ui/components/u-number-box/u-number-box","uni_modules/uview-ui/components/u-picker/u-picker":"uni_modules/uview-ui/components/u-picker/u-picker","uni_modules/uview-ui/components/u-search/u-search":"uni_modules/uview-ui/components/u-search/u-search","uni_modules/uview-ui/components/u-badge/u-badge":"uni_modules/uview-ui/components/u-badge/u-badge","uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom":"uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom","uni_modules/uview-ui/components/u-popup/u-popup":"uni_modules/uview-ui/components/u-popup/u-popup","uni_modules/uview-ui/components/u-toolbar/u-toolbar":"uni_modules/uview-ui/components/u-toolbar/u-toolbar","uni_modules/uview-ui/components/u-overlay/u-overlay":"uni_modules/uview-ui/components/u-overlay/u-overlay","uni_modules/uview-ui/components/u-transition/u-transition":"uni_modules/uview-ui/components/u-transition/u-transition"}[chunkId]||chunkId) + ".wxss";
/******/ var href = "" + ({"components/tab-bar":"components/tab-bar","uni_modules/uview-ui/components/u-form-item/u-form-item":"uni_modules/uview-ui/components/u-form-item/u-form-item","uni_modules/uview-ui/components/u-form/u-form":"uni_modules/uview-ui/components/u-form/u-form","uni_modules/uview-ui/components/u-input/u-input":"uni_modules/uview-ui/components/u-input/u-input","uni_modules/uview-ui/components/u-navbar/u-navbar":"uni_modules/uview-ui/components/u-navbar/u-navbar","uni_modules/uview-ui/components/u-upload/u-upload":"uni_modules/uview-ui/components/u-upload/u-upload","pages/cloudStore/components/shopDetailCard":"pages/cloudStore/components/shopDetailCard","uni_modules/mescroll-uni/components/mescroll-uni/mescroll-uni":"uni_modules/mescroll-uni/components/mescroll-uni/mescroll-uni","pages/cloudStore/components/shopItem":"pages/cloudStore/components/shopItem","pages/cloudStore/components/dropshipping":"pages/cloudStore/components/dropshipping","pages/cloudStore/components/wholeSales":"pages/cloudStore/components/wholeSales","uni_modules/uview-ui/components/u-rate/u-rate":"uni_modules/uview-ui/components/u-rate/u-rate","pages/cloudStore/components/couponsAct":"pages/cloudStore/components/couponsAct","pages/cloudStore/components/shopIntroduce":"pages/cloudStore/components/shopIntroduce","uni_modules/uview-ui/components/u-tabbar-item/u-tabbar-item":"uni_modules/uview-ui/components/u-tabbar-item/u-tabbar-item","uni_modules/uview-ui/components/u-tabbar/u-tabbar":"uni_modules/uview-ui/components/u-tabbar/u-tabbar","uni_modules/uview-ui/components/u-icon/u-icon":"uni_modules/uview-ui/components/u-icon/u-icon","uni_modules/uview-ui/components/u-line/u-line":"uni_modules/uview-ui/components/u-line/u-line","uni_modules/uview-ui/components/u-status-bar/u-status-bar":"uni_modules/uview-ui/components/u-status-bar/u-status-bar","uni_modules/uview-ui/components/u-loading-icon/u-loading-icon":"uni_modules/uview-ui/components/u-loading-icon/u-loading-icon","uni_modules/mescroll-uni/components/mescroll-empty/mescroll-empty":"uni_modules/mescroll-uni/components/mescroll-empty/mescroll-empty","uni_modules/mescroll-uni/components/mescroll-uni/components/mescroll-top":"uni_modules/mescroll-uni/components/mescroll-uni/components/mescroll-top","uni_modules/mescroll-uni/components/mescroll-body/mescroll-body":"uni_modules/mescroll-uni/components/mescroll-body/mescroll-body","uni_modules/uview-ui/components/u-search/u-search":"uni_modules/uview-ui/components/u-search/u-search","uni_modules/uview-ui/components/u-number-box/u-number-box":"uni_modules/uview-ui/components/u-number-box/u-number-box","uni_modules/uview-ui/components/u-picker/u-picker":"uni_modules/uview-ui/components/u-picker/u-picker","uni_modules/uview-ui/components/u-badge/u-badge":"uni_modules/uview-ui/components/u-badge/u-badge","uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom":"uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom","uni_modules/uview-ui/components/u-popup/u-popup":"uni_modules/uview-ui/components/u-popup/u-popup","uni_modules/uview-ui/components/u-toolbar/u-toolbar":"uni_modules/uview-ui/components/u-toolbar/u-toolbar","uni_modules/uview-ui/components/u-overlay/u-overlay":"uni_modules/uview-ui/components/u-overlay/u-overlay","uni_modules/uview-ui/components/u-transition/u-transition":"uni_modules/uview-ui/components/u-transition/u-transition"}[chunkId]||chunkId) + ".wxss";
/******/ var fullhref = __webpack_require__.p + href;
/******/ var existingLinkTags = document.getElementsByTagName("link");
/******/ for(var i = 0; i < existingLinkTags.length; i++) {

File diff suppressed because it is too large Load Diff

@ -168,7 +168,7 @@ Object.defineProperty(exports, "__esModule", {
});
exports.default = void 0;
var dropshipping = function dropshipping() {
__webpack_require__.e(/*! require.ensure | pages/cloudStore/components/dropshipping */ "pages/cloudStore/components/dropshipping").then((function () {
Promise.all(/*! require.ensure | pages/cloudStore/components/dropshipping */[__webpack_require__.e("common/vendor"), __webpack_require__.e("pages/cloudStore/components/dropshipping")]).then((function () {
return resolve(__webpack_require__(/*! ./components/dropshipping.vue */ 263));
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
};

@ -98,6 +98,29 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
var components
try {
components = {
mescrollUni: function () {
return Promise.all(/*! import() | uni_modules/mescroll-uni/components/mescroll-uni/mescroll-uni */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/mescroll-uni/components/mescroll-uni/mescroll-uni")]).then(__webpack_require__.bind(null, /*! @/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-uni.vue */ 446))
},
}
} catch (e) {
if (
e.message.indexOf("Cannot find module") !== -1 &&
e.message.indexOf(".vue") !== -1
) {
console.error(e.message)
console.error("1. 排查组件名称拼写是否正确")
console.error(
"2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
)
console.error(
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
)
} else {
throw e
}
}
var render = function () {
var _vm = this
var _h = _vm.$createElement
@ -137,10 +160,12 @@ __webpack_require__.r(__webpack_exports__);
"use strict";
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _mescrollMixins = _interopRequireDefault(__webpack_require__(/*! @/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js */ 476));
var tabBar = function tabBar() {
__webpack_require__.e(/*! require.ensure | components/tab-bar */ "components/tab-bar").then((function () {
return resolve(__webpack_require__(/*! @/components/tab-bar.vue */ 191));
@ -152,6 +177,8 @@ var shopItemVue = function shopItemVue() {
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
};
var _default = {
mixins: [_mescrollMixins.default],
//使用mixin
components: {
tabBar: tabBar,
shopItemVue: shopItemVue
@ -159,15 +186,15 @@ var _default = {
data: function data() {
return {
shopList: [{
shopName: "susu",
shopName: "bbbbb",
shopIcon: 'https://wx2.sinaimg.cn/large/00754ABFgy1hrslrtgykuj318g18gwph.jpg',
likeValue: 2
}, {
shopName: "宋鱼鱼",
shopName: "aaaaa",
shopIcon: 'https://wx2.sinaimg.cn/large/00754ABFgy1hrslrlxs7sj318g18gk2g.jpg',
likeValue: 3
}, {
shopName: "信号灯塔",
shopName: "cccccc",
shopIcon: 'https://wx2.sinaimg.cn/large/00754ABFgy1hrslrrlp2jj30ze0zejt3.jpg',
likeValue: 3.5
}, {
@ -177,15 +204,12 @@ var _default = {
}]
};
},
//页面加载
onLoad: function onLoad() {},
//下拉刷新,初始化第一页数据
onPullDownRefresh: function onPullDownRefresh() {
this.getnewsList();
},
//页面滚动到顶部事件
onReachBottom: function onReachBottom() {},
methods: {}
methods: {
upCallback: function upCallback(page) {
var pageNum = page.num;
var pageSize = page.size;
}
}
};
exports.default = _default;

@ -1,7 +1,8 @@
{
"navigationBarTitleText": "全部云拣仓",
"enablePullDownRefresh": true,
"enablePullDownRefresh": false,
"usingComponents": {
"mescroll-uni": "/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-uni",
"tab-bar": "/components/tab-bar",
"shop-item-vue": "/pages/cloudStore/components/shopItem"
}

@ -1 +1 @@
<view class="cloudStoreList"><block wx:for="{{shopList}}" wx:for-item="item" wx:for-index="__i0__"><view class="shopItemIcon"><shop-item-vue vue-id="{{'3ec49702-1-'+__i0__}}" shopName="{{item.shopName}}" shopIcon="{{item.shopIcon}}" value="{{item.likeValue}}" bind:__l="__l"></shop-item-vue></view></block><tab-bar vue-id="3ec49702-2" current="{{0}}" bind:__l="__l"></tab-bar></view>
<view class="cloudStoreList"><mescroll-uni vue-id="3ec49702-1" down="{{downOption}}" up="{{upOption}}" data-event-opts="{{[['^init',[['mescrollInit']]],['^down',[['downCallback']]],['^up',[['upCallback']]]]}}" bind:init="__e" bind:down="__e" bind:up="__e" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{shopList}}" wx:for-item="item" wx:for-index="__i0__"><view class="shopItemIcon"><shop-item-vue vue-id="{{('3ec49702-2-'+__i0__)+','+('3ec49702-1')}}" shopName="{{item.shopName}}" shopIcon="{{item.shopIcon}}" value="{{item.likeValue}}" bind:__l="__l"></shop-item-vue></view></block></mescroll-uni><tab-bar vue-id="3ec49702-3" current="{{0}}" bind:__l="__l"></tab-bar></view>

@ -85,6 +85,9 @@ try {
uIcon: function () {
return Promise.all(/*! import() | uni_modules/uview-ui/components/u-icon/u-icon */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uview-ui/components/u-icon/u-icon.vue */ 315))
},
mescrollBody: function () {
return Promise.all(/*! import() | uni_modules/mescroll-uni/components/mescroll-body/mescroll-body */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/mescroll-uni/components/mescroll-body/mescroll-body")]).then(__webpack_require__.bind(null, /*! @/uni_modules/mescroll-uni/components/mescroll-body/mescroll-body.vue */ 477))
},
}
} catch (e) {
if (
@ -142,10 +145,14 @@ __webpack_require__.r(__webpack_exports__);
"use strict";
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _mescrollMixins = _interopRequireDefault(__webpack_require__(/*! @/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js */ 476));
//
//
//
//
//
@ -169,6 +176,8 @@ exports.default = void 0;
//
//
var _default = {
mixins: [_mescrollMixins.default],
//使用mixin
data: function data() {
return {
searchKeyword: "",
@ -208,6 +217,10 @@ var _default = {
methods: {
filterClick: function filterClick(item) {
this.activeId = item.value;
},
upCallback: function upCallback(page) {
var pageNum = page.num;
var pageSize = page.size;
}
}
};

@ -1,7 +1,8 @@
{
"usingComponents": {
"u-search": "/uni_modules/uview-ui/components/u-search/u-search",
"u-icon": "/uni_modules/uview-ui/components/u-icon/u-icon"
"u-icon": "/uni_modules/uview-ui/components/u-icon/u-icon",
"mescroll-body": "/uni_modules/mescroll-uni/components/mescroll-body/mescroll-body"
},
"component": true
}

@ -1 +1 @@
<view class="dropshipping"><view class="searchTop"><u-search style="width:270rpx;" vue-id="226dfb3a-1" placeholder="搜索商品" shape="round" height="56rpx" showAction="{{false}}" bind:__l="__l"></u-search><block wx:for="{{filterList}}" wx:for-item="item" wx:for-index="__i0__" wx:key="value"><view data-event-opts="{{[['clear',[['getData',['$event']]]],['tap',[['filterClick',['$0'],[[['filterList','value',item.value]]]]]]]}}" class="{{['filter-item',[(activeId===item.value)?'act':'']]}}" bindclear="__e" bindtap="__e"><text class="filter-name">{{item.name}}</text><u-icon vue-id="{{'226dfb3a-2-'+__i0__}}" name="arrow-down-fill" size="10" bind:__l="__l"></u-icon></view></block></view><view class="detail"><block wx:for="{{10}}" wx:for-item="item" wx:for-index="index"><view class="goodsBox"><image src="https://wx1.sinaimg.cn/large/006zUvE2gy1hs8ubk0i3ij30iu0iu40b.jpg" mode="scaleToFill"></image><text class="goodsName">商品名称</text><view class="bottom"><text class="goodsPrice">0.60</text><text class="sales">销量470,000+</text></view></view></block></view></view>
<view class="dropshipping"><view class="searchTop"><u-search style="width:270rpx;" vue-id="226dfb3a-1" placeholder="搜索商品" shape="round" height="56rpx" showAction="{{false}}" bind:__l="__l"></u-search><block wx:for="{{filterList}}" wx:for-item="item" wx:for-index="__i0__" wx:key="value"><view data-event-opts="{{[['clear',[['getData',['$event']]]],['tap',[['filterClick',['$0'],[[['filterList','value',item.value]]]]]]]}}" class="{{['filter-item',[(activeId===item.value)?'act':'']]}}" bindclear="__e" bindtap="__e"><text class="filter-name">{{item.name}}</text><u-icon vue-id="{{'226dfb3a-2-'+__i0__}}" name="arrow-down-fill" size="10" bind:__l="__l"></u-icon></view></block></view><mescroll-body vue-id="226dfb3a-3" down="{{downOption}}" up="{{upOption}}" data-event-opts="{{[['^init',[['mescrollInit']]],['^down',[['downCallback']]],['^up',[['upCallback']]]]}}" bind:init="__e" bind:down="__e" bind:up="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="detail"><block wx:for="{{10}}" wx:for-item="item" wx:for-index="index"><view class="goodsBox"><image src="https://wx1.sinaimg.cn/large/006zUvE2gy1hs8ubk0i3ij30iu0iu40b.jpg" mode="scaleToFill"></image><text class="goodsName">商品名称</text><view class="bottom"><text class="goodsPrice">0.60</text><text class="sales">销量470,000+</text></view></view></block></view></mescroll-body></view>
Loading…
Cancel
Save