Commit ea4b8522 by 李伟康

commit 提交

1 parent 279a1408
...@@ -901,10 +901,14 @@ export default { ...@@ -901,10 +901,14 @@ export default {
} }
} }
.under-image { .under-image {
position: absolute;
left: 0;
top: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
z-index: -1;
} }
/* 竖屏 */ /* 竖屏 */
......
...@@ -203,8 +203,9 @@ export default { ...@@ -203,8 +203,9 @@ export default {
this.jumpPage(item) this.jumpPage(item)
}, },
jumpPage (item) { jumpPage (item) {
console.log(item)
let { openSceneArr, selectIndex } = this, let { openSceneArr, selectIndex } = this,
{ shopMerchantName, shopMerchantId } = item, { merchantName: shopMerchantName, merchantId: shopMerchantId } = item,
userInfo = uni.$storage.get('userInfo') userInfo = uni.$storage.get('userInfo')
if (!openSceneArr?.length && !userInfo?.isSuper) return wx.$util.showToast('暂无开通业务,请联系总部管理员') if (!openSceneArr?.length && !userInfo?.isSuper) return wx.$util.showToast('暂无开通业务,请联系总部管理员')
uni.$storage.set('userInfo', { uni.$storage.set('userInfo', {
......
...@@ -5,12 +5,15 @@ ...@@ -5,12 +5,15 @@
</view> </view>
<view class="content"> <view class="content">
<view class="title">问界·商城延保价格明细</view> <view class="title">问界·商城延保价格明细</view>
<tabs :list="views" /> <tabs
:list="views"
@tabclick="changeView"
/>
<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',{showView:viewIndex == index}]"
:key="index" :key="index"
v-show="viewIndex == index"
> >
<wnCanvas <wnCanvas
saveImageType="3" saveImageType="3"
...@@ -43,6 +46,7 @@ export default { ...@@ -43,6 +46,7 @@ export default {
}, },
methods: { methods: {
changeView (index) { changeView (index) {
console.log()
this.viewIndex = index this.viewIndex = index
}, },
} }
...@@ -73,22 +77,6 @@ export default { ...@@ -73,22 +77,6 @@ export default {
padding: 32rpx 0; padding: 32rpx 0;
text-align: center; text-align: center;
} }
.canvas-box {
width: 100%;
// flex-wrap: nowrap;
}
.canvas-view {
z-index: -1;
opacity: 0;
left: 0;
top: 0;
display: none;
width: 100%;
}
.showView {
display: block;
z-index: 2;
}
} }
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -63,7 +63,8 @@ export default { ...@@ -63,7 +63,8 @@ export default {
}, },
/**切换素材 */ /**切换素材 */
choose (e) { choose (e) {
console.log(e) this.id = e.id
this.getFindSoureDetail(e.id)
}, },
async getFindSoureDetail (id) { async getFindSoureDetail (id) {
try { try {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!