update creater style
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 416 B |
Binary file not shown.
|
Before Width: | Height: | Size: 517 B |
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
"component": true,
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
|
"t-icon": "tdesign-miniprogram/icon/icon",
|
||||||
"t-button": "tdesign-miniprogram/button/button",
|
"t-button": "tdesign-miniprogram/button/button",
|
||||||
"t-navbar": "tdesign-miniprogram/navbar/navbar"
|
"t-navbar": "tdesign-miniprogram/navbar/navbar"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
/* pages/main/journal-creater/index.wxss */
|
/* pages/main/journal-creater/index.wxss */
|
||||||
.container {
|
.container {
|
||||||
height: 100vh;
|
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
width: calc(100% - 64px);
|
width: calc(100% - 64px);
|
||||||
@ -40,7 +39,6 @@
|
|||||||
.gallery {
|
.gallery {
|
||||||
gap: 10rpx;
|
gap: 10rpx;
|
||||||
display: grid;
|
display: grid;
|
||||||
margin-top: 1rem;
|
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
@ -51,6 +49,12 @@
|
|||||||
box-shadow: 1px 1px 6px var(--theme-shadow-light);
|
box-shadow: 1px 1px 6px var(--theme-shadow-light);
|
||||||
border-radius: 2rpx;
|
border-radius: 2rpx;
|
||||||
|
|
||||||
|
&.add {
|
||||||
|
color: var(--theme-wx);
|
||||||
|
margin: 0;
|
||||||
|
font-size: 80rpx;
|
||||||
|
}
|
||||||
|
|
||||||
.thumbnail {
|
.thumbnail {
|
||||||
height: 200rpx;
|
height: 200rpx;
|
||||||
display: block;
|
display: block;
|
||||||
@ -63,26 +67,32 @@
|
|||||||
.play-icon {
|
.play-icon {
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
width: 60rpx;
|
color: rgba(255, 255, 255, .8);
|
||||||
height: 60rpx;
|
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
font-size: 128rpx;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
|
text-shadow: 4rpx 4rpx 0 rgba(0, 0, 0, .5);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.delete {
|
||||||
|
top: 10rpx;
|
||||||
|
right: 10rpx;
|
||||||
|
color: rgba(0, 0, 0, .7);
|
||||||
|
z-index: 3;
|
||||||
|
position: absolute;
|
||||||
|
font-size: 45rpx;
|
||||||
|
}
|
||||||
|
|
||||||
.delete {
|
.delete {
|
||||||
top: 10rpx;
|
top: 10rpx;
|
||||||
right: 10rpx;
|
right: 10rpx;
|
||||||
width: 40rpx;
|
color: rgba(0, 0, 0, .7);
|
||||||
height: 40rpx;
|
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
padding: 5rpx;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background: rgba(0, 0, 0, 0.5);
|
font-size: 45rpx;
|
||||||
border-radius: 50%;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -91,11 +101,23 @@
|
|||||||
|
|
||||||
.progress {
|
.progress {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ctrl {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
margin-top: 1rem;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.clear {
|
||||||
|
width: 200rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.submit {
|
.submit {
|
||||||
width: 10rem;
|
flex: 1;
|
||||||
margin-top: 1rem;
|
margin-left: 12rpx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -36,23 +36,6 @@
|
|||||||
<text wx:else bind:tap="chooseLocation">选择位置..</text>
|
<text wx:else bind:tap="chooseLocation">选择位置..</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="section media">
|
<view class="section media">
|
||||||
<view class="ctrl">
|
|
||||||
<t-button
|
|
||||||
class="select"
|
|
||||||
theme="primary"
|
|
||||||
plain="true"
|
|
||||||
disabled="{{isSubmitting}}"
|
|
||||||
bind:tap="addMedia"
|
|
||||||
>选择照片/视频</t-button>
|
|
||||||
<t-button
|
|
||||||
class="clear"
|
|
||||||
theme="danger"
|
|
||||||
variant="outline"
|
|
||||||
disabled="{{isSubmitting}}"
|
|
||||||
bind:tap="clearMedia"
|
|
||||||
disabled="{{mediaList.length === 0}}"
|
|
||||||
>清空已选</t-button>
|
|
||||||
</view>
|
|
||||||
<view class="gallery">
|
<view class="gallery">
|
||||||
<block wx:for="{{mediaList}}" wx:key="index">
|
<block wx:for="{{mediaList}}" wx:key="index">
|
||||||
<view class="item">
|
<view class="item">
|
||||||
@ -74,17 +57,27 @@
|
|||||||
bindtap="preview"
|
bindtap="preview"
|
||||||
data-index="{{index}}"
|
data-index="{{index}}"
|
||||||
></image>
|
></image>
|
||||||
<image class="play-icon" src="/assets/icon/play.png"></image>
|
<t-icon class="play-icon" name="play" />
|
||||||
</view>
|
</view>
|
||||||
<!-- 删除 -->
|
<!-- 删除 -->
|
||||||
<image
|
<t-icon
|
||||||
src="/assets/icon/delete.png"
|
|
||||||
class="delete"
|
class="delete"
|
||||||
|
name="close-circle-filled"
|
||||||
bindtap="deleteMedia"
|
bindtap="deleteMedia"
|
||||||
data-index="{{index}}"
|
data-index="{{index}}"
|
||||||
></image>
|
data-new-media="{{true}}"
|
||||||
|
/>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
|
<t-button
|
||||||
|
class="item add"
|
||||||
|
theme="primary"
|
||||||
|
plain="true"
|
||||||
|
disabled="{{isSubmitting}}"
|
||||||
|
bind:tap="addMedia"
|
||||||
|
>
|
||||||
|
<t-icon name="add" />
|
||||||
|
</t-button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<progress
|
<progress
|
||||||
@ -94,6 +87,15 @@
|
|||||||
show-info
|
show-info
|
||||||
stroke-width="4"
|
stroke-width="4"
|
||||||
/>
|
/>
|
||||||
|
<view class="ctrl">
|
||||||
|
<t-button
|
||||||
|
class="clear"
|
||||||
|
theme="danger"
|
||||||
|
variant="outline"
|
||||||
|
disabled="{{isSubmitting}}"
|
||||||
|
bind:tap="clearMedia"
|
||||||
|
disabled="{{mediaList.length === 0}}"
|
||||||
|
>清空已选</t-button>
|
||||||
<t-button
|
<t-button
|
||||||
class="submit"
|
class="submit"
|
||||||
theme="primary"
|
theme="primary"
|
||||||
@ -101,4 +103,5 @@
|
|||||||
disabled="{{(!idea && mediaList.length === 0) || isSubmitting}}"
|
disabled="{{(!idea && mediaList.length === 0) || isSubmitting}}"
|
||||||
>{{submitText}}</t-button>
|
>{{submitText}}</t-button>
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
@ -74,7 +74,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.delete {
|
.delete {
|
||||||
top: 10rpx;
|
top: 10rpx;
|
||||||
right: 10rpx;
|
right: 10rpx;
|
||||||
|
|||||||
Reference in New Issue
Block a user