activityDetail.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <template>
  2. <view class="activity-detail">
  3. <view class="notice" v-if="detailData.IsLimitPeople==1">
  4. <van-notice-bar color="#FFFFFF" background="#FE9000" text="该活动参与名额有限,报名客户请按时参加,爽约会影响您的后续报名资格"/>
  5. </view>
  6. <view class="content">
  7. <view v-if="detailData.ActivityName" class="dialog-title">{{detailData.ActivityName}}</view>
  8. <view class="city-box">
  9. <text v-if="detailData.ActivityTypeName">活动类型:{{detailData.ActivityTypeName}}</text>
  10. <view class="city">
  11. <image src="../../static/img/advice_ico.png" mode=""></image>
  12. <text>城市{{detailData.City}}</text>
  13. </view>
  14. </view>
  15. <text v-if="detailData.ChartPermissionName">所属行业:{{detailData.ChartPermissionName}}</text>
  16. <text v-if="detailData.ActivityTimeText">活动时间:{{detailData.ActivityTimeText}}</text>
  17. <text v-if="detailData.DistinguishedGuest">&nbsp;&nbsp; &nbsp; &nbsp;宾:{{detailData.DistinguishedGuest}}</text>
  18. <text v-if="detailData.Host">&nbsp;&nbsp; 人:{{detailData.Host}}</text>
  19. <text v-if="detailData.Expert">&nbsp;&nbsp; &nbsp; &nbsp;家:{{detailData.Expert}}</text>
  20. <text v-if="detailData.City">&nbsp;&nbsp; &nbsp; &nbsp;市:{{detailData.City}}</text>
  21. <view v-if="detailData.MainlandTell">大陆拨入:
  22. <text class="phone" @click="phonebtn(detailData.MainlandTell)">{{detailData.MainlandTell}}</text>
  23. </view>
  24. <view v-if="detailData.HongKongTell">香港拨入:
  25. <text @click="phonebtn(detailData.HongKongTell)" class="phone">{{detailData.HongKongTell}}</text>
  26. </view>
  27. <view v-if="detailData.TaiwanTell">台湾拨入:
  28. <text @click="phonebtn(detailData.TaiwanTell)" class="phone">{{detailData.TaiwanTell}}</text>
  29. </view>
  30. <view v-if="detailData.AmericaTell">美国拨入:
  31. <text @click="phonebtn(detailData.AmericaTell)" class="phone">{{detailData.AmericaTell}}</text>
  32. </view>
  33. <text v-if="detailData.ReportLink">报告链接:{{detailData.ReportLink}}</text>
  34. <text v-if="detailData.OnlineParticipation">网络参会:{{detailData.OnlineParticipation}}</text>
  35. <text v-if="detailData.OnlineParticipation">参会密码:{{detailData.OnlineParticipation}}</text>
  36. <text v-if="detailData.Address">活动地址:{{detailData.Address}}</text>
  37. <text v-if="detailData.Highlights">活动亮点:{{detailData.Highlights}}</text>
  38. <text v-if="detailData.Theme">&nbsp;&nbsp; &nbsp; &nbsp;题:{{detailData.Theme}}</text>
  39. <text v-if="detailData.Remarks">&nbsp;&nbsp; &nbsp; &nbsp;注:{{detailData.Remarks}}</text>
  40. </view>
  41. <view class="content-bottom">
  42. <view class="make-outbound">
  43. 预约外呼
  44. </view>
  45. <view class="make-outbound">
  46. 取消外呼
  47. </view>
  48. <view class="make-conference">
  49. 会议提醒
  50. <text>(会前15分钟推送微信消息提醒)</text>
  51. </view>
  52. <view class="make-conference">
  53. 取消会议提醒
  54. <text>(会前15分钟推送微信消息提醒)</text>
  55. </view>
  56. </view>
  57. </view>
  58. </template>
  59. <script>
  60. import {activity} from "@/config/api.js"
  61. export default {
  62. data() {
  63. return {
  64. id:10,
  65. detailData:{}
  66. }
  67. },
  68. methods: {
  69. getActivityDetail(){
  70. activity.getActivityDetail({
  71. ActivityId:this.id
  72. }).then(res =>{
  73. if(res.Ret==200){
  74. this.detailData=res.Data
  75. }
  76. console.log(res);
  77. })
  78. },
  79. phonebtn(phone) {
  80. console.log(11);
  81. console.log(phone);
  82. uni.makePhoneCall({
  83. phoneNumber:phone
  84. });
  85. },
  86. },
  87. onLoad(option) {
  88. // this.id=option.id
  89. this.getActivityDetail()
  90. }
  91. }
  92. </script>
  93. <style lang="scss">
  94. .activity-detail {
  95. .notice {
  96. height: 60rpx;
  97. width: 100%;
  98. }
  99. .content {
  100. padding: 34rpx;
  101. color: #333333;
  102. font-size: 28rpx;
  103. view{padding-left:20rpx ;}
  104. text {
  105. line-height: 80rpx;
  106. padding-left:20rpx ;
  107. }
  108. .phone {
  109. padding: 0;
  110. display: inline-block;
  111. color: #2C83FF;
  112. }
  113. .dialog-title {
  114. width: 682rpx;
  115. padding:20rpx 0;
  116. background: #F2F2F2;
  117. opacity: 0.8;
  118. font-size: 30rpx;
  119. font-weight: bold;
  120. margin-bottom: 15rpx;
  121. }
  122. .city-box {
  123. display: flex;
  124. justify-content: space-between;
  125. align-items: center;
  126. text {
  127. padding: 0;
  128. }
  129. .city {
  130. display: flex;
  131. color: #2088FF;
  132. align-items: center;
  133. image {
  134. width: 27rpx;
  135. height: 32rpx;
  136. margin-right:12rpx;
  137. }
  138. }
  139. }
  140. }
  141. .content-bottom {
  142. margin: 30rpx 0;
  143. .make-outbound {
  144. margin: 0 auto;
  145. width: 368rpx;
  146. height: 80rpx;
  147. background: linear-gradient(268deg, #2DDBFF 0%, #1599FF 49%, #005EFF 100%);
  148. opacity: 1;
  149. border-radius: 4rpx;
  150. color: #FFFFFF;
  151. font-size: 34rpx;
  152. line-height: 80rpx;
  153. text-align: center;
  154. }
  155. .make-conference {
  156. margin: 30rpx auto ;
  157. width: 368rpx;
  158. height: 80rpx;
  159. border: 2px solid #2C83FF;
  160. opacity: 1;
  161. border-radius: 4rpx;
  162. padding-top: 10rpx;
  163. text-align: center;
  164. color: #2C83FF;
  165. text {
  166. font-size: 16rpx;
  167. }
  168. }
  169. }
  170. }
  171. </style>