|
|
|
<template>
|
|
|
|
<view class="body-background"></view>
|
|
|
|
<u-navbar
|
|
|
|
:title="title"
|
|
|
|
:auto-back="true"
|
|
|
|
left-icon-size="40rpx"
|
|
|
|
:safe-area-inset-top="true"
|
|
|
|
:placeholder="true"
|
|
|
|
bgColor="#ffffff"
|
|
|
|
></u-navbar>
|
|
|
|
<view class="app-wallpaper">
|
|
|
|
<view class="leave-tab">
|
|
|
|
<u-tabs
|
|
|
|
:list="listItem"
|
|
|
|
u-sticky
|
|
|
|
lineWidth="40"
|
|
|
|
lineHeight="4"
|
|
|
|
:inactiveStyle="{color:'#AFB5BE'}"
|
|
|
|
:activeStyle="{color:'#F47210'}"
|
|
|
|
lineColor="#F47210"
|
|
|
|
:custom-style="{margin:'auto',width:'100%'}"
|
|
|
|
:scrollable="false"
|
|
|
|
:current="current"
|
|
|
|
@change="tabsChange"
|
|
|
|
></u-tabs>
|
|
|
|
</view>
|
|
|
|
<view class="leave-content">
|
|
|
|
<view class="leave-item">
|
|
|
|
<view class="ask row">
|
|
|
|
<view class="icon col">
|
|
|
|
<u-image mode="widthFix" :src="staticImage.ask" width="64" height="64"></u-image>
|
|
|
|
</view>
|
|
|
|
<view class="body col">
|
|
|
|
<view class="name">
|
|
|
|
<u-text line-height="50" text="张磊" size="32" color="#020b18"></u-text>
|
|
|
|
</view>
|
|
|
|
<view class="content">
|
|
|
|
<u-text line-height="50" text="目前大学生创业政策是什么样的?" size="28" color="#020b18"></u-text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="answer row">
|
|
|
|
<view class="icon col">
|
|
|
|
<u-image mode="widthFix" :src="staticImage.answer" width="64" height="64"></u-image>
|
|
|
|
</view>
|
|
|
|
<view class="body col">
|
|
|
|
<view class="content">
|
|
|
|
<u-text line-height="50" size="28" color="#020b18" text="大学毕业生在毕业后两年内自主创业,到创业实体所在地的工商部门办理营业执照,注册资金(本)在50万元以下的,允许分期到位,首期到位资金不低于注册资本的10%(出资额不低于3万元),1年内实缴注册资本追加到50%以上,余款可在3年内分期到位。"></u-text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="leave-item">
|
|
|
|
<view class="ask row">
|
|
|
|
<view class="icon col">
|
|
|
|
<u-image mode="widthFix" :src="staticImage.ask" width="64" height="64"></u-image>
|
|
|
|
</view>
|
|
|
|
<view class="body col">
|
|
|
|
<view class="name">
|
|
|
|
<u-text line-height="50" text="张磊" size="32" color="#020b18"></u-text>
|
|
|
|
</view>
|
|
|
|
<view class="content">
|
|
|
|
<u-text line-height="50" text="目前大学生创业政策是什么样的?" size="28" color="#020b18"></u-text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="answer row">
|
|
|
|
<view class="icon col">
|
|
|
|
<u-image mode="widthFix" :src="staticImage.answer" width="64" height="64"></u-image>
|
|
|
|
</view>
|
|
|
|
<view class="body col">
|
|
|
|
<view class="content">
|
|
|
|
<u-text line-height="50" size="28" color="#020b18" text="顾问暂时还没有回答哦"></u-text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="leave-item">
|
|
|
|
<view class="ask row">
|
|
|
|
<view class="icon col">
|
|
|
|
<u-image mode="widthFix" :src="staticImage.ask" width="64" height="64"></u-image>
|
|
|
|
</view>
|
|
|
|
<view class="body col">
|
|
|
|
<view class="name">
|
|
|
|
<u-text line-height="50" text="张磊" size="32" color="#020b18"></u-text>
|
|
|
|
</view>
|
|
|
|
<view class="content">
|
|
|
|
<u-text line-height="50" text="目前大学生创业政策是什么样的?" size="28" color="#020b18"></u-text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="answer row">
|
|
|
|
<view class="icon col">
|
|
|
|
<u-image mode="widthFix" :src="staticImage.answer" width="64" height="64"></u-image>
|
|
|
|
</view>
|
|
|
|
<view class="body col">
|
|
|
|
<view class="content">
|
|
|
|
<u-text line-height="50" size="28" color="#FF9545" text="立即回答" suffix-icon="arrow-right" icon-style="color:#ff9545;"></u-text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<u-loadmore :custom-style="{display:'flex'}" :status="status" fontSize="28"
|
|
|
|
marginBottom="30" marginTop="30" @loadmore="getUserLeave()"/>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import {
|
|
|
|
imghost
|
|
|
|
} from '@/config/host.js'
|
|
|
|
import MzSubsection from '@/components/MzSubsection/Index.vue';
|
|
|
|
import api from '@/utils/functions.js';
|
|
|
|
import {goodsOrder, orderLogistics, roomOrder, tabCount} from "@/api/user";
|
|
|
|
import {userLeave} from "@/api/other";
|
|
|
|
import {goodsList} from "@/api/shop";
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
MzSubsection
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
listItem:[
|
|
|
|
{name:'全部留言'},
|
|
|
|
{name:'已回答'},
|
|
|
|
{name:'未回答'},
|
|
|
|
],
|
|
|
|
tabCheck:'room',
|
|
|
|
title: '我的留言',
|
|
|
|
loading: true,
|
|
|
|
staticImage: {
|
|
|
|
bg: imghost + '/BG.png',
|
|
|
|
newIcon: imghost + '/new-icon.png',
|
|
|
|
shopThumb: imghost + '/new-1.png',
|
|
|
|
ask:imghost+ '/ask.png',
|
|
|
|
answer:imghost+ '/answer.png',
|
|
|
|
},
|
|
|
|
pages:{
|
|
|
|
page:1,
|
|
|
|
limit:10,
|
|
|
|
user_type:1,
|
|
|
|
},
|
|
|
|
lists:[],
|
|
|
|
status:'loadmore',
|
|
|
|
current:0,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
onLoad() {
|
|
|
|
|
|
|
|
},
|
|
|
|
onReady() {
|
|
|
|
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
tabsChange(e){
|
|
|
|
this.tabCheck = e.id
|
|
|
|
this.getUserLeave(true);
|
|
|
|
},
|
|
|
|
getUserLeave(clear = false){
|
|
|
|
if (clear) {
|
|
|
|
this.status = 'loadmore'
|
|
|
|
this.pages.page = 1;
|
|
|
|
this.lists = [];
|
|
|
|
}
|
|
|
|
if (this.status === 'nomore') {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
userLeave(this.pages).then(res => {
|
|
|
|
this.lists.push.apply(this.lists, res.data);
|
|
|
|
if (res.data.length === 0) {
|
|
|
|
this.status = 'nomore'
|
|
|
|
}
|
|
|
|
})
|
|
|
|
this.pages.page++;
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onReachBottom() {
|
|
|
|
this.getUserLeave();
|
|
|
|
},
|
|
|
|
onPageScroll(res) {
|
|
|
|
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
this.getUserLeave();
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import './components/leave.scss';
|
|
|
|
</style>
|