Commit 72d8cd1f authored by youjie's avatar youjie

no message

parent ae709dfa
...@@ -36,14 +36,17 @@ ...@@ -36,14 +36,17 @@
margin-bottom: 0; margin-bottom: 0;
} }
.sty-box { .sty-box {
width: 750px; // width: 750px;
height: 1344px; // height: 1344px;
position: absolute; // position: fixed;
top: -2000px; // top: -2000px;
left: -1500px; // left: -1500px;
width: 500rpx;
height: 500rpx;
} }
</style> </style>
<template> <template>
<view>
<u-popup mode="center" border-radius="20" <u-popup mode="center" border-radius="20"
:popup="false" :popup="false"
v-model="currencyVisible" :maskCloseAble="true" v-model="currencyVisible" :maskCloseAble="true"
...@@ -58,7 +61,9 @@ ...@@ -58,7 +61,9 @@
<swiper indicator-dots circular style="height:500rpx;width:500rpx" <swiper indicator-dots circular style="height:500rpx;width:500rpx"
:current="current" @change="changeHandler"> :current="current" @change="changeHandler">
<swiper-item v-for="(item, index) in list" :key="index"> <swiper-item v-for="(item, index) in list" :key="index">
<canvas canvas-id="TeamLeaderCanvas" class="sty-box" @error="canvasIdErrorCallback">
<image mode="aspectFit" :src="item.Url" /> <image mode="aspectFit" :src="item.Url" />
</canvas>
</swiper-item> </swiper-item>
</swiper> </swiper>
<!-- <img :src="list[0].Url"/> --> <!-- <img :src="list[0].Url"/> -->
...@@ -68,9 +73,9 @@ ...@@ -68,9 +73,9 @@
<view class="flex1 PY20 text-center" @click="close">取消</view> <view class="flex1 PY20 text-center" @click="close">取消</view>
<view class="flex1 PY20 text-center" @click="preservation">保存</view> <view class="flex1 PY20 text-center" @click="preservation">保存</view>
</view> </view>
<canvas canvas-id="firstCanvas" class="sty-box" @error="canvasIdErrorCallback"></canvas>
</view> </view>
</u-popup> </u-popup>
</view>
</template> </template>
<script> <script>
export default { export default {
...@@ -144,7 +149,7 @@ export default { ...@@ -144,7 +149,7 @@ export default {
}); });
let that = this; let that = this;
uni.canvasToTempFilePath({ uni.canvasToTempFilePath({
canvasId: "firstCanvas", canvasId: "TeamLeaderCanvas",
success: (res) => { success: (res) => {
uni.hideLoading(); uni.hideLoading();
uni.showLoading({ uni.showLoading({
......
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