首先是搭建显示的基本页面
在testpaper.wxml文件中
- <view class='nav'>
- <view class='left'>
- <view class='top'>{ {teacher.name}}</view>
- <view class='bottom'>
- <text>{ {teacher.sex}}</text>
- <text>{ {teacher.zhicheng}}</text>
- </view>
- </view>
- <view class='right'>
- <image style="width: 80px; height: 80px;" mode="{ {item.mode}}" src="{ {src}}"></image>
- </view>
- </view>
- <view class='content' wx:for="{ {testpaper}}">
- <view class='content_two'>
- <view class='all'>
- <text