Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
Project
Project
Details
Activity
Releases
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
wildfirecode13
new_taobao
Commits
337db302
Commit
337db302
authored
Sep 24, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
94338436
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
25 deletions
+49
-25
comtask.acss
taobao_mini/client/components/comtask/comtask.acss
+11
-1
comtask.axml
taobao_mini/client/components/comtask/comtask.axml
+19
-17
comtask.js
taobao_mini/client/components/comtask/comtask.js
+9
-7
pagecanvas.axml
taobao_mini/client/pages/pagecanvas/pagecanvas.axml
+1
-0
pagecanvas.js
taobao_mini/client/pages/pagecanvas/pagecanvas.js
+8
-0
pagecanvas.json
taobao_mini/client/pages/pagecanvas/pagecanvas.json
+1
-0
No files found.
taobao_mini/client/components/comtask/comtask.acss
View file @
337db302
.taskcontainer {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 20;
background: rgba(0, 0, 0, 0.5);
}
.task {
width: 750rpx;
height: 792rpx;
opacity: 1;
top: 832rpx;
top: 100%;
margin-top: -792rpx;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
}
...
...
taobao_mini/client/components/comtask/comtask.axml
View file @
337db302
<view class="task ">
<image class="task_bg " src={{resList['7d24398f-622f-4f20-9d7e-2d7237d7bc6b'].url}} />
<image class="task_close " src={{resList['33778cbf-8c4f-4d6f-a8e8-9ebc6f0c5cd0'].url}} />
<view class="task_item ">
<image class="task_itembg " src={{resList['b44bac8c-652f-496d-9bc1-165e30d71b02'].url}} />
<image class="task_receivebtn " src={{resList['b9f1cc3f-4620-44d8-85ae-187be0745ace'].url}} />
<image class="task_gobtn " src={{resList['9ee176ed-5204-4524-97f9-bf17ee698aa8'].url}} />
<image class="task_disabedbtn " src={{resList['0e0684af-21c7-48e2-9114-8599c1de33f1'].url}} />
<image class="task_sginicon " src={{resList['ca4c78b3-caf5-435b-ba32-f187f24d1795'].url}} />
<image class="task_inviteicon " src={{resList['61cf4c2c-54e4-4cde-aa16-78ee5d17ab06'].url}} />
<image class="task_focusicon " src={{resList['61cf4c2c-54e4-4cde-aa16-78ee5d17ab06'].url}} />
<image class="task_readicon " src={{resList['61cf4c2c-54e4-4cde-aa16-78ee5d17ab06'].url}} />
<span class="task_title ">签到</span>
<span class="task_award ">精力 +10</span>
<span class="task_progress ">(10/10)</span>
</view>
</view>
\ No newline at end of file
<view class="taskcontainer ">
<view class="task ">
<image class="task_bg " src={{resList['7d24398f-622f-4f20-9d7e-2d7237d7bc6b'].url}} />
<image class="task_close " onTap="onModalClose" src={{resList['33778cbf-8c4f-4d6f-a8e8-9ebc6f0c5cd0'].url}} />
<view class="task_item ">
<image class="task_itembg " src={{resList['b44bac8c-652f-496d-9bc1-165e30d71b02'].url}} />
<image class="task_receivebtn " src={{resList['b9f1cc3f-4620-44d8-85ae-187be0745ace'].url}} />
<image class="task_gobtn " src={{resList['9ee176ed-5204-4524-97f9-bf17ee698aa8'].url}} />
<image class="task_disabedbtn " src={{resList['0e0684af-21c7-48e2-9114-8599c1de33f1'].url}} />
<image class="task_sginicon " src={{resList['ca4c78b3-caf5-435b-ba32-f187f24d1795'].url}} />
<image class="task_inviteicon " src={{resList['61cf4c2c-54e4-4cde-aa16-78ee5d17ab06'].url}} />
<image class="task_focusicon " src={{resList['61cf4c2c-54e4-4cde-aa16-78ee5d17ab06'].url}} />
<image class="task_readicon " src={{resList['61cf4c2c-54e4-4cde-aa16-78ee5d17ab06'].url}} />
<label class="task_title ">签到</label>
<label class="task_award ">精力 +10</label>
<label class="task_progress ">(10/10)</label>
</view>
</view>
</view>
\ No newline at end of file
taobao_mini/client/components/comtask/comtask.js
View file @
337db302
...
...
@@ -3,13 +3,15 @@
import
resList
from
'../../resconfig/resList'
;
Component
({
props
:
{},
data
:
{},
methods
:
{},
onInit
(
props
)
{
this
.
setData
({
resList
:
resList
});
data
:
{
resList
:
resList
},
methods
:
{
onModalClose
()
{
const
{
onModalClose
}
=
this
.
props
;
onModalClose
&&
onModalClose
();
console
.
log
(
'com task onModalClose'
)
}
}
});
\ No newline at end of file
taobao_mini/client/pages/pagecanvas/pagecanvas.axml
View file @
337db302
...
...
@@ -11,5 +11,6 @@
<view class="popcontainer" a:if="{{catnameModalVisible}}" ><catname-modal selectType="{{catType}}" onModalClose="closeCatnameModal" onSelectCatOk="selectCatOk" /></view>
<view class="popcontainer" a:if="{{recallcatModalVisible}}"><recallcat-modal onModalClose="closeRecallcatModal"></recallcat-modal></view>
<view class="popcontainer" a:if="{{getcatModalVisible}}"><getcat-modal catName="{{catName}}" onPostSelectCat="postSelectCat" onModalClose="closeGetcatModal"></getcat-modal></view>
<task-modal a:if="{{taskModalVisible}}" onModalClose="closeTaskModal"></task-modal>
\ No newline at end of file
taobao_mini/client/pages/pagecanvas/pagecanvas.js
View file @
337db302
...
...
@@ -28,6 +28,7 @@ Page({
data
:
{
catType
:
1
,
catName
:
''
,
taskModalVisible
:
1
,
messageModalVisible
:
false
,
messageModalData
:
{},
ruleModalVisible
:
false
,
...
...
@@ -330,7 +331,14 @@ Page({
recallcatModalVisible
:
false
})
},
closeTaskModal
()
{
console
.
log
(
'onModalClose'
)
this
.
setData
({
taskModalVisible
:
false
})
},
closeGetcatModal
()
{
this
.
setData
({
getcatModalVisible
:
false
})
...
...
taobao_mini/client/pages/pagecanvas/pagecanvas.json
View file @
337db302
{
"usingComponents"
:
{
"task-modal"
:
"/components/comtask/comtask"
,
"rule-modal"
:
"/components/ruleModal/ruleModal"
,
"levelup-modal"
:
"/components/comlevelup/comlevelup"
,
"message-modal"
:
"/components/commessage/commessage"
,
...
...
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