Commit 0e61cd66 authored by DongRuifen's avatar DongRuifen

列表接口

parent 8109be76
/*
* @Author: your name
* @Date: 2022-01-14 11:42:25
* @LastEditTime: 2022-01-14 13:56:35
* @LastEditors: your name
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /hs-app-project/src/config/request/apiList/plm/index.js
*/
import stylelibraryorder from './stylelibraryorder/index' import stylelibraryorder from './stylelibraryorder/index'
import modelingtask from './modelingtask' import modelingtask from './modelingtask'
import mobileBrand from './mobileBrand'
export default { export default {
...stylelibraryorder, ...stylelibraryorder,
...modelingtask ...modelingtask,
...mobileBrand
} }
/*
* @Author: your name
* @Date: 2022-01-14 13:55:11
* @LastEditTime: 2022-01-14 16:50:17
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /hs-app-project/src/config/request/apiList/plm/mobileBrand/index.js
*/
import config from "../config/index";
let className = 'mobileBrand'
let baseUrl = `${config.baseUrl}/${className}`
export default {
[className]:{
'dailyNewStylePage': {
url: `${baseUrl}/dailyNewStylePage`,
method: "post",
},
'stylePage': {
url: `${baseUrl}/stylePage`,
method: "post",
},
'styleDetail': {
url: `${baseUrl}/styleDetail`,
method: "get",
},
}
}
\ No newline at end of file
...@@ -6,13 +6,9 @@ ...@@ -6,13 +6,9 @@
<u-navbar title="" :border-bottom="false" :background="background"> <u-navbar title="" :border-bottom="false" :background="background">
<template slot="right"> <template slot="right">
<!-- 插槽搜索按钮 --> <!-- 插槽搜索按钮 -->
<view @click="searchCli" class="u-m-r-24 search" <view @click="searchCli" class="u-m-r-24 search">
><image <image class="hs-img" src="../../static/images/home/search@2x.png" mode=""></image>
class="hs-img" </view>
src="../../static/images/home/search@2x.png"
mode=""
></image
></view>
</template> </template>
</u-navbar> </u-navbar>
</view> </view>
...@@ -24,13 +20,16 @@ ...@@ -24,13 +20,16 @@
</view> </view>
<view slot="body"> <view slot="body">
<view class="imgList"> <view class="imgList">
<image v-for="item,index in dailyNewStyleList" :key="index" :src="`${imgUrl}${item.originalImageCode}`"
mode=""></image>
<!--
<image src="../../static/images/brank/mei1.jpg" mode=""></image> <image src="../../static/images/brank/mei1.jpg" mode=""></image>
<image src="../../static/images/brank/mei1.jpg" mode=""></image> <image src="../../static/images/brank/mei1.jpg" mode=""></image>
<image src="../../static/images/brank/mei1.jpg" mode=""></image> <image src="../../static/images/brank/mei1.jpg" mode=""></image>
<image src="../../static/images/brank/mei1.jpg" mode=""></image> <image src="../../static/images/brank/mei1.jpg" mode=""></image>
<image src="../../static/images/brank/mei1.jpg" mode=""></image> <image src="../../static/images/brank/mei1.jpg" mode=""></image>
<image src="../../static/images/brank/mei1.jpg" mode=""></image> <image src="../../static/images/brank/mei1.jpg" mode=""></image>
<image src="../../static/images/brank/mei1.jpg" mode=""></image> <image src="../../static/images/brank/mei1.jpg" mode=""></image> -->
</view> </view>
</view> </view>
</u-card> </u-card>
...@@ -43,10 +42,10 @@ ...@@ -43,10 +42,10 @@
</view> </view>
<view slot="body"> <view slot="body">
<view class="hotFlex"> <view class="hotFlex">
<hot-style v-if="hotStylePage.records.length>0" :recordsList="hotStylePage.records"></hot-style>
<!-- <hot-style></hot-style>
<hot-style></hot-style> <hot-style></hot-style>
<hot-style></hot-style> <hot-style></hot-style> -->
<hot-style></hot-style>
<hot-style></hot-style>
</view> </view>
</view> </view>
</u-card> </u-card>
...@@ -55,15 +54,28 @@ ...@@ -55,15 +54,28 @@
</template> </template>
<script> <script>
import headTitle from "./components/header"; //每日更新头部的东西 import headTitle from "./components/header"; //每日更新头部的东西
import hotStyle from "./components/hotStyle"; //热门款式 import hotStyle from "./components/hotStyle"; //热门款式
export default { export default {
components: { headTitle, hotStyle }, components: {
headTitle,
hotStyle
},
data() { data() {
return { return {
background: { backgroundColor: "rgba(245,245,245,0)" }, fabricObj: "",
dailyNewStyleList: [],
hotStylePage: [],
imgUrl: this.$IMG_URL, // 上传地址
background: {
backgroundColor: "rgba(245,245,245,0)"
},
}; };
}, },
created() {
console.log("ces");
this.getList()
},
methods: { methods: {
// 搜索按钮 // 搜索按钮
searchCli() { searchCli() {
...@@ -71,29 +83,51 @@ export default { ...@@ -71,29 +83,51 @@ export default {
}, },
headTab() { headTab() {
this.$router.push("pages/brands/everyDay"); this.$router.push("pages/brands/everyDay");
// this.$router.push("pages/brands/detail");
}, },
getList() {
let param = {
"current": 1,
"size": 10,
"styleTag": ""
}
this.$http('mobileBrand.stylePage', param).then(res => {
let {
code,
data
} = res;
if (code === 200) {
this.dailyNewStyleList = data.dailyNewStyleList;
this.hotStylePage = data.hotStylePage;
}
});
}
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
//头部 //头部
.back_img { .back_img {
height: 486rpx; height: 486rpx;
width: 100%; width: 100%;
background: url(../../static/images/home/exhibition.png) no-repeat; background: url(../../static/images/home/exhibition.png) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }
.search {
.search {
width: 60rpx; width: 60rpx;
height: 60rpx; height: 60rpx;
} }
//每日更新
.everyUpdate { //每日更新
.everyUpdate {
width: 100%; width: 100%;
::v-deep .u-card__body { ::v-deep .u-card__body {
padding: 0rpx 0rpx 40rpx 36rpx !important; padding: 0rpx 0rpx 40rpx 36rpx !important;
} }
::v-deep .u-card__head { ::v-deep .u-card__head {
padding-bottom: 34rpx !important; padding-bottom: 34rpx !important;
} }
...@@ -101,6 +135,8 @@ export default { ...@@ -101,6 +135,8 @@ export default {
.imgList { .imgList {
overflow-x: auto; overflow-x: auto;
white-space: nowrap; white-space: nowrap;
display: flex;
image { image {
width: 240rpx; width: 240rpx;
height: 160rpx; height: 160rpx;
...@@ -108,20 +144,24 @@ export default { ...@@ -108,20 +144,24 @@ export default {
padding-left: 20.3rpx; padding-left: 20.3rpx;
} }
} }
} }
//热门款式
.hotstyle { //热门款式
.hotstyle {
::v-deep .u-card__body { ::v-deep .u-card__body {
padding-top: 24rpx !important; padding-top: 24rpx !important;
} }
::v-deep .u-card__head { ::v-deep .u-card__head {
padding-bottom: 0rpx !important; padding-bottom: 0rpx !important;
} }
width: 100%; width: 100%;
.hotFlex { .hotFlex {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
} }
} }
</style> </style>
\ No newline at end of file
<template> <template>
<view class="hots"> <view class="whole">
<image <view class="hots" v-for="(item,index) in recordsList" :key="index" >
@click="tabdetail" <image class="indexhot" :src="`${imgUrl}${item.originalImageCode}`" @click="tabdetail(item)" mode="aspectFill" ></image>
class="indexhot"
src="../../../static/images/brank/mei1.jpg" <!-- <image @click="tabdetail" class="indexhot" src="../../../static/images/brank/mei1.jpg"></image> -->
></image>
<view class="hotborder"> <view class="hotborder">
<view class="hotText1">男装-上装-青年-时尚休闲</view> <view class="hotText1">{{item.styleTag}}</view>
<view class="hotText2"> <view class="hotText2">
<image <image class="iconhot" :src="`${imgUrl}${item.originalImageCode}`" mode="aspectFill" ></image>
class="iconhot" <!-- <image class="iconhot" src="../../../static/images/brank/mei1.jpg"></image> -->
src="../../../static/images/brank/mei1.jpg" <text class="wen">{{item.materialName}}</text>
></image> <image class="iconLove" src="../../../static/images/brank/blackxin.png" v-if="!item.isFavorite" @click="tabImage">
<text class="wen">我的文字是dsadasdasddsads</text> </image>
<image <image class="iconLove" src="../../../static/images/brank/lightxin.png" v-else @click="tabImage"></image>
class="iconLove" </view>
src="../../../static/images/brank/blackxin.png"
v-if="ImageBool"
@click="tabImage"
></image>
<image
class="iconLove"
src="../../../static/images/brank/lightxin.png"
v-else
@click="tabImage"
></image>
</view> </view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
export default { export default {
props: {
recordsList: {
type: Array,
default: () => [],
}
},
data() { data() {
return { return {
// 爱心切换的bool // 爱心切换的bool
ImageBool: true, ImageBool: true,
imgUrl: this.$IMG_URL, // 上传地址
}; };
}, },
created() {
console.log(this.recordsList, "recordsList");
},
methods: { methods: {
// 点击切换心心选项 // 点击切换心心选项
tabImage() { tabImage() {
this.ImageBool = !this.ImageBool; this.ImageBool = !this.ImageBool;
}, },
// 跳转到详情 // 跳转到详情
tabdetail() { tabdetail(item) {
this.$router.push("pages/brands/detail?id=2"); // console.log("KKK");
this.$router.push("/pages/brands/detail?id=" + item.id);
// this.$router.push("pages/brands/everyDay");
}, },
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.hots { .whole{
display: flex;
flex-wrap: wrap;
}
.hots {
height: 578rpx; height: 578rpx;
width: 330rpx; width: 330rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
margin-right: 16rpx;
// flex: 1;
.indexhot { .indexhot {
display: block; display: block;
height: 434rpx; height: 434rpx;
width: 330rpx; width: 330rpx;
border-radius: 10rpx 10rpx 0 0; border-radius: 10rpx 10rpx 0 0;
} }
.hotborder { .hotborder {
height: 144rpx; height: 144rpx;
// width: 193rpx;
border: 2rpx solid #e3e1e0; border: 2rpx solid #e3e1e0;
// border-top: 0rpx !important; // border-top: 0rpx !important;
border-radius: 0 0 10rpx 10rpx; border-radius: 0 0 10rpx 10rpx;
} }
.hotText1 { .hotText1 {
font-size: 24rpx; font-size: 24rpx;
font-family: PingFangSC, PingFangSC-Regular; font-family: PingFangSC, PingFangSC-Regular;
...@@ -75,32 +86,38 @@ export default { ...@@ -75,32 +86,38 @@ export default {
color: rgba(0, 0, 0, 0.8); color: rgba(0, 0, 0, 0.8);
margin: 24rpx 28rpx 0 20rpx; margin: 24rpx 28rpx 0 20rpx;
} }
.hotText2 { .hotText2 {
width: 100%; width: 100%;
// background-color: red; // background-color: red;
margin-top: 16rpx; margin-top: 16rpx;
display: flex; display: flex;
align-items: center; align-items: center;
// margin: 24rpx 0rpx 0 20rpx; // margin: 24rpx 0rpx 0 20rpx;
.iconhot { .iconhot {
width: 40rpx; width: 40rpx;
height: 40rpx; height: 40rpx;
margin-left: 20rpx; margin-left: 20rpx;
} }
.wen { .wen {
width: 192rpx; width: 192rpx;
font-size: 24rpx; font-size: 24rpx;
margin-left: 10rpx; margin-left: 10rpx;
overflow: hidden; /*超出部分隐藏*/ overflow: hidden;
white-space: nowrap; /*禁止换行*/ /*超出部分隐藏*/
white-space: nowrap;
/*禁止换行*/
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.iconLove { .iconLove {
width: 36rpx; width: 36rpx;
height: 32rpx; height: 32rpx;
margin-left: 20rpx; margin-left: 20rpx;
} }
} }
} }
</style> </style>
\ No newline at end of file
<template> <template>
<view class="home_con_content_order" @click="click"> <view class="home_con_content_order" @click="click">
<image <!-- <image
class="width_100 hs-height-160" class="width_100 hs-height-160"
src="@/static/images/home/1@2x.png" src="@/static/images/home/1@2x.png"
mode="" mode=""
></image> ></image> -->
<!-- <image class="width_100 hs-height-160" :src="`${imgUrl}${fileCode}`"> -->
<template v-for="item,index in colourApiList">
<image :key="index" v-if="item.isMain" class="width_100 hs-height-160" :src="`${imgUrl}${item.fileCode}`" />
</template>
<view class="order_tit"> <view class="order_tit">
<view class="u-flex justify-between u-font-32"> <view class="u-flex justify-between u-font-32">
<span class="color_DDA973 u-line-1" <span class="color_DDA973 u-line-1">{{ item.materialName }}
>{{ item.materialName }}加厚荷兰绒绒布布料</span <!-- 加厚荷兰绒绒布布料 -->
> </span>
</view> </view>
<view class="u-font-24 u-m-t-20 color_6F6F72"> <view class="u-font-24 u-m-t-20 color_6F6F72">
<span class="u-m-r-10">{{ item.materialCategory }}</span> <span class="u-m-r-10">{{ item.category }}</span>
| |
<span class="u-m-l-10 u-m-r-10">{{ item.materialDoorWidth }} cm</span> <span class="u-m-l-10 u-m-r-10">{{ item.clothWidth }} cm</span>
| |
<span class="u-m-l-10">{{ item.materialElement }}</span> <span class="u-m-l-10">{{ item.component }}</span>
</view> </view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
export default { export default {
name: "hs-material-thumbnail", name: "hs-material-thumbnail",
props: { props: {
item: { item: {
type: Object, type: Object,
default: () => {}, default: () => {},
}, },
colourApiList: {
type: Array,
default: []
}
}, },
data() { data() {
return {}; return {};
...@@ -39,11 +48,11 @@ export default { ...@@ -39,11 +48,11 @@ export default {
this.$emit("click"); this.$emit("click");
}, },
}, },
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.home_con_content_order { .home_con_content_order {
position: relative; position: relative;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -52,6 +61,7 @@ export default { ...@@ -52,6 +61,7 @@ export default {
border-radius: 8rpx; border-radius: 8rpx;
overflow: hidden; overflow: hidden;
width: 100%; width: 100%;
.order_tit { .order_tit {
position: absolute; position: absolute;
width: 75%; width: 75%;
...@@ -62,35 +72,36 @@ export default { ...@@ -62,35 +72,36 @@ export default {
padding: 20rpx; padding: 20rpx;
flex: 1; flex: 1;
height: 100%; height: 100%;
background: rgba(17, 21, 30, 0.5); // background: rgba(17, 21, 30, 0.5);
} }
} }
.width_30 {
.width_30 {
width: 30%; width: 30%;
} }
.color_DDA973 { .color_DDA973 {
color: #dda973; color: #dda973;
} }
.color_6F6F72 { .color_6F6F72 {
color: #6f6f72; color: #6f6f72;
} }
.bd_dashed { .bd_dashed {
position: relative; position: relative;
} }
.bd_dashed:after { .bd_dashed:after {
border-width: 1px; border-width: 1px;
} }
.bd_dashed-bottom:after, .bd_dashed-bottom:after,
.bd_dashed-left:after, .bd_dashed-left:after,
.bd_dashed-right:after, .bd_dashed-right:after,
.bd_dashed-top-bottom:after, .bd_dashed-top-bottom:after,
.bd_dashed-top:after, .bd_dashed-top:after,
.bd_dashed:after { .bd_dashed:after {
content: " "; content: " ";
position: absolute; position: absolute;
left: 0; left: 0;
...@@ -103,11 +114,11 @@ export default { ...@@ -103,11 +114,11 @@ export default {
transform: scale(0.5, 0.5); transform: scale(0.5, 0.5);
border: 1px dashed #e4e7ed; border: 1px dashed #e4e7ed;
z-index: 2; z-index: 2;
} }
.ov_hiden { .ov_hiden {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
</style> </style>
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<!-- <u-navbar title="" :border-bottom="false" :background="background"> <!-- <u-navbar title="" :border-bottom="false" :background="background">
</u-navbar> --> </u-navbar> -->
<view> <view>
<u-image height="750rpx" src="@/static/images/brank/deImg.png"></u-image> <u-image height="750rpx" :src="`${imgUrl}${tabledata.originalImageCode}`"></u-image>
</view> </view>
<view class="u-p-r-30 u-p-l-30"> <view class="u-p-r-30 u-p-l-30">
<!--款式信息 --> <!--款式信息 -->
...@@ -11,36 +11,36 @@ ...@@ -11,36 +11,36 @@
<view class="u-border-bottom u-line-88">款式信息</view> <view class="u-border-bottom u-line-88">款式信息</view>
<view class="fabric u-m-t-24"> <view class="fabric u-m-t-24">
<text class="textStyle1">产品款号</text> <text class="textStyle1">产品款号</text>
<text class="textStyle2">AS23124</text> <text class="textStyle2">{{tabledata.styleCode}}</text>
</view> </view>
<view class="fabric u-m-t-8"> <view class="fabric u-m-t-8">
<text class="textStyle1">面料供应商</text> <text class="textStyle1">面料供应商</text>
<text class="textStyle2">AS23124</text> <text class="textStyle2">{{tabledata.supplierName}}</text>
</view> </view>
</view> </view>
<!-- 面料信息 --> <!-- 面料信息 -->
<view class="bg-fff u-p-r-30 u-p-b-30 u-p-l-30 item"> <view class="bg-fff u-p-r-30 u-p-b-30 u-p-l-30 item">
<view class="u-border-bottom u-line-88">面料信息</view> <view class="u-border-bottom u-line-88">面料信息</view>
<view class="u-m-t-30 u-m-b-56"> <view class="u-m-t-30 u-m-b-56">
<material :item="item"></material> <material :item="item" :colourApiList="tabledata.colourApiList"></material>
</view> </view>
<!-- 其他颜色 --> <!-- 其他颜色 -->
<view class="u-flex"> <view class="u-flex">
<view class="overflow u-flex-1"> <view class="overflow u-flex-1">
<view>其他颜色</view> <view>其他颜色</view>
<view> <view>
<view class="image u-m-r-10"> <view class="image u-m-r-10" v-for="item,index in tabledata.colourApiList" :key="index">
<image src="" style="width: 100%; height: 100%"></image> <image v-if="item.isMain" :src="`${imgUrl}${item.fileCode}`" style="width: 100%; height: 100%"></image>
<view class="image-tip u-line-1">颜色</view> <view class="image-tip u-line-1">颜色</view>
</view> </view>
<view class="image u-m-r-10"> <!-- <view class="image u-m-r-10">
<image src="" style="width: 100%; height: 100%"></image> <image src="" style="width: 100%; height: 100%"></image>
<view class="image-tip u-line-1">颜色</view> <view class="image-tip u-line-1">颜色</view>
</view> </view>
<view class="image u-m-r-10"> <view class="image u-m-r-10">
<image src="" style="width: 100%; height: 100%"></image> <image src="" style="width: 100%; height: 100%"></image>
<view class="image-tip u-line-1">颜色</view> <view class="image-tip u-line-1">颜色</view>
</view> </view> -->
</view> </view>
</view> </view>
</view> </view>
...@@ -53,43 +53,85 @@ ...@@ -53,43 +53,85 @@
</template> </template>
<script> <script>
import material from "./components/hs-material-thumbnail.vue"; import material from "./components/hs-material-thumbnail.vue";
export default { export default {
components: { material }, components: {
material
},
data() { data() {
return { return {
tabledata:{},
item: {}, item: {},
id: "",
imgUrl: this.$IMG_URL, // 上传地址
}; };
}, },
}; watch: {
id: {
handler() {
console.log("oid");
this.detail()
}
}
},
created() {
this.detail()
},
onLoad(options) {
this.id = options.id;
},
methods: {
detail() {
let param = {
id: this.id
}
this.$http('mobileBrand.styleDetail', param).then(res => {
let {
code,
data
} = res;
if (code === 200) {
this.tabledata=data
this.item=data.materialInfo
}
});
}
},
};
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
$h-color: #af8d66; $h-color: #af8d66;
$activeColor: #dda973; $activeColor: #dda973;
$color: rgba(175, 141, 102, 0.1); $color: rgba(175, 141, 102, 0.1);
$main-color: #fff; $main-color: #fff;
// 款式信息
.textStyle1 { // 款式信息
.textStyle1 {
display: inline-block; display: inline-block;
width: 160rpx; width: 160rpx;
color: rgba(0, 0, 0, 0.4); color: rgba(0, 0, 0, 0.4);
} }
.textStyle2 {
.textStyle2 {
margin-left: 40rpx; margin-left: 40rpx;
font-size: 14px; font-size: 14px;
font-family: PingFangSC, PingFangSC-Regular; font-family: PingFangSC, PingFangSC-Regular;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
} }
// 我要采购布样
.sampling { // 我要采购布样
.sampling {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
width: 750rpx; width: 750rpx;
height: 100rpx; height: 100rpx;
background: #ffffff; background: #ffffff;
box-shadow: 0px -2px 3px 0px rgba(178, 182, 214, 0.1); box-shadow: 0px -2px 3px 0px rgba(178, 182, 214, 0.1);
.u-btn { .u-btn {
width: 630rpx; width: 630rpx;
height: 88rpx; height: 88rpx;
...@@ -97,17 +139,19 @@ $main-color: #fff; ...@@ -97,17 +139,19 @@ $main-color: #fff;
border-radius: 44rpx; border-radius: 44rpx;
color: white; color: white;
} }
} }
.u-line-88 { .u-line-88 {
line-height: 88rpx; line-height: 88rpx;
} }
.bg-fff {
.bg-fff {
position: relative; position: relative;
top: -10rpx; top: -10rpx;
background: #fff; background: #fff;
} }
.item {
.item {
width: 100%; width: 100%;
margin-bottom: 28rpx; margin-bottom: 28rpx;
...@@ -115,6 +159,7 @@ $main-color: #fff; ...@@ -115,6 +159,7 @@ $main-color: #fff;
border-radius: 16rpx; border-radius: 16rpx;
border: 1px solid rgba(0, 0, 0, 0.1); border: 1px solid rgba(0, 0, 0, 0.1);
} }
&-tag { &-tag {
padding: 6rpx 2px; padding: 6rpx 2px;
background: $color; background: $color;
...@@ -123,13 +168,14 @@ $main-color: #fff; ...@@ -123,13 +168,14 @@ $main-color: #fff;
display: inline-block; display: inline-block;
margin-right: 10rpx; margin-right: 10rpx;
} }
} }
.image { .image {
position: relative; position: relative;
width: 160rpx; width: 160rpx;
height: 160rpx; height: 160rpx;
display: inline-block; display: inline-block;
&-tip { &-tip {
text-align: center; text-align: center;
width: 100%; width: 100%;
...@@ -141,9 +187,10 @@ $main-color: #fff; ...@@ -141,9 +187,10 @@ $main-color: #fff;
bottom: 0; bottom: 0;
left: 0; left: 0;
} }
} }
.overflow {
.overflow {
overflow-x: auto; overflow-x: auto;
white-space: nowrap; white-space: nowrap;
} }
</style> </style>
\ No newline at end of file
<!--
* @Author: your name
* @Date: 2022-01-14 11:42:25
* @LastEditTime: 2022-01-14 15:24:14
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /hs-app-project/src/pages/brands/everyDay.vue
-->
<template> <template>
<!-- 每日上新 --> <!-- 每日上新 -->
<u-card full :head-border-bottom="false"> <u-card full :head-border-bottom="false">
<view slot="body"> <view slot="body">
<view class="hotFlex"> <view class="hotFlex">
<hot-style></hot-style> <hot-style v-if="recordsList.length>0" :recordsList="recordsList"></hot-style>
<hot-style></hot-style>
<hot-style></hot-style>
<hot-style></hot-style>
</view> </view>
</view> </view>
</u-card> </u-card>
...@@ -19,9 +24,33 @@ export default { ...@@ -19,9 +24,33 @@ export default {
hotStyle, hotStyle,
}, },
data() { data() {
return {}; return {
recordsList:[]
};
},
created(){
console.log("ces");
this.materialDetail()
},
methods: {
materialDetail() {
let param = {
"current": 1,
"size": 10,
"styleTag": ""
}
this.$http('mobileBrand.dailyNewStylePage', param).then(res => {
let {
code,
data
} = res;
if (code === 200) {
this.recordsList = data.records;
console.log(this.recordsList,"this.recordsList");
}
});
}
}, },
methods: {},
}; };
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment