Commit bd40251b by fengzhaoyu

刷新好用版

parent da9f6976
......@@ -39,6 +39,7 @@ create.Component({
this.update();
this.getDate();
}
},
didUnmount() { },
methods: {
......
......@@ -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()
......
......@@ -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'>
......
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({
......
......@@ -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({
......
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