index.vue 26 KB

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