index.vue 25 KB

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