This commit is contained in:
lmj
2022-11-15 10:38:10 +08:00
parent 49664be927
commit 3c17d1d4fc
2 changed files with 16 additions and 12 deletions

View File

@@ -55,13 +55,12 @@
<view > <view >
<view class="article-center"> <view class="article-center">
<author-info :avatar="item.avatar" :name="item.name" :info="item.orgInfo" :sex="item.sex"></author-info> <author-info :avatar="item.avatar" :name="item.name" :info="item.orgInfo" :sex="item.sex"></author-info>
<view class="article-status" @click="toDetail(item)"> <view class="article-status" >
<!-- <view style="" v-html="statusDisplay(item.status)"></view> --> <view @click="toDetail(item)" v-html="$keywordActiveShow(item.title, articleList.keyword)" class="article-top"></view>
<view v-html="$keywordActiveShow(item.title, articleList.keyword)" class="article-top"></view>
</view> </view>
<view class="article-bot" @click="toDetail(item)"> <view class="article-bot">
<text class="article-wz" v-html="$keywordActiveShow(item.summary, articleList.keyword)"></text> <text class="article-wz" @click="toDetail(item)" v-html="$keywordActiveShow(item.summary, articleList.keyword)"></text>
<view class="article-img"> <view class="article-img" @click="toDetail(item)">
<img style="width: 182upx;height:124upx" v-if="item.coverurl" :src="$config.fileUrl+item.coverurl" alt=""/> <img style="width: 182upx;height:124upx" v-if="item.coverurl" :src="$config.fileUrl+item.coverurl" alt=""/>
</view> </view>
</view> </view>
@@ -79,7 +78,6 @@
<interact-bar :views="false" :data="item"></interact-bar> <interact-bar :views="false" :data="item"></interact-bar>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>

View File

@@ -3,11 +3,11 @@
<view class="ubtop" style="background-color: #fff;"> <view class="ubtop" style="background-color: #fff;">
<view class="ub-heard"> <view class="ub-heard">
我的u币 我的u币
<image src="../../static/images/wenhao.png" mode=""></image> <image @click="jumrules" src="../../static/images/wenhao.png" mode=""></image>
</view> </view>
<view class="top-content"> <view class="top-content">
<view>{{uinfo.uCurrency}}</view> <view>{{uinfo.uCurrency}}</view>
统计时间{{formatDate(new Date())}} 统计时间2022.11.4
</view> </view>
</view> </view>
<view class="ub-list" v-for="(day, index) in uCoinRecord" :key="index"> <view class="ub-list" v-for="(day, index) in uCoinRecord" :key="index">
@@ -22,12 +22,14 @@
{{info.uvalue}} {{info.uvalue}}
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import {formatDate} from '../../utils/tools.js'
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import apiStat from '@/api/phase2/stat.js'; import apiStat from '@/api/phase2/stat.js';
export default { export default {
@@ -39,7 +41,6 @@
}, },
data() { data() {
return { return {
formatDate,
uCoinRecord: [], uCoinRecord: [],
uinfo: { uinfo: {
uCurrency: 0, // 用户累计U币 uCurrency: 0, // 用户累计U币
@@ -52,6 +53,11 @@
this.getLevel() this.getLevel()
}, },
methods: { methods: {
jumrules(){
uni.navigateTo({
url:'/pages/my/myubrules'
})
},
getlist() { getlist() {
apiStat.userCoinList(this.userInfo.aid, 7).then(res => { apiStat.userCoinList(this.userInfo.aid, 7).then(res => {
console.log(res); console.log(res);