1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <view class="memberList">
- <navigation-bar title="选择会员享用人"></navigation-bar>
- <view class="appBg"></view>
- <scroll-view scroll-y class="memberListCon">
- <block wx:if="{{ memberList.length }}">
- <view wx:for="{{ memberList }}" wx:key="index" bind:tap="onSelect" data-item="{{ item }}" class="memberInfo {{ item.id === id?'active':'' }}">
- <view class="infoCon">
- <image class="tip" src="../index/images/member.png" />
- <text class="name">{{item.name}}</text>
- <text class="phone">{{item.phone}}</text>
- </view>
- <view class="schoolInfoCon">
- <text class="schoolInfo">学校信息</text><text class="schoolInfoDes">{{
- item.provinceName + item.cityName + item.regionName + item.schoolAreaName + my.GRADE_ENUM[item.currentGradeNum] + item.currentClass + "班"
- }}
- </text>
- </view>
- <view class="operateCon">
- <view class="radio">
- <image wx:if="{{item.id === id}}" src="../login/images/radio-active.png"></image>
- <image wx:else src="../login/images/radio-default.png"></image>
- <text>{{ item.id === id ? "当前选中" : "未选中"}}</text>
- </view>
- <view class="operate">
- <view catch:tap="onDel" data-id="{{ item.id }}">删除</view>
- <view catch:tap="onEdit" data-id="{{ item.id }}">编辑</view>
- </view>
- </view>
- </view>
- </block>
- <view wx:else class="empty-box">
- <image src="https://oss.dayaedu.com/ktyq/1739278149891.png"></image>
- <view class="empty-text">暂无内容</view>
- </view>
- </scroll-view>
- <view class="submitCon">
- <view class="subBtn" bind:tap="onAdd">
- <image src="./images/user.png" />
- 新增会员信息
- </view>
- </view>
- <view class="popup-section" wx:if="{{popupShow}}">
- <view class="popup-mask" bind:tap="onDialogClose"></view>
- <view class="popup-container">
- <view class="tit">请确认是否删除该会员信息</view>
- <view class="btnCon">
- <view bind:tap="onDialogClose">取消</view>
- <view bind:tap="onDialogOk">确认</view>
- </view>
- </view>
- </view>
- </view>
- <wxs module="my">
- var GRADE_ENUM = {
- '1': '一年级',
- '2': '二年级',
- '3': '三年级',
- '4': '四年级',
- '5': '五年级',
- '6': '六年级',
- '7': '七年级',
- '8': '八年级',
- '9': '九年级'
- }
- module.exports = {
- GRADE_ENUM: GRADE_ENUM
- }
- </wxs>
|