index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655
  1. <template>
  2. <view class="home">
  3. <MyNav title="洲际酒店集团中国西区" bgColor="" :backIcon="false"></MyNav>
  4. <!-- swiper -->
  5. <view class="home-swiper">
  6. <uni-swiper-dot :info="infoList" :current="current1" :mode="mode" :dots-styles="dotsStyles">
  7. <swiper class="swiper-box" @change="change1" circular>
  8. <swiper-item v-for="(item ,index) in infoList" :key="index">
  9. <view class="swiper-item" v-if="item.resource_type == 1"
  10. @click="jumpHAppID(item.jump_type,item.jump_config)">
  11. <image style="width: 100%;height:592rpx;" :src="item.img" mode="aspectFill"></image>
  12. </view>
  13. <view class="swiper-item" v-if="item.resource_type == 2">
  14. <video id="swiperVideo" ref="swiperVideo" style="width: 100%; height: 592rpx;"
  15. :src="item.video_url" controls :enable-progress-gesture="false">
  16. </video>
  17. </view>
  18. </swiper-item>
  19. </swiper>
  20. </uni-swiper-dot>
  21. </view>
  22. <!-- 金刚图 -->
  23. <view class="home-nav">
  24. <view class="home-nav-item" v-for="(item,index) in navList" :key="index"
  25. @click="jumpHAppID(item.jump_type,item.jump_config)">
  26. <image style="width: 101.96rpx;height: 103.96rpx;" :src="item.img" mode=""></image>
  27. <text style="color: #333;font-size: 24rpx;margin-top: 18rpx; ">{{item.title}}</text>
  28. </view>
  29. </view>
  30. <!-- 活动专区 -->
  31. <view class="home-special-area">
  32. <view class="home-special-area-left">
  33. <text>非凡西区</text>
  34. <view class="text-shadow"></view>
  35. <image style="width:16rpx;height: 16rpx;margin-left: 14rpx;" src="/static/icon/symbol.png" mode="">
  36. </image>
  37. </view>
  38. <view @click="goSpecialList" class="home-special-area-right">
  39. <text>全部</text>
  40. <image style="width: 12rpx; height: 20rpx;margin-left: 8rpx;" src="/static/icon/right01.png" mode="">
  41. </image>
  42. </view>
  43. </view>
  44. <!-- 活动图片 -->
  45. <view class="home-special-img">
  46. <template v-for="(item,index) in specialList" >
  47. <view class="ListItem" v-if="item.show_status" :key="index" @click="activeDetail(item.id)">
  48. <image style="width: 312rpx;height: 200rpx; border-radius: 12rpx; "
  49. :src="item.banners?item.cover_img:'http://t9.9026.com/imgs/Kudosbg.png'" mode=""></image>
  50. <view class="kudosicon" @click.stop="kudosActive(item.id,index)">
  51. <image style="width:24rpx;height: 24rpx;" src="/static/icon/Kudos.png" v-if="item.is_like==0">
  52. </image>
  53. <image style="width:24rpx;height: 24rpx;" src="/static/icon/Kudos(1).png" v-if="item.is_like==1">
  54. </image>
  55. </view>
  56. <text style="color: #333;font-weight: bold;font-size: 28rpx;">{{item.title}}</text>
  57. </view>
  58. </template>
  59. </view>
  60. <!-- 广告图 -->
  61. <view class="home-banner" v-if="!isShowAdver">
  62. <view class="home-banner-img" v-if="in_page==1 && type == 1 ">
  63. <image style="width: 100%; height: 576rpx; border-radius: 12rpx;" :src="advData.img" mode="" @click="jumpHAppID(advData.jump_type, advData.jump_config)"></image>
  64. <image @click="cleanCoverImg" class="img-clean" style="width: 20rpx; height: 20rpx; "
  65. src="/static/icon/clean.png" mode="">
  66. </image>
  67. </view>
  68. <view class="home-banner-img" v-if="in_page==1 && type == 2">
  69. <image class="banner-img" v-if="!isOpenVideo" @click="openVideoPlay"
  70. style="width: 100%; height: 576rpx; border-radius: 12rpx;" :src="videoCoverImg" mode=""></image>
  71. <image @click="cleanCoverImg" class="img-clean" style="width: 20rpx; height: 20rpx; "
  72. src="/static/icon/clean.png" mode="">
  73. </image>
  74. <video class="baner-video" id="myVideo" ref="myVideo"
  75. style="width: 100%; height: 576rpx;border-radius: 12rpx; " :src="videoSrc" controls
  76. :enable-progress-gesture="false">
  77. </video>
  78. </view>
  79. </view>
  80. <movable-area class="movableArea">
  81. <movable-view class="movableView" direction="all" x="630rpx" y="700rpx">
  82. <view class="img-IHg" @click="goJoin">
  83. <image style="width: 64rpx; height: 58rpx; " src="/static/icon/vip.png" mode=""></image>
  84. </view>
  85. </movable-view>
  86. </movable-area>
  87. <!-- 广告的附图 -->
  88. <view class="home-attach" @click="jumpHAppID(advInsetImg.jump_type, advInsetImg.jump_config)">
  89. <image style="width: 690rpx;height: 156rpx;border-radius: 79rpx;" :src="advInsetImg.img" mode=""></image>
  90. </view>
  91. <!-- 酒店推荐 -->
  92. <view class="home-hotel home-special-area">
  93. <view class="home-special-area-left">
  94. <text>西区优品</text>
  95. <view class="text-shadow"></view>
  96. <image style="width:16rpx;height: 16rpx;margin-left: 14rpx;" src="/static/icon/symbol.png" mode="">
  97. </image>
  98. </view>
  99. </view>
  100. <!-- 酒店推荐图片 -->
  101. <view class="home-hotel-img">
  102. <view class="home-hotel-img-content">
  103. <!-- <view @click="produceDetail(item.id)" class="home-hotel-img-content-item" v-for="(item,index) in goodsList" :key="index"
  104. :style="{marginTop:item.marginTop || 0 }">
  105. <image class="home-hotel-img-content-item-img"
  106. :class="item.short?'home-hotel-img-content-item-img': 'home-hotel-img-content-item-img-long' "
  107. :src="item.cover_img" mode=""></image>
  108. <view class="text">
  109. <text class="text-top">{{item.name}}</text>
  110. </view> -->
  111. <view class="home-hotel-img-content-item" v-for="(item,index) in goodsList" :key="index"
  112. :style="{marginTop:item.marginTop || 0 }">
  113. <image class="home-hotel-img-content-item-img"
  114. :class="item.short?'home-hotel-img-content-item-img': 'home-hotel-img-content-item-img-long' "
  115. :src="item.cover_img" mode=""></image>
  116. <view class="text">
  117. <text class="text-top">{{item.name}}</text>
  118. </view>
  119. </view>
  120. </view>
  121. <view class="home-hotel-img-more" @click="goProduceList">
  122. <text>查看更多商品</text>
  123. </view>
  124. </view>
  125. <!-- 酒店品牌 -->
  126. <view class="home-brand home-special-area">
  127. <view class="home-special-area-left">
  128. <text>洲际酒店集团品牌</text>
  129. <view class="text-shadow"></view>
  130. <image style="width:16rpx;height: 16rpx;margin-left: 14rpx;" src="/static/icon/symbol.png" mode="">
  131. </image>
  132. </view>
  133. </view>
  134. <!-- 酒店品牌图片 -->
  135. <view class="home-brand-img">
  136. <uni-swiper-dot :info="info" mode="default" :current="current2" :dots-styles="dotsStylesBand">
  137. <swiper class="swiper-box" circular @change="change2">
  138. <swiper-item v-for="(items ,index) in info" :key="index">
  139. <view v-for="(item ,j) in items" :key="j" class="swiper-item"
  140. @click="jumpHAppID(item.jump_type,item.jump_config)">
  141. <image style="width:144rpx;height:142rpx;" :src="item.img" mode="aspectFill"></image>
  142. </view>
  143. </swiper-item>
  144. </swiper>
  145. </uni-swiper-dot>
  146. </view>
  147. <!-- 触底 -->
  148. <view class="home-bottom">
  149. <uni-load-more :status="status" color="#CCCCCC" :content-text="contentText" />
  150. </view>
  151. <!-- 弹窗广告 -->
  152. <uni-popup ref="popup" type="center">
  153. <view class="popup-banner">
  154. <image @click="jumpHAppID(popupData.jump_type, popupData.jump_config)" style="width: 656rpx;height: 916rpx;border-radius: 12rpx;" :src="popupData.img">
  155. </image>
  156. <view class="popup-banner-clean" @click='closePopupBanner'>
  157. <image style="width: 20rpx; height: 20rpx; " src="/static/icon/clean.png" mode="">
  158. </view>
  159. </view>
  160. </uni-popup>
  161. <view style="height:168rpx; background-color: #f9f9f9; "></view>
  162. <tab-bar></tab-bar>
  163. </view>
  164. </template>
  165. <script>
  166. import TabBar from '../../components/TabBar/tabbar.vue'
  167. import SwiperBox from '../../components/SwiperBox/index.vue'
  168. import MyNav from "@/components/my-nav/my-nav.vue"
  169. export default {
  170. components: {
  171. TabBar,
  172. SwiperBox,
  173. MyNav
  174. },
  175. data() {
  176. return {
  177. //用户个人信息,判断是否登录
  178. admin: '',
  179. //获取token
  180. data: {},
  181. //录播图是展示视频1:图片2:视频
  182. resource_type: '',
  183. //广告弹框跳转
  184. jup_type: '',
  185. jump_config: '',
  186. //广告弹框图
  187. popupData:{},
  188. //弹窗的类型 1只弹一次首次 2就是每次都弹啊
  189. times_type:'',
  190. //弹窗的显示0不显示 1显示
  191. popupImgStatus:'',
  192. //视频封面图
  193. isOpenVideo: false,
  194. videoCoverImg: '',
  195. videoSrc: '',
  196. in_page: '',
  197. type: '',
  198. //隐藏广告图
  199. isShowAdver: false,
  200. //广告图
  201. advertis: '',
  202. advData: {},
  203. //广告附图展示图片
  204. advertisInsetImg: '',
  205. advInsetImg:{},
  206. //广告图展示图片:
  207. advertisImg: '',
  208. //广告图展示视频
  209. goodsList: [
  210. {
  211. cover_img:'https://t9.9026.com/imgs/11.png',
  212. name:'2023新春福兔系列礼盒 倾心甄选 待你拥有'
  213. },
  214. {
  215. cover_img:'https://t9.9026.com/imgs/22.png',
  216. name:'2023新春福兔系列礼盒 倾心甄选 待你拥有'
  217. },
  218. {
  219. cover_img:'https://t9.9026.com/imgs/33.png',
  220. name:'2023新春福兔系列礼盒 倾心甄选 待你拥有'
  221. },
  222. {
  223. cover_img:'https://t9.9026.com/imgs/44.png',
  224. name:'2023新春福兔系列礼盒 倾心甄选 待你拥有'
  225. },
  226. ],
  227. status: 'noMore',
  228. contentText: {
  229. contentdown: '查看更多',
  230. contentrefresh: '加载中',
  231. contentnomore: '—— 已经到底啦 ——'
  232. },
  233. infoList: [],
  234. //轮播图
  235. info: [],
  236. dotsStyles: {
  237. bottom: 24,
  238. backgroundColor: 'rgba(255, 255, 255, .3)',
  239. border: '1px rgba(255, 255, 255, .3) solid',
  240. color: '#fff',
  241. selectedBackgroundColor: 'rgba(255, 255, 255, 1)',
  242. selectedBorder: '1px rgba(255, 255, 255, 1) solid'
  243. },
  244. dotsStylesBand: {
  245. bottom: -24,
  246. backgroundColor: 'rgba(198, 198, 198, 1)',
  247. border: '1px rgba(0, 0, 0, .3) solid',
  248. color: '#fff',
  249. selectedBackgroundColor: 'rgba(151, 151, 151, 1)',
  250. selectedBorder: '1px rgba(0, 0, 0, .9) solid'
  251. },
  252. //指示点显示位置
  253. current1: 0,
  254. current2: 0,
  255. //指示点模式
  256. mode: 'dot',
  257. // 金刚图
  258. navList: [],
  259. //活动专区
  260. specialList: []
  261. }
  262. },
  263. onTabItemTap(e){
  264. console.log(e)
  265. },
  266. // 下拉刷新
  267. onPullDownRefresh() {
  268. setTimeout(() => {
  269. uni.stopPullDownRefresh();
  270. this.$store.dispatch('user/allset', null)
  271. this.getAllSet()
  272. this.getList()
  273. }, 1000);
  274. },
  275. onReady: function(res) {
  276. this.videoContext = uni.createVideoContext('myVideo')
  277. },
  278. onShow() {
  279. //获取token
  280. this.getmsg()
  281. this.admin = this.$store.getters.userInfo
  282. },
  283. onLoad() {
  284. // this.getGoodsList()
  285. this.getAllSet()
  286. },
  287. methods: {
  288. // **************** Data ***************//
  289. //获取配置数据
  290. getAllSet() {
  291. this.$api.document.allSet().then(res => {
  292. this.$store.dispatch('user/allset', res.data)
  293. this.infoList = this.$store.getters.allset.banners
  294. this.navList = this.$store.getters.allset.nav_icon
  295. this.info = this.$store.getters.allset.partner
  296. //广告图
  297. this.advertis = this.$store.getters.allset.advertises.filter(item => {
  298. return item.in_page == 1
  299. })
  300. this.advData = this.advertis[0];
  301. if (this.advertis[0].type == 1) {
  302. this.in_page = 1
  303. this.type = 1
  304. this.advertisImg = this.advertis[0].img
  305. } else if (this.advertis[0].type == 2) {
  306. this.in_page = 1
  307. this.type = 2
  308. this.videoCoverImg = this.advertis[0].video_cover
  309. this.videoSrc = this.advertis[0].video
  310. }
  311. //胶囊图
  312. this.advertisInset = this.$store.getters.allset.advertises.filter(item => {
  313. return item.in_page == 2
  314. })
  315. this.advInsetImg = this.advertisInset[0]
  316. this.advertisInsetImg = this.advertisInset[0].img
  317. //广告弹框图
  318. this.popupData = this.$store.getters.allset.popup_ads[0]
  319. //弹窗是否展示
  320. this.popupImgStatus = this.popupData?.status
  321. this.times_type = this.popupData?.times_type
  322. //广告弹框跳转h5和小程序和内部
  323. this.jump_type = this.popupData?.jump_type,
  324. this.jump_config = this.popupData?.jump_config
  325. this.open()
  326. })
  327. },
  328. // 获取活动列表
  329. getList() {
  330. this.$api.active.getActiveList({
  331. page: 0,
  332. keyword: '',
  333. category_id: ''
  334. }).then(res => {
  335. console.log(res, '活动列表')
  336. if (res.code == 0) {
  337. this.specialList = res.data.data
  338. }
  339. })
  340. },
  341. //产品列表type:1,第三方购买产品
  342. getGoodsList(category_id) {
  343. this.$api.product.getProducts({
  344. type: 1,
  345. page: 0,
  346. }).then(res => {
  347. this.goodsList = res.data.data.slice(0,4)
  348. this.shortLong()
  349. console.log(this.goodsList,'------>产品图');
  350. })
  351. },
  352. //产品详情
  353. produceDetail(id){
  354. uni.navigateTo({
  355. url:`/pages/goods/goods-detail/index?id=${id}&type=1`
  356. })
  357. },
  358. // **************** Dev ***************//
  359. shortLong() {
  360. this.goodsList.forEach((item, index, arr) => {
  361. if (index % 4 === 0) {
  362. item.short = true
  363. }
  364. if (index % 4 === 1) {
  365. item.long = true
  366. }
  367. if (index % 4 === 2) {
  368. item.long = true
  369. item.marginTop = -68 + "rpx"
  370. }
  371. if (index % 4 === 3) {
  372. item.short = true
  373. }
  374. })
  375. },
  376. //隐藏图片
  377. cleanCoverImg() {
  378. this.isShowAdver = !this.isShowAdver
  379. },
  380. //打开弹框
  381. open() {
  382. console.log(this.popupImgStatus,this.times_type);
  383. // 从本地缓存中同步获取指定 key 对应的内容,用于判断是否是第一次打开应用
  384. if(this.popupImgStatus == 1){
  385. if(this.times_type == 1){
  386. //首次进入弹窗
  387. const value = uni.getStorageSync('launchFlag');
  388. if (value) {
  389. console.log('首次弹窗')
  390. } else {
  391. // 没有值,跳到引导页,并存储,下次打开就不会进去引导页
  392. uni.setStorage({
  393. key: 'launchFlag',
  394. data: true
  395. });
  396. this.$refs.popup.open('center')
  397. }
  398. }else{
  399. this.$refs.popup.open('center')//每次都弹
  400. }
  401. }else{
  402. this.$refs.popup.close()//不显示广告弹框
  403. }
  404. },
  405. //关闭弹框
  406. closePopupBanner() {
  407. this.$refs.popup.close()
  408. },
  409. //点击视频封面图片,播放视频
  410. openVideoPlay() {
  411. this.isOpenVideo = !this.isOpenVideo
  412. this.videoContext.play()
  413. },
  414. // **************** 跳转 ***************//
  415. //合同伙伴跳转h5和小程序
  416. goGoodsDetail(id, urls) {
  417. console.log(urls, '----->url');
  418. if (id == 1) {
  419. const url = urls; // 跳转的外链
  420. const navtitle = 'H5'; // 这个标题是你自己可以设置的
  421. uni.navigateTo({
  422. // 跳转到webview页面
  423. url: `/pages/webview/webview?url=${url}&nav=${navtitle}`,
  424. success: () => {
  425. console.log('成功')
  426. },
  427. fail: (e) => {
  428. console.log(e, "失败")
  429. }
  430. });
  431. } else if (id == 2) {
  432. let obj = JSON.parse(urls);
  433. wx.navigateToMiniProgram({
  434. appId: `${obj.appid}`, //appid
  435. path: `${obj.path}`, //path
  436. extraData: { //参数
  437. foo: 'bar'
  438. },
  439. // envVersion: 'develop', //开发版develop 开发版 trial 体验版 release 正式版
  440. success(res) {
  441. console.log('成功')
  442. // 打开成功
  443. },
  444. fail(e) {
  445. console.log(e, '失败')
  446. }
  447. })
  448. }
  449. },
  450. // 活动详情页
  451. activeDetail(id) {
  452. uni.navigateTo({
  453. url: '/pages/index/active-detail/index?id=' + id
  454. })
  455. },
  456. // 点赞活动
  457. kudosActive(id, index) {
  458. let beforeLike = this.specialList[index].is_like
  459. this.$api.active.kudos({
  460. activity_id: id
  461. }).then(res => {
  462. console.log(res, '点赞')
  463. if (res.code == 0) {
  464. if (beforeLike == 1) {
  465. this.specialList[index].is_like = 0
  466. uni.showToast({
  467. icon: 'none',
  468. title: '取消点赞'
  469. })
  470. } else {
  471. this.specialList[index].is_like = 1
  472. uni.showToast({
  473. icon: 'none',
  474. title: '点赞成功'
  475. })
  476. }
  477. }
  478. })
  479. },
  480. //跳转方法
  481. jumpHAppID(id, urls) {
  482. if (id == 1) {
  483. const url = urls; // 跳转的外链
  484. const navtitle = 'H5'; // 这个标题是你自己可以设置的
  485. uni.navigateTo({
  486. // 跳转到webview页面
  487. url: `/pages/webview/webview?url=${url}&nav=${navtitle}`,
  488. success: () => {
  489. console.log('成功')
  490. },
  491. fail: (e) => {
  492. console.log(e, "失败")
  493. }
  494. });
  495. } else if (id == 2) {
  496. let obj = JSON.parse(urls);
  497. wx.navigateToMiniProgram({
  498. appId: `${obj.appid}`, //appid
  499. path: `${obj.path}`, //path
  500. extraData: { //参数
  501. foo: 'bar'
  502. },
  503. // envVersion: 'develop', //开发版develop 开发版 trial 体验版 release 正式版
  504. success(res) {
  505. console.log('成功')
  506. // 打开成功
  507. },
  508. fail(e) {
  509. console.log(e, '失败')
  510. }
  511. })
  512. } else if (id == 3) {
  513. uni.reLaunch({
  514. url: urls,
  515. fail:(err)=>{
  516. uni.navigateTo({
  517. url: urls
  518. })
  519. }
  520. })
  521. }
  522. },
  523. // 跳转其他小程序
  524. goJoin() {
  525. wx.navigateToMiniProgram({
  526. appId: 'wx255b58f0992b3c53', //appid
  527. path: 'newUIMain/enrollment/enrollment', //path
  528. extraData: { //参数
  529. foo: 'bar'
  530. },
  531. // envVersion: 'develop', //开发版develop 开发版 trial 体验版 release 正式版
  532. success(res) {
  533. console.log('成功')
  534. // 打开成功
  535. },
  536. fail(e) {
  537. console.log(e, '失败')
  538. }
  539. })
  540. },
  541. // 跳转到h5页面
  542. goH5() {
  543. let inset = this.advertisInset[0].jump_type
  544. let inserPath = this.advertisInset[0].jump_config
  545. //跳转h5
  546. if (inset == 1) {
  547. const url = inserPath; // 跳转的外链
  548. const navtitle = 'H5'; // 这个标题是你自己可以设置的
  549. uni.navigateTo({
  550. // 跳转到webview页面
  551. url: `/pages/webview/webview?url=${url}&nav=${navtitle}`,
  552. success: () => {
  553. console.log('成功')
  554. },
  555. fail: (e) => {
  556. console.log(e, "失败")
  557. }
  558. });
  559. } else if (inset == 2) {
  560. let obj = JSON.parse(inserPath);
  561. wx.navigateToMiniProgram({
  562. appId: `${obj.appid}`, //appid
  563. path: `${obj.path}`, //path
  564. extraData: { //参数
  565. foo: 'bar'
  566. },
  567. // envVersion: 'develop', //开发版develop 开发版 trial 体验版 release 正式版
  568. success(res) {
  569. console.log('成功')
  570. // 打开成功
  571. },
  572. fail(e) {
  573. console.log(e, '失败')
  574. }
  575. })
  576. }
  577. },
  578. //产品列表
  579. goProduceList() {
  580. uni.navigateTo({
  581. url: '/pages/goods/goods'
  582. })
  583. },
  584. //活动列表
  585. goSpecialList() {
  586. uni.navigateTo({
  587. url: '/pages/index/active-list/index'
  588. })
  589. },
  590. // 切换轮播图指示点
  591. change1(e) {
  592. this.current1 = e.detail.current;
  593. },
  594. change2(e) {
  595. this.current2 = e.detail.current;
  596. },
  597. getCode() {
  598. return new Promise((resolve, reject) => {
  599. uni.getUserInfo({
  600. success: loginRes => {
  601. console.log(loginRes);
  602. this.data.encryptData = loginRes.encryptedData,
  603. this.data.iv = loginRes.iv
  604. resolve(this.data)
  605. }
  606. })
  607. })
  608. },
  609. //获取微信登录的code码
  610. getmsg() {
  611. uni.login({
  612. provider: uni.$u.platform,
  613. success: res => {
  614. console.log(res, '------->res');
  615. this.getCode().then((data) => {
  616. console.log(this.data, '------>data');
  617. const params = {
  618. code: res.code,
  619. iv: data.iv,
  620. encryptData: data.encryptData
  621. }
  622. console.log(params);
  623. this.$api.my.myLogin(params).then(res => {
  624. let {
  625. token
  626. } = res.data
  627. this.$store.dispatch('user/token', token)
  628. // 获取活动列表
  629. this.getList()
  630. })
  631. })
  632. }
  633. })
  634. }
  635. },
  636. }
  637. </script>
  638. <style lang="scss" src="./index.scss" scoped></style>