Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
schedule
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
fengzhaoyu
schedule
Commits
bd40251b
Commit
bd40251b
authored
5 years ago
by
fengzhaoyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
刷新好用版
parent
da9f6976
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
4 deletions
+12
-4
scheduleList.js
PageComponents/scheduleList/scheduleList.js
+1
-0
createMeeting.js
pages/createMeeting/createMeeting.js
+0
-1
index.axml
pages/index/index.axml
+2
-1
index.js
pages/index/index.js
+5
-0
meetingDetail.js
pages/meetingDetail/meetingDetail.js
+4
-2
No files found.
PageComponents/scheduleList/scheduleList.js
View file @
bd40251b
...
...
@@ -39,6 +39,7 @@ create.Component({
this
.
update
();
this
.
getDate
();
}
},
didUnmount
()
{
},
methods
:
{
...
...
This diff is collapsed.
Click to expand it.
pages/createMeeting/createMeeting.js
View file @
bd40251b
...
...
@@ -338,7 +338,6 @@ create.Page({
meetingWayModel
:
this
.
data
.
meetingWayModel
}
addSchedule
(
data
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
data
.
code
===
0
)
{
this
.
store
.
data
.
indexNeedUpdate
=
true
this
.
update
()
...
...
This diff is collapsed.
Click to expand it.
pages/index/index.axml
View file @
bd40251b
...
...
@@ -10,7 +10,8 @@
<view onTap="changeTabBar" data-tabbar='0'>
<view class="tabBarView {{tabBarIndex === '0' ? 'ischooseTabBar' : ''}}">
<text class="iconfont iconicon_dynamic"></text>
<text>动态</text>
<text>动态{{indexNeedUpdate}}
</text>
</view>
</view>
<view onTap="changeTabBar" data-tabbar='1'>
...
...
This diff is collapsed.
Click to expand it.
pages/index/index.js
View file @
bd40251b
import
{
getFormatDate
}
from
'../../utils/utils'
import
create
from
'dd-store'
import
exampleStore
from
'/stores/exampleStore'
create
.
Page
({
store
:
exampleStore
,
useAll
:
true
,
...
...
@@ -10,6 +11,10 @@ create.Page({
onLoad
()
{
},
onShow
()
{
this
.
update
()
},
// 修改tabBar
changeTabBar
(
e
)
{
this
.
setData
({
...
...
This diff is collapsed.
Click to expand it.
pages/meetingDetail/meetingDetail.js
View file @
bd40251b
...
...
@@ -9,6 +9,7 @@ import { resolve } from 'path';
create
.
Page
({
store
:
pageStore
,
useAll
:
true
,
data
:
{
$data
:
null
,
affairList
:
null
,
//store,页面用到的变量需要在这里声明
...
...
@@ -550,6 +551,7 @@ create.Page({
},
// 保存编辑
modifySchedule
(
data
,
needNotice
=
0
)
{
let
that
=
this
let
obj
=
{
needNotice
:
needNotice
,
scheduleId
:
this
.
data
.
scheduleItem
.
id
,
...
...
@@ -559,6 +561,8 @@ create.Page({
return
new
Promise
((
resolve
,
rejects
)
=>
{
modifySchedule
(
Object
.
assign
(
data
,
obj
)).
then
(
res
=>
{
if
(
res
.
data
.
code
===
0
)
{
that
.
$store
.
data
.
indexNeedUpdate
=
true
that
.
update
()
this
.
setData
({
'conToastData.showToast'
:
true
,
'conToastData.title'
:
'保存成功'
...
...
@@ -1066,8 +1070,6 @@ create.Page({
deleteModel
:
'only'
}
deleteSchedule
(
data
).
then
(
res
=>
{
console
.
log
(
this
)
debugger
_that
.
$store
.
data
.
indexNeedUpdate
=
true
_that
.
update
()
dd
.
navigateBack
({
...
...
This diff is collapsed.
Click to expand it.
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