index.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. <template>
  2. <view class="index-box box-border-box flex-common-css">
  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" src="@/static/img/c-music.png" mode="scaleToFill"></image> -->
  6. </view>
  7. <swiper class="swiper" :vertical='true' @change="swiperChange">
  8. <!-- 邀请函 -->
  9. <swiper-item>
  10. <view class="swiper-item index-1" v-if="index == 0">
  11. <image class="img-text wow animate__animated animate__bounceInUp" src="@/static/img/yqh-text.png" mode="scaleToFill"></image>
  12. <view class="fs-48 fc-f text-align-center mb-16 wow animate__animated animate__bounceInLeft">振合网科技集团实体联盟</view>
  13. <view class="fs-32 fc-f text-align-center mb-72 wow animate__animated animate__bounceInRight">未来已来 一触即发</view>
  14. <image class="img-xian wow animate__animated animate__bounceInUp" src="@/static/img/xian.png" mode="scaleToFill"></image>
  15. <image class="name-text wow animate__animated animate__bounceInLeft" src="@/static/img/name-text.png" mode="scaleToFill"></image>
  16. <image class="time-text wow animate__animated animate__bounceInRight" src="@/static/img/time-text.png" mode="scaleToFill"></image>
  17. <image class="up-icon wow animate__animated animate__bounceInUp" src="@/static/img/c-up-icon.png" mode="scaleToFill"></image>
  18. </view>
  19. </swiper-item>
  20. <!-- 诚挚邀请 -->
  21. <swiper-item>
  22. <view class="swiper-item">
  23. <view class="index-2" v-if="index == 1">
  24. <image class="text-img wow animate__animated animate__bounceInUp" src="@/static/img/czyq-text.png" mode="scaleToFill"></image>
  25. <view class="fs-32 fc-F2D4A9 fw-b mb-24 wow animate__animated animate__bounceInUp">尊敬的{{userName?userName:'用户'}}</view>
  26. <view class="fs-32 fc-F2D4A9 text-box wow animate__animated animate__bounceInUp">
  27. 您好!感谢百忙之中阅读此邀请函。
  28. 我们诚挚的邀请您参加于10月20日振合
  29. 科技集团举办的2024年度招商说明会。
  30. 我们深知在发展的道路上离不开您的信
  31. 任与支持,我们取得的成绩中有您的辛
  32. 勤付出。此次盛会邀请多位行业专家共
  33. 聚一堂,特此诚邀您出席盛会,期待与
  34. 您共话友情、 展望末来、共创属于我们
  35. 新的商业传奇。
  36. </view>
  37. <view class="fc-F2D4A9 fw-b fs-32 text-align-right mt-32 wow animate__animated animate__bounceInUp">振合网科技集团</view>
  38. <view class="fs-28 fc-F2D4A9 text-align-right wow animate__animated animate__bounceInUp">2024年10月20日</view>
  39. </view>
  40. <image class="up-icon wow animate__animated animate__bounceInUp" src="@/static/img/c-up-icon.png" mode="scaleToFill"></image>
  41. </view>
  42. </swiper-item>
  43. <!-- 活动地址 -->
  44. <swiper-item>
  45. <view class="swiper-item">
  46. <view class="index-2" v-if="index == 2">
  47. <image class="text-img-1 wow animate__animated animate__bounceInUp" src="@/static/img/hdtd-text.png" mode="scaleToFill"></image>
  48. <image class="img-1 wow animate__animated animate__bounceInUp" src="@/static/img/h-1.png" mode="scaleToFill"></image>
  49. <view class="flex-justify-space">
  50. <image class="img-2 wow animate__animated animate__bounceInLeft" src="@/static/img/h-2.png" mode="scaleToFill"></image>
  51. <image class="img-2 wow animate__animated animate__bounceInRight" src="@/static/img/h-3.png" mode="scaleToFill"></image>
  52. </view>
  53. <view class="fc-F2D4A9 fs-40 text-align-center mb-16 wow animate__animated animate__bounceInUp">重庆丽星君顿酒店</view>
  54. <view class="fs-28 fc-F2D4A9 text-align-center wow animate__animated animate__bounceInUp">地址:重庆市渝北区服装城大道48号</view>
  55. </view>
  56. <image class="up-icon wow animate__animated animate__bounceInUp" src="@/static/img/c-up-icon.png" mode="scaleToFill"></image>
  57. </view>
  58. </swiper-item>
  59. <!-- 地址导航 -->
  60. <swiper-item>
  61. <view class="swiper-item" v-if="index == 3">
  62. <view class="index-2">
  63. <image class="text-img wow animate__animated animate__bounceInUp" src="@/static/img/dzdh-text.png" mode="scaleToFill"></image>
  64. <view class="b-f wow animate__animated animate__bounceInUp" @click="toMap()">
  65. <image class="img-3" src="@/static/img/map.png" mode="scaleToFill"></image>
  66. <view class="b-c">开始导航</view>
  67. </view>
  68. <view class="fc-F2D4A9 fs-36 text-align-center mb-16 wow animate__animated animate__bounceInLeft">会议地址</view>
  69. <view class="fc-F2D4A9 fs-28 text-align-center mb-32 wow animate__animated animate__bounceInRight">重庆丽星君顿酒店</view>
  70. <view class="fc-F2D4A9 fs-36 text-align-center mb-16 wow animate__animated animate__bounceInLeft">会议时间</view>
  71. <view class="fc-F2D4A9 fs-28 text-align-center mb-32 wow animate__animated animate__bounceInRight">10月20日早 上08:30</view>
  72. <view class="fc-F2D4A9 fs-36 text-align-center mb-16 wow animate__animated animate__bounceInLeft">联系方式</view>
  73. <view class="fc-F2D4A9 fs-28 text-align-center mb-32 wow animate__animated animate__bounceInRight">023-67491176</view>
  74. </view>
  75. <image class="up-icon wow animate__animated animate__bounceInUp" src="@/static/img/c-up-icon.png" mode="scaleToFill"></image>
  76. </view>
  77. </swiper-item>
  78. <!-- 参与预约 -->
  79. <swiper-item>
  80. <view class="swiper-item" v-if="index == 4">
  81. <view class="index-2">
  82. <image class="text-img-2 wow animate__animated animate__bounceInUp" src="@/static/img/cyyy-text.png" mode="scaleToFill"></image>
  83. <view class="mb-32">
  84. <view class="fc-F2D4A9 fs-32 mb-16 wow animate__animated animate__bounceInLeft">您的姓名<span class="fc-ED301D fs-32">*</span></view>
  85. <input class="wow animate__animated animate__bounceInRight" v-model="fromData.name" type="text" placeholder="请输入您的姓名">
  86. </view>
  87. <view class="mb-32">
  88. <view class="fc-F2D4A9 fs-32 mb-16 wow animate__animated animate__bounceInLeft">您的手机号<span class="fc-ED301D fs-32">*</span></view>
  89. <input class="wow animate__animated animate__bounceInRight" v-model="fromData.phone" type="number" placeholder="请输入您的手机号">
  90. </view>
  91. <view class="mb-32">
  92. <view class="fc-F2D4A9 fs-32 mb-16 wow animate__animated animate__bounceInLeft">您的公司名称</view>
  93. <input class="wow animate__animated animate__bounceInRight" v-model="fromData.corporate" type="text" placeholder="请输入您的公司名称">
  94. </view>
  95. <view class="mb-32">
  96. <view class="fc-F2D4A9 fs-32 mb-16 wow animate__animated animate__bounceInLeft">邀请人</view>
  97. <input class="wow animate__animated animate__bounceInRight" v-model="fromData.inviter" type="text" placeholder="请输入您的邀请人">
  98. </view>
  99. <view class="mb-72">
  100. <view class="fc-F2D4A9 fs-32 mb-16 wow animate__animated animate__bounceInLeft">邀请人手机号<span class="fc-ED301D fs-32">*</span></view>
  101. <input class="wow animate__animated animate__bounceInRight" v-model="fromData.inviter_phone" type="number" placeholder="请输入邀请人的手机号">
  102. </view>
  103. <view class="save-box wow animate__animated animate__bounceInUp" @click="save()">提交</view>
  104. </view>
  105. </view>
  106. </swiper-item>
  107. </swiper>
  108. </view>
  109. </template>
  110. <script>
  111. import {userParticipation} from '@/api/user.js';
  112. import tools from "@/service/tools";
  113. export default {
  114. components: {},
  115. data() {
  116. return {
  117. userName:'',
  118. fromData:{
  119. m_id:'',
  120. name:'',
  121. phone:'',
  122. corporate:'',
  123. inviter:'',//邀请人
  124. inviter_phone:'',
  125. },
  126. isAJAX:false,
  127. index:0,
  128. }
  129. },
  130. onshow() {
  131. this.userName = uni.getStorageSync('userNmae');
  132. this.$wow.init();
  133. },
  134. methods: {
  135. swiperChange(e){
  136. if(e.detail.current!=this.index){
  137. this.index = e.detail.current;
  138. }
  139. },
  140. toMap(){
  141. uni.openLocation({
  142. latitude: 29.665085,
  143. longitude: 106.615366,
  144. scale: 18,
  145. name: '重庆丽星君顿酒店',
  146. address: '重庆市渝北区服装城大道48号',
  147. success() {},
  148. fail(error) {}
  149. });
  150. },
  151. save(){
  152. if(this.isAJAX){
  153. return
  154. }
  155. this.isAJAX = true;
  156. this.fromData.m_id = uni.getStorageSync('m_id');
  157. userParticipation(this.fromData).then((res)=>{
  158. if(res.code === 1){
  159. tools.success('预约成功')
  160. this.fromData = {
  161. m_id:'',
  162. name:'',
  163. phone:'',
  164. corporate:'',
  165. inviter:'',//邀请人
  166. inviter_phone:'',
  167. }
  168. }else{
  169. tools.error(res.msg)
  170. }
  171. this.isAJAX = false;
  172. })
  173. }
  174. },
  175. }
  176. </script>
  177. <style lang="scss" scoped>
  178. .index-box{
  179. background-image: url('@/static/img/c-bg.png');
  180. background-size: 100% 100%;
  181. }
  182. .up-icon{
  183. width: 64rpx;
  184. height: 64rpx;
  185. margin: 0 auto;
  186. }
  187. .swiper{
  188. flex: 1;
  189. width: 100%;
  190. height: 100%;
  191. .swiper-item{
  192. width: 100%;
  193. height: 100%;
  194. }
  195. }
  196. .logo-img{
  197. width: 136rpx;
  198. height: 79rpx;
  199. margin-top: 8rpx;
  200. }
  201. .music-img{
  202. margin-top: 16rpx;
  203. width: 56rpx;
  204. height: 56rpx;
  205. }
  206. .index-1{
  207. .img-text{
  208. width: 384rpx;
  209. height: 232rpx;
  210. margin: 76rpx auto 36rpx auto;
  211. }
  212. .img-xian{
  213. width: 10rpx;
  214. height: 174rpx;
  215. margin: 0 auto 154rpx auto;
  216. }
  217. .name-text{
  218. width: 288rpx;
  219. height: 32rpx;
  220. margin: 0 auto 10rpx auto;
  221. }
  222. .time-text{
  223. width: 274rpx;
  224. height: 37rpx;
  225. margin: 0 auto 140rpx auto;
  226. }
  227. }
  228. .index-2{
  229. width: 686rpx;
  230. min-height: 1032rpx;
  231. background: rgba(23,49,74,0.51);
  232. border-radius: 12rpx;
  233. border: 2rpx solid rgba(51,121,163,0.8);
  234. margin: 40rpx auto;
  235. box-sizing: border-box;
  236. padding: 32rpx;
  237. input{
  238. width: 622rpx;
  239. height: 80rpx;
  240. background: #FFFFFF;
  241. border-radius: 10rpx;
  242. box-sizing: border-box;
  243. padding: 0 20rpx;
  244. font-size: 28rpx;
  245. }
  246. .save-box{
  247. width: 622rpx;
  248. height: 80rpx;
  249. background: linear-gradient( 90deg, #EBC795 0%, #E3BB83 100%);
  250. border-radius: 10rpx;
  251. text-align: center;
  252. line-height: 80rpx;
  253. font-size: 38rpx;
  254. font-weight: 600;
  255. color: #3A2E1C;
  256. }
  257. .text-img{
  258. width: 302rpx;
  259. height: 116rpx;
  260. margin: 0 auto 44rpx auto;
  261. }
  262. .text-box{
  263. line-height: 68rpx;
  264. letter-spacing: 4rpx;
  265. }
  266. .text-img-1{
  267. width: 224rpx;
  268. height: 116rpx;
  269. margin: 0 auto 44rpx auto;
  270. }
  271. .text-img-2{
  272. width: 214rpx;
  273. height: 116rpx;
  274. margin: 0 auto 44rpx auto;
  275. }
  276. .img-1{
  277. width: 622rpx;
  278. height: 328rpx;
  279. border-radius: 10rpx;
  280. margin-bottom: 24rpx;
  281. }
  282. .img-2{
  283. width: 300rpx;
  284. height: 214rpx;
  285. margin-bottom: 60rpx;
  286. }
  287. .img-3{
  288. width: 622rpx;
  289. height: 354rpx;
  290. border-radius: 10rpx;
  291. margin-bottom: 40rpx;
  292. }
  293. .b-f{
  294. position: relative;
  295. .b-c{
  296. position: absolute;
  297. right: 24rpx;
  298. bottom: 22rpx;
  299. width: 172rpx;
  300. height: 56rpx;
  301. background: #2F80ED;
  302. border-radius: 4rpx;
  303. text-align: center;
  304. line-height: 56rpx;
  305. font-size: 28rpx;
  306. color: #fff;
  307. }
  308. }
  309. }
  310. </style>