123456789101112131415161718192021222324252627 |
- <!--index.wxml-->
- <view class="container">
- <!-- 引入组件 -->
- <import src="/component/look/look.wxml"/>
- <import src="/component/search/search.wxml"/>
- <import src="/component/mys/mys.wxml"/>
- <!--调用组件-->
- <!--<template is="{{templates}}" data="{{lookData: lookData, searchData: searchData, myData: myData}}"></template>-->
- <view class="template" wx:if="{{templates == 'look'}}">
- <template is="{{templates}}" data="{{lookData: lookData}}"></template>
- </view>
- <view class="template" wx:elif="{{templates == 'search'}}">
- <template is="{{templates}}" data="{{searchData: searchData}}"></template>
- </view>
- <view class="template" wx:else="{{templates == 'mys'}}">
- <template is="{{templates}}" data="{{myData: myData}}"></template>
- </view>
- <button class="jurisdiction" hidden="{{jurisdictionFlag}}" open-type="getUserInfo" bindtap="jurisdiction">点击授权</button>
- <view class="bottom-tab">
- <block wx:for="{{tab}}" wx:key="{{index}}">
- <view class="tabbar {{index == ind ? 'select':' '}}" bindtap="switcher" data-ind="{{index}}">
- <image src="{{index == ind ? item.selectimg : item.img}}"></image>
- <text>{{item.name}}</text>
- </view>
- </block>
- </view>
- </view>
|