index.vue 25 KB

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