index.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  1. <template>
  2. <view class="index-box box-border-box flex-common-css" @click.stop="play()">
  3. <view class="flex-justify-space box-border-box plr-32">
  4. <image class="logo-img" src="@/static/img/c-logo.png" mode="scaleToFill"></image>
  5. <image class="music-img" :class="isPlay?'music-anumation':''" src="@/static/img/c-music.png" mode="scaleToFill" @click.stop="musicPause()"></image>
  6. </view>
  7. <swiper class="swiper" :vertical='true' @change="swiperChange">
  8. <!-- 邀请函 -->
  9. <swiper-item>
  10. <view class="swiper-item index-1" v-if="index == 0">
  11. <image class="img-text wow animate__animated animate__bounceInUp" src="@/static/img/yqh-text.png"
  12. mode="scaleToFill"></image>
  13. <view class="fs-48 fc-E2E7FA text-align-center mb-16 wow animate__animated animate__bounceInLeft">
  14. 振合网科技集团实体联盟</view>
  15. <view class="fs-32 fc-E2E7FA text-align-center mb-72 wow animate__animated animate__bounceInRight">未来已来
  16. 一触即发</view>
  17. <image class="img-xian wow animate__animated animate__bounceInUp" src="@/static/img/xian.png"
  18. mode="scaleToFill"></image>
  19. <image class="name-text wow animate__animated animate__bounceInUp"
  20. src="@/static/img/name-text.png" mode="scaleToFill"></image>
  21. <!-- <image class="time-text wow animate__animated animate__bounceInRight"
  22. src="@/static/img/time-text.png" mode="scaleToFill"></image> -->
  23. <image class="up-icon wow animate__animated animate__bounceInUp" src="@/static/img/c-up-icon.png"
  24. mode="scaleToFill"></image>
  25. </view>
  26. </swiper-item>
  27. <!-- 诚挚邀请 -->
  28. <swiper-item>
  29. <view class="swiper-item">
  30. <view class="index-2" v-if="index == 1">
  31. <image class="text-img wow animate__animated animate__bounceInUp"
  32. src="@/static/img/czyq-text.png" mode="scaleToFill"></image>
  33. <view class="fs-32 fc-CFB591 fw-b mb-24 wow animate__animated animate__bounceInUp">
  34. 尊敬的{{userName?userName:'用户'}}</view>
  35. <view class="fs-32 fc-CFB591 text-box wow animate__animated animate__bounceInUp">
  36. 您好!感谢百忙之中阅读此邀请函。我们诚挚的邀请您参加于10月20日振合科技集团举办的2024年度招商说明会。我们深知在发展的道路上离不开您的信任与支持,我们取得的成绩中有您的辛勤付出。此次盛会邀请多位行业专家共聚一堂,特此诚邀您出席盛会,期待与您共话友情、
  37. 展望末来、共创属于我们新的商业传奇。
  38. </view>
  39. <view
  40. class="fc-CFB591 fw-b fs-32 text-align-right mt-32 wow animate__animated animate__bounceInUp">
  41. 振合网科技集团</view>
  42. <view class="fs-28 fc-CFB591 text-align-right wow animate__animated animate__bounceInUp">
  43. 2024年10月20日</view>
  44. </view>
  45. <image class="up-icon wow animate__animated animate__bounceInUp" src="@/static/img/c-up-icon.png"
  46. mode="scaleToFill"></image>
  47. </view>
  48. </swiper-item>
  49. <!-- 活动地址 -->
  50. <swiper-item>
  51. <view class="swiper-item">
  52. <view class="index-2" v-if="index == 2">
  53. <image class="text-img-1 wow animate__animated animate__bounceInUp"
  54. src="@/static/img/hdtd-text.png" mode="scaleToFill"></image>
  55. <image class="img-1 wow animate__animated animate__bounceInUp" src="@/static/img/h-1.png"
  56. mode="scaleToFill"></image>
  57. <view class="flex-justify-space">
  58. <image class="img-2 wow animate__animated animate__bounceInLeft" src="@/static/img/h-2.png"
  59. mode="scaleToFill"></image>
  60. <image class="img-2 wow animate__animated animate__bounceInRight" src="@/static/img/h-3.png"
  61. mode="scaleToFill"></image>
  62. </view>
  63. <view class="fc-CFB591 fs-40 text-align-center mb-16 wow animate__animated animate__bounceInUp">
  64. 重庆丽星君顿酒店</view>
  65. <view class="fs-28 fc-CFB591 text-align-center wow animate__animated animate__bounceInUp">
  66. 地址:重庆市渝北区服装城大道48号</view>
  67. </view>
  68. <image class="up-icon wow animate__animated animate__bounceInUp" src="@/static/img/c-up-icon.png"
  69. mode="scaleToFill"></image>
  70. </view>
  71. </swiper-item>
  72. <!-- 地址导航 -->
  73. <swiper-item>
  74. <view class="swiper-item" v-if="index == 3">
  75. <view class="index-2">
  76. <image class="text-img wow animate__animated animate__bounceInUp"
  77. src="@/static/img/dzdh-text.png" mode="scaleToFill"></image>
  78. <view class="b-f wow animate__animated animate__bounceInUp" @click.stop="toMap()">
  79. <image class="img-3" src="@/static/img/map.png" mode="scaleToFill"></image>
  80. <view class="b-c">开始导航</view>
  81. </view>
  82. <view
  83. class="fc-CFB591 fs-36 text-align-center mb-16 wow animate__animated animate__bounceInLeft">
  84. 会议地址</view>
  85. <view
  86. class="fc-CFB591 fs-28 text-align-center mb-32 wow animate__animated animate__bounceInRight">
  87. 重庆丽星君顿酒店</view>
  88. <view
  89. class="fc-CFB591 fs-36 text-align-center mb-16 wow animate__animated animate__bounceInLeft">
  90. 会议时间</view>
  91. <view
  92. class="fc-CFB591 fs-28 text-align-center mb-32 wow animate__animated animate__bounceInRight">
  93. 10月20日 上午08:30</view>
  94. <view
  95. class="fc-CFB591 fs-36 text-align-center mb-16 wow animate__animated animate__bounceInLeft"
  96. @click.stop="playPhone()">联系方式</view>
  97. <view
  98. class="fc-CFB591 fs-28 text-align-center mb-32 wow animate__animated animate__bounceInRight"
  99. @click.stop="playPhone()">
  100. <uni-icons style="margin-right: 10rpx;" type="phone-filled" color="#f2d4a9" size="14">
  101. </uni-icons>
  102. 023-67177907
  103. </view>
  104. </view>
  105. <image class="up-icon wow animate__animated animate__bounceInUp" src="@/static/img/c-up-icon.png"
  106. mode="scaleToFill"></image>
  107. </view>
  108. </swiper-item>
  109. <!-- 参与预约 -->
  110. <swiper-item>
  111. <view class="swiper-item" v-if="index == 4">
  112. <view class="index-2">
  113. <image class="text-img-2 wow animate__animated animate__bounceInUp"
  114. src="@/static/img/cyyy-text.png" mode="scaleToFill"></image>
  115. <view class="mb-32">
  116. <view class="fc-CFB591 fs-32 mb-16 wow animate__animated animate__bounceInLeft">您的姓名<span
  117. class="fc-ED301D fs-32">*</span></view>
  118. <input class="wow animate__animated animate__bounceInRight" v-model="fromData.name"
  119. type="text" placeholder="请输入您的姓名">
  120. </view>
  121. <view class="mb-32">
  122. <view class="fc-CFB591 fs-32 mb-16 wow animate__animated animate__bounceInLeft">您的手机号<span
  123. class="fc-ED301D fs-32">*</span></view>
  124. <input class="wow animate__animated animate__bounceInRight" v-model="fromData.phone"
  125. type="number" placeholder="请输入您的手机号">
  126. </view>
  127. <view class="mb-32">
  128. <view class="fc-CFB591 fs-32 mb-16 wow animate__animated animate__bounceInLeft">您的公司名称<span
  129. class="fc-ED301D fs-32">*</span></view>
  130. <input class="wow animate__animated animate__bounceInRight" v-model="fromData.corporate"
  131. type="text" placeholder="请输入您的公司名称">
  132. </view>
  133. <view class="mb-32">
  134. <view class="fc-CFB591 fs-32 mb-16 wow animate__animated animate__bounceInLeft">邀请人<span
  135. class="fc-ED301D fs-32">*</span></view>
  136. <input class="wow animate__animated animate__bounceInRight" v-model="fromData.inviter"
  137. type="text" placeholder="请输入您的邀请人">
  138. </view>
  139. <view class="mb-72">
  140. <view class="fc-CFB591 fs-32 mb-16 wow animate__animated animate__bounceInLeft">邀请人手机号<span
  141. class="fc-ED301D fs-32">*</span></view>
  142. <input class="wow animate__animated animate__bounceInRight" v-model="fromData.inviter_phone"
  143. type="number" placeholder="请输入邀请人的手机号">
  144. </view>
  145. <view class="save-box wow animate__animated animate__bounceInUp" @click.stop="save()">提交</view>
  146. </view>
  147. <image class="up-icon wow animate__animated animate__bounceInUp" src="@/static/img/c-up-icon.png"
  148. mode="scaleToFill"></image>
  149. </view>
  150. </swiper-item>
  151. <!-- 提示 -->
  152. <swiper-item>
  153. <view class="swiper-item" v-if="index == 5">
  154. <view class="index-2">
  155. <image class="text-img-3 wow animate__animated animate__bounceInUp"
  156. src="@/static/img/wxts-text.png" mode="scaleToFill"></image>
  157. <view class="align-items-center mb-48">
  158. <image class="icon-img" src="@/static/img/icon-img.png" mode=""></image>
  159. <view class="fc-CFB591 fs-32 w-588">
  160. 请您提前规划好行程,确保准时参加会议。
  161. </view>
  162. </view>
  163. <view class="align-items-center mb-48">
  164. <image class="icon-img" src="@/static/img/icon-img.png" mode=""></image>
  165. <view class="fc-CFB591 fs-32 w-588">
  166. 请携带好相关证件及资料,以便会议签到和交流,需要的资料类型请咨询邀约人员。
  167. </view>
  168. </view>
  169. <view class="align-items-center mb-214">
  170. <image class="icon-img" src="@/static/img/icon-img.png" mode=""></image>
  171. <view class="fc-CFB591 fs-32 w-588">
  172. 非常感谢你对本次会议的关注和支持,我们期待着在会议上与你相见!振合网科技集团会议筹备组
  173. </view>
  174. </view>
  175. <view class="fc-CFB591 fs-24 mb-16">
  176. 如有任何疑问或需要帮助,请随时联系我们,联系电话:023-67177907
  177. </view>
  178. <view class="playphone-box align-items-center justify-content-center" @click.stop="playPhone()">
  179. <uni-icons style="margin-right: 10rpx;" type="phone" color="#333" size="26">
  180. </uni-icons>
  181. <view class="fs-32 fc-3A2E1C">一键拨打</view>
  182. </view>
  183. </view>
  184. </view>
  185. </swiper-item>
  186. </swiper>
  187. </view>
  188. </template>
  189. <script>
  190. import {
  191. getJsConfig,
  192. userParticipation
  193. } from '@/api/user.js';
  194. import tools from "@/service/tools";
  195. import wxJs from "jweixin-module"
  196. export default {
  197. components: {},
  198. data() {
  199. return {
  200. userName: '',
  201. fromData: {
  202. m_id: '',
  203. name: '',
  204. phone: '',
  205. corporate: '',
  206. inviter: '', //邀请人
  207. inviter_phone: '',
  208. },
  209. isAJAX: false,
  210. index: 0,
  211. audioServe: undefined,
  212. isPlay: false,
  213. isAutoPlay: false,
  214. }
  215. },
  216. onshow() {
  217. this.$wow.init();
  218. },
  219. mounted() {
  220. this.userName = uni.getStorageSync('userName');
  221. let isWeiXin = tools.isWx();
  222. if (isWeiXin) {
  223. this.getJsConfig()
  224. }
  225. // this.musicPlay()
  226. },
  227. methods: {
  228. musicPlay() {
  229. if (!this.audioServe) {
  230. this.audioServe = uni.createInnerAudioContext();
  231. this.audioServe.autoplay = true;
  232. this.audioServe.loop = true;
  233. this.audioServe.obeyMuteSwitch = true;
  234. this.audioServe.src = 'https://jhnewshop.oss-cn-chengdu.aliyuncs.com/RockHouseJail.mp3';
  235. }
  236. this.audioServe.play();
  237. this.audioServe.onPlay(() => {
  238. this.isPlay = true;
  239. this.isAutoPlay = true
  240. })
  241. },
  242. play() {
  243. if (!this.isPlay && this.audioServe) {
  244. this.audioServe.play();
  245. this.audioServe.onPlay(() => {
  246. this.isPlay = true;
  247. this.isAutoPlay = true
  248. })
  249. }
  250. },
  251. musicPause() {
  252. if (this.audioServe) {
  253. this.audioServe.pause();
  254. this.audioServe.onPause(() => {
  255. this.isPlay = false;
  256. });
  257. }
  258. },
  259. getJsConfig() {
  260. console.log(window.location)
  261. let url = window.location.href.split('#')[0];
  262. getJsConfig({
  263. 'url': url
  264. }).then(res => {
  265. if (res.code === 1) {
  266. wxJs.config({
  267. debug: false,
  268. appId: res.data.appid,
  269. nonceStr: res.data.noncestr,
  270. signature: res.data.signature,
  271. timestamp: res.data.timestamp * 1, // 必填,生成签名的时间戳
  272. jsApiList: ['updateAppMessageShareData', 'updateTimelineShareData']
  273. })
  274. wxJs.ready(() => {
  275. //自定义“分享给朋友”
  276. // this.musicPlay()
  277. wxJs.updateAppMessageShareData({
  278. title: '振合网“实体联盟”招商说明会-邀请函',
  279. desc: '10月20日我们不见不散!',
  280. link: "https://enroll.jhcs888.com/#/", // 分享链接,该链接域名或路径必须与当前页面对应的公众号 JS 安全域名一致
  281. imgUrl: 'https://jhnewshop.oss-cn-chengdu.aliyuncs.com/storage/attest/20210927/949e48fb7c286836097efdd4ba4d0bd9.jpg', // 分享图标
  282. success: function() {
  283. // 设置成功
  284. }
  285. })
  286. //自定义“分享到朋友圈”
  287. wxJs.updateTimelineShareData({
  288. title: '振合网“实体联盟”招商说明会-邀请函',
  289. desc: '10月20日我们不见不散!',
  290. link: "https://enroll.jhcs888.com/#/", // 分享链接,该链接域名或路径必须与当前页面对应的公众号 JS 安全域名一致
  291. imgUrl: 'https://jhnewshop.oss-cn-chengdu.aliyuncs.com/storage/attest/20210927/949e48fb7c286836097efdd4ba4d0bd9.jpg', // 分享图标
  292. success: function() {
  293. // 设置成功
  294. }
  295. })
  296. });
  297. }
  298. })
  299. },
  300. playPhone() {
  301. uni.makePhoneCall({
  302. phoneNumber: '023-67177907'
  303. });
  304. },
  305. swiperChange(e) {
  306. this.play()
  307. if (e.detail.current != this.index) {
  308. this.index = e.detail.current;
  309. }
  310. },
  311. toMap() {
  312. uni.openLocation({
  313. latitude: 29.665085,
  314. longitude: 106.615366,
  315. scale: 18,
  316. name: '重庆丽星君顿酒店',
  317. address: '重庆市渝北区服装城大道48号',
  318. success() {},
  319. fail(error) {}
  320. });
  321. },
  322. save() {
  323. if (this.isAJAX) {
  324. return
  325. }
  326. this.isAJAX = true;
  327. this.fromData.m_id = uni.getStorageSync('m_id');
  328. userParticipation(this.fromData).then((res) => {
  329. if (res.code === 1) {
  330. tools.success('预约成功')
  331. this.fromData = {
  332. m_id: '',
  333. name: '',
  334. phone: '',
  335. corporate: '',
  336. inviter: '', //邀请人
  337. inviter_phone: '',
  338. }
  339. } else {
  340. tools.error(res.msg)
  341. }
  342. this.isAJAX = false;
  343. })
  344. }
  345. },
  346. }
  347. </script>
  348. <style lang="scss" scoped>
  349. .w-588{
  350. width: 588rpx;
  351. }
  352. .playphone-box{
  353. width: 100%;
  354. height: 86rpx;
  355. background: linear-gradient( 90deg, #E4BD85 0%, #CEB590 100%);
  356. border-radius: 10rpx;
  357. }
  358. .index-box {
  359. background-image: url('@/static/img/c-bg.png');
  360. background-size: 100% 100%;
  361. }
  362. .up-icon {
  363. width: 64rpx;
  364. height: 64rpx;
  365. margin: 0 auto;
  366. }
  367. .swiper {
  368. flex: 1;
  369. width: 100%;
  370. height: 100%;
  371. .swiper-item {
  372. width: 100%;
  373. height: 100%;
  374. }
  375. }
  376. .logo-img {
  377. width: 136rpx;
  378. height: 80rpx;
  379. margin-top: 8rpx;
  380. }
  381. .music-img {
  382. margin-top: 16rpx;
  383. width: 56rpx;
  384. height: 56rpx;
  385. }
  386. .music-anumation {
  387. animation: rotation 2s linear infinite;
  388. }
  389. @keyframes rotation {
  390. from {
  391. transform: rotate(0deg);
  392. }
  393. to {
  394. transform: rotate(360deg);
  395. }
  396. }
  397. .index-1 {
  398. .img-text {
  399. width: 384rpx;
  400. height: 232rpx;
  401. margin: 76rpx auto 36rpx auto;
  402. }
  403. .img-xian {
  404. width: 10rpx;
  405. height: 174rpx;
  406. margin: 0 auto 154rpx auto;
  407. }
  408. .name-text {
  409. width: 288rpx;
  410. height: 100rpx;
  411. margin: 0 auto 140rpx auto;
  412. }
  413. .time-text {
  414. width: 274rpx;
  415. height: 37rpx;
  416. margin: 0 auto 140rpx auto;
  417. }
  418. }
  419. .index-2 {
  420. width: 686rpx;
  421. min-height: 1032rpx;
  422. background: rgba(5,19,103,0.5);
  423. border-radius: 12rpx;
  424. border: 2rpx solid #112495;
  425. margin: 40rpx auto;
  426. box-sizing: border-box;
  427. padding: 32rpx;
  428. input {
  429. width: 622rpx;
  430. height: 80rpx;
  431. background: #FFFFFF;
  432. border-radius: 10rpx;
  433. box-sizing: border-box;
  434. padding: 0 20rpx;
  435. font-size: 28rpx;
  436. }
  437. .save-box {
  438. width: 622rpx;
  439. height: 80rpx;
  440. background: linear-gradient(90deg, #EBC795 0%, #E3BB83 100%);
  441. border-radius: 10rpx;
  442. text-align: center;
  443. line-height: 80rpx;
  444. font-size: 38rpx;
  445. font-weight: 600;
  446. color: #3A2E1C;
  447. }
  448. .text-img {
  449. width: 302rpx;
  450. height: 116rpx;
  451. margin: 0 auto 44rpx auto;
  452. }
  453. .text-box {
  454. line-height: 68rpx;
  455. letter-spacing: 4rpx;
  456. display: block;
  457. text-indent: 72rpx;
  458. }
  459. .text-img-1 {
  460. width: 224rpx;
  461. height: 116rpx;
  462. margin: 0 auto 44rpx auto;
  463. }
  464. .text-img-2 {
  465. width: 214rpx;
  466. height: 116rpx;
  467. margin: 0 auto 44rpx auto;
  468. }
  469. .text-img-3 {
  470. width: 192rpx;
  471. height: 116rpx;
  472. margin: 0 auto 44rpx auto;
  473. }
  474. .img-1 {
  475. width: 622rpx;
  476. height: 328rpx;
  477. border-radius: 10rpx;
  478. margin-bottom: 24rpx;
  479. }
  480. .img-2 {
  481. width: 300rpx;
  482. height: 214rpx;
  483. margin-bottom: 60rpx;
  484. }
  485. .img-3 {
  486. width: 622rpx;
  487. height: 354rpx;
  488. border-radius: 10rpx;
  489. margin-bottom: 40rpx;
  490. }
  491. .icon-img{
  492. width: 23rpx;
  493. height: 23rpx;
  494. margin-right: 8rpx;
  495. }
  496. .b-f {
  497. position: relative;
  498. .b-c {
  499. position: absolute;
  500. right: 24rpx;
  501. bottom: 22rpx;
  502. width: 172rpx;
  503. height: 56rpx;
  504. background: #2F80ED;
  505. border-radius: 4rpx;
  506. text-align: center;
  507. line-height: 56rpx;
  508. font-size: 28rpx;
  509. color: #fff;
  510. }
  511. }
  512. }
  513. </style>