|
|
|
|
@ -1,3 +1,224 @@
@@ -1,3 +1,224 @@
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
|
<div class="photo-upload-page"> |
|
|
|
|
<div class="badge-size" v-if="trialCode == false"> |
|
|
|
|
<div class="order-type"> |
|
|
|
|
<div class="order-type-item"> |
|
|
|
|
<div class="order-type-item-title" v-if="orderStat.order_no"> |
|
|
|
|
订单编号 |
|
|
|
|
</div> |
|
|
|
|
<div class="order-type-item-title"> |
|
|
|
|
{{ orderStat.order_no }} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="order-type-item" v-if="orderStat.prod_id"> |
|
|
|
|
<div class="order-type-item-title"> |
|
|
|
|
产品类型 |
|
|
|
|
</div> |
|
|
|
|
<div class="order-type-item-title"> |
|
|
|
|
{{ orderStat.prod_id == 7 ? '人物立体徽章' : '宠物立体徽章'}} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="size-title"> |
|
|
|
|
剩余兑换数量 |
|
|
|
|
</div> |
|
|
|
|
<div class="size-options"> |
|
|
|
|
<div class="size-item" v-for="item in sizeList" :key="item.id"> |
|
|
|
|
<div class="size-text"> |
|
|
|
|
{{ item.size }} |
|
|
|
|
</div> |
|
|
|
|
<div class="size-count"> |
|
|
|
|
(剩余兑换:{{ item.remaining }}) |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="badge-info" v-if="trialCode == false"> |
|
|
|
|
<div class="badge-item" @click="goToRecord"> |
|
|
|
|
<div class="badge-title"> |
|
|
|
|
设计图集 |
|
|
|
|
</div> |
|
|
|
|
<div class="badge-count"> |
|
|
|
|
{{ orderStat.create_count || 0 }}张 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="badge-item" @click="goToMyOrder"> |
|
|
|
|
<div class="badge-title"> |
|
|
|
|
我的订单 |
|
|
|
|
</div> |
|
|
|
|
<div class="badge-count"> |
|
|
|
|
{{ orderStat.order_count || 0 }}笔 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="badge-phone" v-if="trialCode == true"> |
|
|
|
|
<van-field |
|
|
|
|
label="手机号码" |
|
|
|
|
type="number" |
|
|
|
|
v-model="mobile" |
|
|
|
|
placeholder="请输入手机号" |
|
|
|
|
required |
|
|
|
|
maxlength="11" |
|
|
|
|
:rules="[{ required: true, message: '请输入手机号' }]" |
|
|
|
|
@blur="onBlur" |
|
|
|
|
@confirm="onBlur" |
|
|
|
|
/> |
|
|
|
|
<p style="font-size: 12px; color: #000; margin-left: 16px;">注:需要先输入手机号才可体验徽章设计</p> |
|
|
|
|
<div class="style-box"> |
|
|
|
|
<div class="style-box-item"> |
|
|
|
|
<div class="style-item-title" :class="{ styleActive: prodId == 7 }" @click="styleChange(7)"> |
|
|
|
|
{{ prop == '3D真人肖像' ? '3D真人肖像' : '人物立体徽章' }} |
|
|
|
|
</div> |
|
|
|
|
<div class="style-item-title" :class="{ styleActive: prodId == 8 }" @click="styleChange(8)"> |
|
|
|
|
宠物立体徽章 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div style="height: 8px;background: #F2F2F2;"></div> |
|
|
|
|
<div class="step-container" v-if="trialCode == false"> |
|
|
|
|
<div class="step-item active"> |
|
|
|
|
<div class="step-num"> |
|
|
|
|
1 |
|
|
|
|
</div> |
|
|
|
|
<div class="step-content"> |
|
|
|
|
<div class="step-title"> |
|
|
|
|
上传正面照片 |
|
|
|
|
</div> |
|
|
|
|
<div class="step-desc"> |
|
|
|
|
1张五官清晰的正面照片 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="step-item"> |
|
|
|
|
<div class="step-num"> |
|
|
|
|
2 |
|
|
|
|
</div> |
|
|
|
|
<div class="step-content"> |
|
|
|
|
<div class="step-title"> |
|
|
|
|
确认下单 |
|
|
|
|
</div> |
|
|
|
|
<div class="step-desc"> |
|
|
|
|
选择一个你喜欢的设计 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="step-line" v-if="prop == '3D真人肖像'"> |
|
|
|
|
<div class="step-line-item"> |
|
|
|
|
<div class="step-line-item-title"> |
|
|
|
|
<span style="display: flex; align-items: center;justify-content: center;"> |
|
|
|
|
<span style="height: 1px; background: #ccc;width: 50px;"></span> |
|
|
|
|
<span style="margin: 0 8px; color: #888;">照片示例</span> |
|
|
|
|
<span style="height: 1px; background: #ccc;width: 50px;"></span> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="step-line-item-desc" style="display: flex; align-items: center;justify-content: space-around;padding: 16px 16px 0 16px;"> |
|
|
|
|
<div class="step-line-item-desc-item"> |
|
|
|
|
<img src="@/assets/badge/1.png" style="width: 20vw;height: 20vw;border-radius: 8px;" alt=""> |
|
|
|
|
</div> |
|
|
|
|
<div class="step-line-item-desc-item"> |
|
|
|
|
<img src="@/assets/badge/2.png" style="width: 20vw;height: 20vw;border-radius: 8px;" alt=""> |
|
|
|
|
</div> |
|
|
|
|
<div class="step-line-item-desc-item"> |
|
|
|
|
<img src="@/assets/badge/3.png" style="width: 20vw;height: 20vw;border-radius: 8px;" alt=""> |
|
|
|
|
</div> |
|
|
|
|
<div class="step-line-item-desc-item"> |
|
|
|
|
<img src="@/assets/badge/4.png" style="width: 20vw;height: 20vw;border-radius: 8px;" alt=""> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="photo-upload-body"> |
|
|
|
|
<div v-if="!picture" class="photo-upload-box"> |
|
|
|
|
<div class="photo-upload-header" @click="imgShow = true"> |
|
|
|
|
<van-icon name="question-o" size="16px" class="photo-upload-guide-icon" /> |
|
|
|
|
<span class="photo-upload-guide-text">图片上传指南</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="photo-upload-area"> |
|
|
|
|
<div class="photo-upload-plus"> |
|
|
|
|
+ |
|
|
|
|
</div> |
|
|
|
|
<div class="photo-upload-text"> |
|
|
|
|
点击上传照片 |
|
|
|
|
</div> |
|
|
|
|
<div class="photo-upload-tip"> |
|
|
|
|
*上传照片时建议勾选[原图] |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="photo-upload-footer"> |
|
|
|
|
请确定您对上传的照片拥有合法使用权利或已取得他人合法授权,且同意本平台分析图片信息以提供生成服务 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<img class="photo-upload-img" v-if="picture" :src="picture" alt="" srcset=""> |
|
|
|
|
<div class="photo-upload-box-1"> |
|
|
|
|
<h5-cropper :option="option" @getbase64Data="getbase64Data" @imgorigoinf="imgorigoinf" ></h5-cropper> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div style="font-size: 12px; color: red; margin-top: 16px; text-align: center;" v-if="prodId == 7">温馨提示:请上传只有{{ prop == '3D真人肖像' ? '1' : '1-3' }}人的照片</div> |
|
|
|
|
<div style="font-size: 12px; color: red; margin-top: 16px; text-align: center;" v-if="prodId == 8">温馨提示:请上传只有1-3只宠物的照片</div> |
|
|
|
|
<div style="height: 90px;"></div> |
|
|
|
|
<div class="design-action-bar"> |
|
|
|
|
<div class="design-left"> |
|
|
|
|
<img class="design-leaf-icon" width="18" height="18" src="@/assets/badge/leaf.png" alt=""> |
|
|
|
|
<span v-if="trialCode == false" class="design-remaining">剩余{{ orderStat.remain_count || 0 }}次</span> |
|
|
|
|
<span v-if="trialCode == true" class="design-remaining">体验1次</span> |
|
|
|
|
</div> |
|
|
|
|
<button class="design-btn" @click="goToPreview"> |
|
|
|
|
<span>开始设计</span> |
|
|
|
|
<img class="design-arrow" src="@/assets/badge/arrow.png" alt=""> |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<van-action-sheet v-model:show="imgShow" title="图片上传指南" :close-on-click-overlay="true" closeable> |
|
|
|
|
<div style="padding: 0 16px 24px 16px;"> |
|
|
|
|
<div style="text-align: center;"> |
|
|
|
|
<img :src="sundryList[0].path" alt="照片上传指南" style="width: 90vw; border-radius: 16px; margin-bottom: 16px;"> |
|
|
|
|
</div> |
|
|
|
|
<div style="display: flex; justify-content: space-between; margin-bottom: 16px;"> |
|
|
|
|
<div style="flex: 1; text-align: center;"> |
|
|
|
|
<img :src="sundryList[1].path" alt="多主体" style="width: 25vw; height: 25vw; border-radius: 8px; object-fit: cover;"> |
|
|
|
|
<div style="font-size: 13px; color: #888; margin-top: 4px;"> |
|
|
|
|
多主体 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div style="flex: 1; text-align: center;"> |
|
|
|
|
<img :src="sundryList[2].path" alt="光线昏暗" style="width: 25vw; height: 25vw; border-radius: 8px; object-fit: cover;"> |
|
|
|
|
<div style="font-size: 13px; color: #888; margin-top: 4px;"> |
|
|
|
|
光线昏暗 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div style="flex: 1; text-align: center;"> |
|
|
|
|
<img :src="sundryList[3].path" alt="后侧面及背影" style="width: 25vw; height: 25vw; border-radius: 8px; object-fit: cover;"> |
|
|
|
|
<div style="font-size: 13px; color: #888; margin-top: 4px;"> |
|
|
|
|
后侧面及背影 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div style="display: flex; justify-content: space-around; margin-bottom: 24px;"> |
|
|
|
|
<div style="flex: 1; text-align: center;"> |
|
|
|
|
<img :src="sundryList[4].path" alt="照片模糊" style="width: 25vw; height: 25vw; border-radius: 8px; object-fit: cover;"> |
|
|
|
|
<div style="font-size: 13px; color: #888; margin-top: 4px;"> |
|
|
|
|
照片模糊 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div style="flex: 1; text-align: center;"> |
|
|
|
|
<img :src="sundryList[5].path" alt="照片留白过少" style="width: 25vw; height: 25vw; border-radius: 8px; object-fit: cover;"> |
|
|
|
|
<div style="font-size: 13px; color: #888; margin-top: 4px;"> |
|
|
|
|
照片留白过少 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div style="margin-top: 24px; text-align: center;"> |
|
|
|
|
<button style="width: 90%; height: 44px; background: linear-gradient(90deg, #d6f5b7 0%, #50cf54 100%); border: none; border-radius: 22px; color: #222; font-size: 18px; font-weight: bold; cursor: pointer;" @click="imgShow = false"> |
|
|
|
|
我已了解 |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</van-action-sheet> |
|
|
|
|
</template> |
|
|
|
|
<script setup lang="ts"> |
|
|
|
|
import { useRouter } from 'vue-router' |
|
|
|
|
import H5Cropper from 'vue-cropper-h5' |
|
|
|
|
@ -60,6 +281,12 @@ const sizeList = ref([])
@@ -60,6 +281,12 @@ const sizeList = ref([])
|
|
|
|
|
const getSizeList = () => { |
|
|
|
|
badgeApi.getOrderPrice({}).then((res: any) => { |
|
|
|
|
sizeList.value = res |
|
|
|
|
sizeList.value.forEach((item: any) => { |
|
|
|
|
if (item.shape_item == null || item.shape_item == undefined || item.shape_item == '' || !item.shape_item) { |
|
|
|
|
showToast('该链接异常,请联系客服') |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -140,8 +367,8 @@ function getbase64Data(data) {
@@ -140,8 +367,8 @@ function getbase64Data(data) {
|
|
|
|
|
img.onload = () => { |
|
|
|
|
imageWidth.value = img.naturalWidth; |
|
|
|
|
imageHeight.value = img.naturalHeight; |
|
|
|
|
if (imageWidth.value < 500 || imageHeight.value < 500) { |
|
|
|
|
showToast('请上传尺寸大于500*500像素的照片') |
|
|
|
|
if (imageWidth.value < 300 || imageHeight.value < 300) { |
|
|
|
|
showToast('请上传尺寸大于300*300像素的照片') |
|
|
|
|
imgurl.value = null |
|
|
|
|
picture.value = null |
|
|
|
|
return false; |
|
|
|
|
@ -181,8 +408,8 @@ function imgorigoinf(data) {
@@ -181,8 +408,8 @@ function imgorigoinf(data) {
|
|
|
|
|
img.onload = () => { |
|
|
|
|
imageWidth.value = img.naturalWidth; |
|
|
|
|
imageHeight.value = img.naturalHeight; |
|
|
|
|
if (imageWidth.value < 500 || imageHeight.value < 500) { |
|
|
|
|
showToast('请上传尺寸大于500*500像素的照片') |
|
|
|
|
if (imageWidth.value < 300 || imageHeight.value < 300) { |
|
|
|
|
showToast('请上传尺寸大于300*300像素的照片') |
|
|
|
|
setTimeout(() => { |
|
|
|
|
const btn = document.querySelector('.btn') |
|
|
|
|
if (btn) { |
|
|
|
|
@ -455,227 +682,6 @@ onMounted(() => {
@@ -455,227 +682,6 @@ onMounted(() => {
|
|
|
|
|
}) |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
|
<div class="photo-upload-page"> |
|
|
|
|
<div class="badge-size" v-if="trialCode == false"> |
|
|
|
|
<div class="order-type"> |
|
|
|
|
<div class="order-type-item"> |
|
|
|
|
<div class="order-type-item-title" v-if="orderStat.order_no"> |
|
|
|
|
订单编号 |
|
|
|
|
</div> |
|
|
|
|
<div class="order-type-item-title"> |
|
|
|
|
{{ orderStat.order_no }} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="order-type-item" v-if="orderStat.prod_id"> |
|
|
|
|
<div class="order-type-item-title"> |
|
|
|
|
产品类型 |
|
|
|
|
</div> |
|
|
|
|
<div class="order-type-item-title"> |
|
|
|
|
{{ orderStat.prod_id == 7 ? '人物立体徽章' : '宠物立体徽章'}} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="size-title"> |
|
|
|
|
剩余兑换数量 |
|
|
|
|
</div> |
|
|
|
|
<div class="size-options"> |
|
|
|
|
<div class="size-item" v-for="item in sizeList" :key="item.id"> |
|
|
|
|
<div class="size-text"> |
|
|
|
|
{{ item.size }} |
|
|
|
|
</div> |
|
|
|
|
<div class="size-count"> |
|
|
|
|
(剩余兑换:{{ item.remaining }}) |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="badge-info" v-if="trialCode == false"> |
|
|
|
|
<div class="badge-item" @click="goToRecord"> |
|
|
|
|
<div class="badge-title"> |
|
|
|
|
设计图集 |
|
|
|
|
</div> |
|
|
|
|
<div class="badge-count"> |
|
|
|
|
{{ orderStat.create_count || 0 }}张 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="badge-item" @click="goToMyOrder"> |
|
|
|
|
<div class="badge-title"> |
|
|
|
|
我的订单 |
|
|
|
|
</div> |
|
|
|
|
<div class="badge-count"> |
|
|
|
|
{{ orderStat.order_count || 0 }}笔 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="badge-phone" v-if="trialCode == true"> |
|
|
|
|
<van-field |
|
|
|
|
label="手机号码" |
|
|
|
|
type="number" |
|
|
|
|
v-model="mobile" |
|
|
|
|
placeholder="请输入手机号" |
|
|
|
|
required |
|
|
|
|
maxlength="11" |
|
|
|
|
:rules="[{ required: true, message: '请输入手机号' }]" |
|
|
|
|
@blur="onBlur" |
|
|
|
|
@confirm="onBlur" |
|
|
|
|
/> |
|
|
|
|
<p style="font-size: 12px; color: #000; margin-left: 16px;">注:需要先输入手机号才可体验徽章设计</p> |
|
|
|
|
<div class="style-box"> |
|
|
|
|
<div class="style-box-item"> |
|
|
|
|
<div class="style-item-title" :class="{ styleActive: prodId == 7 }" @click="styleChange(7)"> |
|
|
|
|
{{ prop == '3D真人肖像' ? '3D真人肖像' : '人物立体徽章' }} |
|
|
|
|
</div> |
|
|
|
|
<div class="style-item-title" :class="{ styleActive: prodId == 8 }" @click="styleChange(8)"> |
|
|
|
|
宠物立体徽章 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div style="height: 8px;background: #F2F2F2;"></div> |
|
|
|
|
<div class="step-container" v-if="trialCode == false"> |
|
|
|
|
<div class="step-item active"> |
|
|
|
|
<div class="step-num"> |
|
|
|
|
1 |
|
|
|
|
</div> |
|
|
|
|
<div class="step-content"> |
|
|
|
|
<div class="step-title"> |
|
|
|
|
上传正面照片 |
|
|
|
|
</div> |
|
|
|
|
<div class="step-desc"> |
|
|
|
|
1张五官清晰的正面照片 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="step-item"> |
|
|
|
|
<div class="step-num"> |
|
|
|
|
2 |
|
|
|
|
</div> |
|
|
|
|
<div class="step-content"> |
|
|
|
|
<div class="step-title"> |
|
|
|
|
确认下单 |
|
|
|
|
</div> |
|
|
|
|
<div class="step-desc"> |
|
|
|
|
选择一个你喜欢的设计 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="step-line" v-if="prop == '3D真人肖像'"> |
|
|
|
|
<div class="step-line-item"> |
|
|
|
|
<div class="step-line-item-title"> |
|
|
|
|
<span style="display: flex; align-items: center;justify-content: center;"> |
|
|
|
|
<span style="height: 1px; background: #ccc;width: 50px;"></span> |
|
|
|
|
<span style="margin: 0 8px; color: #888;">照片示例</span> |
|
|
|
|
<span style="height: 1px; background: #ccc;width: 50px;"></span> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="step-line-item-desc" style="display: flex; align-items: center;justify-content: space-around;padding: 16px 16px 0 16px;"> |
|
|
|
|
<div class="step-line-item-desc-item"> |
|
|
|
|
<img src="@/assets/badge/1.png" style="width: 20vw;height: 20vw;border-radius: 8px;" alt=""> |
|
|
|
|
</div> |
|
|
|
|
<div class="step-line-item-desc-item"> |
|
|
|
|
<img src="@/assets/badge/2.png" style="width: 20vw;height: 20vw;border-radius: 8px;" alt=""> |
|
|
|
|
</div> |
|
|
|
|
<div class="step-line-item-desc-item"> |
|
|
|
|
<img src="@/assets/badge/3.png" style="width: 20vw;height: 20vw;border-radius: 8px;" alt=""> |
|
|
|
|
</div> |
|
|
|
|
<div class="step-line-item-desc-item"> |
|
|
|
|
<img src="@/assets/badge/4.png" style="width: 20vw;height: 20vw;border-radius: 8px;" alt=""> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="photo-upload-body"> |
|
|
|
|
<div v-if="!picture" class="photo-upload-box"> |
|
|
|
|
<div class="photo-upload-header" @click="imgShow = true"> |
|
|
|
|
<van-icon name="question-o" size="16px" class="photo-upload-guide-icon" /> |
|
|
|
|
<span class="photo-upload-guide-text">图片上传指南</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="photo-upload-area"> |
|
|
|
|
<div class="photo-upload-plus"> |
|
|
|
|
+ |
|
|
|
|
</div> |
|
|
|
|
<div class="photo-upload-text"> |
|
|
|
|
点击上传照片 |
|
|
|
|
</div> |
|
|
|
|
<div class="photo-upload-tip"> |
|
|
|
|
*上传照片时建议勾选[原图] |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="photo-upload-footer"> |
|
|
|
|
请确定您对上传的照片拥有合法使用权利或已取得他人合法授权,且同意本平台分析图片信息以提供生成服务 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<img class="photo-upload-img" v-if="picture" :src="picture" alt="" srcset=""> |
|
|
|
|
<div class="photo-upload-box-1"> |
|
|
|
|
<h5-cropper :option="option" @getbase64Data="getbase64Data" @imgorigoinf="imgorigoinf" ></h5-cropper> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div style="font-size: 12px; color: red; margin-top: 16px; text-align: center;" v-if="prodId == 7">温馨提示:请上传只有{{ prop == '3D真人肖像' ? '1' : '1-3' }}人的照片</div> |
|
|
|
|
<div style="font-size: 12px; color: red; margin-top: 16px; text-align: center;" v-if="prodId == 8">温馨提示:请上传只有1-3只宠物的照片</div> |
|
|
|
|
<div style="height: 90px;"></div> |
|
|
|
|
<div class="design-action-bar"> |
|
|
|
|
<div class="design-left"> |
|
|
|
|
<img class="design-leaf-icon" width="18" height="18" src="@/assets/badge/leaf.png" alt=""> |
|
|
|
|
<span v-if="trialCode == false" class="design-remaining">剩余{{ orderStat.remain_count || 0 }}次</span> |
|
|
|
|
<span v-if="trialCode == true" class="design-remaining">体验1次</span> |
|
|
|
|
</div> |
|
|
|
|
<button class="design-btn" @click="goToPreview"> |
|
|
|
|
<span>开始设计</span> |
|
|
|
|
<img class="design-arrow" src="@/assets/badge/arrow.png" alt=""> |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<van-action-sheet v-model:show="imgShow" title="图片上传指南" :close-on-click-overlay="true" closeable> |
|
|
|
|
<div style="padding: 0 16px 24px 16px;"> |
|
|
|
|
<div style="text-align: center;"> |
|
|
|
|
<img :src="sundryList[0].path" alt="照片上传指南" style="width: 90vw; border-radius: 16px; margin-bottom: 16px;"> |
|
|
|
|
</div> |
|
|
|
|
<div style="display: flex; justify-content: space-between; margin-bottom: 16px;"> |
|
|
|
|
<div style="flex: 1; text-align: center;"> |
|
|
|
|
<img :src="sundryList[1].path" alt="多主体" style="width: 25vw; height: 25vw; border-radius: 8px; object-fit: cover;"> |
|
|
|
|
<div style="font-size: 13px; color: #888; margin-top: 4px;"> |
|
|
|
|
多主体 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div style="flex: 1; text-align: center;"> |
|
|
|
|
<img :src="sundryList[2].path" alt="光线昏暗" style="width: 25vw; height: 25vw; border-radius: 8px; object-fit: cover;"> |
|
|
|
|
<div style="font-size: 13px; color: #888; margin-top: 4px;"> |
|
|
|
|
光线昏暗 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div style="flex: 1; text-align: center;"> |
|
|
|
|
<img :src="sundryList[3].path" alt="后侧面及背影" style="width: 25vw; height: 25vw; border-radius: 8px; object-fit: cover;"> |
|
|
|
|
<div style="font-size: 13px; color: #888; margin-top: 4px;"> |
|
|
|
|
后侧面及背影 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div style="display: flex; justify-content: space-around; margin-bottom: 24px;"> |
|
|
|
|
<div style="flex: 1; text-align: center;"> |
|
|
|
|
<img :src="sundryList[4].path" alt="照片模糊" style="width: 25vw; height: 25vw; border-radius: 8px; object-fit: cover;"> |
|
|
|
|
<div style="font-size: 13px; color: #888; margin-top: 4px;"> |
|
|
|
|
照片模糊 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div style="flex: 1; text-align: center;"> |
|
|
|
|
<img :src="sundryList[5].path" alt="照片留白过少" style="width: 25vw; height: 25vw; border-radius: 8px; object-fit: cover;"> |
|
|
|
|
<div style="font-size: 13px; color: #888; margin-top: 4px;"> |
|
|
|
|
照片留白过少 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div style="margin-top: 24px; text-align: center;"> |
|
|
|
|
<button style="width: 90%; height: 44px; background: linear-gradient(90deg, #d6f5b7 0%, #50cf54 100%); border: none; border-radius: 22px; color: #222; font-size: 18px; font-weight: bold; cursor: pointer;" @click="imgShow = false"> |
|
|
|
|
我已了解 |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</van-action-sheet> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<style scoped> |
|
|
|
|
.photo-upload-page { |
|
|
|
|
height: auto; |
|
|
|
|
@ -688,15 +694,11 @@ onMounted(() => {
@@ -688,15 +694,11 @@ onMounted(() => {
|
|
|
|
|
color: #000; |
|
|
|
|
} |
|
|
|
|
.size-options { |
|
|
|
|
.size-item { |
|
|
|
|
margin-top: 8px; |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
align-items: center; |
|
|
|
|
margin-top: 8px; |
|
|
|
|
.size-item:last-child { |
|
|
|
|
margin-left: 5px; |
|
|
|
|
} |
|
|
|
|
.size-item { |
|
|
|
|
flex: 1; |
|
|
|
|
.size-text { |
|
|
|
|
font-size: 14px; |
|
|
|
|
color: #333; |
|
|
|
|
|