【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>
<html lang="en">
<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 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" />

View File

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

View File

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

View File

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