|
|
|
@ -8,10 +8,10 @@ |
|
|
|
:left-click="personalCenter" |
|
|
|
> |
|
|
|
<template #left> |
|
|
|
<van-icon name="user-circle-o" class="fn-25 color-theme-1" /> |
|
|
|
<van-icon name="user-circle-o" class="fn-25 color-theme-1" style="color: #326AEB;" /> |
|
|
|
<view class="d-flex align-center justify-center"> |
|
|
|
<text class="p-l-md fn-18 color-light">{{ app.appName }} |
|
|
|
<span class="fn-16 m-l-xs">{{$t('first.a2')}}</span> |
|
|
|
<!-- <text class="p-l-md fn-18 color-light">{{ app.appName }} --> |
|
|
|
<!-- <span class="fn-16 m-l-xs">{{$t('first.a2')}}</span> --> |
|
|
|
</text> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
@ -412,7 +412,12 @@ |
|
|
|
<view class="title1">{{ $t("cxiNewText.a71") }}</view> |
|
|
|
<view class="title2">{{ $t("cxiNewText.a72") }}</view> |
|
|
|
<view class=""> |
|
|
|
<view class=""> |
|
|
|
<v-link class="" v-for="(articleItem, articleIndex) in articleList" :key="articleIndex" :to="'/pages/help/detail?id='+articleItem.id"> |
|
|
|
<view class="list-box m-b-md m-t-lg" :style="{backgroundImage: bgUrl(articleItem.full_cover)}"></view> |
|
|
|
<!-- <view class="list-box m-b-md m-t-lg" :style="{backgroundImage: `url('${articleItem.full_cover} ');`}"></view> --> |
|
|
|
<view class="">{{ articleItem.title }}</view> |
|
|
|
</v-link> |
|
|
|
<!-- <view class=""> |
|
|
|
<view class="list-box m-b-md m-t-lg" style="background-image: url('../../static/img/trusted-section_2.png');"></view> |
|
|
|
<view class="">{{ $t("cxiNewText.a77") }}</view> |
|
|
|
</view> |
|
|
|
@ -423,7 +428,7 @@ |
|
|
|
<view class=""> |
|
|
|
<view class="list-box m-b-md m-t-lg" style="background-image: url('../../static/img/trusted-section_4.png');"></view> |
|
|
|
<view class="">{{ $t("cxiNewText.a78") }}</view> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 随时随地,开启交易 --> |
|
|
|
@ -670,6 +675,7 @@ import math from "@/utils/class/math.js"; |
|
|
|
import Member from "@/api/member"; |
|
|
|
import app from "@/app"; |
|
|
|
import Profile from "@/api/profile"; |
|
|
|
import College from "@/api/college"; |
|
|
|
import { mapState, mapActions } from "vuex"; |
|
|
|
import {handleClipboard} from '../../utils/class/copy.js' |
|
|
|
import qs from "qs"; |
|
|
|
@ -728,7 +734,10 @@ export default { |
|
|
|
detail:{}, |
|
|
|
num:0, |
|
|
|
scrollTop:0, |
|
|
|
refreshing:false |
|
|
|
refreshing:false, |
|
|
|
guideList: [],//课程列表 |
|
|
|
guideId: '',// 当前显示课程分类的ID |
|
|
|
articleList: [] |
|
|
|
}; |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
@ -1019,11 +1028,49 @@ export default { |
|
|
|
this.detail = res.data |
|
|
|
}) |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 获取课程分类和列表 |
|
|
|
*/ |
|
|
|
getCollegeLinks() { |
|
|
|
College.getCategoryList().then(res => { |
|
|
|
console.log(res, 11111); |
|
|
|
let list = res.data; |
|
|
|
list.forEach(item => { |
|
|
|
if (this.guideId === '') { |
|
|
|
this.guideId = item.id; |
|
|
|
this.getArticleList(); |
|
|
|
} |
|
|
|
this.guideList.push({ |
|
|
|
url : `/college/list/${item.id}`, |
|
|
|
label : item.name, |
|
|
|
value : item.name, |
|
|
|
id : item.id |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
getArticleList() { |
|
|
|
College.getArticleList({ |
|
|
|
id:this.guideId |
|
|
|
}).then(res => { |
|
|
|
let data = res.data; |
|
|
|
this.articleList = data.splice(0,3); |
|
|
|
console.log(this.articleList, 222222); |
|
|
|
setTimeout(() => { |
|
|
|
this.skroll(); |
|
|
|
}, 100); |
|
|
|
}) |
|
|
|
}, |
|
|
|
bgUrl(url){ |
|
|
|
return "url('"+url+"')"; |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.indexData(); |
|
|
|
this.indexMarketList(); |
|
|
|
this.getCurrencyExCny() |
|
|
|
this.getCurrencyExCny(); |
|
|
|
this.getCollegeLinks(); |
|
|
|
|
|
|
|
if (this.isLogin) { |
|
|
|
this.createWalletAddress(); |
|
|
|
this.getAuthInfo() |
|
|
|
|