|
|
|
@ -35,7 +35,24 @@
|
|
|
|
|
<view class="flag"></view>
|
|
|
|
|
上传照片
|
|
|
|
|
</view>
|
|
|
|
|
<button class="make-btn-style">
|
|
|
|
|
<view
|
|
|
|
|
class="temp-img-content border-radius"
|
|
|
|
|
v-if="data.tempImgUrl && data.tempImgUrl !== ''"
|
|
|
|
|
>
|
|
|
|
|
<image
|
|
|
|
|
:src="data.tempImgUrl"
|
|
|
|
|
mode="scaleToFill"
|
|
|
|
|
style="width: 100%; height: 100%"
|
|
|
|
|
/>
|
|
|
|
|
<uni-icons
|
|
|
|
|
type="trash"
|
|
|
|
|
color=""
|
|
|
|
|
size="24"
|
|
|
|
|
class="img-del"
|
|
|
|
|
@click="deleteTemp"
|
|
|
|
|
/>
|
|
|
|
|
</view>
|
|
|
|
|
<button v-else class="make-btn-style" @click="toUpload">
|
|
|
|
|
<uni-icons type="plusempty" color="" size="24" />
|
|
|
|
|
</button>
|
|
|
|
|
<view class="part-title">
|
|
|
|
@ -44,20 +61,40 @@
|
|
|
|
|
</view>
|
|
|
|
|
<view class="img-history border-radius">
|
|
|
|
|
<view
|
|
|
|
|
class="img-content border-radius"
|
|
|
|
|
class="img-content"
|
|
|
|
|
:style="
|
|
|
|
|
'width:' +
|
|
|
|
|
data.imgWidth +
|
|
|
|
|
'px; height:' +
|
|
|
|
|
data.imgWidth * 1.2 +
|
|
|
|
|
'px'
|
|
|
|
|
"
|
|
|
|
|
v-for="img in data.imgHistoryList"
|
|
|
|
|
:key="img.source_img_url"
|
|
|
|
|
@click="convertTemp(img.source_img_url)"
|
|
|
|
|
>
|
|
|
|
|
<image :src="img.source_img_url" style="width: 100%; height: 100%" />
|
|
|
|
|
<view class="img-box border-radius">
|
|
|
|
|
<image
|
|
|
|
|
:src="img.source_img_url"
|
|
|
|
|
style="width: 100%; height: 100%"
|
|
|
|
|
/>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<button @click="toMake" class="make-btn-style">立即制作</button>
|
|
|
|
|
<button
|
|
|
|
|
@click="toMake"
|
|
|
|
|
class="make-btn-style"
|
|
|
|
|
:loading="data.isMaking"
|
|
|
|
|
:disabled="data.isDisabled"
|
|
|
|
|
>
|
|
|
|
|
立即制作
|
|
|
|
|
</button>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
import getData from "./make";
|
|
|
|
|
const { data, toMake } = getData();
|
|
|
|
|
const { data, toMake, toUpload, deleteTemp, convertTemp } = getData();
|
|
|
|
|
</script>
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
.make-container {
|
|
|
|
@ -69,6 +106,9 @@ const { data, toMake } = getData();
|
|
|
|
|
.content {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: calc(100% - 112rpx);
|
|
|
|
|
overflow-y: scroll;
|
|
|
|
|
padding-bottom: $uni-spacing-col-base;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
.model-content {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 550rpx;
|
|
|
|
@ -149,19 +189,36 @@ const { data, toMake } = getData();
|
|
|
|
|
margin-right: 10rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.temp-img-content {
|
|
|
|
|
width: 260rpx;
|
|
|
|
|
height: 320rpx;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
margin-bottom: 10rpx;
|
|
|
|
|
position: relative;
|
|
|
|
|
.img-del {
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 10rpx;
|
|
|
|
|
top: 10rpx;
|
|
|
|
|
color: $uni-text-color-disable;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.img-history {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: auto;
|
|
|
|
|
background-color: white;
|
|
|
|
|
padding: $uni-spacing-col-base;
|
|
|
|
|
padding: $uni-spacing-col-base 0;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
.img-content {
|
|
|
|
|
width: 160rpx;
|
|
|
|
|
height: 160rpx;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
padding: 10rpx;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
.img-box {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|