Commit c21d994f authored by 阮藤's avatar 阮藤

相关问题解决

parent 6e57e4fb
......@@ -3,7 +3,7 @@
<u-navbar :is-back="true" :background="{ backgroundColor: '#F5F5F5' }" title="面料详情"></u-navbar>
<!-- 背景图 -->
<view class="back_img"></view>
<view class="content u-p-30">
<view class="content u-p-30" v-if="fabricObj">
<!-- 面料基本信息 -->
<view class="fabric_tit u-p-30">
<view class="color_DDA973 u-font-32">{{ materialInfo.materialName }}</view>
......@@ -19,13 +19,13 @@
<!-- 建模信息 -->
<view class="modeling_tit u-p-30">
<view class="tit_date u-font-32">
<span class="u-font-28 ft-wt-700">建模委托信息</span>
<span class="u-font-28 hs-weight-700">建模委托信息</span>
<span class="u-font-24">
{{ fabricObj.completionDate }}
<u-icon size="28" class="u-m-l-5" color="#ccc" name="arrow-right"></u-icon>
</span>
</view>
<view class="ds_flex jt_con_center fx_dir_column ht_136">
<view class="ds_flex jt_con_center fx_dir_column hs-height-136">
<view class="ds_flex">
<span class="width_30 color_00004">检测服务商</span>
<!-- TODO 后期修改 -->
......@@ -40,13 +40,13 @@
<!-- 检测委托信息 -->
<view class="modeling_tit bd_rad_8 u-m-t-30 u-p-30">
<view class="tit_date">
<span class="u-font-28 ft-wt-700">检测委托信息</span>
<span class="u-font-28 hs-weight-700">检测委托信息</span>
<span class="u-font-24">
2021年12月12日
<u-icon size="28" class="u-m-l-5" color="#ccc" name="arrow-right"></u-icon>
</span>
</view>
<view class="ds_flex jt_con_center fx_dir_column ht_136">
<view class="ds_flex jt_con_center fx_dir_column hs-height-136">
<view class="ds_flex">
<span class="width_30 color_00004">检测服务商</span>
<span class="flex-sub">上海天飞智慧科技有限公司</span>
......@@ -59,7 +59,7 @@
</view>
<!-- 已提交款式 -->
<view class="modeling_tit bd_rad_8 u-m-t-30 u-p-30">
<view class="u-font-28 ft-wt-700 u-m-b-24">已提交款式</view>
<view class="u-font-28 hs-weight-700 u-m-b-24">已提交款式</view>
<u-search bg-color="#fff" border-color="#ececec" placeholder="请输入面料名称" :show-action="false" v-model="searchFabric"></u-search>
<view class="ds_flex fx_wrap jt_con_sp_between txt_center">
<view @click="seeStyleDetails(item)" v-for="(item, index) in tableList" class="u-m-t-30">
......@@ -77,7 +77,7 @@ export default {
data() {
return {
searchFabric: '',
fabricObj: {},
fabricObj: null,
id: '',
tableList: [1, 2, 3, 4, 5]
};
......@@ -125,9 +125,6 @@ export default {
.color_00004 {
color: rgba(0, 0, 0, 0.4);
}
.ft-wt-700 {
font-weight: 700;
}
.background_fff {
background: #fff;
}
......@@ -210,8 +207,9 @@ export default {
.back_img {
position: absolute;
width: 100%;
height: 600rpx;
background-image: url(../../static/images/home/exhibition.png);
height: 450rpx;
background: url(../../static/images/home/exhibition.png) no-repeat;
background-size: 100% 100%;
}
.img_120 {
width: 120rpx;
......
<template>
<view>
<statusBar />
<!-- 展示图 -->
<view class="home_top">
<image src="../../static/images/home/exhibition@2x.png" style="width: 100%;height: 100%;" mode=""></image>
<view class="home_top_out">
<view class="out"><image style="width: 100%;height: 100%;" src="../../static/images/home/zuojiantou@2x.png" mode=""></image></view>
<view @click="searchCli" class="search"><image style="width: 100%;height: 100%;" src="../../static/images/home/search@2x.png" mode=""></image></view>
</view>
<view id="header" class="back_img">
<u-navbar title="" :border-bottom="false" :background="background">
<template slot="right">
<view @click="searchCli" class="u-m-r-24 search"><image class="hs-img" src="../../static/images/home/search@2x.png" mode=""></image></view>
</template>
</u-navbar>
</view>
<!-- 按钮 -->
<view class="home_btn">
......@@ -50,7 +49,7 @@
<view class="u-font-24 color_d5aa7a">查看更多</view>
</view>
<view class="home_con_order">
<view class="home_con_content_order u-m-t-24" v-for="item in 2">
<view class="home_con_content_order u-m-t-24" v-for="item in 4">
<image style="width: 160rpx;height: 160rpx;" src="../../static/images/home/2.png" mode=""></image>
<view class="order_tit">
<view class="u-font-32">加厚荷兰绒绒布布料备份</view>
......@@ -68,13 +67,10 @@
</view>
</template>
<script>
import statusBar from '@/components/statusBar.vue';
export default {
components: {
statusBar
},
data() {
return {
background: { backgroundColor: 'rgba(245,245,245,0)' },
quantityNum: 0,
exceptionNum: 0,
abolishIds: [],
......@@ -90,7 +86,7 @@ export default {
name: '款式委托',
img: '../../static/images/home/styleEntrustment@2x.png',
url: '/pages/home/styleEntrustment'
// url: '/pages/home/demo'
// url: '/pages/home/demo1'
},
{
name: '检测委托',
......@@ -111,6 +107,14 @@ export default {
this.noSampleOrder();
this.materialList();
},
onPageScroll(object){
let height = 486 /2
if (object.scrollTop >= height) {
this.background.backgroundColor = 'rgba(245,245,245,1)';
} else {
this.background.backgroundColor = 'rgba(245,245,245,0)';
}
},
methods: {
// 选款总数
toBeSelectedQuantity() {
......@@ -171,13 +175,11 @@ export default {
};
</script>
<style lang="scss" scoped>
.statusBar {
height: var(--status-bar-height);
.back_img {
height: 486rpx;
width: 100%;
position: fixed;
background-color: #fff;
top: 0;
z-index: 999;
background: url(../../static/images/home/exhibition.png) no-repeat;
background-size: 100% 100%;
}
.home_top {
position: relative;
......@@ -195,12 +197,12 @@ export default {
width: 32rpx;
height: 32rpx;
}
.search {
width: 60rpx;
height: 60rpx;
}
}
}
.search {
width: 60rpx;
height: 60rpx;
}
.tips {
display: flex;
height: 80rpx;
......
<template>
<view class="ps_relative">
<u-navbar :is-back="true" :background="{ backgroundColor: '#F5F5F5' }" title="寄样确认"></u-navbar>
<view class="content">
<view class="bg_fff sample_sum">
<view>
<view class="" id="header">
<u-navbar :is-back="true" :background="{ backgroundColor: '#F5F5F5' }" title="寄样确认"></u-navbar>
<view class="bg_fff hs-height-70 u-flex u-row-around">
<view @click="previousCli" :class="{ color_ccc: sum == 1 }">上一个</view>
<view class="">{{ sum }}/{{ total }}</view>
<view @click="nextCli" :class="{ color_ccc: sum == total }">下一个</view>
</view>
</view>
<view class="content" :style="{ bottom: footerHeight + 'px', top: headerHeight + 'px' }">
<!-- 内容 -->
<view class="u-m-20 bg_fff" style="border-radius: 20rpx;">
<view class="sample_title u-p-l-30 u-p-r-30">
<view class="hs-height-100 u-flex u-row-between u-p-l-30 u-p-r-30">
<span class="u-font-32">委托单信息</span>
<span class="u-font-28">委托发布日期:{{ tableData.releaseDate }}</span>
</view>
......@@ -35,19 +37,27 @@
<span class="u-font-28">所选面料</span>
<span class="u-font-24 color_DDA973">(新建面料,已同步面料建模)</span>
</view>
<view class="u-m-t-30">
<hs-material-thumbnail :item="mdmMaterial"></hs-material-thumbnail>
</view>
<view class="u-m-t-30"><hs-material-thumbnail :item="mdmMaterial"></hs-material-thumbnail></view>
</view>
</view>
</view>
</view>
<!-- 底部按钮 确定-->
<view class="footer" id="footer">
<view class="footer-btn">
<!-- /* 以下形式在微信小程序会无效,APP和H5有效 */-->
<u-button @click="toAddItem" class="custom-style" shape="circle">确定</u-button>
</view>
</view>
<u-toast ref="uToast" />
</view>
</template>
<script>
import dom from '@/mixins/dom';
import fabricTitle from '@/components/hs-material-thumbnail/hs-material-thumbnail.vue';
export default {
mixins: [dom],
components: { fabricTitle },
data() {
return {
......@@ -62,13 +72,11 @@ export default {
computed: {
mdmMaterial() {
return {
// name: this.tableData.mdmMaterialName,
...this.tableData
};
}
},
onLoad(option) {
console.log(option);
this.abolishIds = option.abolishIds.split(',');
this.total = this.abolishIds.length;
this.detail();
......@@ -76,12 +84,25 @@ export default {
methods: {
detail() {
let i = this.sum - 1;
this.$http('orderTicket.detail', this.abolishIds[i]).then(res => {
let { code, data } = res;
if (code === 200) {
this.tableData = data;
}
});
this.$http('orderTicket.detail', this.abolishIds[i], '加载中...')
.then(res => {
let { code, data } = res;
if (code === 200) {
this.tableData = data;
this.$refs.uToast.show({
title: '操作成功'
});
} else {
this.$refs.uToast.show({
title: '操作失败'
});
}
})
.catch(err => {
this.$refs.uToast.show({
title: '操作失败'
});
});
},
previousCli() {
if (this.sum == 1) return;
......@@ -106,20 +127,15 @@ export default {
</style>
<style lang="scss" scoped>
@import './index.css';
.sample_sum {
display: flex;
justify-content: space-around;
height: 70rpx;
align-items: center;
}
.sample_title {
height: 100rpx;
align-items: center;
display: flex;
justify-content: space-between;
}
.bd_top {
border-top: 1px solid #f6f6f6;
.content {
position: absolute;
width: 100%;
height: auto;
left: 0;
right: 0;
bottom: 0;
top: 0;
overflow-y: auto;
}
.bd_split_line {
width: 90%;
......@@ -149,4 +165,21 @@ export default {
border-radius: 100rpx;
}
}
.custom-style {
color: #fff;
background: #000;
}
.footer {
position: fixed;
width: 100%;
bottom: 0;
z-index: 998;
background: #fff;
box-shadow: 0px -4rpx 6rpx 0px rgba(178, 182, 214, 0.1);
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
.footer-btn {
padding: 20rpx 30rpx;
}
}
</style>
This diff is collapsed.
<!--新增委托-->
<template>
<view>
<view id="header"><u-navbar title="租户选择" :border-bottom="false" :background="{ backgroundColor: 'whitesmoke' }"></u-navbar></view>
<!-- 列表 确定-->
<view class="u-p-30 body" :style="{ bottom: footerHeight + 'px', top: headerHeight + 'px' }">
<view v-for="(item, index) in list" :key="item.id" class="u-flex u-m-b-20">
<view class="u-m-r-30">
<u-icon :name="index === selectedIndex ? 'checkmark-circle-fill' : 'checkmark-circle'" color="#000" size="40" @click="triggerSelectItem(index)" />
</view>
<view class="ab">租户{{ index }}</view>
</view>
</view>
<!-- 底部按钮 确定-->
<view class="footer" id="footer">
<view class="footer-btn">
<!-- /* 以下形式在微信小程序会无效,APP和H5有效 */-->
<u-button :disabled="selectedIndex === -1" @click="toAddItem" class="custom-style" shape="circle">确定</u-button>
</view>
</view>
</view>
</template>
<script>
import dom from '@/mixins/dom';
import HsSelectItem from '../../components/hs-select-item/hs-select-item';
import HsMaterialThumbnail from '../../components/hs-material-thumbnail/hs-material-thumbnail';
export default {
name: 'listSelectToAdd',
components: { HsMaterialThumbnail, HsSelectItem },
mixins: [dom],
data() {
return {
keyword: '',
selectedIndex: -1,
list: [
{
title: '加厚荷兰绒绒布布料',
id: 2
},
{
title: '加厚荷兰绒绒布布料加厚荷兰绒绒布布料',
id: 12
},
{
title: '加厚荷兰绒绒布布料',
id: 221
},
{
title: '加厚荷兰绒绒布布料',
id: 22
},
{
title: '加厚荷兰绒绒布布料',
id: 224
},
{
title: '加厚荷兰绒绒布布料',
id: 222
}
]
};
},
onLoad() {
this.getList();
},
methods: {
getList() {
this.$http('orderTicket.materialList', {
size: 4,
materialCode: '',
materialName: ''
}).then(res => {
let { code, data } = res;
if (code == 200) {
this.list = data.data;
}
});
},
triggerSelectItem(index) {
this.selectedIndex = index === this.selectedIndex ? -1 : index;
},
// 跳转到新增详情页面
toAddItem() {
uni.setStorageSync('_item', this.list[this.selectedIndex]);
this.$Router.push({
path: '/pages/designCommissioned/addItem'
// query:{
// id: this.list[this.selectedIndex].id
// }
});
},
// 跳转到面料详情
toMaterialDetail({ id }) {
this.$Router.push({
path: '/pages/home/fabricDetails',
query: {
id
}
});
}
}
};
</script>
<style scoped lang="scss">
$h-color: #af8d66;
$main-color: #fff;
.body {
position: absolute;
width: 100%;
height: auto;
left: 0;
right: 0;
bottom: 0;
top: 0;
overflow-y: auto;
}
.title {
color: $h-color;
background-color: whitesmoke;
}
.ab {
flex: 1;
height: 160rpx;
line-height: 160rpx;
text-align: center;
background: url(../../static/images/home/tenSelet@2x.png) no-repeat;
background-size: 100% 100%;
border-radius: 16rpx;
}
.bg-fff {
background: $main-color;
}
.item {
border-radius: 8rpx;
border: 1px solid #bd4848;
height: 160rpx;
width: 100%;
overflow: hidden;
background-size: contain;
.active {
border: 1px solid #000;
}
}
.custom-style {
color: #fff;
background: #000;
}
.footer {
position: fixed;
width: 100%;
bottom: 0;
z-index: 998;
background: #fff;
box-shadow: 0px -4rpx 6rpx 0px rgba(178, 182, 214, 0.1);
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
.footer-btn {
padding: 20rpx 30rpx;
}
}
</style>
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