|
|
@@ -1,7 +1,10 @@
|
|
|
<template>
|
|
|
<view class="app-content">
|
|
|
<view class="ex-page">
|
|
|
- <view class="top-bar" style="margin-left:100upx;" @click="showAllShop">显示全部</view>
|
|
|
+ <view class="top-bar" style="margin-left:100upx;display: flex;align-items:center;">
|
|
|
+ <text @click="showAllShop">显示全部门店</text>
|
|
|
+ <input v-model="name" type="text" @input="searchShop" style="border:1upx solid #CCCCCC;width:300upx;margin-left:50upx;" />
|
|
|
+ </view>
|
|
|
<scroll-view scroll-y scroll-with-animation class="main-view">
|
|
|
<view class="space-view ex-table">
|
|
|
<block>
|
|
|
@@ -54,7 +57,8 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- shopData:{}
|
|
|
+ shopData:{},
|
|
|
+ name:''
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -66,7 +70,15 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
init(){
|
|
|
- getPtGhsShop({hasSale:1,pageSize:100}).then(res=>{
|
|
|
+ this.showShop()
|
|
|
+ },
|
|
|
+ searchShop(){
|
|
|
+ if(!this.$util.isEmpty(this.name)){
|
|
|
+ this.showShop()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ showShop(){
|
|
|
+ getPtGhsShop({hasSale:1,pageSize:100,name:this.name}).then(res=>{
|
|
|
this.shopData = res.data
|
|
|
})
|
|
|
},
|