|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<view class="app-content">
|
|
|
<view class="ex-page">
|
|
|
- <view class="top-bar" style="margin-left:100upx;" @click="showAll">全部</view>
|
|
|
+ <view class="top-bar" style="margin-left:100upx;" @click="showIncome">有收入</view>
|
|
|
<scroll-view scroll-y scroll-with-animation class="main-view">
|
|
|
<view class="space-view ex-table">
|
|
|
<block>
|
|
|
@@ -51,13 +51,13 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
- showAll(){
|
|
|
- getPtGhsShop().then(res=>{
|
|
|
+ showIncome(){
|
|
|
+ getPtGhsShop({hasSale:1}).then(res=>{
|
|
|
this.shopData = res.data
|
|
|
})
|
|
|
},
|
|
|
init(){
|
|
|
- getPtGhsShop({hasSale:1}).then(res=>{
|
|
|
+ getPtGhsShop().then(res=>{
|
|
|
this.shopData = res.data
|
|
|
})
|
|
|
},
|