新增商品选项卡显示
parent
73994859ab
commit
83069fd9b2
|
|
@ -56,7 +56,7 @@
|
|||
<script>
|
||||
const app = getApp();
|
||||
import { common_styles_computer, radius_computer, isEmpty, gradient_computer, padding_computer } from '@/common/js/common/common.js';
|
||||
import imageEmpty from './modules/image-empty.vue';
|
||||
import imageEmpty from '@/components/diy/modules/image-empty.vue';
|
||||
export default {
|
||||
components: {
|
||||
imageEmpty
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
<componentCarousel v-if="item.key == 'carousel'" :value="item.com_data"></componentCarousel>
|
||||
<componentNavGroup v-if="item.key == 'nav-group'" :value="item.com_data"></componentNavGroup>
|
||||
<componentGoodsList v-if="item.key == 'goods-list'" :value="item.com_data"></componentGoodsList>
|
||||
<componentGoodsTabs v-if="item.key == 'goods-tabs'" :value="item.com_data"></componentGoodsTabs>
|
||||
<componentDiyUserInfo v-if="item.key == 'user-info'" :value="item.com_data"></componentDiyUserInfo>
|
||||
<componentDiyVideo v-else-if="item.key == 'video'" :value="item.com_data"></componentDiyVideo>
|
||||
<componentDiyArticleList v-else-if="item.key == 'article-list'" :value="item.com_data"></componentDiyArticleList>
|
||||
|
|
@ -44,6 +45,7 @@
|
|||
import componentAuxiliaryBlank from '@/components/diy/auxiliary-blank.vue';
|
||||
import componentNavGroup from '@/components/diy/nav-group.vue';
|
||||
import componentGoodsList from '@/components/diy/goods-list.vue';
|
||||
import componentGoodsTabs from '@/components/diy/goods-tabs.vue'
|
||||
export default {
|
||||
name: 'diy',
|
||||
props: {
|
||||
|
|
@ -69,7 +71,8 @@
|
|||
componentTextTitle,
|
||||
componentAuxiliaryBlank,
|
||||
componentNavGroup,
|
||||
componentGoodsList
|
||||
componentGoodsList,
|
||||
componentGoodsTabs
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@
|
|||
|
||||
<script>
|
||||
const app = getApp();
|
||||
import { isEmpty } from '../../common/js/common/common';
|
||||
import imageEmpty from './modules/image-empty.vue';
|
||||
import { isEmpty } from '@/common/js/common/common.js';
|
||||
import imageEmpty from '@/components/diy/modules/image-empty.vue';
|
||||
export default {
|
||||
components: {
|
||||
imageEmpty
|
||||
|
|
|
|||
|
|
@ -147,8 +147,8 @@
|
|||
gradient_handle,
|
||||
padding_computer,
|
||||
radius_computer
|
||||
} from '../../common/js/common/common';
|
||||
import imageEmpty from './modules/image-empty.vue';
|
||||
} from '@/common/js/common/common.js';
|
||||
import imageEmpty from '@/components/diy/modules/image-empty.vue';
|
||||
export default {
|
||||
components: {
|
||||
imageEmpty
|
||||
|
|
|
|||
|
|
@ -31,8 +31,8 @@
|
|||
isEmpty,
|
||||
common_styles_computer,
|
||||
radius_computer
|
||||
} from '../../common/js/common/common';
|
||||
import imageEmpty from './modules/image-empty.vue';
|
||||
} from '@/common/js/common/common.js';
|
||||
import imageEmpty from '@/components/diy/modules/image-empty.vue';
|
||||
export default {
|
||||
components: {
|
||||
imageEmpty
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
</view>
|
||||
</template>
|
||||
<template v-else>
|
||||
<iconfont :name="!is_obj_empty(form.icon_class) ? 'icon-' + form.icon_class : 'icon-index-search'" size="'28rpx'" :color="new_style.icon_color"></iconfont>
|
||||
<iconfont :name="!isEmpty(form.icon_class) ? 'icon-' + form.icon_class : 'icon-index-search'" size="'28rpx'" :color="new_style.icon_color"></iconfont>
|
||||
</template>
|
||||
</template>
|
||||
<span v-if="form.is_tips_show == '1'" :class="[isPageSettings ? 'text-size-xs text-line-1' : 'text-size-md text-line-1']" :style="'color:' + new_style.tips_color">{{ form.tips }}</span>
|
||||
|
|
@ -19,12 +19,12 @@
|
|||
<template v-if="form.search_type === 'text'">
|
||||
<view :class="['padding-vertical-xs text-size-xs', isPageSettings ? 'padding-horizontal' : 'padding-horizontal-lg']">{{ form.search_tips }}</view>
|
||||
</template>
|
||||
<template v-else-if="!is_obj_empty(form.search_botton_img) && form.search_botton_img.length > 0">
|
||||
<template v-else-if="!isEmpty(form.search_botton_img) && form.search_botton_img.length > 0">
|
||||
<image :src="form.search_botton_img[0].url" class="img" :style="search_button_radius" mode="aspectFill"></image>
|
||||
</template>
|
||||
<template v-else>
|
||||
<view :class="['padding-vertical-xs text-size-xs', isPageSettings ? 'padding-horizontal' : 'padding-horizontal-lg']">
|
||||
<iconfont :name="!is_obj_empty(form.search_botton_icon) ? 'icon-' + form.search_botton_icon : ''" size="'28rpx'"></iconfont>
|
||||
<iconfont :name="!isEmpty(form.search_botton_icon) ? 'icon-' + form.search_botton_icon : ''" size="'28rpx'"></iconfont>
|
||||
</view>
|
||||
</template>
|
||||
</view>
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { background_computer, common_styles_computer, gradient_computer, radius_computer, is_obj_empty } from '@/common/js/common/common.js';
|
||||
import { background_computer, common_styles_computer, gradient_computer, radius_computer, isEmpty } from '@/common/js/common/common.js';
|
||||
export default {
|
||||
props: {
|
||||
value: {
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
this.init();
|
||||
},
|
||||
methods: {
|
||||
is_obj_empty,
|
||||
isEmpty,
|
||||
init() {
|
||||
const { search_button_radius, common_style } = this.new_style;
|
||||
this.setData({
|
||||
|
|
|
|||
Loading…
Reference in New Issue