This commit is contained in:
X1627315083
2024-03-08 16:51:24 +08:00
parent 31006c1868
commit 8911e9da14
16 changed files with 1291 additions and 626 deletions

View File

@@ -142,9 +142,12 @@
<input type="number" @input="setMaxInput('height', 10000)" v-model="canvasWH.height" />
</label>
</div>
<div class="" @click="multiselect">all</div>
<!-- <div class="" @click="multiselect">all</div> -->
<div class="exportCanvasBox_right_credits" v-show="credits<1">
<div><span class="icon iconfont icon-zhuyi"></span>Your points balance is insufficient, if you need to use this feature, please click the top left corner to recharge</div>
</div>
<div class="exportCanvasBox_right_btn">
<div class="subitOkPreviewBtn" @click="setHDExport">HD Export</div>
<div class="subitOkPreviewBtn" :class="{active:credits<1}" @click="setHDExport">HD Export</div>
<div class="subitOkPreviewBtn" @click="setExport">Export</div>
</div>
</div>
@@ -183,12 +186,10 @@ export default defineComponent({
});
canvasWH.value.width = [window.innerWidth/2.4]
canvasWH.value.width = canvasWH.value.width.map(num => Math.round(num / 100) * 100)[0];
let sketch = computed(() => {
return store.state.HomeStoreModule.showSketchList;
});
let sketchList = computed(() => {
return store.state.UploadFilesModule.showSketchboard;
let credits = computed(() => {
return store.state.UserHabit.credits.value;
});
let allBoardData = computed(() => {
return store.state.UploadFilesModule.allBoardData;
});
@@ -965,6 +966,7 @@ export default defineComponent({
return {
showUpgradePlan,
canvasWH,
credits,
init,
setExport,
cancelDsign,
@@ -1056,12 +1058,12 @@ export default defineComponent({
margin-bottom: .5rem;
font-size: 1.8rem;
font-weight: 600;
margin-top: 2rem;
// margin-top: 2rem;
padding-top: 2rem;
display: flex;
justify-content: space-between;
cursor: pointer;
position: sticky;
top: 1rem;
background: #f9fafb;
z-index: 2;
.icon{
@@ -1185,13 +1187,21 @@ export default defineComponent({
// display: flex;
flex: 1;
}
.exportCanvasBox_right_credits{
margin-bottom: 2rem;
}
.exportCanvasBox_right_btn{
display: flex;
justify-content: space-between;
.subitOkPreviewBtn{
position: initial;
transform: none;
&.active{
opacity: .7;
cursor: not-allowed;
}
}
}
}
.exportCanvasBox_center {