shish %!s(int64=4) %!d(string=hai) anos
pai
achega
b38768bcf2
Modificáronse 1 ficheiros con 7 adicións e 2 borrados
  1. 7 2
      ghsApp/src/admin/shop/changeShop.vue

+ 7 - 2
ghsApp/src/admin/shop/changeShop.vue

@@ -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=>{