|
@@ -2,10 +2,12 @@
|
|
<mobile-frame>
|
|
<mobile-frame>
|
|
<view class="main">
|
|
<view class="main">
|
|
<view class="onemain">
|
|
<view class="onemain">
|
|
- <scroll-view scroll-y="true" class="scroll-view" scroll-with-animation :scroll-into-view="topItem" @scroll="handleScroll">
|
|
|
|
|
|
+ <scroll-view scroll-y="true" class="scroll-view" scroll-with-animation :scroll-into-view="topItem"
|
|
|
|
+ @scroll="handleScroll">
|
|
<view class="list-scroll-view" id="top">
|
|
<view class="list-scroll-view" id="top">
|
|
<view class="one">
|
|
<view class="one">
|
|
- <swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff" indicator-active-color="#FB1438" :autoplay="true" :interval="3000" :duration="1000">
|
|
|
|
|
|
+ <swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff"
|
|
|
|
+ indicator-active-color="#FB1438" :autoplay="true" :interval="3000" :duration="1000">
|
|
<swiper-item class="list" v-for="(item,index) in bannerList" :key="index">
|
|
<swiper-item class="list" v-for="(item,index) in bannerList" :key="index">
|
|
<image class="image" :src="item.url" mode="">
|
|
<image class="image" :src="item.url" mode="">
|
|
</image>
|
|
</image>
|
|
@@ -68,7 +70,8 @@
|
|
</scroll-view>
|
|
</scroll-view>
|
|
</view>
|
|
</view>
|
|
<view class="foot">
|
|
<view class="foot">
|
|
- <uni-goods-nav :options="options" :button-group="buttonGroup" @click="onClick" @buttonClick="buttonClick" />
|
|
|
|
|
|
+ <uni-goods-nav :options="options" :button-group="buttonGroup" @click="onClick"
|
|
|
|
+ @buttonClick="buttonClick" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="collect">
|
|
<view class="collect">
|
|
@@ -107,7 +110,12 @@
|
|
<view class="two">
|
|
<view class="two">
|
|
<view class="two_1">规格</view>
|
|
<view class="two_1">规格</view>
|
|
<view class="two_2">
|
|
<view class="two_2">
|
|
- <text v-for="(item,index) in specs" :key="index" @click="toStyle(item,index)" :class="{ 'style': isActive==index}">{{item.name}}</text>
|
|
|
|
|
|
+ <view class="two_2_1" v-for="(item,index) in specs" :key="index">
|
|
|
|
+ <text @click="toStyle(item,index)" :class="{ 'style': isActive==index}">{{item.name}}
|
|
|
|
+ </text>
|
|
|
|
+ <text @click="toGroup(item)">参团</text>
|
|
|
|
+ </view>
|
|
|
|
+ <!-- v-if="can_group=='0'" -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="thr">
|
|
<view class="thr">
|
|
@@ -299,6 +307,14 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 参团
|
|
|
|
+ toGroup(e) {
|
|
|
|
+ console.log(e);
|
|
|
|
+ const that = this;
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: `/pagesHome/group/index?specs_id=${e._id}&goods_id=${that.id}`
|
|
|
|
+ })
|
|
|
|
+ },
|
|
//主菜单跳转
|
|
//主菜单跳转
|
|
toPath(e) {
|
|
toPath(e) {
|
|
if (e && e.route) uni.reLaunch({
|
|
if (e && e.route) uni.reLaunch({
|
|
@@ -801,17 +817,30 @@
|
|
|
|
|
|
.two_2 {
|
|
.two_2 {
|
|
padding: 1vw;
|
|
padding: 1vw;
|
|
|
|
+ display: flex;
|
|
|
|
|
|
- text {
|
|
|
|
- margin: 0 2vw 0 0;
|
|
|
|
- padding: 1vw;
|
|
|
|
- border-radius: 1vw;
|
|
|
|
- background-color: var(--f9Color);
|
|
|
|
- }
|
|
|
|
|
|
+ .two_2_1 {
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ align-items: center;
|
|
|
|
|
|
- .style {
|
|
|
|
- color: var(--mainColor);
|
|
|
|
- background-color: var(--ff0Color);
|
|
|
|
|
|
+ text {
|
|
|
|
+ margin: 0 2vw 0 0;
|
|
|
|
+ padding: 1vw;
|
|
|
|
+ border-radius: 1vw;
|
|
|
|
+ background-color: var(--f9Color);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ text:last-child {
|
|
|
|
+ margin: 1vw 0 0 0;
|
|
|
|
+ color: var(--mainColor);
|
|
|
|
+ background-color: #FFD700;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .style {
|
|
|
|
+ color: var(--mainColor);
|
|
|
|
+ background-color: var(--ff0Color);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|