|
|
<!--pages/personal/personal.wxml-->
|
|
|
<view class='personal_container'>
|
|
|
<!--menu-->
|
|
|
|
|
|
<import src="/components/menu/menu" />
|
|
|
<template is="bottomMenu" data = '{{type:type}}'/>
|
|
|
<!--personal_top -->
|
|
|
<view class='personal_top'>
|
|
|
<view class='img_box' wx:if="{{!hasUserInfo}}">
|
|
|
<image src='http://fdjc.wx.bronet.cn/public/images/pic1.png'></image>
|
|
|
</view>
|
|
|
<view class='img_box' wx:else>
|
|
|
<image src='{{avatarUrl}}'></image>
|
|
|
</view>
|
|
|
<!--login_btn -->
|
|
|
<view class='userName' wx:if="{{register}}">{{userName}}</view>
|
|
|
<button class='userinfo-name login_btn' wx:if="{{!hasUserInfo}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo">注册</button>
|
|
|
<button class='userinfo-name login_btn register' wx:if="{{hasUserInfo&&!register}}" bindtap="redictRegister">注册</button>
|
|
|
|
|
|
</view>
|
|
|
<!--tab-->
|
|
|
<view class='tab_content'>
|
|
|
<view class='tab_items'>
|
|
|
<view class='tab_item {{ tabshow == "book" ? "active" :""}}' data-type='book' bindtap='switchTab'>我的预约</view>
|
|
|
<view class='tab_item {{ tabshow == "play" ? "active" :""}}' data-type='play' bindtap='switchTab'>看过的话剧</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!--未注册提示 -->
|
|
|
|
|
|
<!--预约列表 -->
|
|
|
<view class='book_lists has_bottom {{ tabshow == "book" ? "active" :""}}'>
|
|
|
<view class='nodata {{(!register || booklist.length == 0 )? "active" :""}}'>
|
|
|
您还没有看过戏,快去预约吧!
|
|
|
</view>
|
|
|
<block wx:for="{{booklist}}" wx:key="">
|
|
|
<view class='book_list' wx:if="{{item.type==0||item.type==2}}">
|
|
|
<image src='{{item.thumb}}'></image>
|
|
|
<view class='book_mask'>
|
|
|
<view class='bookinfo'>
|
|
|
<view class='bookinfo_title'>{{item.name}}</view>
|
|
|
<view class='bookinfo_time_adress'>
|
|
|
<view class='bookinfo'>{{item.date}} {{item.start}}-{{item.end}}</view>
|
|
|
<view class='book_person'>{{item.num}}人</view>
|
|
|
</view>
|
|
|
<view class='bookinfo_adress'>地址 - ({{item.place}})</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class='bookList_action'>
|
|
|
<view class='bookList_action_warp'>
|
|
|
<view class='book_ac_btn' id='{{item.item_id}}' wx:if="{{item.type==0}}" bindtap='signIn'>签到</view>
|
|
|
<view class='book_ac_btn book_ac_btn_qiang' id='{{item.id}}' wx:else bindtap='viewSign'>已签到</view>
|
|
|
<view class='book_ac_btn' id='{{item.item_id}}' wx:if="{{item.type==0}}" bindtap='viewElec'>电子场刊</view>
|
|
|
<view class='book_ac_btn' id='{{item.id}}' data-itemId="{{item.item_id}}" data-num="{{item.num}}" wx:if="{{item.type==0}}" bindtap='changeBook'>修改预约</view>
|
|
|
<view class='book_ac_btn' id='{{item.id}}' wx:if="{{item.type==0}}" bindtap='cancelBook'>取消预约</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class='book_list' wx:elif="{{item.type==1}}">
|
|
|
<image src='{{item.thumb}}'></image>
|
|
|
<view class='book_mask'>
|
|
|
<view class='bookinfo'>
|
|
|
<view class='bookinfo_title'>{{item.name}}</view>
|
|
|
<view class='bookinfo_time_adress'>
|
|
|
<view class='bookinfo'>{{item.date}} {{item.start}}-{{item.end}}</view>
|
|
|
<view class='book_person'>{{item.num}}人</view>
|
|
|
</view>
|
|
|
<view class='bookinfo_adress'>地址 - ({{item.place}})</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class='bookList_action'>
|
|
|
<view class='bookList_action_warp'>
|
|
|
<view class='book_ac_btn book_ac_btn_qiang' id='{{item.item_id}}'>抢票中</view>
|
|
|
<view class='book_ac_btn book_ac_btn_qiang' id='{{item.item_id}}' bindtap='viewRank'>查看排行</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class='book_list' wx:else>
|
|
|
<image src='{{item.thumb}}'></image>
|
|
|
<view class='book_mask'>
|
|
|
<view class='bookinfo'>
|
|
|
<view class='bookinfo_title'>{{item.name}}</view>
|
|
|
<view class='bookinfo_time_adress'>
|
|
|
<view class='bookinfo'>{{item.date}} {{item.start}}-{{item.end}}</view>
|
|
|
<view class='book_person'>{{item.num}}人</view>
|
|
|
</view>
|
|
|
<view class='bookinfo_adress'>地址 - ({{item.place}})</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<!--操作按钮 -->
|
|
|
<view class='bookList_action'>
|
|
|
<view class='bookList_action_warp'>
|
|
|
<view class='book_ac_btn book_ac_btn_qiang' data-itemid='{{item.item_id}}' id="{{item.id}}" bindtap='viewplay'>点击查看</view>
|
|
|
<view class='book_ac_btn book_ac_btn_qiang' id='{{item.id}}' bindtap='cancelStand'>取消排队</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</block>
|
|
|
</view>
|
|
|
<!--看过的话剧 -->
|
|
|
<view class='playItems has_bottom {{ tabshow == "play" ? "active" :""}}'>
|
|
|
<view class='nodata {{ (!register || playList.length == 0)? "active" :""}}' >
|
|
|
您还没有看过戏,快去预约吧!
|
|
|
</view>
|
|
|
<view class='playItem' wx:for="{{playList}}" wx:key="">
|
|
|
<image src='{{item.thumb}}'></image>
|
|
|
<view class='left_info'>
|
|
|
<view class='play_name'>{{item.name}}</view>
|
|
|
<view class='play_time'>{{item.date}} {{item.start}}-{{item.end}}</view>
|
|
|
<view class='play_score'>
|
|
|
评价:{{item.score}}
|
|
|
</view>
|
|
|
<view class='play_star' wx:if="{{item.is_score==0}}" id='{{item.id}}' data-url='{{item.thumb}}' data-hid='{{item.hid}}' bindtap='getscore'>
|
|
|
<view class='iconfont icon-xingxing '></view>
|
|
|
<view class='iconfont icon-xingxing '></view>
|
|
|
<view class='iconfont icon-xingxing '></view>
|
|
|
<view class='iconfont icon-xingxing '></view>
|
|
|
<view class='iconfont icon-xingxing'></view>
|
|
|
</view>
|
|
|
|
|
|
<view class='play_star' wx:else>
|
|
|
<view class='iconfont icon-xingxing {{item.is_score>=2?"active":""}}' data-id='2' bindtap='selectstar'></view>
|
|
|
<view class='iconfont icon-xingxing {{item.is_score>=4?"active":""}}' data-id='4' bindtap='selectstar'></view>
|
|
|
<view class='iconfont icon-xingxing {{item.is_score>=6?"active":""}}' data-id='6' bindtap='selectstar'></view>
|
|
|
<view class='iconfont icon-xingxing {{item.is_score>=8?"active":""}}' data-id='8' bindtap='selectstar'></view>
|
|
|
<view class='iconfont icon-xingxing {{item.is_score>=10?"active":""}}' data-id='10' bindtap='selectstar'></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
|
|
|
<!--弹窗 -->
|
|
|
<view class='mask {{changeBook||cancelBook||cancleStanding||evaluateType?"active":""}}' bindtap='closeMask'></view>
|
|
|
<!-- <view class='mask {{evaluatetype?"active":""}}' bindtap='closeMask'></view>
|
|
|
<view class='mask {{changeBook?"active":""}}' bindtap='closeMask'></view>
|
|
|
<view class='mask {{cancelBook?"active":""}}' bindtap='closeMask'></view>
|
|
|
<view class='mask {{cancelstand?"active":""}}' bindtap='closeMask'></view> -->
|
|
|
<view class='confirm_main confirm_toast {{cancelBook?"active":""}}'>
|
|
|
<view class='cancle_note'>是否取消预约</view>
|
|
|
<view class='action_btns'>
|
|
|
<view class='action_btn' bindtap='confirmCancel'>是</view>
|
|
|
<view class='action_btn cover_bg' bindtap='closeMask'>否</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!--取消排队 -->
|
|
|
<view class='confirm_main confirm_toast {{cancleStanding?"active":""}}'>
|
|
|
<view class='cancle_note'>是否取消排队</view>
|
|
|
<view class='action_btns'>
|
|
|
<view class='action_btn' bindtap='confirmCancelstand'>是</view>
|
|
|
<view class='action_btn cover_bg' bindtap='closeMask'>否</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<!--演出预约 -->
|
|
|
<view class='book_form confirm_toast {{changeBook?"active":""}}'>
|
|
|
<!--预约表格主体 -->
|
|
|
<view class='book_form_body'>
|
|
|
<view class='book_label'>请选择演出场次</view>
|
|
|
<!-- <input class='form_input iconfont icon-xiala' disabled placeholder='请选择' /> -->
|
|
|
<view class='form_input iconfont icon-xiala'>
|
|
|
<picker bindchange="playChoose" value="{{index}}" id='{{tempselect[index].id}}' range="{{tempselect}}" range-key="name">
|
|
|
<view class="picker" > {{tempselect[index].name}}</view>
|
|
|
</picker>
|
|
|
</view>
|
|
|
<view class='book_label book_num'>请选择预约人数</view>
|
|
|
<!--复选框 -->
|
|
|
<view class='num_box'>
|
|
|
<view class='num_box_item'>
|
|
|
<view class='num_box_warp iconfont {{tempNum==1?"icon-duigou":""}}' id="1" bindtap='getnum'>
|
|
|
</view>
|
|
|
1
|
|
|
</view>
|
|
|
<view class='num_box_item'>
|
|
|
<view class='num_box_warp iconfont {{tempNum==2?"icon-duigou":""}}' id="2" bindtap='getnum'>
|
|
|
</view>
|
|
|
2
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<!--确认预约按钮-->
|
|
|
<view class='action_btns'>
|
|
|
<view class='action_btn' bindtap='closeMask'>取消</view>
|
|
|
<view class='action_btn cover_bg' bindtap='confirmChangeBook'>确定</view>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<!-- 评价窗口 -->
|
|
|
<view class='confirm_toast evaluate {{evaluateType?"active":""}}'>
|
|
|
<view class='evaluate_img'>
|
|
|
<image src='{{tempImgUrl}}'></image>
|
|
|
</view>
|
|
|
<view class='bookinfo'>
|
|
|
<view class='bookinfo_title'>{{evaluate.name}}</view>
|
|
|
<view class='bookinfo_time_adress'>
|
|
|
<view class='bookinfo'>{{evaluate.data}} {{evaluate.start}}-{{evaluate.end}}</view>
|
|
|
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class='play_star' >
|
|
|
<view class='iconfont icon-xingxing {{star>=2?"active":""}}' data-id='2' bindtap='selectstar'></view>
|
|
|
<view class='iconfont icon-xingxing {{star>=4?"active":""}}' data-id='4' bindtap='selectstar'></view>
|
|
|
<view class='iconfont icon-xingxing {{star>=6?"active":""}}' data-id='6' bindtap='selectstar'></view>
|
|
|
<view class='iconfont icon-xingxing {{star>=8?"active":""}}' data-id='8' bindtap='selectstar'></view>
|
|
|
<view class='iconfont icon-xingxing {{star>=10?"active":""}}' data-id='10' bindtap='selectstar'></view>
|
|
|
</view>
|
|
|
<view class='evaluate_btn cover_bg' bindtap='confirmevalaute'>确认评价</view>
|
|
|
</view>
|
|
|
|
|
|
</view> |
|
|
\ No newline at end of file |
...
|
...
|
|