You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<template>
|
|
|
|
<view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
goodsList: [],
|
|
|
|
};
|
|
|
|
},
|
|
|
|
onLoad: function(option) { //option为object类型,会序列化上个页面传递的参数
|
|
|
|
if (option.id == 1) {
|
|
|
|
uni.setNavigationBarTitle({
|
|
|
|
title: '商品列表'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
if (option.id == 2) {
|
|
|
|
uni.setNavigationBarTitle({
|
|
|
|
title: '金币列表'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
onPageScroll(e) {
|
|
|
|
|
|
|
|
},
|
|
|
|
//下拉刷新,需要自己在page.json文件中配置开启页面下拉刷新 "enablePullDownRefresh": true
|
|
|
|
onPullDownRefresh() {
|
|
|
|
|
|
|
|
},
|
|
|
|
//上拉加载,需要自己在page.json文件中配置"onReachBottomDistance"
|
|
|
|
onReachBottom() {
|
|
|
|
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
|
|
|
</style>
|