123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <template><page-meta :root-font-size="fontSize+'px'"></page-meta>
- <home-base :show="false" style="position: absolute;top:0;right:0;left:0;bottom:0"><view style="height:100%" class="scroll-view-wrapper div">
- <home-common-search :from="'store'" :value="params.keyword"></home-common-search>
- <view class="scroll-view div" style="position:relative"><goodslist-body></goodslist-body></view>
- </view></home-base>
- </template>
- <script>
- import {getFontSize} from '@/util/common'
- import HomeBase from '../HomeBase'
- import CommonStoreFooter from '../common/CommonStoreFooter'
- import HomeCommonSearch from '../common/HomeCommonSearch'
- import { mapState, mapMutations } from 'vuex'
- import GoodslistBody from './GoodslistBody'
- export default {
- name: 'StoreGoodslist',
- components:{
- HomeBase,
- HomeCommonSearch,
- CommonStoreFooter,
- GoodslistBody
- },
- computed:{
- fontSize(){
- return getFontSize()
- },
- },
- data(){
- return {
- store_id: '',
- params: {
- keyword: ''
- }
- }
- },
- onLoad: function (option) {
- this.store_id=option.id ? option.id : ''
- this.params.keyword=option.keyword ? option.keyword : ''
- }
- }
- </script>
- <style scoped lang="scss">
- .scroll-view-wrapper{display: flex;flex-direction: column;}
- .scroll-view{flex:1}
- .common-search{
- align-items: center;
- display: flex;
- padding:0.25rem $pageSpace;
- box-sizing: border-box;
- height: $headerHeight;
- }
- .common-search input {
- box-sizing: border-box;
- width: 100%;
- height: 1.6rem;
- border-radius:0.2rem;
- background: #EDEDED url(../../../static/image/home/icon_search.png) no-repeat 0.6rem center;
- background-size:0.55rem;
- font-size:$fontSize;
- color: #999;
- padding-left:1.65rem;
- border: 0;
- }
- </style>
|