Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
a52b17e5
Commit
a52b17e5
authored
Sep 04, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 集点dialog
parent
fef3e646
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
34 deletions
+32
-34
dialog.js
src/component/dialog/dialog.js
+0
-6
dialog.wxml
src/component/dialog/dialog.wxml
+30
-5
dialog.wxss
src/component/dialog/dialog.wxss
+2
-23
No files found.
src/component/dialog/dialog.js
View file @
a52b17e5
...
...
@@ -82,12 +82,6 @@ Component({
this
.
_updateData
({
show
:
false
})
},
confirm
(){
this
.
_updateData
({
show
:
false
})
// 触发父级事件
wxService
.
nextTick
(()
=>
{
this
.
triggerEvent
(
'_closeDialog'
)
...
...
src/component/dialog/dialog.wxml
View file @
a52b17e5
<!--component/dialog/dialog.wxml-->
<view class='wxy-dialog fade {{show ? "in":""}}'>
<view wx:if="{{show}}">
<view data-id="mask" class="dialog-mask" capture-catch:touchstart='_close'></view>
<view class='dialog-body' wx:if="{{showDefalut && dialog.state !== 'success'}}">
<view class='main' bindtap='_handleGo'>
<view class="main-close" bindtap='_close'>x</view>
<view class='content'>
<text>确认删除此作品吗?</text>
<view class="check-del" bindtap='confirm'>确认</view>
<view class='content' style="background-image: url('{{dialog.image}}');">
</view>
</view>
<view class="close" bindtap='_close'></view>
</view>
<view class='dialog-body' bindtap='_close' wx:if="{{showDefalut && dialog.state === 'success'}}">
<view wx:if="{{dialog.image}}">
<image class="image" mode="widthFix" src='{{dialog.image}}'></image>
</view>
</view>
<slot name="after"></slot>
</view>
</view>
<!--<view class='wxy-dialog fade {{show ? "in":""}}'>
<view wx:if="{{show}}">
<view data-id="mask" class="dialog-mask" capture-catch:touchstart='_close'></view>
<view class='dialog-body' wx:if="{{showDefalut && dialog.state !== 'success'}}">
<view class='main'>
<view class='content' style="background-image: url('{{dialog.image}}');">
<view class="">恭喜你,领取成功!</view>
<view class="p">可在{{dialog.content}}中查看奖励哦~</view>
<view class="tip-text" bindtap='_handleGo'>{{dialog.tip}}</view>
</view>
</view>
<view class="close" bindtap='_close'></view>
</view>
<view class='dialog-body' bindtap='_close' wx:if="{{showDefalut && dialog.state === 'success'}}">
<view wx:if="{{dialog.image}}">
<image class="image" mode="widthFix" src='{{dialog.image}}'></image>
</view>
</view>
<slot name="after"></slot>
</view>
</view>-->
src/component/dialog/dialog.wxss
View file @
a52b17e5
...
...
@@ -26,37 +26,16 @@
.dialog-body .main {
outline: 0;
background-color: #FFF;
background-clip: padding-box;
border-radius: 15rpx;
margin-top: 0; }
.dialog-body .content {
height:
3
80rpx;
height:
6
80rpx;
position: relative;
background-size: 100% 100%;
background-repeat: no-repeat;
box-sizing: border-box;
padding-top: 50rpx;
}
.dialog-body .main-close {
height: 100rpx;
box-sizing: border-box;
text-align: right;
padding: 20px;
}
.check-del {
width: 416rpx;
height: 88rpx;
line-height: 88rpx;
color: #fff;
text-align: center;
border-radius: 15rpx;
background-color: rgba(255, 51, 51, 1);
box-shadow: 0px 2px 9px 0px rgba(255, 51, 51, 0.6);
margin: 0 auto;
margin-top: 100rpx;
}
padding-top: 180px;}
.dialog-body .image {
position: absolute;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment