| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405 |
- <template>
- <view class="index-box box-border-box flex-common-css" @click.stop="play()">
- <view class="flex-justify-space box-border-box plr-32">
- <image class="logo-img" src="@/static/img/c-logo.png" mode="scaleToFill"></image>
- <!-- <image class="music-img" src="@/static/img/c-music.png" mode="scaleToFill"></image> -->
- </view>
- <swiper class="swiper" :vertical='true' @change="swiperChange">
- <!-- 邀请函 -->
- <swiper-item>
- <view class="swiper-item index-1" v-if="index == 0">
- <image class="img-text wow animate__animated animate__bounceInUp" src="@/static/img/yqh-text.png" mode="scaleToFill"></image>
- <view class="fs-48 fc-f text-align-center mb-16 wow animate__animated animate__bounceInLeft">振合网科技集团实体联盟</view>
- <view class="fs-32 fc-f text-align-center mb-72 wow animate__animated animate__bounceInRight">未来已来 一触即发</view>
- <image class="img-xian wow animate__animated animate__bounceInUp" src="@/static/img/xian.png" mode="scaleToFill"></image>
- <image class="name-text wow animate__animated animate__bounceInLeft" src="@/static/img/name-text.png" mode="scaleToFill"></image>
- <image class="time-text wow animate__animated animate__bounceInRight" src="@/static/img/time-text.png" mode="scaleToFill"></image>
- <image class="up-icon wow animate__animated animate__bounceInUp" src="@/static/img/c-up-icon.png" mode="scaleToFill"></image>
- </view>
- </swiper-item>
- <!-- 诚挚邀请 -->
- <swiper-item>
- <view class="swiper-item">
- <view class="index-2" v-if="index == 1">
- <image class="text-img wow animate__animated animate__bounceInUp" src="@/static/img/czyq-text.png" mode="scaleToFill"></image>
- <view class="fs-32 fc-F2D4A9 fw-b mb-24 wow animate__animated animate__bounceInUp">尊敬的{{userName?userName:'用户'}}</view>
- <view class="fs-32 fc-F2D4A9 text-box wow animate__animated animate__bounceInUp">
- 您好!感谢百忙之中阅读此邀请函。我们诚挚的邀请您参加于10月20日振合科技集团举办的2024年度招商说明会。我们深知在发展的道路上离不开您的信任与支持,我们取得的成绩中有您的辛勤付出。此次盛会邀请多位行业专家共聚一堂,特此诚邀您出席盛会,期待与您共话友情、 展望末来、共创属于我们新的商业传奇。
- </view>
- <view class="fc-F2D4A9 fw-b fs-32 text-align-right mt-32 wow animate__animated animate__bounceInUp">振合网科技集团</view>
- <view class="fs-28 fc-F2D4A9 text-align-right wow animate__animated animate__bounceInUp">2024年10月20日</view>
- </view>
- <image class="up-icon wow animate__animated animate__bounceInUp" src="@/static/img/c-up-icon.png" mode="scaleToFill"></image>
- </view>
- </swiper-item>
- <!-- 活动地址 -->
- <swiper-item>
- <view class="swiper-item">
- <view class="index-2" v-if="index == 2">
- <image class="text-img-1 wow animate__animated animate__bounceInUp" src="@/static/img/hdtd-text.png" mode="scaleToFill"></image>
- <image class="img-1 wow animate__animated animate__bounceInUp" src="@/static/img/h-1.png" mode="scaleToFill"></image>
-
- <view class="flex-justify-space">
- <image class="img-2 wow animate__animated animate__bounceInLeft" src="@/static/img/h-2.png" mode="scaleToFill"></image>
- <image class="img-2 wow animate__animated animate__bounceInRight" src="@/static/img/h-3.png" mode="scaleToFill"></image>
- </view>
-
- <view class="fc-F2D4A9 fs-40 text-align-center mb-16 wow animate__animated animate__bounceInUp">重庆丽星君顿酒店</view>
- <view class="fs-28 fc-F2D4A9 text-align-center wow animate__animated animate__bounceInUp">地址:重庆市渝北区服装城大道48号</view>
- </view>
- <image class="up-icon wow animate__animated animate__bounceInUp" src="@/static/img/c-up-icon.png" mode="scaleToFill"></image>
- </view>
- </swiper-item>
- <!-- 地址导航 -->
- <swiper-item>
- <view class="swiper-item" v-if="index == 3">
- <view class="index-2">
- <image class="text-img wow animate__animated animate__bounceInUp" src="@/static/img/dzdh-text.png" mode="scaleToFill"></image>
- <view class="b-f wow animate__animated animate__bounceInUp" @click="toMap()">
- <image class="img-3" src="@/static/img/map.png" mode="scaleToFill"></image>
- <view class="b-c">开始导航</view>
- </view>
- <view class="fc-F2D4A9 fs-36 text-align-center mb-16 wow animate__animated animate__bounceInLeft">会议地址</view>
- <view class="fc-F2D4A9 fs-28 text-align-center mb-32 wow animate__animated animate__bounceInRight">重庆丽星君顿酒店</view>
- <view class="fc-F2D4A9 fs-36 text-align-center mb-16 wow animate__animated animate__bounceInLeft">会议时间</view>
- <view class="fc-F2D4A9 fs-28 text-align-center mb-32 wow animate__animated animate__bounceInRight">10月20日 上午08:30</view>
- <view class="fc-F2D4A9 fs-36 text-align-center mb-16 wow animate__animated animate__bounceInLeft" @click="playPhone()">联系方式</view>
- <view class="fc-F2D4A9 fs-28 text-align-center mb-32 wow animate__animated animate__bounceInRight" @click="playPhone()">
- <uni-icons style="margin-right: 10rpx;" type="phone-filled" color="#f2d4a9" size="14"></uni-icons>
- 023-67177907
- </view>
- </view>
- <image class="up-icon wow animate__animated animate__bounceInUp" src="@/static/img/c-up-icon.png" mode="scaleToFill"></image>
- </view>
- </swiper-item>
- <!-- 参与预约 -->
- <swiper-item>
- <view class="swiper-item" v-if="index == 4">
- <view class="index-2">
- <image class="text-img-2 wow animate__animated animate__bounceInUp" src="@/static/img/cyyy-text.png" mode="scaleToFill"></image>
- <view class="mb-32">
- <view class="fc-F2D4A9 fs-32 mb-16 wow animate__animated animate__bounceInLeft">您的姓名<span class="fc-ED301D fs-32">*</span></view>
- <input class="wow animate__animated animate__bounceInRight" v-model="fromData.name" type="text" placeholder="请输入您的姓名">
- </view>
- <view class="mb-32">
- <view class="fc-F2D4A9 fs-32 mb-16 wow animate__animated animate__bounceInLeft">您的手机号<span class="fc-ED301D fs-32">*</span></view>
- <input class="wow animate__animated animate__bounceInRight" v-model="fromData.phone" type="number" placeholder="请输入您的手机号">
- </view>
- <view class="mb-32">
- <view class="fc-F2D4A9 fs-32 mb-16 wow animate__animated animate__bounceInLeft">您的公司名称<span class="fc-ED301D fs-32">*</span></view>
- <input class="wow animate__animated animate__bounceInRight" v-model="fromData.corporate" type="text" placeholder="请输入您的公司名称">
- </view>
- <view class="mb-32">
- <view class="fc-F2D4A9 fs-32 mb-16 wow animate__animated animate__bounceInLeft">邀请人<span class="fc-ED301D fs-32">*</span></view>
- <input class="wow animate__animated animate__bounceInRight" v-model="fromData.inviter" type="text" placeholder="请输入您的邀请人">
- </view>
- <view class="mb-72">
- <view class="fc-F2D4A9 fs-32 mb-16 wow animate__animated animate__bounceInLeft">邀请人手机号<span class="fc-ED301D fs-32">*</span></view>
- <input class="wow animate__animated animate__bounceInRight" v-model="fromData.inviter_phone" type="number" placeholder="请输入邀请人的手机号">
- </view>
-
- <view class="save-box wow animate__animated animate__bounceInUp" @click="save()">提交</view>
- </view>
- </view>
- </swiper-item>
- </swiper>
- </view>
- </template>
- <script>
- import {getJsConfig, userParticipation} from '@/api/user.js';
- import tools from "@/service/tools";
- import wxJs from "jweixin-module"
- export default {
- components: {},
- data() {
- return {
- userName:'',
- fromData:{
- m_id:'',
- name:'',
- phone:'',
- corporate:'',
- inviter:'',//邀请人
- inviter_phone:'',
- },
- isAJAX:false,
- index:0,
- audioServe:undefined,
- isPlay:false,
- isAutoPlay:false,
- }
- },
- onshow() {
- this.$wow.init();
- },
- mounted() {
- this.userName = uni.getStorageSync('userName');
- let isWeiXin = tools.isWx();
- if(isWeiXin){
- this.getJsConfig()
- }
- this.musicPlay()
- },
- methods: {
- musicPlay() {
- if (!this.audioServe) {
- this.audioServe = uni.createInnerAudioContext();
- this.audioServe.autoplay = true;
- this.audioServe.loop = true;
- this.audioServe.obeyMuteSwitch = true;
- this.audioServe.src = 'https://jhnewshop.oss-cn-chengdu.aliyuncs.com/RockHouseJail.mp3';
- }
- this.audioServe.play();
- this.audioServe.onPlay(() => {
- this.isPlay = true;
- this.isAutoPlay = true
- })
- },
- play(){
- if(!this.isPlay && this.audioServe){
- this.audioServe.play();
- this.audioServe.onPlay(() => {
- this.isPlay = true;
- this.isAutoPlay = true
- })
- }
- },
- musicPause() {
- if (this.audioServe) {
- this.audioServe.pause();
- this.audioServe.onPause(() => {
- this.isPlay = false;
- });
- }
- },
- getJsConfig(){
- console.log(window.location)
- let url = window.location.href.split('#')[0];
- getJsConfig({
- 'url': url
- }).then(res=>{
- if (res.code===1){
- wxJs.config({
- debug: false,
- appId: res.data.appid,
- nonceStr: res.data.noncestr,
- signature: res.data.signature,
- timestamp: res.data.timestamp * 1, // 必填,生成签名的时间戳
- jsApiList: ['updateAppMessageShareData', 'updateTimelineShareData']
- })
- wxJs.ready(() => {
- //自定义“分享给朋友”
- // this.musicPlay()
- wxJs.updateAppMessageShareData({
- title: '利用互联网模式,让传统代理商实现10倍收益',
- desc: '振合网实体联盟全国招商中',
- link: "https://enroll.jhcs888.com/#/" , // 分享链接,该链接域名或路径必须与当前页面对应的公众号 JS 安全域名一致
- imgUrl: 'https://jhnewshop.oss-cn-chengdu.aliyuncs.com/storage/attest/20210927/949e48fb7c286836097efdd4ba4d0bd9.jpg', // 分享图标
- success: function() {
- // 设置成功
- }
- })
- //自定义“分享到朋友圈”
- wxJs.updateTimelineShareData({
- title: '利用互联网模式,让传统代理商实现10倍收益', // 分享标题
- desc: '振合网实体联盟全国招商中',
- link: "https://enroll.jhcs888.com/#/", // 分享链接,该链接域名或路径必须与当前页面对应的公众号 JS 安全域名一致
- imgUrl: 'https://jhnewshop.oss-cn-chengdu.aliyuncs.com/storage/attest/20210927/949e48fb7c286836097efdd4ba4d0bd9.jpg', // 分享图标
- success: function() {
- // 设置成功
- }
- })
- });
- }
- })
- },
- playPhone() {
- uni.makePhoneCall({
- phoneNumber: '023-67177907'
- });
- },
-
- swiperChange(e){
- this.play()
- if(e.detail.current!=this.index){
- this.index = e.detail.current;
- }
- },
- toMap(){
- uni.openLocation({
- latitude: 29.665085,
- longitude: 106.615366,
- scale: 18,
- name: '重庆丽星君顿酒店',
- address: '重庆市渝北区服装城大道48号',
- success() {},
- fail(error) {}
- });
- },
- save(){
- if(this.isAJAX){
- return
- }
- this.isAJAX = true;
- this.fromData.m_id = uni.getStorageSync('m_id');
- userParticipation(this.fromData).then((res)=>{
- if(res.code === 1){
- tools.success('预约成功')
- this.fromData = {
- m_id:'',
- name:'',
- phone:'',
- corporate:'',
- inviter:'',//邀请人
- inviter_phone:'',
- }
- }else{
- tools.error(res.msg)
- }
- this.isAJAX = false;
- })
- }
- },
- }
- </script>
- <style lang="scss" scoped>
- .index-box{
- background-image: url('@/static/img/c-bg.png');
- background-size: 100% 100%;
- }
- .up-icon{
- width: 64rpx;
- height: 64rpx;
- margin: 0 auto;
- }
- .swiper{
- flex: 1;
- width: 100%;
- height: 100%;
- .swiper-item{
- width: 100%;
- height: 100%;
- }
- }
- .logo-img{
- width: 136rpx;
- height: 79rpx;
- margin-top: 8rpx;
- }
- .music-img{
- margin-top: 16rpx;
- width: 56rpx;
- height: 56rpx;
- }
- .index-1{
- .img-text{
- width: 384rpx;
- height: 232rpx;
- margin: 76rpx auto 36rpx auto;
- }
- .img-xian{
- width: 10rpx;
- height: 174rpx;
- margin: 0 auto 154rpx auto;
- }
- .name-text{
- width: 288rpx;
- height: 32rpx;
- margin: 0 auto 10rpx auto;
- }
- .time-text{
- width: 274rpx;
- height: 37rpx;
- margin: 0 auto 140rpx auto;
- }
- }
- .index-2{
- width: 686rpx;
- min-height: 1032rpx;
- background: rgba(23,49,74,0.51);
- border-radius: 12rpx;
- border: 2rpx solid rgba(51,121,163,0.8);
- margin: 40rpx auto;
- box-sizing: border-box;
- padding: 32rpx;
- input{
- width: 622rpx;
- height: 80rpx;
- background: #FFFFFF;
- border-radius: 10rpx;
- box-sizing: border-box;
- padding: 0 20rpx;
- font-size: 28rpx;
- }
- .save-box{
- width: 622rpx;
- height: 80rpx;
- background: linear-gradient( 90deg, #EBC795 0%, #E3BB83 100%);
- border-radius: 10rpx;
- text-align: center;
- line-height: 80rpx;
- font-size: 38rpx;
- font-weight: 600;
- color: #3A2E1C;
- }
- .text-img{
- width: 302rpx;
- height: 116rpx;
- margin: 0 auto 44rpx auto;
- }
- .text-box{
- line-height: 68rpx;
- letter-spacing: 4rpx;
- display: block;
- text-indent: 72rpx;
- }
- .text-img-1{
- width: 224rpx;
- height: 116rpx;
- margin: 0 auto 44rpx auto;
- }
- .text-img-2{
- width: 214rpx;
- height: 116rpx;
- margin: 0 auto 44rpx auto;
- }
- .img-1{
- width: 622rpx;
- height: 328rpx;
- border-radius: 10rpx;
- margin-bottom: 24rpx;
- }
- .img-2{
- width: 300rpx;
- height: 214rpx;
- margin-bottom: 60rpx;
- }
- .img-3{
- width: 622rpx;
- height: 354rpx;
- border-radius: 10rpx;
- margin-bottom: 40rpx;
- }
- .b-f{
- position: relative;
- .b-c{
- position: absolute;
- right: 24rpx;
- bottom: 22rpx;
-
- width: 172rpx;
- height: 56rpx;
- background: #2F80ED;
- border-radius: 4rpx;
- text-align: center;
- line-height: 56rpx;
- font-size: 28rpx;
- color: #fff;
- }
- }
- }
- </style>
|