|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="app-content">
|
|
<view class="app-content">
|
|
|
<view class="ex-page">
|
|
<view class="ex-page">
|
|
|
- <view class="top-bar" style="margin-left:100upx;">今天</view>
|
|
|
|
|
|
|
+ <view class="top-bar" style="margin-left:100upx;" @click="showAll">全部</view>
|
|
|
<scroll-view scroll-y scroll-with-animation class="main-view">
|
|
<scroll-view scroll-y scroll-with-animation class="main-view">
|
|
|
<view class="space-view ex-table">
|
|
<view class="space-view ex-table">
|
|
|
<block>
|
|
<block>
|
|
@@ -51,11 +51,16 @@ export default {
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- init(){
|
|
|
|
|
|
|
+ showAll(){
|
|
|
getPtGhsShop().then(res=>{
|
|
getPtGhsShop().then(res=>{
|
|
|
this.shopData = res.data
|
|
this.shopData = res.data
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ init(){
|
|
|
|
|
+ getPtGhsShop({hasSale:1}).then(res=>{
|
|
|
|
|
+ this.shopData = res.data
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
changeShop(id){
|
|
changeShop(id){
|
|
|
let that = this
|
|
let that = this
|
|
|
switchGhsShop({shopId:id}).then(res=>{
|
|
switchGhsShop({shopId:id}).then(res=>{
|