Commit 08538a66 by fengzhaoyu

fix conflit

parent 0c296bb2
...@@ -344,6 +344,7 @@ create.Page({ ...@@ -344,6 +344,7 @@ create.Page({
addSchedule(data).then(res => { addSchedule(data).then(res => {
if (res.data.code === 0) { if (res.data.code === 0) {
this.$store.data.indexNeedUpdate = true this.$store.data.indexNeedUpdate = true
this.$store.data.tabBarIndex = '1'
this.update() this.update()
dd.navigateBack({ dd.navigateBack({
delta: 1 delta: 1
......
<view a:if="{{tabBarIndex === '0'}}"> <!--<<<<<<< Updated upstream<view a:if="{{tabBarIndex === '0'}}">
=======<view style="position:absolute"></view> -->
<view a:if="{{$data.tabBarIndex === '0'}}">
<!-- >>>>>>> Stashed changes -->
<my-dynamic> <my-dynamic>
</my-dynamic> </my-dynamic>
</view> </view>
<view a:if="{{tabBarIndex === '1'}}"> <view a:if="{{$data.tabBarIndex === '1'}}">
<my-schedule update="{{$data.indexNeedUpdate}}"> <my-schedule update="{{$data.indexNeedUpdate}}">
</my-schedule> </my-schedule>
</view> </view>
<view class="tabBar"> <view class="tabBar">
<view onTap="changeTabBar" data-tabbar='0'> <view onTap="changeTabBar" data-tabbar='0'>
<view class="tabBarView tabBarView1 {{tabBarIndex === '0' ? 'ischooseTabBar' : ''}}"> <view class="tabBarView tabBarView1 {{$data.tabBarIndex === '0' ? 'ischooseTabBar' : ''}}">
<view class="iconfont iconicon_dynamic"></view> <view class="iconfont iconicon_dynamic"></view>
<view>动态</view> <view>动态</view>
</view> </view>
</view> </view>
<view onTap="changeTabBar" data-tabbar='1'> <view onTap="changeTabBar" data-tabbar='1'>
<view class="tabBarView tabBarView2 {{tabBarIndex === '1' ? 'ischooseTabBar' : ''}}"> <view class="tabBarView tabBarView2 {{$data.tabBarIndex === '1' ? 'ischooseTabBar' : ''}}">
<view class="iconfont iconicon_Calendarbox1"> <view class="iconfont iconicon_Calendarbox1">
<text class="iconfont iconicon_days iconicon_days{{iconDay}}"> <text class="iconfont iconicon_days iconicon_days{{iconDay}}">
</text> </text>
......
...@@ -2,7 +2,6 @@ import { getFormatDate } from "../../utils/utils"; ...@@ -2,7 +2,6 @@ import { getFormatDate } from "../../utils/utils";
import create from "dd-store"; import create from "dd-store";
create.Page({ create.Page({
data: { data: {
tabBarIndex: "0",
$data: null, $data: null,
iconDay: "", iconDay: "",
isLocation: false isLocation: false
...@@ -23,10 +22,9 @@ create.Page({ ...@@ -23,10 +22,9 @@ create.Page({
}, },
// 修改tabBar // 修改tabBar
changeTabBar(e) { changeTabBar(e) {
let nowtabBarIndex = this.data.tabBarIndex; let nowtabBarIndex = this.$store.data.tabBarIndex;
this.setData({ this.$store.data.tabBarIndex = e.currentTarget.dataset.tabbar
tabBarIndex: e.currentTarget.dataset.tabbar this.update()
});
let title = "动态"; let title = "动态";
switch (e.currentTarget.dataset.tabbar) { switch (e.currentTarget.dataset.tabbar) {
case '0': case '0':
......
...@@ -580,6 +580,7 @@ create.Page({ ...@@ -580,6 +580,7 @@ create.Page({
modifySchedule(Object.assign(data, obj)).then(res => { modifySchedule(Object.assign(data, obj)).then(res => {
if (res.data.code === 0) { if (res.data.code === 0) {
that.$store.data.indexNeedUpdate = true that.$store.data.indexNeedUpdate = true
that.$store.data.tabBarIndex = '1'
that.update() that.update()
this.setData({ this.setData({
'conToastData.showToast': true, 'conToastData.showToast': true,
...@@ -667,6 +668,7 @@ create.Page({ ...@@ -667,6 +668,7 @@ create.Page({
break break
case 'noParticipateStatus': case 'noParticipateStatus':
let data1 = { let data1 = {
scheduleId: this.data.scheduleItem.id,
type: event.currentTarget.dataset.item.id, type: event.currentTarget.dataset.item.id,
templateId: this.data.scheduleItem.scheduleTemplateId, templateId: this.data.scheduleItem.scheduleTemplateId,
planDate: this.data.scheduleItem.planDate, planDate: this.data.scheduleItem.planDate,
...@@ -674,6 +676,9 @@ create.Page({ ...@@ -674,6 +676,9 @@ create.Page({
} }
isParticipate(data1).then(res => { isParticipate(data1).then(res => {
if (res.data.code === 0) { if (res.data.code === 0) {
this.$store.data.indexNeedUpdate = true
this.$store.data.tabBarIndex = '1'
this.update()
this.setData({ this.setData({
confirmAttendance: 0, confirmAttendance: 0,
'conToastData.showToast': true, 'conToastData.showToast': true,
...@@ -684,6 +689,7 @@ create.Page({ ...@@ -684,6 +689,7 @@ create.Page({
break break
case 'participateStatus': case 'participateStatus':
let data = { let data = {
scheduleId: this.data.scheduleItem.id,
type: event.currentTarget.dataset.item.id, type: event.currentTarget.dataset.item.id,
templateId: this.data.scheduleItem.scheduleTemplateId, templateId: this.data.scheduleItem.scheduleTemplateId,
planDate: this.data.scheduleItem.planDate, planDate: this.data.scheduleItem.planDate,
...@@ -691,6 +697,9 @@ create.Page({ ...@@ -691,6 +697,9 @@ create.Page({
} }
isParticipate(data).then(res => { isParticipate(data).then(res => {
if (res.data.code === 0) { if (res.data.code === 0) {
this.$store.data.indexNeedUpdate = true
this.$store.data.tabBarIndex = '1'
this.update()
this.setData({ this.setData({
confirmAttendance: 1, confirmAttendance: 1,
'conToastData.showToast': true, 'conToastData.showToast': true,
...@@ -1121,6 +1130,9 @@ create.Page({ ...@@ -1121,6 +1130,9 @@ create.Page({
} else { } else {
isParticipate(data).then(res => { isParticipate(data).then(res => {
if (res.data.code === 0) { if (res.data.code === 0) {
this.$store.data.indexNeedUpdate = true
this.$store.data.tabBarIndex = '1'
this.update()
this.setData({ this.setData({
confirmAttendance: 1, confirmAttendance: 1,
'conToastData.showToast': true, 'conToastData.showToast': true,
...@@ -1145,6 +1157,9 @@ create.Page({ ...@@ -1145,6 +1157,9 @@ create.Page({
} else { } else {
isParticipate(data).then(res => { isParticipate(data).then(res => {
if (res.data.code === 0) { if (res.data.code === 0) {
this.$store.data.indexNeedUpdate = true
this.$store.data.tabBarIndex = '1'
this.update()
this.setData({ this.setData({
confirmAttendance: 0, confirmAttendance: 0,
'conToastData.showToast': true, 'conToastData.showToast': true,
...@@ -1170,6 +1185,9 @@ create.Page({ ...@@ -1170,6 +1185,9 @@ create.Page({
} }
isParticipate(data).then(res => { isParticipate(data).then(res => {
if (res.data.code === 0) { if (res.data.code === 0) {
this.$store.data.indexNeedUpdate = true
this.$store.data.tabBarIndex = '1'
this.update()
this.setData({ this.setData({
confirmAttendance: -9 confirmAttendance: -9
}) })
......
<view class="outLookContact"> <view class="outLookContact">
<!-- 输入邮箱联系人 --> <!-- 输入邮箱联系人 -->
<view class="addContact"> <view class="addContact">
<input placeholder="请输入邮箱" onInput="onInput" value="{{value}}" /> <input placeholder="请输入邮箱" onInput="onInput" value="{{value}}" focus="{{false}}" />
<view class="icon iconfont iconicon_add " onTap="addEmail"> <view class="icon iconfont iconicon_add " onTap="addEmail">
</view> </view>
</view> </view>
......
...@@ -9,7 +9,8 @@ class Store { ...@@ -9,7 +9,8 @@ class Store {
originUsersId: [], originUsersId: [],
originalData: null, originalData: null,
indexNeedUpdate: false, indexNeedUpdate: false,
locationSchedule: () => {} tabBarIndex: '0',
locationSchedule: () => { }
} }
} }
export default new Store() export default new Store()
\ No newline at end of file
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