1e985242 by 杨炀

no message

1 parent 731b1851
1 import request from './request.js' 1 import request from './request.js'
2 import config from '@/config.js' 2 import config from '@/config.js'
3 3
4 function getTrainList(venueId) { 4 function getTrainList(params) {
5 return request({ 5 return request({
6 url: `/train/info/list`, 6 url: `/train/info/list`,
7 method: 'get' 7 method: 'get',
8 params: params
8 }) 9 })
9 } 10 }
10 function getActivityDetail(id) { 11 function getActivityDetail(id) {
......
1 { 1 {
2 "hash": "15550c90", 2 "hash": "a42c9c29",
3 "browserHash": "63dbbbb8", 3 "browserHash": "49b54077",
4 "optimized": { 4 "optimized": {
5 "lodash": { 5 "lodash": {
6 "src": "../../lodash/lodash.js", 6 "src": "../../lodash/lodash.js",
7 "file": "lodash.js", 7 "file": "lodash.js",
8 "fileHash": "547f3844", 8 "fileHash": "d2ae1b17",
9 "needsInterop": true 9 "needsInterop": true
10 } 10 }
11 }, 11 },
......
...@@ -3,9 +3,9 @@ var __commonJS = (cb, mod) => function __require() { ...@@ -3,9 +3,9 @@ var __commonJS = (cb, mod) => function __require() {
3 return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; 3 return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
4 }; 4 };
5 5
6 // ../../../../../../Users/yangyang/project/gd_yc/node_modules/lodash/lodash.js 6 // ../../../../../../Users/yangyang/gd_yc/node_modules/lodash/lodash.js
7 var require_lodash = __commonJS({ 7 var require_lodash = __commonJS({
8 "../../../../../../Users/yangyang/project/gd_yc/node_modules/lodash/lodash.js"(exports, module) { 8 "../../../../../../Users/yangyang/gd_yc/node_modules/lodash/lodash.js"(exports, module) {
9 (function() { 9 (function() {
10 var undefined; 10 var undefined;
11 var VERSION = "4.17.21"; 11 var VERSION = "4.17.21";
......
...@@ -7,12 +7,15 @@ ...@@ -7,12 +7,15 @@
7 </swiper> 7 </swiper>
8 <view class="whitepobox"> 8 <view class="whitepobox">
9 <view>{{form.name}}</view> 9 <view>{{form.name}}</view>
10 <view class="pp"><image src="./img/tag01.png" class="iconSquera"/>{{form.hdStart?.substring(0, 10)}}{{form.hdEnd?.substring(0, 10)}}</view> 10 <view class="pp">培训时间:{{form.hdStart?.substring(0, 10)}}{{form.hdEnd?.substring(0, 10)}}</view>
11 <view class="pp"><image src="./img/tag02.png" class="iconSquera"/>{{form.address}}</view> 11 <view class="pp">培训地点:{{form.address}}</view>
12 <view class="pp">报道时间:{{form.address}}</view>
13 <view class="pp">主办单位:{{form.address}}</view>
14 <view class="pp">承办单位:{{form.address}}</view>
12 </view> 15 </view>
13 16
14 <view class="whiteItem"> 17 <view class="whiteItem">
15 <view class="tt"> 预订说明</view> 18 <view class="tt"> 培训简介</view>
16 <view class="pp" :class="allNow?'autoHeight':'onelineHeight'" v-html="form.reserveDes"></view> 19 <view class="pp" :class="allNow?'autoHeight':'onelineHeight'" v-html="form.reserveDes"></view>
17 <view class="formore" @click="changeIntroductionHeight" v-show="form.reserveDes?.length>20"> 20 <view class="formore" @click="changeIntroductionHeight" v-show="form.reserveDes?.length>20">
18 <view v-show="!allNow">展开详情 <uni-icons type="bottom" color='#1EC886' size="12"></uni-icons></view> 21 <view v-show="!allNow">展开详情 <uni-icons type="bottom" color='#1EC886' size="12"></uni-icons></view>
...@@ -35,7 +38,7 @@ ...@@ -35,7 +38,7 @@
35 <view class="tt">其他事项</view> 38 <view class="tt">其他事项</view>
36 <view class="myList"> 39 <view class="myList">
37 <uni-list :border="false"> 40 <uni-list :border="false">
38 <uni-list-item :border="true" title="活动简介" showArrow :clickable="true" @click="goIllustrate"> 41 <uni-list-item :border="true" title="报名提醒" showArrow :clickable="true" @click="goIllustrate">
39 <template v-slot:header> 42 <template v-slot:header>
40 <view class="slot-box"> 43 <view class="slot-box">
41 <image class="slot-image" src="./img/qt01.png" mode="widthFix"></image> 44 <image class="slot-image" src="./img/qt01.png" mode="widthFix"></image>
......
1 <template> 1 <template>
2 <view class="pb50"> 2 <view class="pb50">
3 <uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="button" activeColor="#15CFAB"></uni-segmented-control>
4
3 <view class="active" v-for="(item, index) in list" :key="index" @click="goDetail(item)"> 5 <view class="active" v-for="(item, index) in list" :key="index" @click="goDetail(item)">
4 <swiper class="activeSwiper" circular :autoplay="autoplay"> 6 <swiper class="activeSwiper" circular :autoplay="autoplay">
5 <swiper-item v-for="(pic,index) in item.photos?.split(',')" :key="index"> 7 <swiper-item v-for="(pic,index) in item.photos?.split(',')" :key="index">
...@@ -8,8 +10,11 @@ ...@@ -8,8 +10,11 @@
8 </swiper> 10 </swiper>
9 11
10 <view class="name">{{item.name}}</view> 12 <view class="name">{{item.name}}</view>
11 <view class="pp" style="display: flex;"><image src="./img/tag01.png" class="iconSquera"/>{{item.hdStart.substring(0, 10)}}{{item.hdEnd.substring(0, 10)}}</view> 13 <view class="pp" style="display: flex;">培训时间:{{item.hdStart.substring(0, 10)}}{{item.hdEnd.substring(0, 10)}}</view>
12 <view class="pp" style="display: flex;"><image src="./img/tag02.png" class="iconSquera"/>{{item.address}}</view> 14 <view class="pp" style="display: flex;">报道时间:{{item.hdStart.substring(0, 10)}}{{item.hdEnd.substring(0, 10)}}</view>
15 <view class="pp" style="display: flex;">主办单位:{{item.address}}</view>
16 <view class="pp" style="display: flex;">承办单位:{{item.address}}</view>
17 <view class="pp" style="display: flex;">培训地点:{{item.address}}</view>
13 <button class="btn btn1">点击进入</button> 18 <button class="btn btn1">点击进入</button>
14 </view> 19 </view>
15 </view> 20 </view>
...@@ -30,10 +35,12 @@ ...@@ -30,10 +35,12 @@
30 const { proxy } = getCurrentInstance(); 35 const { proxy } = getCurrentInstance();
31 const data = reactive({ 36 const data = reactive({
32 list: [], 37 list: [],
33 queryParam: {}, 38 query: {},
34 autoplay:true 39 autoplay:true,
40 items: ['全部', '进行中', '已过期'],
41 current: 1
35 }); 42 });
36 const { list,queryParam,autoplay } = toRefs(data); 43 const { list,query,autoplay,items,current } = toRefs(data);
37 44
38 onShow(option =>{ 45 onShow(option =>{
39 if (app.globalData.isLogin) { 46 if (app.globalData.isLogin) {
...@@ -48,8 +55,7 @@ ...@@ -48,8 +55,7 @@
48 getList(); 55 getList();
49 }); 56 });
50 function getList(){ 57 function getList(){
51 const venueId = app.globalData.venue.id 58 hotel.getTrainList(query.value).then(res => {
52 hotel.getTrainList(venueId).then(res => {
53 list.value = res.rows; 59 list.value = res.rows;
54 }); 60 });
55 } 61 }
...@@ -65,6 +71,11 @@ ...@@ -65,6 +71,11 @@
65 url: path 71 url: path
66 }); 72 });
67 } 73 }
74 function onClickItem(e){
75 if(current.value != e.currentIndex){
76 current.value = e.currentIndex
77 }
78 }
68 </script> 79 </script>
69 80
70 <style lang="scss" scoped> 81 <style lang="scss" scoped>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!