Commit 1f810274 authored by 李星剑's avatar 李星剑

fix:面料建模

parent 9026175e
<template> <template>
<view> <view>
<view class="home_con_content_order u-m-t-30" v-for="item,index in tableData" @click="goDetail(item)" <view class="home_con_content_order u-m-t-30" v-for="(item,index) in tableData" @click="goDetail(item)"
:key="index"> :key="index">
<image style="width: 100%;height: 160rpx;" src="../../../static/images/home/1@2x.png" mode=""></image> <image style="width: 100%;height: 160rpx;" src="../../../static/images/home/1@2x.png" mode=""></image>
<view class="order_tit"> <view class="order_tit">
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</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,indexMater in dataList" :key="indexMater"> <span class="u-m-r-10" <span v-for="itemMater in dataList" :key="indexMater"> <span class="u-m-r-10"
v-if="itemMater.id==item.category"> {{itemMater.name}}</span></span> v-if="itemMater.id==item.category"> {{itemMater.name}}</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>
...@@ -51,8 +51,8 @@ ...@@ -51,8 +51,8 @@
}, },
methods: { methods: {
goDetail(item) { goDetail(item) {
console.log(333) // console.log(333)
this.$router.push({ this.$Router.push({
path: "/pages/home/detail", path: "/pages/home/detail",
query: { query: {
id: item.id id: item.id
......
...@@ -2,9 +2,11 @@ ...@@ -2,9 +2,11 @@
<view class="whole"> <view class="whole">
<view class="back"> <view class="back">
<view style="display: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>
<view class="nav-nav" @click="edit()">编辑</view> <view class="nav-nav" @click="edit()">编辑</view>
</template>
</u-navbar> </u-navbar>
</view> </view>
...@@ -137,7 +139,7 @@ ...@@ -137,7 +139,7 @@
}); });
}, },
edit() { edit() {
this.$router.push({ this.$Router.push({
path: "/pages/home/editFabric", path: "/pages/home/editFabric",
query: { query: {
id: this.id id: this.id
......
This diff is collapsed.
...@@ -425,17 +425,20 @@ export default { ...@@ -425,17 +425,20 @@ export default {
this.$nextTick(async ()=>{ this.$nextTick(async ()=>{
await this.getItem(this.id); await this.getItem(this.id);
let canvas = this.$refs.eCanvas; let canvas = this.$refs.eCanvas;
let BASE_URL = this.getBaseUrl();
await canvas.init({ await canvas.init({
canvas_id: "eCanvas", canvas_id: "eCanvas",
canvas_width: 375, canvas_width: 375,
canvas_height: 375, canvas_height: 375,
path: `${BASE_URL}${this.detail.originalImageCode}`
}) })
await this.$refs['eCanvasHelp'].init({ await this.$refs['eCanvasHelp'].init({
canvas_id: "eCanvasHelp", canvas_id: "eCanvasHelp",
canvas_width: 375, canvas_width: 375,
canvas_height: 375, canvas_height: 375,
path: `${BASE_URL}${this.detail.originalImageCode}`
}) })
let BASE_URL = this.getBaseUrl();
let sources = [`${BASE_URL}${this.detail.originalImageCode}`].concat( let sources = [`${BASE_URL}${this.detail.originalImageCode}`].concat(
this.parts.map((item) => `${BASE_URL}${item.pictureCode}`) this.parts.map((item) => `${BASE_URL}${item.pictureCode}`)
); );
...@@ -611,7 +614,7 @@ export default { ...@@ -611,7 +614,7 @@ export default {
this.toggleCanvasEditCallback this.toggleCanvasEditCallback
); );
} }
this.isEdit = false; // this.isEdit = false;
} else { } else {
if(this.activeColor.colourId){ if(this.activeColor.colourId){
this.ontherPartTrigger( this.ontherPartTrigger(
...@@ -660,7 +663,6 @@ export default { ...@@ -660,7 +663,6 @@ export default {
}) })
let base64 = await this.$refs['eCanvas'].exportImg(); let base64 = await this.$refs['eCanvas'].exportImg();
let res = await this.uploadImg(base64); let res = await this.uploadImg(base64);
// console.log(data)
// return; // return;
this.$http("stylelibraryorder.addToShelves", Object.assign({},data,{fileCode: res.fileCode})).then((res) => { this.$http("stylelibraryorder.addToShelves", Object.assign({},data,{fileCode: res.fileCode})).then((res) => {
let { code, msg } = res; let { code, msg } = res;
......
...@@ -283,7 +283,10 @@ export default { ...@@ -283,7 +283,10 @@ export default {
} }
} }
}, },
created() { // created() {
// this.getList();
// },
onShow(){
this.getList(); this.getList();
}, },
methods:{ methods:{
......
...@@ -39,16 +39,18 @@ ...@@ -39,16 +39,18 @@
class="u-flex u-m-b-20"> class="u-flex u-m-b-20">
<view class="item item--round u-flex "> <view class="item item--round u-flex ">
<view class="item-img u-relative"> <view class="item-img u-relative">
<image :src="`${$IMG_URL}${item.effectPictureCode}`" mode="fit" style="width:100%; height: 100%"></image> <image :src="`${$IMG_URL}${item.effectPictureCode}`"
mode="fit"
style="width:100%; height: 100%"></image>
<u-image width="100rpx" height="100rpx" v-if="item.putawayStatus === 1" <u-image width="100rpx" height="100rpx" v-if="item.putawayStatus === 1"
class="item--status" class="item--status"
mode="widthFix" mode="widthFix"
src="@/static/images/material/status.png"> src="@/static/images/material/status.png">
</u-image> </u-image>
</view> </view>
<view class="u-flex-1 u-p-l-20 u-p-r-30 u-border-left"> <view class="u-p-l-20 u-p-r-30 u-border-left item-content">
<view class="item-title u-flex "> <view class="item-title u-flex ">
<view class="u-flex-1 u-line-1 u-font-32 u-p-t-20 u-p-b-8">{{item.category}}</view> <view class="u-flex-1 u-line-1 u-font-32 u-p-t-20 u-p-b-8">{{item.styleTag}}</view>
<u-icon size="24" color="#000" name="arrow-right"></u-icon> <u-icon size="24" color="#000" name="arrow-right"></u-icon>
</view> </view>
<view class="item-desc u-font-24">{{ item.styleCode }}</view> <view class="item-desc u-font-24">{{ item.styleCode }}</view>
...@@ -340,6 +342,9 @@ $main-color: #fff; ...@@ -340,6 +342,9 @@ $main-color: #fff;
height: 150rpx; height: 150rpx;
//height: 100% //height: 100%
} }
&-content{
width: calc(100% - 160rpx)
}
&-title{} &-title{}
&-desc{} &-desc{}
&-tags{ &-tags{
......
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