fix(组件): 修补组件引用缺失
This commit is contained in:
@@ -27,11 +27,25 @@
|
||||
import uniGrid from '@/components/uni-grid/uni-grid.vue';
|
||||
import uniGridItem from '@/components/uni-grid-item/uni-grid-item.vue';
|
||||
import nsAdv from '@/pages_tool/components/ns-adv/ns-adv.vue';
|
||||
import MescrollUni from "@/components/mescroll/my-list-mescroll.vue";
|
||||
import nsLogin from '@/components/ns-login/ns-login.vue';
|
||||
import loadingCover from '@/components/loading-cover/loading-cover.vue';
|
||||
import nsEmpty from '@/components/ns-empty/ns-empty.vue';
|
||||
// #ifdef MP-WEIXIN
|
||||
import privacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
|
||||
// #endif
|
||||
export default {
|
||||
components: {
|
||||
uniGrid,
|
||||
uniGridItem,
|
||||
nsAdv
|
||||
nsAdv,
|
||||
MescrollUni,
|
||||
nsLogin,
|
||||
loadingCover,
|
||||
nsEmpty,
|
||||
// #ifdef MP-WEIXIN
|
||||
privacyPopup
|
||||
// #endif
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -70,7 +70,23 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import MescrollUni from "@/components/mescroll/my-list-mescroll.vue";
|
||||
import nsLogin from '@/components/ns-login/ns-login.vue';
|
||||
import loadingCover from '@/components/loading-cover/loading-cover.vue';
|
||||
import nsEmpty from '@/components/ns-empty/ns-empty.vue';
|
||||
// #ifdef MP-WEIXIN
|
||||
import privacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
|
||||
// #endif
|
||||
export default {
|
||||
components: {
|
||||
MescrollUni,
|
||||
nsLogin,
|
||||
loadingCover,
|
||||
nsEmpty,
|
||||
// #ifdef MP-WEIXIN
|
||||
privacyPopup
|
||||
// #endif
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
list: [],
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<template>
|
||||
<view class="goods-evaluate" :style="themeColor">
|
||||
<view class="evaluate-tab">
|
||||
<view v-for="(item, index) in evaluateList" :key="index" :class="evaluateTab == item.value ? 'active-tab' : ''" @click="onEvaluateTab(item.value)">
|
||||
<view v-for="(item, index) in evaluateList" :key="index"
|
||||
:class="evaluateTab == item.value ? 'active-tab' : ''" @click="onEvaluateTab(item.value)">
|
||||
{{ item.name }}({{ item.count }})
|
||||
</view>
|
||||
</view>
|
||||
@@ -11,26 +12,32 @@
|
||||
<view class="evaluator">
|
||||
<view>
|
||||
<view class="evaluator-face">
|
||||
<image v-if="item.member_headimg" :src="$util.img(item.member_headimg)" @error="imageError(index)" mode="aspectFill" />
|
||||
<image v-if="item.member_headimg" :src="$util.img(item.member_headimg)"
|
||||
@error="imageError(index)" mode="aspectFill" />
|
||||
<image v-else :src="$util.getDefaultImage().head" mode="aspectFill" />
|
||||
</view>
|
||||
|
||||
<view class="evaluator-info">
|
||||
<view class="evaluator-info-left">
|
||||
<view class="evaluator-name using-hidden" v-if="item.member_name.length > 2 && item.is_anonymous == 1">
|
||||
<view class="evaluator-name using-hidden"
|
||||
v-if="item.member_name.length > 2 && item.is_anonymous == 1">
|
||||
{{ item.member_name[0] }}***{{ item.member_name[item.member_name.length - 1] }}
|
||||
</view>
|
||||
<text class="evaluator-name using-hidden" v-else>{{ item.member_name }}</text>
|
||||
<view class="evaluator-time color-tip">{{ $util.timeStampTurnTime(item.create_time) }}</view>
|
||||
<view class="evaluator-time color-tip">{{ $util.timeStampTurnTime(item.create_time)
|
||||
}}</view>
|
||||
</view>
|
||||
<view class="evaluator-xing">
|
||||
<xiaoStarComponent :starCount="item.scores * 2"></xiaoStarComponent>
|
||||
</view>
|
||||
<view class="evaluator-xing"><xiaoStarComponent :starCount="item.scores * 2"></xiaoStarComponent></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cont">{{ item.content }}</view>
|
||||
<scroll-view scroll-x="true">
|
||||
<view class="evaluate-img" v-if="item.images">
|
||||
<view class="img-box" v-for="(img, img_index) in item.images" :key="img_index" @click="previewEvaluate(index, img_index, 'images')">
|
||||
<view class="img-box" v-for="(img, img_index) in item.images" :key="img_index"
|
||||
@click="previewEvaluate(index, img_index, 'images')">
|
||||
<image :src="$util.img(img)" mode="aspectFill" />
|
||||
</view>
|
||||
</view>
|
||||
@@ -46,12 +53,8 @@
|
||||
<view class="cont">{{ item.again_content }}</view>
|
||||
<scroll-view scroll-x="true">
|
||||
<view class="evaluate-img" v-if="item.again_images.length > 0">
|
||||
<view
|
||||
class="img-box"
|
||||
v-for="(again_img, again_index) in item.again_images"
|
||||
:key="again_index"
|
||||
@click="previewEvaluate(index, again_index, 'again_images')"
|
||||
>
|
||||
<view class="img-box" v-for="(again_img, again_index) in item.again_images"
|
||||
:key="again_index" @click="previewEvaluate(index, again_index, 'again_images')">
|
||||
<image :src="$util.img(again_img)" mode="aspectFill"></image>
|
||||
</view>
|
||||
</view>
|
||||
@@ -71,9 +74,26 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import MescrollUni from "@/components/mescroll/my-list-mescroll.vue";
|
||||
import nsLogin from '@/components/ns-login/ns-login.vue';
|
||||
import loadingCover from '@/components/loading-cover/loading-cover.vue';
|
||||
import nsEmpty from '@/components/ns-empty/ns-empty.vue';
|
||||
// #ifdef MP-WEIXIN
|
||||
import privacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
|
||||
// #endif
|
||||
|
||||
import xiaoStarComponent from '@/components/xiao-star-component/xiao-star-component.vue';
|
||||
export default {
|
||||
components: { xiaoStarComponent },
|
||||
components: {
|
||||
xiaoStarComponent,
|
||||
MescrollUni,
|
||||
nsLogin,
|
||||
loadingCover,
|
||||
nsEmpty,
|
||||
// #ifdef MP-WEIXIN
|
||||
privacyPopup
|
||||
// #endif
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
goodsId: 0,
|
||||
@@ -198,11 +218,13 @@ export default {
|
||||
padding: 8rpx 30rpx;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.active-tab {
|
||||
background-color: $base-color;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.evaluate-item {
|
||||
margin: $margin-updown $margin-both;
|
||||
padding: $margin-both;
|
||||
@@ -210,7 +232,7 @@ export default {
|
||||
border-radius: 10rpx;
|
||||
|
||||
.evaluator {
|
||||
& > view {
|
||||
&>view {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
@@ -243,6 +265,7 @@ export default {
|
||||
// margin-top: 14rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.evaluator-info-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -318,7 +341,7 @@ export default {
|
||||
float: right;
|
||||
}
|
||||
|
||||
& + .cont {
|
||||
&+.cont {
|
||||
margin: 18rpx 0 0;
|
||||
}
|
||||
}
|
||||
@@ -330,7 +353,7 @@ export default {
|
||||
color: #000;
|
||||
line-height: 1;
|
||||
|
||||
& + .cont {
|
||||
&+.cont {
|
||||
margin-top: 10rpx !important;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user