修改导航组的角标显示

master
于肖磊 2024-11-25 17:01:44 +08:00
parent b2d874d2ae
commit 75212defd0
4 changed files with 11 additions and 7 deletions

View File

@ -7,10 +7,10 @@
data: {
//
//
request_url:'http://new.shopxo.vip/',
request_url:'http://shopxo.com/',
// publicpublichttps://d1.shopxo.vip/public/
static_url:'http://new.shopxo.vip/',
static_url:'http://shopxo.com/',
// default
system_type: 'default',

View File

@ -17,7 +17,7 @@
</block>
<block v-else>
<block v-if="!isEmpty(item)">
<view class="oh re" :class="img_size">
<view class="oh pr" :class="img_size">
<view v-if="!isEmpty(item.new_cover)" :style="img_size">
<imageEmpty :propImageSrc="item.new_cover[0]" :propStyle="content_img_radius" propErrorStyle="width: 100rpx;height: 100rpx;"></imageEmpty>
</view>
@ -117,7 +117,7 @@
<view v-for="(item, index) in item1.split_list" :key="index" class="pr oh" :style="layout_style" :data-index="index1" :data-split-index="index" :data-value="item.goods_url" @tap.stop="url_event">
<view :class="layout_type" :style="layout_img_style">
<block v-if="!isEmpty(item)">
<view class="oh re" :class="'flex-img' + theme">
<view class="oh pr" :class="'flex-img' + theme">
<view v-if="!isEmpty(item.new_cover)" :class="'flex-img' + theme">
<imageEmpty :propImageSrc="item.new_cover[0]" :propStyle="content_img_radius" propErrorStyle="width: 100rpx;height: 100rpx;"></imageEmpty>
</view>

View File

@ -28,6 +28,10 @@
type: Object,
default: () => ({}),
},
propType: {
type: String,
default: 'outer',
},
},
data() {
return {
@ -45,9 +49,9 @@
isEmpty,
//
init() {
if (!isEmpty(this.propValue) && !isEmpty(this.propValue.style.subscript_style)) {
if (!isEmpty(this.propValue)) {
const new_content = this.propValue.content || {};
const new_style = this.propValue.style || {};
const new_style = this.propType == 'outer' ? this.propValue.style || {} : { subscript_style: this.propValue.style || {} };
//
this.setData({

View File

@ -10,7 +10,7 @@
<imageEmpty :propImageSrc="item1.img[0]" :propStyle="img_style" propErrorStyle="width: 60rpx;height: 60rpx;"></imageEmpty>
</view>
<!-- 角标 -->
<subscriptIndex :propValue="propValue"></subscriptIndex>
<subscriptIndex :propValue="item1.subscript" propType="nav-group"></subscriptIndex>
</view>
<view v-if="['image_with_text', 'text'].includes(nav_style)" class="wh-auto size-12 ma-0 nowrap oh tc" :style="text_style">{{ item1.title }}</view>
</view>