Browse Source

线上会议

xjc 4 years ago
parent
commit
a348ad273f
3 changed files with 45 additions and 6 deletions
  1. 12 3
      pages/order/order.js
  2. 11 2
      pages/order/order.wxml
  3. 22 1
      pages/order/order.wxss

+ 12 - 3
pages/order/order.js

@@ -10,8 +10,9 @@ Page({
       act:1,
       code:0,
       uid:'',
-      list:[],
-
+      list:[],  
+      online_address:"",
+      contype:false
   },
 
   /**
@@ -63,7 +64,15 @@ Page({
   },
   close:function(){
     this.setData({
-      code: ''
+      code: '',
+      contype:false
+    })
+  },
+  showAddress(e){
+    var address = e.target.dataset.address;
+    this.setData({
+      contype:true,
+      online_address:address
     })
   },
   tab:function(e){

+ 11 - 2
pages/order/order.wxml

@@ -19,15 +19,16 @@
               <text>报名时间:{{item.ctime}}</text>
               <navigator url="../eventDetail/eventDetail?id={{item.conference_id}}&apply_id={{item.id}}" class="btn" wx:if='{{item.signup_status==0 || item.signup_status==-1}}' >上传凭证</navigator>
               <navigator class="btn" style="background:#999;" wx:if='{{item.signup_status==1}}' >待审核</navigator>
-              <navigator class="btn" wx:if='{{item.signup_status==2}}' url="../order/hotel?id={{item.conference_id}}&&aid={{item.id}}"  class="btn">选酒店</navigator>
+              <navigator class="btn" wx:if='{{item.signup_status==2 && item.conference_type=="offline"}}' url="../order/hotel?id={{item.conference_id}}&&aid={{item.id}}"  class="btn">选酒店</navigator>
+              <view class="btn" data-address='{{item.conference_online_address}}' wx:if='{{item.signup_status==2 && item.conference_type=="online"}}' catchtap="showAddress">查看会议地址</view>
               <view catchtap="verify" data-url='{{item.verify_qrcode}}' class="btn" wx:if='{{item.signup_status==3}}' >核销</view>
               <view class="btn" style="background:#999;" wx:if='{{item.signup_status==4}}' >已核销</view>
-            
           </view>
       </navigator>
     </block>
 </view>
 
+<!-- 展示核销码 -->
 <view class="bg" wx:if='{{code}}' bindtap="close">
     <view class="form">
         <view class="tt">核销码</view>
@@ -36,4 +37,12 @@
         </view>
         <text>请将二维码出示给工作人员</text>
     </view>
+</view>
+<!-- 展示在线会议地址 -->
+<view wx:if='{{contype}}' class="ewm">
+    <view  class="bg" bindtap="close"></view>
+    <view class="ww">
+        <text style="font-size:34rpx;font-weight:bold;text-align:center;display:block;margin:10rpx;">线上会议地址</text>
+        <text>{{online_address}}</text>
+    </view>
 </view>

+ 22 - 1
pages/order/order.wxss

@@ -77,7 +77,13 @@ page{
   bottom: 28rpx;
   right: 28rpx;
 }
-
+.ewm{
+  position: fixed;
+  width: 100%;
+  height: 100vh;
+  top: 0;
+  left: 0;
+}
 .bg{
   position: fixed;
   width: 100%;
@@ -88,6 +94,21 @@ page{
   background: rgba(0,0,0,.5);
   padding: 50rpx 0;
 }
+.ewm>.ww{
+  background: #fff;
+  border-radius: 18rpx;
+  padding: 100rpx;
+  display: block;
+  position: absolute;
+  width: 90%;
+  top: 0;
+  bottom: 0;
+  left: 0;
+  right: 0;
+  margin: auto;
+  height: 50vh;
+  z-index: 99;
+}
 .form{
   background: #fff;
   border-radius: 18rpx;