You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitProject1/src/miniprogram/pages/MainTest/MainTest.wxml

70 lines
2.3 KiB

<!--pages/MainTest/MainTest.wxml-->
<view class="tab">
<view class="tab-item" bindtap="changeTab" data-index="0">Recommend</view>
<view class="tab-item" bindtap="changeTab" data-index="1">Demand</view>
</view>
<view class="content">
<!-- 根据tab索引值显示不同内容 -->
<view wx:if="{{currentTab === 0}}">
<view >
<!-- 主页面中展示老师上传的信息 -->
<!-- 搜索框 -->
<view class="cover">
<scroll-view>
<image src="/images/app.png"class="app"/>
</scroll-view>
</view>
<view class="search-wrapper">
<view class="search-bar">
<input class="search-input" type="text" placeholder="请输入搜索内容"></input>
<button class="search-button">搜索</button>
</view>
</view>
<view class="show_information" wx:for="{{[1,2,3,4,5]}}">
<!-- //当每通过一个教员上传的简历信息则创建一个 -->
<view class="content-container">
<image class="image" src="图片地址"></image>
<view class="text-container">
<text class="title">标题</text>
<view>
<text class="description">描述信息</text>
</view>
</view>
</view>
<view class="button-container">
<button class="button">按钮一</button>
<button class="button">按钮二</button>
</view>
</view>
<view class="desc">这里是家教帮平台,再也不用担心孩子的学习了</view>
</view>
</view>
<!-- 学员发布的要求界面 -->
<view wx:if="{{currentTab === 1}}">
<view class="container">
<view class="form-box">
<view class="form-group">
<text>需求标题:</text>
<input type="text" placeholder="请输入需求标题" bindinput="handleInputTitle" />
</view>
<view class="form-group">
<text>需求内容:</text>
<textarea placeholder="请输入需求内容" bindinput="handleInputContent"></textarea>
</view>
<view class="form-group">
<text>联系方式:</text>
<input type="text" placeholder="请输入联系方式" bindinput="handleInputContact" />
</view>
</view>
<button class="btn-submit" bindtap="handleSubmit">提交</button>
</view>
</view>
</view>