调整个人中心会员身份

This commit is contained in:
唐明明
2022-01-14 14:41:44 +08:00
parent e7d4e15459
commit a93a07a7e5
6 changed files with 33 additions and 272 deletions

View File

@@ -3,6 +3,7 @@
<view class="backCont">
<image class="img" :src="topicData.cover" mode="aspectFill"></image>
<view class="head">
<view class="ios-top"></view>
<view class="ellipsis title">
{{ topicData.name }}
</view>
@@ -64,6 +65,7 @@
<script>
import { topicDet, topicThumb } from '@/apis/interfaces/topic'
import userAuth from '@/public/userAuth'
export default {
data() {
return {
@@ -80,6 +82,9 @@
// 详情
getRank(){
topicDet(this.$Route.query.id).then(res => {
uni.setNavigationBarTitle({
title: res.name
})
this.topicData = res
this.goodsArr = res.goods
this.isFavorite = res.is_favorite
@@ -89,6 +94,11 @@
// 点赞
thumbClick(id) {
if(this.$store.state.token === ''){
const Auth = new userAuth()
Auth.Login()
return
}
topicThumb(id).then(res => {
this.isFavorite = !this.isFavorite
})
@@ -105,7 +115,7 @@
.backCont {
position: relative;
width: 100vw;
padding-top: 75%;
padding-top: 90%;
&::after {
position: absolute;
content: '';
@@ -127,7 +137,7 @@
overflow: hidden;
}
.head {
padding: $padding * 2 $padding + 30 0;
padding: $padding * 3 $padding + 30 0;
color: white;
box-sizing: border-box;
position: absolute;