【fix】 活动邀请,列表对接接口

This commit is contained in:
tian.guangyuan
2020-05-09 16:07:57 +08:00
parent 63ad9302b1
commit bcd59f0f83
4 changed files with 59 additions and 24 deletions

View File

@@ -1,6 +1,10 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-control" content="no-cache">
<meta http-equiv="Cache" content="no-cache">
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" /> <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />

View File

@@ -1,5 +1,5 @@
<template> <template>
<div class="home-container"> <div class="home-container pb150">
<div class="pv10 text-center">ebiz h5 standard frame</div> <div class="pv10 text-center">ebiz h5 standard frame</div>
<ul class="fs14 p20"> <ul class="fs14 p20">
<li class="fs18 mb10">基础工程项目</li> <li class="fs18 mb10">基础工程项目</li>
@@ -46,6 +46,15 @@
</li> </li>
</ul> </ul>
</li> </li>
<li class="mt10">
<p class="fw600">活动邀请</p>
<ul class="pl20">
<li>
<router-link to="/exercising/ExercisingDetails">活动邀请-活动详情</router-link>
</li>
</ul>
</li>
</ul> </ul>
<van-tabbar v-model="active"> <van-tabbar v-model="active">
<van-tabbar-item icon="home-o">首页</van-tabbar-item> <van-tabbar-item icon="home-o">首页</van-tabbar-item>

View File

@@ -37,7 +37,7 @@ export default {
.catch(err => { .catch(err => {
console.error(err) console.error(err)
}) })
if (this.isWeixin) { if (!this.isWeixin) {
setTimeout(() => { setTimeout(() => {
// 右上角的显示 // 右上角的显示
window.EWebBridge.webCallAppInJs('webview_right_button', { window.EWebBridge.webCallAppInJs('webview_right_button', {
@@ -61,12 +61,12 @@ export default {
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
title: '产品列表', title: '报名详情',
forbidSwipeBack: 1, //当前页面禁止右滑返回 forbidSwipeBack: 1, //当前页面禁止右滑返回
url: location.origin + `/#/cardList/CardTotreasure` url: location.origin + `/#/exercising/SignUpDetails`
}, },
routerInfo: { routerInfo: {
path: `/cardList/CardTotreasure`, path: `/exercising/SignUpDetails`,
type: '1' type: '1'
} }
}) })

View File

@@ -1,9 +1,9 @@
<!-- 报名详情 --> <!-- 报名详情 -->
<template> <template>
<div> <div>
<van-tabs v-model="activeName"> <van-tabs v-model="searchData.enterStatus">
<van-tab title="已报名" name="a"> </van-tab> <van-tab title="已报名" name="01"> </van-tab>
<van-tab title="已上传作品" name="b"> </van-tab> <van-tab title="已上传作品" name="02"> </van-tab>
</van-tabs> </van-tabs>
<van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad"> <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
<van-cell v-for="(item, index) in list" :key="index"> <van-cell v-for="(item, index) in list" :key="index">
@@ -25,36 +25,58 @@
<script> <script>
import { List, Cell, Tabs, Tab, Col, Row } from 'vant' import { List, Cell, Tabs, Tab, Col, Row } from 'vant'
// import { } from '@/api/ebiz/manpower/manpower' import { getEnrollList } from '@/api/ebiz/exercising/exercising'
export default { export default {
name: '', name: '',
filters: {}, filters: {},
data() { data() {
let searchData = {
"belongAgent":"0",
"enterStatus":"01",
"pageSize":10,
"pageNum":1,
"activeCode":"DRAW"
}
return { return {
activeName: 'b', searchData,
list: [ list: [],
{
name: '需水电',
phone: '15512341234'
},
{
name: '费发',
phone: '58684567425'
}
],
loading: false, loading: false,
finished: false finished: false
} }
}, },
watch: {}, watch: {
'searchData.enterStatus': function(newVal, oldVal){
this.list = []
this.searchData.pageSize = 10
this.searchData.pageNum = 1
this.onLoad()
}
},
created() {}, created() {},
mounted() {}, mounted() {},
methods: { methods: {
init() {},
onLoad() { onLoad() {
this.finished = true this.loading = true
this.loading = false this.getEnrollList()
},
getEnrollList(){
getEnrollList(this.searchData).then(res=>{
console.log(res);
if(res.result == '0'){
let resC = res.content;
if(resC.nextPage == 0){
this.finished = true
}
this.loading = false
this.list = this.list.concat(resC.list)
this.searchData.pageNum++
}else{
this.$toast(res.resultMessage)
}
}).catch(err=>{
console.error(err);
})
} }
}, },
components: { components: {