|
|
@@ -75,13 +75,19 @@
|
|
|
></card-case>
|
|
|
<div class="box-footer-con">
|
|
|
<div class="box-footer-left">
|
|
|
- <div>
|
|
|
+ <div class="contact">
|
|
|
<img src="../static/imgs/icon_kefu@3x.png" alt="" />
|
|
|
<p>客服</p>
|
|
|
+ <button open-type="contact" />
|
|
|
</div>
|
|
|
- <div class="box-follow" @click="follows">
|
|
|
- <img src="../static/imgs/icon_guanzhu@3x.png" alt="" />
|
|
|
- <p>关注</p>
|
|
|
+ <div class="box-follow" :class="{ active: isCollection }" @click="collect">
|
|
|
+ <van-icon
|
|
|
+ :custom-class="animate ? 'iconAnimate' : ''"
|
|
|
+ :name="`like${isCollection ? '' : '-o'}`"
|
|
|
+ :size="24"
|
|
|
+ :color="isCollection ? $colors.prim : '#000'"
|
|
|
+ />
|
|
|
+ <p>{{ isCollection ? '已关注' : '关注' }}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="box-footer-right">
|
|
|
@@ -93,7 +99,9 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import CardCase from '../components/CardCase';
|
|
|
+import collection from '../mixins/collection';
|
|
|
export default {
|
|
|
+ mixins: [collection],
|
|
|
data() {
|
|
|
return {
|
|
|
show: false,
|
|
|
@@ -131,6 +139,12 @@ export default {
|
|
|
this.cardCaseInfo = res.cardCaseInfo || {};
|
|
|
// this.list = res.cardCaseInfo;
|
|
|
});
|
|
|
+ },
|
|
|
+ loginMethods() {
|
|
|
+ this.caseId = this.$mp.options.id;
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.checkCollect();
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
@@ -375,9 +389,28 @@ export default {
|
|
|
font-weight: 400;
|
|
|
color: #1a1a1a;
|
|
|
line-height: 14px;
|
|
|
+ white-space: nowrap;
|
|
|
}
|
|
|
.box-follow {
|
|
|
margin-left: 30px;
|
|
|
+
|
|
|
+ &.active {
|
|
|
+ p {
|
|
|
+ color: @prim;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .contact {
|
|
|
+ position: relative;
|
|
|
+ button {
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ opacity: 0;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.box-footer-right {
|