1e985242 by 杨炀

no message

1 parent 731b1851
import request from './request.js'
import config from '@/config.js'
function getTrainList(venueId) {
function getTrainList(params) {
return request({
url: `/train/info/list`,
method: 'get'
method: 'get',
params: params
})
}
function getActivityDetail(id) {
......
{
"hash": "15550c90",
"browserHash": "63dbbbb8",
"hash": "a42c9c29",
"browserHash": "49b54077",
"optimized": {
"lodash": {
"src": "../../lodash/lodash.js",
"file": "lodash.js",
"fileHash": "547f3844",
"fileHash": "d2ae1b17",
"needsInterop": true
}
},
......
......@@ -3,9 +3,9 @@ var __commonJS = (cb, mod) => function __require() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};
// ../../../../../../Users/yangyang/project/gd_yc/node_modules/lodash/lodash.js
// ../../../../../../Users/yangyang/gd_yc/node_modules/lodash/lodash.js
var require_lodash = __commonJS({
"../../../../../../Users/yangyang/project/gd_yc/node_modules/lodash/lodash.js"(exports, module) {
"../../../../../../Users/yangyang/gd_yc/node_modules/lodash/lodash.js"(exports, module) {
(function() {
var undefined;
var VERSION = "4.17.21";
......
......@@ -7,12 +7,15 @@
</swiper>
<view class="whitepobox">
<view>{{form.name}}</view>
<view class="pp"><image src="./img/tag01.png" class="iconSquera"/>{{form.hdStart?.substring(0, 10)}}{{form.hdEnd?.substring(0, 10)}}</view>
<view class="pp"><image src="./img/tag02.png" class="iconSquera"/>{{form.address}}</view>
<view class="pp">培训时间:{{form.hdStart?.substring(0, 10)}}{{form.hdEnd?.substring(0, 10)}}</view>
<view class="pp">培训地点:{{form.address}}</view>
<view class="pp">报道时间:{{form.address}}</view>
<view class="pp">主办单位:{{form.address}}</view>
<view class="pp">承办单位:{{form.address}}</view>
</view>
<view class="whiteItem">
<view class="tt"> 预订说明</view>
<view class="tt"> 培训简介</view>
<view class="pp" :class="allNow?'autoHeight':'onelineHeight'" v-html="form.reserveDes"></view>
<view class="formore" @click="changeIntroductionHeight" v-show="form.reserveDes?.length>20">
<view v-show="!allNow">展开详情 <uni-icons type="bottom" color='#1EC886' size="12"></uni-icons></view>
......@@ -35,7 +38,7 @@
<view class="tt">其他事项</view>
<view class="myList">
<uni-list :border="false">
<uni-list-item :border="true" title="活动简介" showArrow :clickable="true" @click="goIllustrate">
<uni-list-item :border="true" title="报名提醒" showArrow :clickable="true" @click="goIllustrate">
<template v-slot:header>
<view class="slot-box">
<image class="slot-image" src="./img/qt01.png" mode="widthFix"></image>
......
<template>
<view class="pb50">
<uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="button" activeColor="#15CFAB"></uni-segmented-control>
<view class="active" v-for="(item, index) in list" :key="index" @click="goDetail(item)">
<swiper class="activeSwiper" circular :autoplay="autoplay">
<swiper-item v-for="(pic,index) in item.photos?.split(',')" :key="index">
......@@ -8,8 +10,11 @@
</swiper>
<view class="name">{{item.name}}</view>
<view class="pp" style="display: flex;"><image src="./img/tag01.png" class="iconSquera"/>{{item.hdStart.substring(0, 10)}}{{item.hdEnd.substring(0, 10)}}</view>
<view class="pp" style="display: flex;"><image src="./img/tag02.png" class="iconSquera"/>{{item.address}}</view>
<view class="pp" style="display: flex;">培训时间:{{item.hdStart.substring(0, 10)}}{{item.hdEnd.substring(0, 10)}}</view>
<view class="pp" style="display: flex;">报道时间:{{item.hdStart.substring(0, 10)}}{{item.hdEnd.substring(0, 10)}}</view>
<view class="pp" style="display: flex;">主办单位:{{item.address}}</view>
<view class="pp" style="display: flex;">承办单位:{{item.address}}</view>
<view class="pp" style="display: flex;">培训地点:{{item.address}}</view>
<button class="btn btn1">点击进入</button>
</view>
</view>
......@@ -30,10 +35,12 @@
const { proxy } = getCurrentInstance();
const data = reactive({
list: [],
queryParam: {},
autoplay:true
query: {},
autoplay:true,
items: ['全部', '进行中', '已过期'],
current: 1
});
const { list,queryParam,autoplay } = toRefs(data);
const { list,query,autoplay,items,current } = toRefs(data);
onShow(option =>{
if (app.globalData.isLogin) {
......@@ -48,8 +55,7 @@
getList();
});
function getList(){
const venueId = app.globalData.venue.id
hotel.getTrainList(venueId).then(res => {
hotel.getTrainList(query.value).then(res => {
list.value = res.rows;
});
}
......@@ -65,6 +71,11 @@
url: path
});
}
function onClickItem(e){
if(current.value != e.currentIndex){
current.value = e.currentIndex
}
}
</script>
<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!