Commit ff5dedcb authored by DongRuifen's avatar DongRuifen

我的面料完善

parent 5f571ba7
...@@ -11,8 +11,9 @@ ...@@ -11,8 +11,9 @@
</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 v-for="itemMater in dataList" :key="indexMater"> <span class="u-m-r-10" <span v-if="dataList.length>0">
v-if="itemMater.id==item.category"> {{itemMater.name}}</span></span> <span v-for="(itemMater,indexMater) in dataList" :key="indexMater"> <span class="u-m-r-10"
v-if="itemMater.id==item.category"> {{itemMater.name}}</span></span></span>
| |
<span class="u-m-l-10 u-m-r-10">{{item.clothWidth}}cm</span> <span class="u-m-l-10 u-m-r-10">{{item.clothWidth}}cm</span>
| |
......
<template> <template>
<view class="whole"> <view class="whole">
<view class="back"> <view class="back" :style="topHeight==0?'':{'padding-top':resultpx}">
<!-- <view class="back"> -->
<view class="u-flex"> <view class="u-flex">
<u-navbar :is-back="true" :background="{ backgroundColor: '#F5F5F5' }" title="面料详情"> <u-navbar :is-back="true" :background="{ backgroundColor: '#F5F5F5' }" title="面料详情">
<template v-slot:right> <template v-slot:right>
...@@ -10,7 +11,8 @@ ...@@ -10,7 +11,8 @@
</u-navbar> </u-navbar>
</view> </view>
<view :class="fabricObj.materialPictureVOList.length>4?'back-two':'back-back'"> <view
:class="fabricObj.materialPictureVOList!=undefined&&fabricObj.materialPictureVOList.length>4?'back-two':'back-back'">
<view class="row" style="color:#F5B674"> {{fabricObj.materialName}} <view class="row" style="color:#F5B674"> {{fabricObj.materialName}}
</view> </view>
<view class="row" style="color:#fff"> <view class="row" style="color:#fff">
...@@ -30,8 +32,9 @@ ...@@ -30,8 +32,9 @@
</view> </view>
</view> </view>
</view> </view>
<view class="whole-bottom"> <view class="whole-whole">
<view :class="fabricObj.materialPictureVOList.length>4?'body-two':'body'"> <view
:class="fabricObj.materialPictureVOList!=undefined&&fabricObj.materialPictureVOList.length>4?'body-two':'body'">
<view class="font"><strong>已上架款式</strong></view> <view class="font"><strong>已上架款式</strong></view>
<view class="item" v-for="itemTab,indexTab in tableList" :key="indexTab"> <view class="item" v-for="itemTab,indexTab in tableList" :key="indexTab">
<view class="item-left"> <view class="item-left">
...@@ -77,6 +80,9 @@ ...@@ -77,6 +80,9 @@
return { return {
imgUrl: this.$IMG_URL, imgUrl: this.$IMG_URL,
id: "", id: "",
topHeight: null,
heightpx: null,
resultpx:"",
fabricObj: {}, fabricObj: {},
tableList: [], tableList: [],
dataList: [], dataList: [],
...@@ -90,6 +96,21 @@ ...@@ -90,6 +96,21 @@
} }
} }
}, },
computed: {
// heightpx() {
// return uni.upx2px(100) + 'px'
// },
// topHeight() {
// uni.getSystemInfo({
// success: (result) => {
// // this.topHeight = result.safeArea.top
// console.log(result.safeArea.top, "result.safeArea.top")
// return result.safeArea.top + 'px'
// }
// })
// }
},
onLoad(option) { onLoad(option) {
this.id = option.id this.id = option.id
this.materialDetail() this.materialDetail()
...@@ -104,6 +125,17 @@ ...@@ -104,6 +125,17 @@
} }
}) })
console.log(uni.upx2px(100), )
uni.getSystemInfo({
success: (result) => {
this.topHeight = result.safeArea.top
console.log(result.safeArea.top, "result.safeArea.top")
}
})
this.heightpx = uni.upx2px(100)
this.resultpx=(this.heightpx-this.topHeight)+'px'
console.log(this.resultpx,"this.resultpx")
}, },
onShow() { onShow() {
this.id = this.$route.query.id this.id = this.$route.query.id
...@@ -198,7 +230,7 @@ ...@@ -198,7 +230,7 @@
} }
} }
.whole-bottom { .whole-whole {
padding: 0 30rpx; padding: 0 30rpx;
...@@ -208,12 +240,14 @@ ...@@ -208,12 +240,14 @@
padding: 30rpx; padding: 30rpx;
margin-top: -60rpx; margin-top: -60rpx;
} }
.body-two{
.body-two {
background: #ffffff; background: #ffffff;
border-radius: 4px; border-radius: 4px;
padding: 30rpx; padding: 30rpx;
// margin-top: -60rpx; // margin-top: -20rpx;
} }
.font { .font {
padding-bottom: 30rpx; padding-bottom: 30rpx;
} }
......
...@@ -7,14 +7,14 @@ ...@@ -7,14 +7,14 @@
<view> <view>
<u-input v-model="detail.referToBrand"></u-input> <u-input v-model="detail.referToBrand"></u-input>
</view> --> </view> -->
<u-form :model="detailInfo" label-position="top" ref="uForm"> <u-form :model="detailInfo" label-position="top" ref="ruForm">
<hs-tip-title title="面料基本信息"></hs-tip-title> <hs-tip-title title="面料基本信息"></hs-tip-title>
<u-form-item label="面料名称" prop="materialName" required> <u-form-item label="面料名称" prop="materialName" required>
<u-input v-model="detailInfo.materialName" placeholder="请输入面料名称" /> <u-input v-model="detailInfo.materialName" placeholder="请输入面料名称" />
</u-form-item> </u-form-item>
<view class="title">面料门幅</view> <view class="title">面料门幅</view>
<u-number-box v-model="detailInfo.clothWidth" :step="1" :input-width="160" :input-height="60" <u-number-box v-model="detailInfo.clothWidth" :step="0.1" :positive-integer="false" :input-width="160"
@change="valChange" style="margin-right:30rpx"> :input-height="60" @change="valChange" style="margin-right:30rpx">
</u-number-box>cm </u-number-box>cm
<u-form-item label="面料成分" prop="component" required> <u-form-item label="面料成分" prop="component" required>
<u-input v-model="detailInfo.component" placeholder="请输入面料成分" /> <u-input v-model="detailInfo.component" placeholder="请输入面料成分" />
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
data() { data() {
return { return {
id: "", id: "",
step: 0.1,
detailInfo: {}, detailInfo: {},
value: 2.2, value: 2.2,
tableList: [] tableList: []
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
components:{fabricTitle}, components:{fabricTitle},
data() { data() {
return { return {
size: 5, size: 10,
search: '', search: '',
fiabricList: [], fiabricList: [],
// dataList:[], // dataList:[],
...@@ -54,7 +54,7 @@ export default { ...@@ -54,7 +54,7 @@ export default {
}, },
methods: { methods: {
searchCli() { searchCli() {
this.size = 5; // this.size = 5;
this.materialList(); this.materialList();
}, },
// 我的面料 // 我的面料
......
...@@ -35,8 +35,11 @@ ...@@ -35,8 +35,11 @@
<view class="u-font-24 color_d5aa7a" @click="seeFabric">查看更多</view> <view class="u-font-24 color_d5aa7a" @click="seeFabric">查看更多</view>
</view> </view>
<view class="home_con_fabric"> <view class="home_con_fabric">
<view class="home_con_content u-m-t-24" @click="detailFabric(item)" v-for="item in fiabricList"> <view class="home_con_content u-m-t-24" @click="detailFabric(item)" v-for="(item,index) in fiabricList" :key="index">
<image class="hs-img" src="../../static/images/home/1@2x.png" mode=""></image> <image v-if="index==0" class="hs-img" src="../../static/images/home/1@2x.png" mode="aspectFill"></image>
<image v-if="index==1" class="hs-img" src="../../static/images/home/2@2x.png" mode="aspectFill"></image>
<image v-if="index==2" class="hs-img" src="../../static/images/home/3@2x.png" mode="aspectFill"></image>
<image v-if="index==3" class="hs-img" src="../../static/images/home/4@2x.png" mode="aspectFill"></image>
<view class="home_con_content_font ov_hiden">{{ item.materialName }}</view> <view class="home_con_content_font ov_hiden">{{ item.materialName }}</view>
</view> </view>
</view> </view>
...@@ -147,7 +150,7 @@ ...@@ -147,7 +150,7 @@
// this.toBeSelectedQuantity(); // this.toBeSelectedQuantity();
// this.orderTicketExceptionNum(); // this.orderTicketExceptionNum();
// this.noSampleOrder(); // this.noSampleOrder();
// this.materialList(); this.materialList();
// 潜在客户 // 潜在客户
this.potentialCustomersPage(); this.potentialCustomersPage();
}, },
...@@ -242,8 +245,10 @@ ...@@ -242,8 +245,10 @@
}, },
// 我的面料 // 我的面料
materialList() { materialList() {
this.$http('orderTicket.materialList', { this.$http('materialinfo.getMaterialList', {
size: 4, size: 4,
"current": 1,
"materialType": "面料",
materialCode: '', materialCode: '',
materialName: '' materialName: ''
}).then(res => { }).then(res => {
...@@ -252,7 +257,7 @@ ...@@ -252,7 +257,7 @@
data data
} = res; } = res;
if (code == 200) { if (code == 200) {
this.fiabricList = data.data; this.fiabricList = data.page.records;
} }
}); });
}, },
...@@ -264,7 +269,7 @@ ...@@ -264,7 +269,7 @@
this.$Router.push('/pages/home/fabricList'); this.$Router.push('/pages/home/fabricList');
}, },
detailFabric(data) { detailFabric(data) {
this.$Router.push('/pages/home/fabricDetails?id=' + data.id); // this.$Router.push('/pages/home/fabricDetails?id=' + data.id);
}, },
sampleConfirm() { sampleConfirm() {
this.$Router.push('/pages/home/sampleConfirmation?abolishIds=' + this.abolishIds); this.$Router.push('/pages/home/sampleConfirmation?abolishIds=' + this.abolishIds);
......
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