Commit 9dfa8a2a authored by 阮藤's avatar 阮藤

相关页面提交

parent 2249a9cb
This diff is collapsed.
export default {
data(){
return{
headerHeight: 0,
footerHeight: 0
}
},
methods:{
getHeaderHeight(){
this.$nextTick(() =>{
this.uGetRect("#header").then(res =>{
this.headerHeight = res.height;
})
})
},
getFooterHeight(){
this.$nextTick(() =>{
this.uGetRect("#footer").then(res =>{
this.footerHeight = res.height;
})
})
},
uGetRect(selector, all) {
return new Promise((resolve) => {
uni.createSelectorQuery()
.in(this)[all ? 'selectAll' : 'select'](selector)
.boundingClientRect((rect) => {
if (all && Array.isArray(rect) && rect.length) {
resolve(rect)
}
if (!all && rect) {
resolve(rect)
}
if(rect === null){
resolve({})
}
})
.exec()
})
},
},
mounted() {
this.getHeaderHeight();
this.getFooterHeight();
},
}
let statusList = [
{label:"全部",value: null ,close: false},
{label:"备选",value: 1,close: false},
{label:"待定",value: 2,close: false},
{label:"选中",value: 3,close: false},
{label:"放弃",value: 4,close: false},
{label:"已提交",value: 5,close: false}
]
export default {
data(){
return {
status: statusList
}
},
filters:{
filterStatus(value){
switch (value) {
}
}
},
methods:{
getStatus(){
},
changeStatus(status){
switch (status) {
case (1):
return 0;
case (2):
return 4;
case (3):
return 5;
case (4):
return 2;
case (5):
return 3;
default:
return 1;
}
},
}
}
export default {
methods:{
getStyleTreeList(){
function filterArray(data){
for (let i = 0; i < data.length; i++) {
let item = data[i];
if(item.children.length === 0){
delete item.children;
}else{
filterArray(item.children)
}
}
return data
}
return new Promise((resolve, reject) =>{
this.$http("orderTicket.styleTreeList").then(res =>{
let {
code, data
} = res;
if(code === 200){
this.brandSelectList = filterArray(data);
resolve();
}
}).catch(err =>{
reject(err);
})
})
},
}
}
...@@ -19,7 +19,10 @@ ...@@ -19,7 +19,10 @@
></u-search> ></u-search>
</view> </view>
<template v-slot:right> <template v-slot:right>
<view v-if="searchFlag" @click="searchCli" class="u-m-r-24"><u-icon name="search" size="38"></u-icon></view> <view v-if="searchFlag" @click="searchCli" class="u-m-r-24">
<!-- <u-icon name="search" size="38"></u-icon> -->
<image class="hs-img-56" src="@/static/images/home/search@2x.png" mode=""></image>
</view>
</template> </template>
</u-navbar> </u-navbar>
<!-- 总数 --> <!-- 总数 -->
...@@ -45,7 +48,7 @@ ...@@ -45,7 +48,7 @@
</u-sticky> </u-sticky>
</view> </view>
<view class="content" :style="{ bottom: footerHeight + 'px', top: headerHeight + 'px' }"> <view class="content" :style="{ bottom: footerHeight + 'px', top: headerHeight + 'px' }">
<view class="u-flex u-row-between u-p-t-24 u-p-b-24 u-p-l-30 u-p-r-30"> <view v-if="!isEmpty" class="u-flex u-row-between u-p-t-24 u-p-b-24 u-p-l-30 u-p-r-30">
<view class="">全部订单:共30单</view> <view class="">全部订单:共30单</view>
<view class="">截止日期:2021-12-21</view> <view class="">截止日期:2021-12-21</view>
</view> </view>
...@@ -91,10 +94,12 @@ ...@@ -91,10 +94,12 @@
</view> </view>
<view class="footer" id="footer"> <view class="footer" id="footer">
<view class="footer-btn"> <view class="footer-btn">
<view class="custom-style-round-circle custom-style-btn custom-style"> <!-- <view class="custom-style-round-circle custom-style-btn custom-style">
<view class="custom-style-left save">新面料建模</view> <view class="custom-style-left save">新面料建模</view>
<view class="custom-style-right submit">已有面料建模</view> <view class="custom-style-right submit">已有面料建模</view>
</view> </view> -->
<!-- /* 以下形式在微信小程序会无效,APP和H5有效 */-->
<u-button @click="dateilEnt" class="custom-style" shape="circle">面料委托建模</u-button>
</view> </view>
</view> </view>
<u-modal v-model="modal.show" :show-cancel-button="true" :content="modal.title" @cancel="modal.show = false" @confirm="confirm"></u-modal> <u-modal v-model="modal.show" :show-cancel-button="true" :content="modal.title" @cancel="modal.show = false" @confirm="confirm"></u-modal>
...@@ -403,7 +408,6 @@ export default { ...@@ -403,7 +408,6 @@ export default {
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
overflow: auto;
} }
.custom-style { .custom-style {
color: #fff; color: #fff;
...@@ -444,6 +448,10 @@ export default { ...@@ -444,6 +448,10 @@ export default {
} }
} }
} }
.custom-style {
color: #fff;
background: #000;
}
.footer { .footer {
position: fixed; position: fixed;
width: 100%; width: 100%;
...@@ -459,7 +467,7 @@ export default { ...@@ -459,7 +467,7 @@ export default {
} }
.bg_img { .bg_img {
width: 100%; width: 100%;
background: url(../../static/images/home/entrustment@2x.png) no-repeat; background: url(@/static/images/home/entrustment@2x.png) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }
.content { .content {
......
...@@ -34,7 +34,6 @@ export default { ...@@ -34,7 +34,6 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
@import '../index.css';
.home_con_content_order { .home_con_content_order {
position: relative; position: relative;
display: flex; display: flex;
...@@ -56,4 +55,15 @@ export default { ...@@ -56,4 +55,15 @@ export default {
background: rgba(17, 21, 30, 0.5); background: rgba(17, 21, 30, 0.5);
} }
} }
.ov_hiden {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.color_DDA973 {
color: #dda973;
}
.color_6F6F72 {
color: #6f6f72;
}
</style> </style>
...@@ -80,24 +80,39 @@ export default { ...@@ -80,24 +80,39 @@ export default {
{ {
name: '面料建模', name: '面料建模',
img: '../../static/images/home/fabricModeling@2x.png', img: '../../static/images/home/fabricModeling@2x.png',
url: '' url: '/pages/fabricModeling/modelingOrder'
}, },
{ {
name: '款式委托', name: '搜款',
img: '../../static/images/home/styleEntrustment@2x.png', img: '../../static/images/home/styleEntrustment@2x.png',
url: '/pages/home/styleEntrustment'
// url: '/pages/home/demo1'
},
{
name: '检测委托',
img: '../../static/images/home/styleManageme@2x.png',
url: '' url: ''
}, },
{ {
name: '款式管理', name: '上架管理',
img: '../../static/images/home/testCommission@2x.png', img: '../../static/images/home/styleManageme@2x.png',
url: '' url: ''
} }
// TODO 旧版本 可能以后会用到
// {
// name: '面料建模',
// img: '../../static/images/home/fabricModeling@2x.png',
// url: '/pages/fabricModeling/modelingOrder'
// },
// {
// name: '款式委托',
// img: '../../static/images/home/styleEntrustment@2x.png',
// url: '/pages/home/styleEntrustment'
// },
// {
// name: '检测委托',
// img: '../../static/images/home/styleManageme@2x.png',
// url: ''
// },
// {
// name: '款式管理',
// img: '../../static/images/home/testCommission@2x.png',
// url: ''
// }
] ]
}; };
}, },
...@@ -107,8 +122,8 @@ export default { ...@@ -107,8 +122,8 @@ export default {
this.noSampleOrder(); this.noSampleOrder();
this.materialList(); this.materialList();
}, },
onPageScroll(object){ onPageScroll(object) {
let height = 486 /2 let height = 486 / 2;
if (object.scrollTop >= height) { if (object.scrollTop >= height) {
this.background.backgroundColor = 'rgba(245,245,245,1)'; this.background.backgroundColor = 'rgba(245,245,245,1)';
} else { } else {
...@@ -170,7 +185,14 @@ export default { ...@@ -170,7 +185,14 @@ export default {
this.$Router.push('/pages/home/sampleConfirmation?abolishIds=' + this.abolishIds); this.$Router.push('/pages/home/sampleConfirmation?abolishIds=' + this.abolishIds);
}, },
goCli(url) { goCli(url) {
if (url) {
this.$Router.push(url); this.$Router.push(url);
}else{
uni.showToast({
title:'该功能正在开发中...',
icon: 'none'
})
}
} }
} }
}; };
......
...@@ -124,9 +124,20 @@ export default { ...@@ -124,9 +124,20 @@ export default {
.color_ccc { .color_ccc {
color: #ccc; color: #ccc;
} }
.color_00004 {
color: rgba(0, 0, 0, 0.4);
}
.color_DDA973 {
color: #dda973;
}
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
@import './index.css'; .ds_flex {
display: flex;
}
.width_30 {
width: 30%;
}
.content { .content {
position: absolute; position: absolute;
width: 100%; width: 100%;
......
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