Browse Source

修改bug

master
岳鹏龙 9 months ago
parent
commit
a581aeaead
  1. 7
      src/components/zh-scroll/zh-scroll.vue
  2. 6
      src/pages/index/index.vue
  3. 2
      src/pages/index/tabsComm.vue

7
src/components/zh-scroll/zh-scroll.vue

@ -56,16 +56,17 @@
}>() }>()
const instance = getCurrentInstance(); const instance = getCurrentInstance();
const menuScrollIntoView = ref(""); const menuScrollIntoView = ref("");
const curCateId = ref(6905);
const cateScrollTop = ref(0); const cateScrollTop = ref(0);
// //
const sizeCalcState = ref(false); const sizeCalcState = ref(false);
const goods = ref<ICateItem[]>([]); const goods = ref<ICateItem[]>([]);
const curCateId = ref(0);
watch( watch(
() => props.scrollList, () => props.scrollList,
newVal => { newVal => {
goods.value = newVal; goods.value = newVal;
curCateId.value = goods.value[0]?.id
nextTick(() => { nextTick(() => {
if (newVal && newVal.length > 0) { if (newVal && newVal.length > 0) {
calcSize(); calcSize();
@ -223,8 +224,8 @@
color: #3D3D3D; color: #3D3D3D;
} }
.changeicon { .changeicon {
width: 12rpx; width: 20rpx;
height: 32rpx; height: 40rpx;
border-radius: 0rpx 32rpx 32rpx 0rpx; border-radius: 0rpx 32rpx 32rpx 0rpx;
/* 蓝色渐变 */ /* 蓝色渐变 */
background: linear-gradient(0deg, #007FFF 0%, #99CCFF 100%); background: linear-gradient(0deg, #007FFF 0%, #99CCFF 100%);

6
src/pages/index/index.vue

@ -18,7 +18,7 @@
</image> </image>
<view class="titlebox"> <view class="titlebox">
<view class="left"> <view class="left">
<image style="width: 40rpx;height: 40rpx;" src="@/static/img/yaohuodong.png" mode=""></image> <image style="width: 28rpx;height: 28rpx;" src="@/static/img/yaohuodong.png" mode=""></image>
<text class="text">要活动</text> <text class="text">要活动</text>
</view> </view>
<view class="more" @click="gohdList"> <view class="more" @click="gohdList">
@ -485,7 +485,7 @@
.xdb { .xdb {
font-family: Source Han Sans; font-family: Source Han Sans;
font-size: 36rpx; font-size: 30rpx;
font-weight: 500; font-weight: 500;
line-height: normal; line-height: normal;
display: flex; display: flex;
@ -680,7 +680,7 @@
.text { .text {
margin-left: 8rpx; margin-left: 8rpx;
font-family: Source Han Sans; font-family: Source Han Sans;
font-size: 36rpx; font-size: 30rpx;
font-weight: 500; font-weight: 500;
line-height: normal; line-height: normal;
display: flex; display: flex;

2
src/pages/index/tabsComm.vue

@ -157,7 +157,7 @@ onUnmounted(() => {
border-radius: 124rpx; border-radius: 124rpx;
background: #FFFFFF; background: #FFFFFF;
font-family: Source Han Sans; font-family: Source Han Sans;
font-size: 30rpx; font-size: 28rpx;
font-weight: 350; font-weight: 350;
line-height: 32rpx; line-height: 32rpx;
text-align: justify; /* 浏览器可能不支持 */ text-align: justify; /* 浏览器可能不支持 */

Loading…
Cancel
Save