|
@ -18,7 +18,7 @@ |
|
|
<scroll-view class="left-container no-scrollbar" :scroll-y="true"> |
|
|
<scroll-view class="left-container no-scrollbar" :scroll-y="true"> |
|
|
<view :class="['type-item',typeIndex==i?'active':'']" |
|
|
<view :class="['type-item',typeIndex==i?'active':'']" |
|
|
v-for="(item,i) in typeParam" :key="i" @click="changeType(item,i)"> |
|
|
v-for="(item,i) in typeParam" :key="i" @click="changeType(item,i)"> |
|
|
味 | WEI |
|
|
{{item.title}} |
|
|
<view class="active-type-bar" v-if="typeIndex==i"></view> |
|
|
<view class="active-type-bar" v-if="typeIndex==i"></view> |
|
|
</view> |
|
|
</view> |
|
|
<view style="height: 148rpx;width: 1rpx;"></view> |
|
|
<view style="height: 148rpx;width: 1rpx;"></view> |
|
@ -101,7 +101,7 @@ |
|
|
<uni-badge class="uni-badge-left-margin" :text="paramData.num" absolute="rightTop" :offset="[5, 5]" size="small" |
|
|
<uni-badge class="uni-badge-left-margin" :text="paramData.num" absolute="rightTop" :offset="[5, 5]" size="small" |
|
|
:custom-style="{background:'#D90F01',color:'#ffffff',border:'1px solid #ffffff'}"> |
|
|
:custom-style="{background:'#D90F01',color:'#ffffff',border:'1px solid #ffffff'}"> |
|
|
<view class="img-box" @click.stop="showCartClick"> |
|
|
<view class="img-box" @click.stop="showCartClick"> |
|
|
<image :src="showImg('/uploads/20241104/88b88bf627a63dd000afe769d1392fb4.png')" mode="aspectFill"></image> |
|
|
<image :src="showImg('/uploads/20250513/cc33cde475ce45c274cb304e20805aa1.png')" mode="aspectFill"></image> |
|
|
</view> |
|
|
</view> |
|
|
</uni-badge> |
|
|
</uni-badge> |
|
|
<view class="bottom-price"> |
|
|
<view class="bottom-price"> |
|
@ -184,14 +184,16 @@ |
|
|
// 导航栏参数 |
|
|
// 导航栏参数 |
|
|
height: 0, |
|
|
height: 0, |
|
|
statusBarHeight: 0, |
|
|
statusBarHeight: 0, |
|
|
headImg: null, |
|
|
headImg: "https://cgc.js-dyyj.com/uploads/20250513/f8b255f965efcd71b6843e4b72c3f1f3.png", |
|
|
|
|
|
|
|
|
typeParam: [ |
|
|
typeParam: [ |
|
|
{id: 60, title: ''},{id: 59, title: ''},{id: 60, title: ''}, |
|
|
{id: 45, title: '味 | WEI'}, |
|
|
{id: 1, title: ''},{id: 1, title: ''},{id: 1, title: ''}, |
|
|
{id: 46, title: '服 | FU'}, |
|
|
{id: 1, title: ''},{id: 1, title: ''},{id: 1, title: ''}, |
|
|
{id: 47, title: '器 | QI'}, |
|
|
{id: 1, title: ''},{id: 1, title: ''},{id: 1, title: ''}, |
|
|
{id: 48, title: '香 | XIANG'}, |
|
|
{id: 1, title: ''},{id: 1, title: ''},{id: 1, title: ''}, |
|
|
{id: 49, title: '饰 | SHI'}, |
|
|
|
|
|
{id: 50, title: '艺 | YI'}, |
|
|
|
|
|
|
|
|
], |
|
|
], |
|
|
typeIndex: 0, |
|
|
typeIndex: 0, |
|
|
list:[], |
|
|
list:[], |
|
@ -211,7 +213,14 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
onLoad(options) { |
|
|
onLoad(options) { |
|
|
this.getHeadImg("techan").then(res => {this.headImg = res}) |
|
|
// this.getHeadImg("techan").then(res => {this.headImg = res}) |
|
|
|
|
|
if (options.idIndex) { |
|
|
|
|
|
try { |
|
|
|
|
|
this.typeIndex = Number(options.idIndex) |
|
|
|
|
|
} catch(e) { |
|
|
|
|
|
this.typeIndex = 0 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
onReady() { |
|
|
onReady() { |
|
|