meetingDetailEn.vue 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. <template>
  2. <!--<view style="padding-bottom: 110rpx;" :style="{ backgroundColor:backgroundcolorApp }">-->
  3. <view style="padding-bottom: 110rpx;background-color: #fff;">
  4. <!-- 顶部导航栏 -->
  5. <!--<uni-nav-bar status-bar=true fixed=true left-icon="arrowleft" :background-color="navbarColor" color="#ffffff" @clickLeft="navigateBack">-->
  6. <uni-nav-bar status-bar=true fixed=true left-icon="arrowleft" :background-color="'#538BE7'" color="#ffffff"
  7. @clickLeft="navigateBack">
  8. <text slot="default" style="text-align: center; flex: 1; font-size: 18px; font-weight: bold;">Detail</text>
  9. <!-- 分享先隐藏 -->
  10. <view class="navbar-right" slot="right">
  11. <view class="message-box right-item" @click="share">
  12. <u-icon name="share-fill" color="white" size="50"></u-icon>
  13. </view>
  14. </view>
  15. </uni-nav-bar>
  16. <!-- 图片 -->
  17. <view class="topimage" :style="{'margin-top': systemInfo.statusBarHeight+'px'}" style="padding: 32upx;">
  18. <image :src="websiteUrl + meetingListDetail.meetingPicUrl + '?custom=600_390'" mode=""></image>
  19. </view>
  20. <!-- 会议介绍 -->
  21. <view class="meeting-intry" :class="{'meeting-intry-load':loadflag}" :style="{color:fontColor}">
  22. <view style="display: flex;justify-content: space-between;margin-bottom: 20rpx;">
  23. <view class="font-tb">{{moment(meetingListDetail.meetingStartDate).format('YYYY-MM-DD')}}</view>
  24. <view class="font-tb">{{meetingListDetail.meetingPlaceEn}}</view>
  25. </view>
  26. <view style="font-size: 40rpx;font-weight: 700;">{{meetingListDetail.meetingNameEn}}</view>
  27. <view class="font-centre">{{meetingListDetail.meetingIntroductionEn}}</view>
  28. <!-- 加载更多 -->
  29. <view class="load" @click="loadMore" v-if="loadbutton">{{loadtext}}</view>
  30. </view>
  31. <!-- 会议议程 -->
  32. <view class="agenda" :style="{color:fontColor}">
  33. <view class="toptext">Draft Agenda</view>
  34. <!-- 列表部分 -->
  35. <view class="listBox" v-html="meetingListDetail.meetingYichengEn"></view>
  36. </view>
  37. <!-- 底部报名按钮 -->
  38. <view v-if="meetingListDetail.meetingIsShow=='01' && !isMeetingOver(meetingListDetail.meetingEndDate)">
  39. <view class="bottomBtn" v-if="meetingListDetail.meetingMainFormDict=='01'">
  40. <button v-if="meetingListDetail.isShowEnOnsite=='Yes'" class="bottomBtn_test" type="default"
  41. style="background-color: #366092;" @click="toLocalApply(myId)">On-site Participation</button>
  42. </view>
  43. <view class="bottomBtn" v-else-if="meetingListDetail.meetingMainFormDict=='02'">
  44. <button v-if="meetingListDetail.isShowEnOnline=='Yes'" class="bottomBtn_test" type="default"
  45. style="background-color: #03B6B3;" @click="toNetApply(myId)">Online Participation</button>
  46. </view>
  47. <view class="bottomBtn" v-else-if="meetingListDetail.meetingMainFormDict=='03'">
  48. <button v-if="meetingListDetail.isShowEnOnsite=='Yes'" class="bottomBtn_test" type="default"
  49. style="background-color: #366092;" @click="toLocalApply(myId)">On-site Participation</button>
  50. <button v-if="meetingListDetail.isShowEnOnline=='Yes'" class="bottomBtn_test" type="default"
  51. style="background-color: #03B6B3;" @click="toNetApply(myId)">Online Participation</button>
  52. </view>
  53. </view>
  54. <!-- title 分享的分类 summary 分享的介绍 href 分享的地址 8.8.20.112:19001 -->
  55. <share v-show="ifShare == true" :show="ifShare" @closeShare="share" :title="'会议服务'"
  56. :summary="meetingListDetail.meetingName"
  57. :href="'https://m.geidcp.com/#/pages/conference/meetingIndexCh/meetingDetail?' + 'id=' + meetingListDetail.id"
  58. :imageUrl="websiteUrl + meetingListDetail.meetingPicUrl +'?custom=600_390'">
  59. </share>
  60. </view>
  61. </template>
  62. <script>
  63. import uniNavBar from "@/components/uni-nav-bar/uni-nav-bar.vue";
  64. import uniIcons from "@/components/uni-icons/uni-icons.vue";
  65. import share from '@/pages/conference/share.vue';
  66. export default {
  67. data() {
  68. return {
  69. meetingListDetail: {},
  70. myId: '',
  71. backgroundcolorApp: '', //背景色
  72. navbarColor: '', //导航栏背景色
  73. fontColor: '', //字体颜色
  74. loadflag: false, //加载全部样式flag
  75. loadtext: 'MORE', //加载更多按钮的文字
  76. ifShare: false,
  77. loadbutton: true, //加载按钮flag
  78. }
  79. },
  80. components: {
  81. uniIcons,
  82. share
  83. },
  84. methods: {
  85. async getList(id) {
  86. const res = await this.$myRequest({
  87. url: '/meeting/meetingOutInfos/findMeetingDetail/',
  88. data: {
  89. id: id
  90. },
  91. header: {
  92. ANON: true
  93. }
  94. });
  95. // this.bannerData = []
  96. // console.log(opt)
  97. this.backgroundcolorApp = res.data.basicInfo.backgroundcolorForApp //背景色
  98. this.navbarColor = res.data.basicInfo.backgroundcolorForApp //导航栏背景色
  99. if (!this.backgroundcolorApp) {
  100. this.fontColor = '#333333'
  101. this.navbarColor = '#3387ff'
  102. }
  103. this.meetingListDetail = res.data.basicInfo
  104. if (this.meetingListDetail.meetingIntroductionEn.length < 540) {
  105. this.loadbutton = false
  106. }
  107. },
  108. navigateBack() {
  109. uni.navigateBack();
  110. },
  111. toLocalApply(id) {
  112. let user = uni.getStorageSync('user');
  113. let token = uni.getStorageSync('Auth-Token');
  114. let path = "/pages/conference/conferenceOfflineEn/conference-offline-en?id=" + id;
  115. if (user && token) {
  116. uni.navigateTo({
  117. url: path
  118. })
  119. } else {
  120. uni.setStorageSync('pathReminder', path)
  121. uni.showToast({
  122. title: 'please log in',
  123. icon: 'none'
  124. })
  125. setTimeout(() => {
  126. uni.navigateTo({
  127. url: "/pages/public/login?back=1&language=en"
  128. })
  129. }, 1000)
  130. }
  131. },
  132. toNetApply(id) {
  133. let user = uni.getStorageSync('user');
  134. let token = uni.getStorageSync('Auth-Token');
  135. let path = "/pages/conference/conferenceOfflineEn/conference-offline-en-other?id=" + id;
  136. if (user && token) {
  137. uni.navigateTo({
  138. url: path
  139. })
  140. } else {
  141. uni.setStorageSync('pathReminder', path)
  142. uni.showToast({
  143. title: '请先登录',
  144. icon: 'none'
  145. })
  146. setTimeout(() => {
  147. uni.navigateTo({
  148. url: "/pages/public/login?back=1&language=en"
  149. })
  150. }, 1000)
  151. }
  152. },
  153. // 判断会议是否结束
  154. isMeetingOver(t) {
  155. var ct = Date.parse(new Date());
  156. if (ct - t > 0) {
  157. return true;
  158. } else {
  159. return false;
  160. }
  161. },
  162. //加载更多按钮
  163. loadMore() {
  164. this.loadflag = !this.loadflag
  165. if (!this.loadflag) {
  166. this.loadtext = 'MORE'
  167. } else {
  168. this.loadtext = 'PICK UP'
  169. }
  170. },
  171. //分享
  172. share() {
  173. this.ifShare = !this.ifShare;
  174. },
  175. },
  176. onLoad(option) {
  177. // console.log("option.id", option.id)
  178. this.myId = option.id
  179. this.getList(option.id)
  180. },
  181. onShow() {
  182. console.log('====', this.meetingListDetail)
  183. },
  184. }
  185. </script>
  186. <style>
  187. page {
  188. background-color: #ffffff;
  189. }
  190. .iconsback {
  191. width: 30px;
  192. height: 30px;
  193. line-height: 30px;
  194. text-align: center;
  195. position: fixed;
  196. top: 72rpx;
  197. left: 20rpx;
  198. z-index: 1;
  199. background: rgba(200, 200, 200, .7);
  200. border-radius: 50%;
  201. }
  202. .iconsback:active {
  203. background: rgba(200, 200, 200, 1);
  204. }
  205. .topimage {
  206. width: 100%;
  207. height: 460rpx;
  208. }
  209. .topimage image {
  210. width: 100%;
  211. height: 100%;
  212. }
  213. .meeting-intry {
  214. position: relative;
  215. width: 686rpx;
  216. height: 900rpx;
  217. overflow: hidden;
  218. margin: auto;
  219. margin-bottom: 40rpx;
  220. padding: 42rpx 0rpx;
  221. /*background-color: rgb(0,0,0,0.2);*/
  222. color: #000;
  223. border-radius: 24rpx;
  224. }
  225. .meeting-intry-load {
  226. height: auto;
  227. }
  228. /* 文字样式 */
  229. .font-tb {
  230. font-size: 24rpx;
  231. }
  232. .font-centre {
  233. font-size: 28rpx;
  234. line-height: 56rpx;
  235. margin: 40rpx 0;
  236. }
  237. /* 加载全部内容 */
  238. .load {
  239. width: 100%;
  240. height: 30px;
  241. position: absolute;
  242. bottom: 0px;
  243. left: 0px;
  244. /*background: rgb(134 134 134);*/
  245. background: #fff;
  246. text-align: center;
  247. font-size: 20px;
  248. color: rgba(0, 0, 0, .37);
  249. }
  250. /* 会议议程部分样式 */
  251. .agenda {
  252. position: relative;
  253. width: 686rpx;
  254. margin: auto;
  255. margin-bottom: 40rpx;
  256. padding: 50rpx 30rpx 50rpx 30rpx;
  257. border-top: 2px solid #DCDCDC;
  258. /*background-color: rgb(0,0,0,0.2);*/
  259. color: #000;
  260. border-radius: 24rpx;
  261. overflow: hidden;
  262. }
  263. .toptext {
  264. font-size: 40rpx;
  265. font-weight: 700;
  266. margin-bottom: 20rpx;
  267. text-align: center;
  268. font-style: italic;
  269. /* color: #3c6a0b; */
  270. }
  271. .icon-arrowdown {
  272. position: absolute;
  273. top: -30rpx;
  274. right: 26rpx;
  275. width: 50rpx;
  276. height: 50rpx;
  277. }
  278. .top-arrowdown {
  279. position: absolute;
  280. top: -16rpx;
  281. left: 0;
  282. }
  283. .bottomBtn {
  284. display: flex;
  285. position: fixed;
  286. bottom: 0;
  287. width: 100%;
  288. height: 110rpx;
  289. border: 0px;
  290. }
  291. .bottomBtn_test {
  292. align-content: space-between;
  293. width: 100%;
  294. height: 100%;
  295. font-size: 34rpx;
  296. text-align: center;
  297. line-height: 110rpx;
  298. color: #FFFFFF;
  299. }
  300. </style>