Commit 337db302 authored by wildfirecode13's avatar wildfirecode13

1

parent 94338436
.taskcontainer {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 20;
background: rgba(0, 0, 0, 0.5);
}
.task { .task {
width: 750rpx; width: 750rpx;
height: 792rpx; height: 792rpx;
opacity: 1; opacity: 1;
top: 832rpx; top: 100%;
margin-top: -792rpx;
position: absolute; position: absolute;
transform-origin: 0rpx 0rpx 0rpx; transform-origin: 0rpx 0rpx 0rpx;
} }
......
<view class="task "> <view class="taskcontainer ">
<image class="task_bg " src={{resList['7d24398f-622f-4f20-9d7e-2d7237d7bc6b'].url}} /> <view class="task ">
<image class="task_close " src={{resList['33778cbf-8c4f-4d6f-a8e8-9ebc6f0c5cd0'].url}} /> <image class="task_bg " src={{resList['7d24398f-622f-4f20-9d7e-2d7237d7bc6b'].url}} />
<view class="task_item "> <image class="task_close " onTap="onModalClose" src={{resList['33778cbf-8c4f-4d6f-a8e8-9ebc6f0c5cd0'].url}} />
<image class="task_itembg " src={{resList['b44bac8c-652f-496d-9bc1-165e30d71b02'].url}} /> <view class="task_item ">
<image class="task_receivebtn " src={{resList['b9f1cc3f-4620-44d8-85ae-187be0745ace'].url}} /> <image class="task_itembg " src={{resList['b44bac8c-652f-496d-9bc1-165e30d71b02'].url}} />
<image class="task_gobtn " src={{resList['9ee176ed-5204-4524-97f9-bf17ee698aa8'].url}} /> <image class="task_receivebtn " src={{resList['b9f1cc3f-4620-44d8-85ae-187be0745ace'].url}} />
<image class="task_disabedbtn " src={{resList['0e0684af-21c7-48e2-9114-8599c1de33f1'].url}} /> <image class="task_gobtn " src={{resList['9ee176ed-5204-4524-97f9-bf17ee698aa8'].url}} />
<image class="task_sginicon " src={{resList['ca4c78b3-caf5-435b-ba32-f187f24d1795'].url}} /> <image class="task_disabedbtn " src={{resList['0e0684af-21c7-48e2-9114-8599c1de33f1'].url}} />
<image class="task_inviteicon " src={{resList['61cf4c2c-54e4-4cde-aa16-78ee5d17ab06'].url}} /> <image class="task_sginicon " src={{resList['ca4c78b3-caf5-435b-ba32-f187f24d1795'].url}} />
<image class="task_focusicon " src={{resList['61cf4c2c-54e4-4cde-aa16-78ee5d17ab06'].url}} /> <image class="task_inviteicon " src={{resList['61cf4c2c-54e4-4cde-aa16-78ee5d17ab06'].url}} />
<image class="task_readicon " src={{resList['61cf4c2c-54e4-4cde-aa16-78ee5d17ab06'].url}} /> <image class="task_focusicon " src={{resList['61cf4c2c-54e4-4cde-aa16-78ee5d17ab06'].url}} />
<span class="task_title ">签到</span> <image class="task_readicon " src={{resList['61cf4c2c-54e4-4cde-aa16-78ee5d17ab06'].url}} />
<span class="task_award ">精力 +10</span> <label class="task_title ">签到</label>
<span class="task_progress ">(10/10)</span> <label class="task_award ">精力 +10</label>
</view> <label class="task_progress ">(10/10)</label>
</view> </view>
\ No newline at end of file </view>
</view>
\ No newline at end of file
...@@ -3,13 +3,15 @@ ...@@ -3,13 +3,15 @@
import resList from '../../resconfig/resList'; import resList from '../../resconfig/resList';
Component({ Component({
props: {}, props: {},
data: {}, data: {resList: resList},
methods: {},
methods: {
onInit(props) {
this.setData({ onModalClose() {
resList: resList const { onModalClose } = this.props;
}); onModalClose && onModalClose();
console.log('com task onModalClose')
}
} }
}); });
\ No newline at end of file
...@@ -11,5 +11,6 @@ ...@@ -11,5 +11,6 @@
<view class="popcontainer" a:if="{{catnameModalVisible}}" ><catname-modal selectType="{{catType}}" onModalClose="closeCatnameModal" onSelectCatOk="selectCatOk" /></view> <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="{{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> <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
...@@ -28,6 +28,7 @@ Page({ ...@@ -28,6 +28,7 @@ Page({
data: { data: {
catType: 1, catType: 1,
catName: '', catName: '',
taskModalVisible: 1,
messageModalVisible: false, messageModalVisible: false,
messageModalData: {}, messageModalData: {},
ruleModalVisible: false, ruleModalVisible: false,
...@@ -330,7 +331,14 @@ Page({ ...@@ -330,7 +331,14 @@ Page({
recallcatModalVisible: false recallcatModalVisible: false
}) })
}, },
closeTaskModal() {
console.log('onModalClose')
this.setData({
taskModalVisible: false
})
},
closeGetcatModal() { closeGetcatModal() {
this.setData({ this.setData({
getcatModalVisible: false getcatModalVisible: false
}) })
......
{ {
"usingComponents": { "usingComponents": {
"task-modal": "/components/comtask/comtask",
"rule-modal": "/components/ruleModal/ruleModal", "rule-modal": "/components/ruleModal/ruleModal",
"levelup-modal": "/components/comlevelup/comlevelup", "levelup-modal": "/components/comlevelup/comlevelup",
"message-modal": "/components/commessage/commessage", "message-modal": "/components/commessage/commessage",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment