index.vue 24 KB

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