Commit 1b6f3861 by 李伟康

commit 提交

1 parent 696bcb40
<template> <template>
<view class="content"> <view class="wn-canvas">
<template v-if="false"> <template v-if="false">
<template v-if="showPenBox"> <template v-if="showPenBox">
<view class="pen-box"> <view class="pen-box">
...@@ -78,11 +78,11 @@ ...@@ -78,11 +78,11 @@
> >
</view> </view>
</view> </view>
<color <!-- <color
:colorShow="colorShow" :colorShow="colorShow"
@colorPickTap="colorPickTapHandler" @colorPickTap="colorPickTapHandler"
></color> ></color> -->
<view <!-- <view
class="btn-box" class="btn-box"
v-if="showSave" v-if="showSave"
> >
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
type="primary" type="primary"
@click="saveImage" @click="saveImage"
>保存</button> >保存</button>
</view> </view> -->
</view> </view>
</template> </template>
...@@ -273,7 +273,7 @@ export default { ...@@ -273,7 +273,7 @@ export default {
this.toolsShow = !this.toolsShow this.toolsShow = !this.toolsShow
}, },
penWidthChange (e) { penWidthChange (e) {
this.lineWidth = e.detail.value; if (e?.detail?.value) this.lineWidth = e.detail.value;
this.drawContext.setLineWidth(this.lineWidth); this.drawContext.setLineWidth(this.lineWidth);
}, },
//开始绘制曲线 //开始绘制曲线
...@@ -825,7 +825,7 @@ export default { ...@@ -825,7 +825,7 @@ export default {
</script> </script>
<style lang="scss"> <style lang="scss">
.content { .wn-canvas {
height: 100%; height: 100%;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<view class="canvas-box"> <view class="canvas-box">
<template v-for="(i,index) in views"> <template v-for="(i,index) in views">
<view <view
class="canvas-view" :class="['canvas-view',{showView:viewIndex == index}]"
:key="index" :key="index"
> >
<wnCanvas <wnCanvas
...@@ -51,14 +51,14 @@ export default { ...@@ -51,14 +51,14 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.layout { .layout {
padding-top: 272rpx; padding-top: 146rpx;
position: relative; position: relative;
.bg { .bg {
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
width: 100%; width: 100%;
height: 432rpx; height: 368rpx;
} }
.content { .content {
border-radius: 40rpx 40rpx 0 0; border-radius: 40rpx 40rpx 0 0;
...@@ -73,11 +73,21 @@ export default { ...@@ -73,11 +73,21 @@ export default {
padding: 32rpx 0; padding: 32rpx 0;
text-align: center; text-align: center;
} }
.canvas-box{ .canvas-box {
display: flex; width: 100%;
// flex-wrap: nowrap;
} }
.canvas-view { .canvas-view {
z-index: -1;
opacity: 0;
left: 0;
top: 0;
display: none;
width: 100%;
}
.showView {
display: block;
z-index: 2;
} }
} }
} }
......
<template>
<view class="layout">
<view class="bg">
<glsx-image src="media/bg-6.png" />
</view>
<view class="content">
<view class="title">历史成交记录</view>
<Tabs :list="list" />
</view>
</view>
</template>
<script type='text/ecmascript-6'>
import Tabs from './Tabs.vue';
export default {
name: 'Media_6',
props: {
},
components: {Tabs},
data () {
return {
list: [
]
}
},
mounted () {
const { merchantId } = uni.$storage.get("userInfo");
console.log(this.userInfo, '==========');
this.getQuotationList(merchantId);
},
methods: {
async getQuotationList(merchantId) {
const data = await uni.$api.commonApi.getQuotationList({
currentPage: 1,
pageSize: 10,
merchantId: 421127,
orderStatus: 3
})
console.log(data, '============')
}
}
}
</script>
<style scoped lang='scss'>
.layout {
padding-top: 272rpx;
position: relative;
.bg {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 864rpx;
background-color: #096;
}
.content {
border-radius: 40rpx 40rpx 0 0;
background: linear-gradient(180deg, #f7f9fc 0%, #f7f9fc 100%);
overflow: hidden;
position: relative;
z-index: 1;
.title {
font-weight: 500;
font-size: 48rpx;
color: #1a1a1a;
padding: 32rpx 0;
text-align: center;
}
.form{
display: flex;
flex-wrap: wrap;
gap: 28rpx 0;
&-item{
flex: 50%;
display: flex;
align-items: center;
.value{}
}
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -29,6 +29,9 @@ ...@@ -29,6 +29,9 @@
<view :class="['view',{showView:id == 2}]"> <view :class="['view',{showView:id == 2}]">
<media_2 :views="mediaList" /> <media_2 :views="mediaList" />
</view> </view>
<view :class="['view',{showView:id == 6}]">
<media_6 :views="mediaList" />
</view>
<pay-pop ref="pay"></pay-pop> <pay-pop ref="pay"></pay-pop>
</view> </view>
</template> </template>
...@@ -38,8 +41,9 @@ import ToolBox from './components/ToolBox.vue' ...@@ -38,8 +41,9 @@ import ToolBox from './components/ToolBox.vue'
import myClick from "@/mixin/click"; import myClick from "@/mixin/click";
import Media_1 from './components/Media_1.vue' import Media_1 from './components/Media_1.vue'
import Media_2 from './components/Media_2.vue' import Media_2 from './components/Media_2.vue'
import Media_6 from './components/Media_6.vue'
export default { export default {
components: { ToolBox, payPop, Media_1, Media_2 }, components: { ToolBox, payPop, Media_1, Media_2,Media_6 },
mixins: [myClick], mixins: [myClick],
data () { data () {
return { return {
...@@ -75,7 +79,7 @@ export default { ...@@ -75,7 +79,7 @@ export default {
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.detail-box{ .detail-box {
position: relative; position: relative;
} }
.nav-bar { .nav-bar {
...@@ -99,11 +103,13 @@ export default { ...@@ -99,11 +103,13 @@ export default {
opacity: 0; opacity: 0;
left: 0; left: 0;
top: 0; top: 0;
width: 100%; display: none;
height: 100%;
} }
.showView { .showView {
display: block;
z-index: 2; z-index: 2;
opacity: 1; opacity: 1;
width: 100%;
height: 100%;
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!