Commit ffc12930 by 陈超

A

parent d0f64008
<include file="__THEME__/_header_w3g" />
<style>
.content ,.cf2{ background-color: #f0f0f2!important;padding:10px 0; }
.wrap{min-height: 400px;background: #fff; padding: 20px; margin-bottom: 20px; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; border: 1px solid #e4ecf3;}
.jgpage_right_tit{padding-bottom:20px;margin: 0 0 20px 0; border-bottom: 1px solid #f5f5f5;}
.jgpage_right_tit{color:#333;font-size:18px;}
.jgpage_right_con{overflow:hidden;line-height: 36px;}
</style>
<div class="content cf2">
<div class="wrap">
<div class="jgpage_right_tit mb30">{$data.title}</div>
<div class="jgpage_right_con">
{$data.text}
</div>
</div>
</div>
<include file="__THEME__/public_footer_w3g"/>
<include file="__THEME__/public_header_w3g" />
<style>
body {
padding: 0 !important;
}
</style>
<div id="app">
</div>
<script type="text/javascript">
new Vue({
el: "#app",
data: function() {
return {
}
},
mounted:function(){
document.title = "意见反馈"
},
methods: {
onChangePwd: function() {
window.location.href = "{:U('home/Repwd/index')}"
}
}
})
</script>
<include file="__THEME__/public_footer_w3g"/>
<include file="__THEME__/public_header_w3g"/>
<style>
body {
padding: 0 !important;
}
</style>
<div id="app">
<van-sticky>
<div class="tabs_container">
<div @click="onChange(idx)" v-for="(opt, idx) in options" :key="idx" :class="idx == tab ? 'tab_item_selected' : 'tab_item_normal'" >
<span>{{opt.title}}</span>
</div>
</div>
</van-sticky>
<van-list
v-model="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad">
<template v-if="tab == 0">
<div v-for="(item, index) in options[0].items" class="layout_h news_hire_info">
<van-image height="72" width="72" :src="item.cover" fit="cover" ></van-image>
<div class="layout_v_b weight_full" style="margin-left: 0.75rem;">
<div class="text_14_600 color_333333">{{item.title}}</div>
<div class="layout_h_b" style="align-items: flex-end;">
<div class="layout_h">
<span class="text_12_400 color_999999" style="margin-right: 0.75rem;">{{item.location}}</span>
<span class="text_12_400 color_999999" style="margin-right: 0.75rem;">{{item.type}}</span>
<span class="text_12_400 color_999999">{{item.date}}</span>
</div>
<div class="layout_h_r weight_full">
<div @click="onItem(item)" class="news_see_button layout_center text_12_400 color_white">查看</div>
</div>
</div>
</div>
</div>
</template>
<template v-if="tab == 1">
</template>
<template v-if="tab == 2">
</template>
</van-list>
</div>
<script>
new Vue({
el: "#app",
data: function() {
return {
tab: 0,
loading: false,
finished: false,
options: [{
title: "招聘信息",
items: [],
page: 0,
finished: false
},{
title: "平台公告",
items: [],
page: 0,
finished: false
},{
title: "考试信息",
items: [],
page: 0,
finished: false
}]
}
},
methods: {
onChange: function(tab) {
this.tab = tab
},
onLoad: function() {
$.ajax({
type: "GET",
url: "{:U('news/Topic/index')}",
data: "?cate=" + (this.tab + 1),
dataType: "json",
success: function(data) {
that.loading =false
that.finished = true
console.log(data)
return
let res = data
let old = []
if(that.page != 0) {
old = that.items
}
let array = res.data.length > 0 ? res.data : []
that.items = old.concat(array.map( r => {
let pi = r.mz_price
return {
id: r.id,
title: r.video_title,
cover: r.image_url,
price: pi.price == 0 ? '免费' : ('¥' + pi.price),
count: on ? r.video_order_count_mark : r.video_order_count
}
}))
that.page = res.nowPage
that.finished = res.nowPage >= res.totalPages
}
})
},
onItem: function(item) {
}
}
})
</script>
<!--footer-->
<include file="__THEME__/public_footer_w3g"/>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment