index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786
  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" v-if="!isIos" :class="isPlay?'music-anumation':'music-anumation'"
  6. src="@/static/img/c-music.png" mode="scaleToFill" @click.stop="musicPause()"></image>
  7. <mumu-music v-else ref="musicObj"
  8. musicSrc='https://jhxcnc.oss-cn-chengdu.aliyuncs.com/mp3/4272600974.mp3'></mumu-music>
  9. </view>
  10. <swiper class="swiper" :vertical='true' @change="swiperChange">
  11. <!-- 邀请函 -->
  12. <swiper-item >
  13. <view class="swiper-item-f">
  14. <view class="swiper-item">
  15. <scroll-view scroll-y="true" @scrolltolower="scrolltolower()" class=" index-1"
  16. v-if="index == 0">
  17. <image class="img-text wow animate__animated animate__bounceInUp"
  18. src="@/static/img/yqh-text-1.png" mode="scaleToFill"></image>
  19. <view class="" v-if="isEnroll">
  20. <view
  21. class="fs-40 fc-E2E7FA text-align-center mb-16 wow animate__animated animate__bounceInLeft">
  22. 科技创新体系•助推实体经济发展</view>
  23. <image class="zhw-img-text mb-16 wow animate__animated animate__bounceInLeft"
  24. src="@/static/img/index-text-3.png" mode="scaleToFill"></image>
  25. <view
  26. class="fs-32 fc-E2E7FA text-align-center mb-72 wow animate__animated animate__bounceInLeft">
  27. 招商说明会 </view>
  28. </view>
  29. <view class="" v-else>
  30. <view
  31. class="fs-40 fc-E2E7FA text-align-center mb-16 wow animate__animated animate__bounceInLeft">
  32. 畅通国民经济循环 发展新质生产力</view>
  33. <view
  34. class="fs-40 fc-E2E7FA text-align-center mb-16 wow animate__animated animate__bounceInLeft">
  35. 实现共同富裕</view>
  36. <view
  37. class="fs-32 fc-E2E7FA text-align-center mb-72 wow animate__animated animate__bounceInLeft">
  38. 招商说明会 </view>
  39. </view>
  40. <image class="img-xian wow animate__animated animate__bounceInUp" src="@/static/img/xian.png"
  41. mode="scaleToFill"></image>
  42. <view class="fs-32 fc-CFB591 fw-500 text-align-left mb-40 ml-80">
  43. 主办单位:重庆振合网科技集团
  44. </view>
  45. <view class="display-flex ml-80">
  46. <view class="fs-32 fc-CFB591 fw-500">协办单位:</view>
  47. <view class="">
  48. <view class="fs-32 fc-CFB591 fw-500 text-align-left">中国信用网</view>
  49. <view class="fs-32 fc-CFB591 fw-500 text-align-left">重庆电视台《重庆特色》栏目</view>
  50. </view>
  51. </view>
  52. </scroll-view>
  53. </view>
  54. <view>
  55. <image class="up-icon wow animate__animated animate__bounceInUp"
  56. src="@/static/img/c-up-icon.png" mode="scaleToFill"></image>
  57. </view>
  58. </view>
  59. </swiper-item>
  60. <!-- 诚挚邀请 -->
  61. <swiper-item>
  62. <view class="swiper-item-f">
  63. <view class="swiper-item">
  64. <scroll-view scroll-y="true" @scrolltolower="scrolltolower()" class="index-2" v-if="index == 1">
  65. <image class="text-img-3 wow animate__animated animate__bounceInUp"
  66. src="@/static/img/hynr-text.png" mode="scaleToFill"></image>
  67. <view class="fs-32 fc-CFB591 text-box wow animate__animated animate__bounceInUp">
  68. 党的二十大三中全会提出,“让国家变得更加富强,让社会变得更加公平公正,让人民生活得更加美好”。
  69. </view>
  70. <view class="fs-32 fc-CFB591 text-box wow animate__animated animate__bounceInUp">
  71. 振合网将以互联网注入实体经济数字化转型为导向,帮助生产厂家,传统代理商解决销售难、资金难、库存压力大。帮助实体店摆脱困境,实现跨界收益和互联网收益,助推实体经济数字化转型升级发展。
  72. </view>
  73. <view class="fs-32 fc-CFB591 text-box wow animate__animated animate__bounceInUp">
  74. 助推乡村全面振兴,让农户爱上种地,解决返乡民工创业就业难和农产品销售难等问题;在乡村振兴发展的势头中,如何助力乡村振兴、牢固脱贫攻艰的成果,真正实现城乡融合发展。
  75. </view>
  76. </scroll-view>
  77. </view>
  78. <image class="up-icon wow animate__animated animate__bounceInUp" src="@/static/img/c-up-icon.png"
  79. mode="scaleToFill"></image>
  80. </view>
  81. </swiper-item>
  82. <!-- 参会名单 -->
  83. <swiper-item>
  84. <view class="swiper-item-f">
  85. <view class="swiper-item">
  86. <scroll-view scroll-y="true" @scrolltolower="scrolltolower()" class="index-2" v-if="index == 2">
  87. <image class="text-img-1 wow animate__animated animate__bounceInUp"
  88. src="@/static/img/chdb-text.png" mode="scaleToFill"></image>
  89. <image class="text-img-ty wow animate__animated animate__bounceInUp"
  90. src="@/static/img/tyjb-text.png" mode="scaleToFill"></image>
  91. <view class="align-items-center mb-24">
  92. <image class="icon-img-1" src="@/static/img/icon-img.png" mode="scaleToFill"></image>
  93. <view class="fs-28 fc-CFB591 w-588">全国人大常委农委原副主任、现任中国供销合作经济学会会长</view>
  94. </view>
  95. <view class="align-items-center mb-24">
  96. <image class="icon-img-1" src="@/static/img/icon-img.png" mode="scaleToFill"></image>
  97. <view class="fs-28 fc-CFB591 w-588">原国务院研究室主任、国务院国有监事会主席、中央第九巡视组副组长、经济学博士</view>
  98. </view>
  99. <view class="align-items-center mb-24">
  100. <image class="icon-img-1" src="@/static/img/icon-img.png" mode="scaleToFill"></image>
  101. <view class="fs-28 fc-CFB591 w-588">原农业部副部长、国务院研究室副主任</view>
  102. </view>
  103. <view class="align-items-center mb-24">
  104. <image class="icon-img-1" src="@/static/img/icon-img.png" mode="scaleToFill"></image>
  105. <view class="fs-28 fc-CFB591 w-588">原全国工商联副主席、全国政协特聘专家</view>
  106. </view>
  107. <view class="align-items-center mb-24">
  108. <image class="icon-img-1" src="@/static/img/icon-img.png" mode="scaleToFill"></image>
  109. <view class="fs-28 fc-CFB591 w-588">原中宣部副部长、中国文联副主席</view>
  110. </view>
  111. <view class="align-items-center mb-48">
  112. <image class="icon-img-1" src="@/static/img/icon-img.png" mode="scaleToFill"></image>
  113. <view class="fs-28 fc-CFB591 w-588">国防大学少将(副军职)及其他相关领导</view>
  114. </view>
  115. <image class="text-img-ty wow animate__animated animate__bounceInUp"
  116. src="@/static/img/chdw-text-1.png" mode="scaleToFill"></image>
  117. <view class="align-items-center mb-24">
  118. <image class="icon-img-1" src="@/static/img/icon-img.png" mode="scaleToFill"></image>
  119. <view class="fs-28 fc-CFB591 w-588">中国信用网</view>
  120. </view>
  121. <view class="align-items-center mb-24">
  122. <image class="icon-img-1" src="@/static/img/icon-img.png" mode="scaleToFill"></image>
  123. <view class="fs-28 fc-CFB591 w-588">重庆电视台</view>
  124. </view>
  125. <view class="align-items-center mb-24">
  126. <image class="icon-img-1" src="@/static/img/icon-img.png" mode="scaleToFill"></image>
  127. <view class="fs-28 fc-CFB591 w-588">全国知名企业</view>
  128. </view>
  129. <view class="align-items-center mb-24">
  130. <image class="icon-img-1" src="@/static/img/icon-img.png" mode="scaleToFill"></image>
  131. <view class="fs-28 fc-CFB591 w-588">全国知名品牌代理商</view>
  132. </view>
  133. </scroll-view>
  134. </view>
  135. <image class="up-icon wow animate__animated animate__bounceInUp" src="@/static/img/c-up-icon.png"
  136. mode="scaleToFill"></image>
  137. </view>
  138. </swiper-item>
  139. <!-- 活动地址 -->
  140. <swiper-item>
  141. <view class="swiper-item-f">
  142. <view class="swiper-item">
  143. <scroll-view scroll-y="true" @scrolltolower="scrolltolower()" class="index-2" v-if="index == 3">
  144. <image class="text-img-1 wow animate__animated animate__bounceInUp"
  145. src="@/static/img/hdtd-text.png" mode="scaleToFill"></image>
  146. <image class="img-1 wow animate__animated animate__bounceInUp" src="@/static/img/h-1.png"
  147. mode="scaleToFill"></image>
  148. <view class="flex-justify-space">
  149. <image class="img-2 wow animate__animated animate__bounceInLeft" src="@/static/img/h-2.png"
  150. mode="scaleToFill"></image>
  151. <image class="img-2 wow animate__animated animate__bounceInRight" src="@/static/img/h-3.png"
  152. mode="scaleToFill"></image>
  153. </view>
  154. <view class="fc-CFB591 fs-40 text-align-center mb-16 wow animate__animated animate__bounceInUp">
  155. 重庆丽呈君顿酒店</view>
  156. <view class="fs-28 fc-CFB591 text-align-center wow animate__animated animate__bounceInUp">
  157. 地址:重庆市渝北区服装城大道48号</view>
  158. </scroll-view>
  159. </view>
  160. <image class="up-icon wow animate__animated animate__bounceInUp" src="@/static/img/c-up-icon.png"
  161. mode="scaleToFill"></image>
  162. </view>
  163. </swiper-item>
  164. <!-- 地址导航 -->
  165. <swiper-item>
  166. <view class="swiper-item-f">
  167. <view class="swiper-item">
  168. <scroll-view scroll-y="true" @scrolltolower="scrolltolower()" class="index-2" v-if="index == 4">
  169. <image class="text-img wow animate__animated animate__bounceInUp"
  170. src="@/static/img/dzdh-text.png" mode="scaleToFill"></image>
  171. <view class="b-f wow animate__animated animate__bounceInUp" @click.stop="toMap()">
  172. <image class="img-3" src="@/static/img/map.png" mode="scaleToFill"></image>
  173. <view class="b-c">开始导航</view>
  174. </view>
  175. <view
  176. class="fc-CFB591 fs-28 text-align-center mb-32 wow animate__animated animate__bounceInRight">
  177. 签到时间:10月19日</view>
  178. <view
  179. class="fc-CFB591 fs-28 text-align-center mb-32 wow animate__animated animate__bounceInRight">
  180. 会议时间:10月20日</view>
  181. <view
  182. class="fc-CFB591 fs-28 text-align-center mb-32 wow animate__animated animate__bounceInRight">
  183. 会议地址:重庆丽呈君顿酒店</view>
  184. <view
  185. class="fc-CFB591 fs-28 text-align-center mb-32 wow animate__animated animate__bounceInRight"
  186. @click.stop="playPhone()">
  187. 联系方式:
  188. <uni-icons style="margin-right: 10rpx;" type="phone-filled" color="#f2d4a9" size="14">
  189. </uni-icons>
  190. 023-67177907
  191. </view>
  192. </scroll-view>
  193. </view>
  194. <image class="up-icon wow animate__animated animate__bounceInUp" src="@/static/img/c-up-icon.png"
  195. mode="scaleToFill"></image>
  196. </view>
  197. </swiper-item>
  198. <!-- 参与预约 -->
  199. <swiper-item v-if="isEnroll">
  200. <view class="swiper-item-f">
  201. <view class="swiper-item">
  202. <scroll-view scroll-y="true" @scrolltolower="scrolltolower()" class="index-2" v-if="index == 5">
  203. <image class="text-img-2 wow animate__animated animate__bounceInUp"
  204. src="@/static/img/cyyy-text-1.png" mode="scaleToFill"></image>
  205. <view class="mb-32">
  206. <view class="fc-CFB591 fs-32 mb-16 wow animate__animated animate__bounceInLeft">您的姓名<span
  207. class="fc-ED301D fs-32">*</span></view>
  208. <input class="wow animate__animated animate__bounceInRight" v-model="fromData.name"
  209. type="text" placeholder="请输入您的姓名">
  210. </view>
  211. <view class="mb-32">
  212. <view class="fc-CFB591 fs-32 mb-16 wow animate__animated animate__bounceInLeft">您的手机号<span
  213. class="fc-ED301D fs-32">*</span></view>
  214. <input class="wow animate__animated animate__bounceInRight" v-model="fromData.phone"
  215. type="number" placeholder="请输入您的手机号">
  216. </view>
  217. <view class="mb-32">
  218. <view class="fc-CFB591 fs-32 mb-16 wow animate__animated animate__bounceInLeft">您的公司名称<span
  219. class="fc-ED301D fs-32">*</span></view>
  220. <input class="wow animate__animated animate__bounceInRight" v-model="fromData.corporate"
  221. type="text" placeholder="请输入您的公司名称">
  222. </view>
  223. <view class="mb-32">
  224. <view class="fc-CFB591 fs-32 mb-16 wow animate__animated animate__bounceInLeft">邀请人<span
  225. class="fc-ED301D fs-32">*</span></view>
  226. <input class="wow animate__animated animate__bounceInRight" v-model="fromData.inviter"
  227. type="text" placeholder="请输入您的邀请人">
  228. </view>
  229. <view class="mb-72">
  230. <view class="fc-CFB591 fs-32 mb-16 wow animate__animated animate__bounceInLeft">邀请人手机号<span
  231. class="fc-ED301D fs-32">*</span></view>
  232. <input class="wow animate__animated animate__bounceInRight" v-model="fromData.inviter_phone"
  233. type="number" placeholder="请输入邀请人的手机号">
  234. </view>
  235. <view class="save-box wow animate__animated animate__bounceInUp" @click.stop="save()">提交</view>
  236. </scroll-view>
  237. </view>
  238. <image class="up-icon wow animate__animated animate__bounceInUp" src="@/static/img/c-up-icon.png"
  239. mode="scaleToFill"></image>
  240. </view>
  241. </swiper-item>
  242. <!-- 提示 -->
  243. <swiper-item>
  244. <scroll-view scroll-y="true" class="swiper-item" v-if="isEnroll?index == 6:index == 5">
  245. <view class="index-2">
  246. <image class="text-img-3 wow animate__animated animate__bounceInUp"
  247. src="@/static/img/wxts-text.png" mode="scaleToFill"></image>
  248. <view class="align-items-center mb-48">
  249. <image class="icon-img" src="@/static/img/icon-img.png" mode=""></image>
  250. <view class="fc-CFB591 fs-32 w-588">
  251. 请您提前规划好行程,确保准时参加会议。
  252. </view>
  253. </view>
  254. <view class="align-items-center mb-48">
  255. <image class="icon-img" src="@/static/img/icon-img.png" mode=""></image>
  256. <view class="fc-CFB591 fs-32 w-588">
  257. 请携带好相关证件及资料,以便会议签到和交流,详情请咨询邀约人员。
  258. </view>
  259. </view>
  260. <view class="align-items-center mb-214">
  261. <image class="icon-img" src="@/static/img/icon-img.png" mode=""></image>
  262. <view class="fc-CFB591 fs-32 w-588">
  263. 非常感谢您对本次会议的关注和支持,振合网科技集团期待与您相见!
  264. </view>
  265. </view>
  266. <view class="fc-CFB591 fs-24 mb-16">
  267. 如有任何疑问或需要帮助,请随时联系我们,联系电话:023-67177907
  268. </view>
  269. <view class="playphone-box align-items-center justify-content-center" @click.stop="playPhone()">
  270. <uni-icons style="margin-right: 10rpx;" type="phone" color="#333" size="26">
  271. </uni-icons>
  272. <view class="fs-32 fc-3A2E1C">一键拨打</view>
  273. </view>
  274. </view>
  275. </scroll-view>
  276. </swiper-item>
  277. </swiper>
  278. </view>
  279. </template>
  280. <script>
  281. import {
  282. getJsConfig,
  283. userParticipation
  284. } from '@/api/user.js';
  285. import tools from "@/service/tools";
  286. import wxJs from "jweixin-module"
  287. import {
  288. useBgMusic
  289. } from '@/uni_modules/y-bg-music/js_sdk';
  290. export default {
  291. components: {},
  292. data() {
  293. return {
  294. userName: '',
  295. fromData: {
  296. m_id: '',
  297. name: '',
  298. phone: '',
  299. corporate: '',
  300. inviter: '', //邀请人
  301. inviter_phone: '',
  302. },
  303. isAJAX: false,
  304. index: 0,
  305. audioServe: undefined,
  306. isPlay: false,
  307. isAutoPlay: false,
  308. isIos: true,
  309. isEnroll: true,
  310. idBottom: false
  311. }
  312. },
  313. onLoad(data) {
  314. if (data.noEnroll !== undefined) {
  315. this.isEnroll = false
  316. }
  317. },
  318. onshow() {
  319. this.$wow.init();
  320. },
  321. mounted() {
  322. this.userName = uni.getStorageSync('userName');
  323. let isWeiXin = tools.isWx();
  324. if (isWeiXin) {
  325. this.getJsConfig()
  326. }
  327. // this.musicPlay()
  328. const isiOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
  329. this.isIos = isiOS
  330. if (isiOS) {
  331. console.log('This is an iOS device');
  332. } else {
  333. this.audioServe = useBgMusic({
  334. src: './static/mp3/4272600974.mp3',
  335. loop: 999, // 循环次数
  336. controls: false // 显示右上角控制元素
  337. });
  338. }
  339. },
  340. methods: {
  341. scrolltolower() {
  342. console.log('end-------------')
  343. },
  344. musicPlay() {
  345. // if (!this.audioServe) {
  346. // this.audioServe = uni.createInnerAudioContext();
  347. // this.audioServe.autoplay = true;
  348. // this.audioServe.loop = true;
  349. // this.audioServe.obeyMuteSwitch = true;
  350. // this.audioServe.src = 'https://jhxcnc.oss-cn-chengdu.aliyuncs.com/mp3/4272600974.mp3';
  351. // }
  352. // this.audioServe.play();
  353. // this.audioServe.onPlay(() => {
  354. // this.isPlay = true;
  355. // this.isAutoPlay = true
  356. // })
  357. // 创建bgAudioManager对象
  358. // const bgAudioManager = uni.getBackgroundAudioManager();
  359. // bgAudioManager.src = 'https://jhxcnc.oss-cn-chengdu.aliyuncs.com/mp3/4272600974.mp3';
  360. // // 开始播放的回调函数
  361. // bgAudioManager.onPlay(() => {
  362. // console.log('开始播放');
  363. // });
  364. // // 播放报错的事件监听
  365. // bgAudioManager.onError((res) => {
  366. // console.log(res.errMsg);
  367. // console.log(res.errCode);
  368. // });
  369. },
  370. play() {
  371. if (!this.isPlay && this.audioServe) {
  372. // this.audioServe.play();
  373. // this.audioServe.onPlay(() => {
  374. // this.isPlay = true;
  375. // this.isAutoPlay = true
  376. // })
  377. }
  378. },
  379. musicPause() {
  380. // if (this.audioServe) {
  381. // this.audioServe.pause();
  382. // this.audioServe.onPause(() => {
  383. // this.isPlay = false;
  384. // });
  385. // }
  386. },
  387. getJsConfig() {
  388. console.log(window.location)
  389. let url = window.location.href.split('#')[0];
  390. getJsConfig({
  391. 'url': url
  392. }).then(res => {
  393. if (res.code === 1) {
  394. wxJs.config({
  395. debug: false,
  396. appId: res.data.appid,
  397. nonceStr: res.data.noncestr,
  398. signature: res.data.signature,
  399. timestamp: res.data.timestamp * 1, // 必填,生成签名的时间戳
  400. jsApiList: ['updateAppMessageShareData', 'updateTimelineShareData']
  401. })
  402. wxJs.ready(() => {
  403. //自定义“分享给朋友”
  404. // this.musicPlay()
  405. wxJs.updateAppMessageShareData({
  406. title: this.isEnroll ? '振合网“实体联盟”招商说明会-邀请函' :
  407. "<畅通国民经济循环 发展新质生产力>研讨会",
  408. desc: this.isEnroll ? '10月20日我们不见不散!' : '实现共同富裕',
  409. link: "https://enroll.jhcs888.com/#/" + (this.isEnroll ? '' :
  410. '?noEnroll=1'), // 分享链接,该链接域名或路径必须与当前页面对应的公众号 JS 安全域名一致
  411. imgUrl: this.isEnroll ?
  412. 'https://jhnewshop.oss-cn-chengdu.aliyuncs.com/storage/attest/20210927/949e48fb7c286836097efdd4ba4d0bd9.jpg' :
  413. 'https://jhxcnc.oss-cn-chengdu.aliyuncs.com/storage/fc1d53858ba9dcd52dc91260e6bc557.png', // 分享图标
  414. success: function() {
  415. // 设置成功
  416. }
  417. })
  418. //自定义“分享到朋友圈”
  419. wxJs.updateTimelineShareData({
  420. title: this.isEnroll ? '振合网“实体联盟”招商说明会-邀请函' :
  421. '<畅通国民经济循环 发展新质生产力>研讨会',
  422. desc: this.isEnroll ? '10月20日我们不见不散!' : '实现共同富裕',
  423. link: "https://enroll.jhcs888.com/#/" + (this.isEnroll ? '' :
  424. '?noEnroll=1'), // 分享链接,该链接域名或路径必须与当前页面对应的公众号 JS 安全域名一致
  425. imgUrl: this.isEnroll ?
  426. 'https://jhnewshop.oss-cn-chengdu.aliyuncs.com/storage/attest/20210927/949e48fb7c286836097efdd4ba4d0bd9.jpg' :
  427. 'https://jhxcnc.oss-cn-chengdu.aliyuncs.com/storage/fc1d53858ba9dcd52dc91260e6bc557.png', // 分享图标
  428. success: function() {
  429. // 设置成功
  430. }
  431. })
  432. if (this.audioServe) {
  433. this.audioServe.play();
  434. } else if (!this.isIos) {
  435. this.$refs.musicObj.playTo()
  436. }
  437. });
  438. }
  439. })
  440. },
  441. playPhone() {
  442. uni.makePhoneCall({
  443. phoneNumber: '023-67177907'
  444. });
  445. },
  446. swiperChange(e) {
  447. this.play()
  448. if (e.detail.current !== this.index) {
  449. this.index = e.detail.current;
  450. }
  451. },
  452. toMap() {
  453. uni.openLocation({
  454. latitude: 29.665085,
  455. longitude: 106.615366,
  456. scale: 18,
  457. name: '重庆丽星君顿酒店',
  458. address: '重庆市渝北区服装城大道48号',
  459. success() {},
  460. fail(error) {}
  461. });
  462. },
  463. save() {
  464. if (this.isAJAX) {
  465. return
  466. }
  467. this.isAJAX = true;
  468. this.fromData.m_id = uni.getStorageSync('m_id');
  469. userParticipation(this.fromData).then((res) => {
  470. if (res.code === 1) {
  471. tools.success('预约成功')
  472. this.fromData = {
  473. m_id: '',
  474. name: '',
  475. phone: '',
  476. corporate: '',
  477. inviter: '', //邀请人
  478. inviter_phone: '',
  479. }
  480. } else {
  481. tools.error(res.msg)
  482. }
  483. this.isAJAX = false;
  484. })
  485. }
  486. },
  487. }
  488. </script>
  489. <style lang="scss" scoped>
  490. .box-yuan {
  491. width: 32rpx;
  492. height: 32rpx;
  493. line-height: 32rpx;
  494. text-align: center;
  495. font-size: 18rpx;
  496. color: #061363;
  497. border-radius: 50%;
  498. margin-right: 16rpx;
  499. background-color: #CEB48F;
  500. }
  501. .w-246 {
  502. width: 246rpx;
  503. }
  504. .w-588 {
  505. width: 588rpx;
  506. }
  507. .zhw-img-text {
  508. width: 280rpx;
  509. height: 40rpx;
  510. margin-left: auto;
  511. margin-right: auto;
  512. }
  513. .playphone-box {
  514. width: 100%;
  515. height: 86rpx;
  516. background: linear-gradient(90deg, #E4BD85 0%, #CEB590 100%);
  517. border-radius: 10rpx;
  518. }
  519. .index-box {
  520. background-image: url('@/static/img/c-bg.png');
  521. background-size: 100% 100%;
  522. }
  523. .up-icon {
  524. width: 64rpx;
  525. height: 64rpx;
  526. margin: 30rpx auto 20rpx auto;
  527. }
  528. .swiper {
  529. flex: 1;
  530. width: 100%;
  531. overflow: auto;
  532. .swiper-item-f {
  533. width: 100%;
  534. height: 100%;
  535. display: flex;
  536. flex-direction: column;
  537. // flex-direction: column;
  538. .swiper-item {
  539. width: 100%;
  540. flex: 1;
  541. overflow: auto;
  542. }
  543. }
  544. }
  545. .logo-img {
  546. width: 136rpx;
  547. height: 80rpx;
  548. margin-top: 8rpx;
  549. }
  550. .music-img {
  551. margin-top: 16rpx;
  552. width: 56rpx;
  553. height: 56rpx;
  554. }
  555. .music-anumation {
  556. animation: rotation 2s linear infinite;
  557. }
  558. @keyframes rotation {
  559. from {
  560. transform: rotate(0deg);
  561. }
  562. to {
  563. transform: rotate(360deg);
  564. }
  565. }
  566. .index-1 {
  567. .img-text {
  568. width: 384rpx;
  569. height: 232rpx;
  570. margin: 76rpx auto 36rpx auto;
  571. }
  572. .img-xian {
  573. width: 10rpx;
  574. height: 174rpx;
  575. margin: 0 auto 154rpx auto;
  576. }
  577. .name-text {
  578. width: 392rpx;
  579. height: 88rpx;
  580. margin: 0 auto 36rpx auto;
  581. }
  582. .name-text-1 {
  583. width: 288rpx;
  584. height: 100rpx;
  585. margin: 0 auto 40rpx auto;
  586. }
  587. .name-text-2 {
  588. width: 424rpx;
  589. height: 146rpx;
  590. margin: 0 auto 104rpx auto;
  591. }
  592. .time-text {
  593. width: 274rpx;
  594. height: 37rpx;
  595. margin: 0 auto 140rpx auto;
  596. }
  597. }
  598. .index-2 {
  599. width: 686rpx;
  600. min-height: 132rpx;
  601. background: rgba(5, 19, 103, 0.5);
  602. border-radius: 12rpx;
  603. border: 2rpx solid #112495;
  604. margin: 40rpx auto;
  605. box-sizing: border-box;
  606. padding: 32rpx;
  607. input {
  608. width: 622rpx;
  609. height: 80rpx;
  610. background: #FFFFFF;
  611. border-radius: 10rpx;
  612. box-sizing: border-box;
  613. padding: 0 20rpx;
  614. font-size: 28rpx;
  615. }
  616. .save-box {
  617. width: 622rpx;
  618. height: 80rpx;
  619. background: linear-gradient(90deg, #EBC795 0%, #E3BB83 100%);
  620. border-radius: 10rpx;
  621. text-align: center;
  622. line-height: 80rpx;
  623. font-size: 38rpx;
  624. font-weight: 600;
  625. color: #3A2E1C;
  626. }
  627. .text-img {
  628. width: 302rpx;
  629. height: 116rpx;
  630. margin: 0 auto 44rpx auto;
  631. }
  632. .text-box {
  633. line-height: 68rpx;
  634. letter-spacing: 4rpx;
  635. display: block;
  636. text-indent: 72rpx;
  637. }
  638. .text-img-ty {
  639. width: 156rpx;
  640. height: 54rpx;
  641. margin-bottom: 24rpx;
  642. }
  643. .text-img-1 {
  644. width: 224rpx;
  645. height: 116rpx;
  646. margin: 0 auto 44rpx auto;
  647. }
  648. .text-img-2 {
  649. width: 214rpx;
  650. height: 116rpx;
  651. margin: 0 auto 44rpx auto;
  652. }
  653. .text-img-3 {
  654. width: 192rpx;
  655. height: 116rpx;
  656. margin: 0 auto 44rpx auto;
  657. }
  658. .text-img-4 {
  659. width: 314rpx;
  660. height: 116rpx;
  661. margin: 0 auto 44rpx auto;
  662. }
  663. .img-1 {
  664. width: 622rpx;
  665. height: 328rpx;
  666. border-radius: 10rpx;
  667. margin-bottom: 24rpx;
  668. }
  669. .img-2 {
  670. width: 300rpx;
  671. height: 214rpx;
  672. margin-bottom: 60rpx;
  673. }
  674. .img-3 {
  675. width: 622rpx;
  676. height: 354rpx;
  677. border-radius: 10rpx;
  678. margin-bottom: 40rpx;
  679. }
  680. .icon-img {
  681. width: 23rpx;
  682. height: 23rpx;
  683. margin-right: 8rpx;
  684. }
  685. .icon-img-1 {
  686. width: 24rpx;
  687. height: 24rpx;
  688. margin-right: 16rpx;
  689. }
  690. .b-f {
  691. position: relative;
  692. .b-c {
  693. position: absolute;
  694. right: 24rpx;
  695. bottom: 22rpx;
  696. width: 172rpx;
  697. height: 56rpx;
  698. background: #2F80ED;
  699. border-radius: 4rpx;
  700. text-align: center;
  701. line-height: 56rpx;
  702. font-size: 28rpx;
  703. color: #fff;
  704. }
  705. }
  706. }
  707. </style>