2020-12-23 07:56:45 +00:00
< template >
< view :class ="{borderShow:isBorader}" >
< view class = "combination" v-if ="combinationList.length" >
2021-03-19 10:26:43 +00:00
< view class = "title acea-row row-right" >
<!-- < view class = "acea-row row-middle" >
2020-12-23 07:56:45 +00:00
< view class = "sign" >
< image src = "../../../static/images/sign02.png" > < / image >
< / view >
< view class = "name" > 拼团惠 < text > 享超值开团价 < / text > < / view >
2021-03-19 10:26:43 +00:00
< / view > -- >
< navigator url = "/pages/activity/goods_combination/index" hover -class = " none " class = "more acea-row row-center-wrapper" > 更多 < text class = "iconfont icon-xiangyou" > < / text > < / navigator >
2020-12-23 07:56:45 +00:00
< / view >
< view class = "conter acea-row" >
< scroll -view scroll -x = " true " style = "white-space: nowrap; vertical-align: middle;" show -scrollbar = " false " >
< view class = "itemCon" v-for ="(item, index) in combinationList" :key="index" @click="goDetail(item)" >
< view class = "item" >
< view class = "pictrue" >
< image :src ="item.image" > < / image >
< / view >
< view class = "text lines1" >
2021-03-19 10:26:43 +00:00
< view class = "name line1" > { { item . title } } < / view >
< view class = "money" > ¥ < text class = "num" > { { item . price } } < / text > < / view >
< view class = "y_money" > ¥ { { item . otPrice } } < / view >
2020-12-23 07:56:45 +00:00
< / view >
< / view >
< / view >
<!-- < navigator :url ="`/pages/activity/goods_combination_details/index?id=${item.id}`" hover -class = " none " class = "item" v-for ="(item, index) in combinationList" :key ="index" >
< view class = "pictrue" >
< image :src ="item.image" > < / image >
< / view >
< view class = "text lines1" >
< text class = "money" > ¥ < text class = "num" > { { item . price } } < / text > < / text >
< text class = "y_money" > ¥ { { item . otPrice } } < / text >
< / view >
< / navigator > -- >
< / s c r o l l - v i e w >
< / view >
< / view >
< / view >
< / template >
< script >
let app = getApp ( ) ;
import {
getCombinationList
} from '@/api/activity.js' ;
export default {
name : 'b_combination' ,
data ( ) {
return {
combinationList : [ ] ,
isBorader : false ,
} ;
} ,
created ( ) {
this . getCombinationList ( ) ;
} ,
mounted ( ) { } ,
methods : {
// 拼团列表
getCombinationList : function ( ) {
let that = this ;
// let limit = that.$config.LIMIT;
let data = {
page : 1 ,
limit : 4
} ;
getCombinationList ( data ) . then ( function ( res ) {
that . combinationList = res . data . list ;
} ) . catch ( ( res ) => {
return that . $util . Tips ( {
title : res
} ) ;
} )
} ,
goDetail ( item ) {
uni . navigateTo ( {
url : ` /pages/activity/goods_combination_details/index?id= ${ item . id } `
} )
}
}
}
< / script >
2021-03-19 10:26:43 +00:00
< style lang = "scss" scoped >
2020-12-23 07:56:45 +00:00
. default {
width : 690 rpx ;
height : 300 rpx ;
border - radius : 14 rpx ;
margin : 26 rpx auto 0 auto ;
background - color : # ccc ;
text - align : center ;
line - height : 300 rpx ;
. iconfont {
font - size : 80 rpx ;
}
}
. combination {
2021-03-19 10:26:43 +00:00
width : 700 rpx ;
2020-12-23 07:56:45 +00:00
background - color : # fff ;
border - radius : 14 rpx ;
margin : 26 rpx auto 0 auto ;
padding : 25 rpx 20 rpx 21 rpx 20 rpx ;
2021-03-19 10:26:43 +00:00
background - image : url ( . . / . . / . . / static / images / pth . png ) ;
background - repeat : no - repeat ;
background - size : 100 % ;
2020-12-23 07:56:45 +00:00
. title {
. sign {
width : 40 rpx ;
height : 40 rpx ;
image {
width : 100 % ;
height : 100 % ;
}
}
. name {
font - size : 32 rpx ;
color : # 282828 ;
margin - left : 12 rpx ;
font - weight : bold ;
text {
color : # 797979 ;
font - size : 24 rpx ;
font - weight : 400 ;
margin - left : 14 rpx ;
}
}
. more {
height : 37 rpx ;
font - size : 22 rpx ;
2021-03-19 10:26:43 +00:00
color : # 666666 ;
2020-12-23 07:56:45 +00:00
padding - left : 2 rpx ;
. iconfont {
font - size : 20 rpx ;
}
}
}
. conter {
2021-03-19 10:26:43 +00:00
margin - top : 28 rpx ;
2020-12-23 07:56:45 +00:00
. itemCon {
display : inline - block ;
width : 174 rpx ;
margin - right : 24 rpx ;
}
. item {
width : 100 % ;
. pictrue {
width : 100 % ;
height : 174 rpx ;
border - radius : 6 rpx ;
image {
width : 100 % ;
height : 100 % ;
border - radius : 6 rpx ;
}
}
. text {
margin - top : 4 rpx ;
2021-03-19 10:26:43 +00:00
. y _money {
font - size : 20 rpx ;
color : # 999999 ;
text - decoration : line - through ;
}
. name {
2020-12-23 07:56:45 +00:00
font - size : 24 rpx ;
2021-03-19 10:26:43 +00:00
color : # 000 ;
margin - top : 14 rpx ;
}
. money {
2020-12-23 07:56:45 +00:00
color : # FD502F ;
2021-03-19 10:26:43 +00:00
font - size : 28 rpx ;
height : 100 % ;
2020-12-23 07:56:45 +00:00
font - weight : bold ;
2021-03-19 10:26:43 +00:00
margin : 2 rpx 0 ;
. num {
2020-12-23 07:56:45 +00:00
font - size : 28 rpx ;
}
}
}
}
}
}
< / style >