|
@@ -21,6 +21,7 @@ import { MessageApi, MessageItem } from '../api/MessageApi'
|
|
|
import { NullBuilder } from '../components/NullCom'
|
|
import { NullBuilder } from '../components/NullCom'
|
|
|
import { GreenPlantMainCard } from '../components/maincomponent/GreenPlantMainCard'
|
|
import { GreenPlantMainCard } from '../components/maincomponent/GreenPlantMainCard'
|
|
|
import { it } from '@ohos/hypium'
|
|
import { it } from '@ohos/hypium'
|
|
|
|
|
+import { MessageToMain } from '../models'
|
|
|
|
|
|
|
|
@ComponentV2
|
|
@ComponentV2
|
|
|
export struct MainView {
|
|
export struct MainView {
|
|
@@ -80,11 +81,12 @@ export struct MainView {
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
*/
|
|
*/
|
|
|
- async insertClockLog(params:InsertClockParam){
|
|
|
|
|
|
|
+ async insertClockLog(params:InsertClockParam,img:string,name:string){
|
|
|
await ClockTaskApi.insertClockLog(params).then((res)=>{
|
|
await ClockTaskApi.insertClockLog(params).then((res)=>{
|
|
|
if(res==true){
|
|
if(res==true){
|
|
|
- IBestToast.show({
|
|
|
|
|
- message:"打卡成功"
|
|
|
|
|
|
|
+ yTToast.successConfirm({
|
|
|
|
|
+ src:img,
|
|
|
|
|
+ message:name
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
@@ -140,35 +142,36 @@ export struct MainView {
|
|
|
.backgroundColor(this.isShowCheckBox ? '#498552' : '#fff')
|
|
.backgroundColor(this.isShowCheckBox ? '#498552' : '#fff')
|
|
|
.alignItems(HorizontalAlign.Center)
|
|
.alignItems(HorizontalAlign.Center)
|
|
|
}.width('100%').justifyContent(FlexAlign.SpaceBetween).margin({ top: 15, bottom: 15 })
|
|
}.width('100%').justifyContent(FlexAlign.SpaceBetween).margin({ top: 15, bottom: 15 })
|
|
|
-
|
|
|
|
|
- if (this.greenPlantList.length == 0) {
|
|
|
|
|
- NullBuilder()
|
|
|
|
|
- } else {
|
|
|
|
|
- List({ space: 16 }) {
|
|
|
|
|
- ForEach(this.greenPlantList, (item: GreenPlants, index: number) => {
|
|
|
|
|
- ListItem() {
|
|
|
|
|
- GreenPlantMainCard({
|
|
|
|
|
- item: item,
|
|
|
|
|
- isshow: this.isShowCheckBox,
|
|
|
|
|
- ishow: () => {
|
|
|
|
|
- this.isShowMaintenanceBuilder = true
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ Column() {
|
|
|
|
|
+ if (this.greenPlantList.length == 0) {
|
|
|
|
|
+ NullBuilder()
|
|
|
|
|
+ } else {
|
|
|
|
|
+ List({ space: 16 }) {
|
|
|
|
|
+ ForEach(this.greenPlantList, (item: GreenPlants, index: number) => {
|
|
|
|
|
+ ListItem() {
|
|
|
|
|
+ GreenPlantMainCard({
|
|
|
|
|
+ item: item,
|
|
|
|
|
+ isshow: this.isShowCheckBox,
|
|
|
|
|
+ ishow: () => {
|
|
|
|
|
+ this.isShowMaintenanceBuilder = true
|
|
|
|
|
+ },
|
|
|
|
|
+ })
|
|
|
|
|
+ }.onClick(() => {
|
|
|
|
|
+ yTRouter.pushPathByName("EditGreenPlantPage", item.plantsId, (result: PopInfo) => {
|
|
|
|
|
+ let ans = result.result as string
|
|
|
|
|
+ if (ans && ans == 'true') {
|
|
|
|
|
+ //刷新植物列表
|
|
|
|
|
+ this.getGreenList({ page: this.page, pageSizes: this.pageSize })
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ })
|
|
|
|
|
+ .swipeAction({
|
|
|
|
|
+ end: this.itemEnd(item.plantsId, index),
|
|
|
})
|
|
})
|
|
|
- }.onClick(() => {
|
|
|
|
|
- yTRouter.pushPathByName("EditGreenPlantPage", item.plantsId, (result: PopInfo) => {
|
|
|
|
|
- let ans = result.result as string
|
|
|
|
|
- if (ans && ans == 'true') {
|
|
|
|
|
- //刷新植物列表
|
|
|
|
|
- this.getGreenList({ page: this.page, pageSizes: this.pageSize })
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- })
|
|
|
|
|
- .swipeAction({
|
|
|
|
|
- end: this.itemEnd(item.plantsId, index),
|
|
|
|
|
})
|
|
})
|
|
|
- })
|
|
|
|
|
- }.width('100%')
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ }.height(550)
|
|
|
|
|
+ }
|
|
|
|
|
+ }.layoutWeight(1)
|
|
|
}.width('100%')
|
|
}.width('100%')
|
|
|
.padding({ left: 16, right: 16 })
|
|
.padding({ left: 16, right: 16 })
|
|
|
.bindSheet($$this.isShowMaintenanceBuilder, this.MaintenanceClockBindSheetBuilder(), {
|
|
.bindSheet($$this.isShowMaintenanceBuilder, this.MaintenanceClockBindSheetBuilder(), {
|
|
@@ -252,11 +255,28 @@ export struct MainView {
|
|
|
.aspectRatio(1)
|
|
.aspectRatio(1)
|
|
|
.onClick(()=>{
|
|
.onClick(()=>{
|
|
|
yTRouter.pushPathByName("MessagePage",-1,(res:PopInfo)=>{
|
|
yTRouter.pushPathByName("MessagePage",-1,(res:PopInfo)=>{
|
|
|
- let ans=res.result as string
|
|
|
|
|
- if(ans&&ans=='true'){
|
|
|
|
|
- //刷新植物列表
|
|
|
|
|
- this.getMessageList()
|
|
|
|
|
|
|
+ let ans=res.result as MessageToMain
|
|
|
|
|
+ // this.getMessageList()
|
|
|
|
|
+ if(ans&&ans.isShow){
|
|
|
|
|
+ //刷新弹窗
|
|
|
|
|
+ this.isShowMaintenanceBuilder=true
|
|
|
|
|
+ //根据id查数据即可
|
|
|
|
|
+ this.getClockTaskList()
|
|
|
|
|
+ this.getGreenList({ page: this.page, pageSizes: this.pageSize })
|
|
|
|
|
+ const a=this.clockTaskList.find(item=>item.itemId==ans.itemId)
|
|
|
|
|
+ this.vm.taskItemId=a?.itemId as number
|
|
|
|
|
+ this.vm.taskItemName=a?.itemName as string
|
|
|
|
|
+ this.vm.img=a?.itemIcon as string
|
|
|
|
|
+ const b=this.greenPlantList.find(item=>item.plantsId==ans.plantsId)
|
|
|
|
|
+ this.vm.plantsId=b?.plantsId as number
|
|
|
|
|
+ this.vm.plantsName=b?.plantsName as string
|
|
|
|
|
+ this.vm.clockDate=dayjs(new Date()).format('YYYY-MM-DD')
|
|
|
|
|
+ this.vm.clockTime=dayjs(new Date).format('HH:mm')
|
|
|
|
|
+ this.vm.messageId=ans.messageId
|
|
|
|
|
+ }else{
|
|
|
|
|
+ //取消
|
|
|
}
|
|
}
|
|
|
|
|
+ this.getMessageList()
|
|
|
});
|
|
});
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -294,154 +314,199 @@ export struct MainView {
|
|
|
@Builder
|
|
@Builder
|
|
|
MaintenanceClockBindSheetBuilder(){
|
|
MaintenanceClockBindSheetBuilder(){
|
|
|
Column(){
|
|
Column(){
|
|
|
- Swiper(this.vm.swiperController){
|
|
|
|
|
- Column(){
|
|
|
|
|
- Row(){
|
|
|
|
|
|
|
+ Stack({alignContent:Alignment.Bottom}) {
|
|
|
|
|
+ Swiper(this.vm.swiperController) {
|
|
|
|
|
+ Column() {
|
|
|
|
|
+ Row() {
|
|
|
BuilderHeader({
|
|
BuilderHeader({
|
|
|
- leftTitle:"取消",
|
|
|
|
|
- centerTitle:"养护打卡",
|
|
|
|
|
- rightTitle:'打卡',
|
|
|
|
|
- leftClick:()=>{
|
|
|
|
|
- this.isShowMaintenanceBuilder=false
|
|
|
|
|
|
|
+ leftTitle: "取消",
|
|
|
|
|
+ centerTitle: "养护打卡",
|
|
|
|
|
+ rightTitle: '打卡',
|
|
|
|
|
+ leftClick: () => {
|
|
|
|
|
+ this.isShowMaintenanceBuilder = false
|
|
|
|
|
+ this.vm.taskItemId = 0
|
|
|
|
|
+ this.vm.taskItemName = ""
|
|
|
|
|
+ this.vm.plantsId = 0
|
|
|
|
|
+ this.vm.plantsName = ""
|
|
|
|
|
+ this.vm.clockDate = ""
|
|
|
|
|
+ this.vm.clockTime = ""
|
|
|
|
|
+ this.vm.taskName = ""
|
|
|
|
|
+ this.vm.taskUrl = ""
|
|
|
|
|
+ this.vm.remark=""
|
|
|
|
|
+ this.vm.img=""
|
|
|
|
|
+ this.vm.messageId=0
|
|
|
},
|
|
},
|
|
|
- rightClick:()=>{
|
|
|
|
|
- if(this.vm.plantsId==0||this.vm.taskItemId==0||this.vm.clockDate==""||this.vm.clockTime==""){
|
|
|
|
|
|
|
+ rightClick: () => {
|
|
|
|
|
+ if (this.vm.plantsId == 0 || this.vm.taskItemId == 0 || this.vm.clockDate == "" ||
|
|
|
|
|
+ this.vm.clockTime == "") {
|
|
|
IBestToast.show({
|
|
IBestToast.show({
|
|
|
- message:"请检查打卡项或打卡植物日期"
|
|
|
|
|
|
|
+ message: "请检查打卡项或打卡植物日期"
|
|
|
})
|
|
})
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if(dayjs(this.vm.clockDate+" "+this.vm.clockTime).valueOf()>dayjs(new Date()).valueOf()){
|
|
|
|
|
|
|
+ if (dayjs(this.vm.clockDate + " " + this.vm.clockTime).valueOf() > dayjs(new Date()).valueOf()) {
|
|
|
IBestToast.show({
|
|
IBestToast.show({
|
|
|
- message:"打卡不得超过当前时间"
|
|
|
|
|
|
|
+ message: "打卡不得超过当前时间"
|
|
|
})
|
|
})
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- this.isShowMaintenanceBuilder=false
|
|
|
|
|
- const params:InsertClockParam={
|
|
|
|
|
- plantsId:this.vm.plantsId,
|
|
|
|
|
- itemId:this.vm.taskItemId,
|
|
|
|
|
- clockDate:this.vm.clockDate+" 00:00:00",
|
|
|
|
|
- clockTime:this.vm.clockDate+" "+this.vm.clockTime+":00"
|
|
|
|
|
|
|
+ this.isShowMaintenanceBuilder = false
|
|
|
|
|
+ const params: InsertClockParam = {
|
|
|
|
|
+ plantsId: this.vm.plantsId,
|
|
|
|
|
+ itemId: this.vm.taskItemId,
|
|
|
|
|
+ clockDate: this.vm.clockDate + " 00:00:00",
|
|
|
|
|
+ clockTime: this.vm.clockDate + " " + this.vm.clockTime + ":00",
|
|
|
|
|
+ remark:this.vm.remark,
|
|
|
|
|
+ messageId:this.vm.messageId
|
|
|
}
|
|
}
|
|
|
- this.insertClockLog(params)
|
|
|
|
|
- this.vm.taskItemId=0
|
|
|
|
|
- this.vm.taskItemName=""
|
|
|
|
|
- this.vm.plantsId=0
|
|
|
|
|
- this.vm.plantsName=""
|
|
|
|
|
- this.vm.clockDate=""
|
|
|
|
|
- this.vm.clockTime=""
|
|
|
|
|
- this.vm.taskName=""
|
|
|
|
|
- this.vm.taskUrl=""
|
|
|
|
|
|
|
+ this.insertClockLog(params,this.vm.img,this.vm.taskItemName)
|
|
|
|
|
+ this.vm.taskItemId = 0
|
|
|
|
|
+ this.vm.taskItemName = ""
|
|
|
|
|
+ this.vm.plantsId = 0
|
|
|
|
|
+ this.vm.plantsName = ""
|
|
|
|
|
+ this.vm.clockDate = ""
|
|
|
|
|
+ this.vm.clockTime = ""
|
|
|
|
|
+ this.vm.taskName = ""
|
|
|
|
|
+ this.vm.taskUrl = ""
|
|
|
|
|
+ this.vm.remark=""
|
|
|
|
|
+ this.vm.img=""
|
|
|
|
|
+ this.vm.messageId=0
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
}.width('100%')
|
|
}.width('100%')
|
|
|
- .margin({bottom:16})
|
|
|
|
|
|
|
+ .margin({ bottom: 16 })
|
|
|
|
|
|
|
|
- Column({space:20}) {
|
|
|
|
|
|
|
+ Column({ space: 20 }) {
|
|
|
Column() {
|
|
Column() {
|
|
|
- TaskItem({
|
|
|
|
|
- title:"打卡事项",
|
|
|
|
|
- TaskText:this.vm.taskItemName,
|
|
|
|
|
- swiperChange:()=>{
|
|
|
|
|
- this.vm.swiperController.changeIndex(1,true)
|
|
|
|
|
|
|
+ Stack({alignContent:Alignment.Center}) {
|
|
|
|
|
+ Column() {
|
|
|
|
|
+ TaskItem({
|
|
|
|
|
+ title: "打卡事项",
|
|
|
|
|
+ TaskText: this.vm.taskItemName,
|
|
|
|
|
+ swiperChange: () => {
|
|
|
|
|
+ this.vm.swiperController.changeIndex(1, true)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ TaskItem({
|
|
|
|
|
+ title: "打卡植物",
|
|
|
|
|
+ TaskText: this.vm.plantsName,
|
|
|
|
|
+ swiperChange: () => {
|
|
|
|
|
+ this.vm.swiperController.changeIndex(2, true)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
- TaskItem({
|
|
|
|
|
- title:"打卡植物",
|
|
|
|
|
- TaskText:this.vm.plantsName,
|
|
|
|
|
- swiperChange:()=>{
|
|
|
|
|
- this.vm.swiperController.changeIndex(2,true)
|
|
|
|
|
|
|
+ if(this.vm.messageId!=0) {
|
|
|
|
|
+ Column() {
|
|
|
|
|
+
|
|
|
|
|
+ }.width('100%')
|
|
|
|
|
+ .height(100)
|
|
|
|
|
+ .onClick(()=>{
|
|
|
|
|
+ IBestToast.show({
|
|
|
|
|
+ message:"消息提醒打卡不可修改植物和事项"
|
|
|
|
|
+ })
|
|
|
|
|
+ return
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
|
|
+ }
|
|
|
}.backgroundColor('#F8F8F8')
|
|
}.backgroundColor('#F8F8F8')
|
|
|
- .padding({left:10,right:10})
|
|
|
|
|
|
|
+ .padding({ left: 10, right: 10 })
|
|
|
.borderRadius(12)
|
|
.borderRadius(12)
|
|
|
|
|
|
|
|
Column() {
|
|
Column() {
|
|
|
TaskItem({
|
|
TaskItem({
|
|
|
- title:"打卡日期",
|
|
|
|
|
- TaskText:this.vm.clockDate,
|
|
|
|
|
- swiperChange:()=>{
|
|
|
|
|
- this.vm.swiperController.changeIndex(3,true)
|
|
|
|
|
|
|
+ title: "打卡日期",
|
|
|
|
|
+ TaskText: this.vm.clockDate,
|
|
|
|
|
+ swiperChange: () => {
|
|
|
|
|
+ this.vm.swiperController.changeIndex(3, true)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
TaskItem({
|
|
TaskItem({
|
|
|
- title:"打卡时间",
|
|
|
|
|
- TaskText:this.vm.clockTime,
|
|
|
|
|
- swiperChange:()=>{
|
|
|
|
|
- this.vm.swiperController.changeIndex(4,true)
|
|
|
|
|
|
|
+ title: "打卡时间",
|
|
|
|
|
+ TaskText: this.vm.clockTime,
|
|
|
|
|
+ swiperChange: () => {
|
|
|
|
|
+ this.vm.swiperController.changeIndex(4, true)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}.backgroundColor('#F8F8F8')
|
|
}.backgroundColor('#F8F8F8')
|
|
|
- .padding({left:10,right:10})
|
|
|
|
|
|
|
+ .padding({ left: 10, right: 10 })
|
|
|
.borderRadius(12)
|
|
.borderRadius(12)
|
|
|
- .onClick(()=>{
|
|
|
|
|
- this.vm.swiperController.changeIndex(4,true)
|
|
|
|
|
|
|
+ .onClick(() => {
|
|
|
|
|
+ this.vm.swiperController.changeIndex(4, true)
|
|
|
|
|
|
|
|
})
|
|
})
|
|
|
}.width('100%')
|
|
}.width('100%')
|
|
|
|
|
|
|
|
|
|
|
|
|
- }.width('100%')
|
|
|
|
|
|
|
+ TextArea({ placeholder: "您正在进行养护打卡,点击此处进行备注", text: this.vm.remark })
|
|
|
|
|
+ .width('100%')
|
|
|
|
|
+ .height(165)
|
|
|
|
|
+ .backgroundColor('#F8F8F8')
|
|
|
|
|
+ .borderRadius(12)
|
|
|
|
|
+ .placeholderColor('#4D333333')
|
|
|
|
|
+ .placeholderFont({ size: 14 })
|
|
|
|
|
+ .fontColor('#FF206D43')
|
|
|
|
|
+ .fontSize(16)
|
|
|
|
|
+ .margin({top:10,bottom:30})
|
|
|
|
|
+ .onChange((value)=>{
|
|
|
|
|
+ this.vm.remark=value
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ .width('100%')
|
|
|
.height(530)
|
|
.height(530)
|
|
|
- .padding({top:19,left:16,right:16})
|
|
|
|
|
|
|
+ .padding({ top: 19, left: 16, right: 16 })
|
|
|
.backgroundColor(Color.White)
|
|
.backgroundColor(Color.White)
|
|
|
- .borderRadius({topLeft:20,topRight:20})
|
|
|
|
|
- //打卡事项swiper
|
|
|
|
|
- SwiperCom({
|
|
|
|
|
- swiperBuilder1:()=>{
|
|
|
|
|
- this.SelectClockTask()
|
|
|
|
|
- },
|
|
|
|
|
- swiperBuilder2:()=>{
|
|
|
|
|
- this.AddClockTask()
|
|
|
|
|
- },
|
|
|
|
|
- swiperBuilder3: () => { this.AddClockTaskAndSelectIcon() },
|
|
|
|
|
- swiperComController:this.vm.swiperComController[0]
|
|
|
|
|
- })
|
|
|
|
|
- SwiperCom({
|
|
|
|
|
- swiperBuilder1:()=>{
|
|
|
|
|
- //选择打卡植物
|
|
|
|
|
- this.SelectClockTaskGreenPlant()
|
|
|
|
|
- },
|
|
|
|
|
- swiperComController:this.vm.swiperComController[1]
|
|
|
|
|
- })
|
|
|
|
|
- SwiperCom({
|
|
|
|
|
- swiperBuilder1:()=>{
|
|
|
|
|
- //选择打卡日期
|
|
|
|
|
- this.SelectDate()
|
|
|
|
|
- },
|
|
|
|
|
- swiperComController:this.vm.swiperComController[2]
|
|
|
|
|
- })
|
|
|
|
|
- SwiperCom({
|
|
|
|
|
- swiperBuilder1:()=>{
|
|
|
|
|
- //选择打卡时间
|
|
|
|
|
- this.SelectTime()
|
|
|
|
|
- },
|
|
|
|
|
- swiperComController:this.vm.swiperComController[3]
|
|
|
|
|
- })
|
|
|
|
|
- TextArea({ placeholder:"您正在进行养护打卡,点击此处进行备注", text:"xxxx" }).width('100%')
|
|
|
|
|
- .height(165)
|
|
|
|
|
- .backgroundColor('#F8F8F8')
|
|
|
|
|
- .borderRadius(12)
|
|
|
|
|
- .placeholderColor('#4D333333')
|
|
|
|
|
- .placeholderFont({size:14})
|
|
|
|
|
- .fontColor('#FF206D43')
|
|
|
|
|
- .fontSize(16)
|
|
|
|
|
|
|
+ .borderRadius({ topLeft: 20, topRight: 20 })
|
|
|
|
|
+
|
|
|
|
|
+ //打卡事项swiper
|
|
|
|
|
+ SwiperCom({
|
|
|
|
|
+ swiperBuilder1: () => {
|
|
|
|
|
+ this.SelectClockTask()
|
|
|
|
|
+ },
|
|
|
|
|
+ swiperBuilder2: () => {
|
|
|
|
|
+ this.AddClockTask()
|
|
|
|
|
+ },
|
|
|
|
|
+ swiperBuilder3: () => {
|
|
|
|
|
+ this.AddClockTaskAndSelectIcon()
|
|
|
|
|
+ },
|
|
|
|
|
+ swiperComController: this.vm.swiperComController[0]
|
|
|
|
|
+ })
|
|
|
|
|
+ SwiperCom({
|
|
|
|
|
+ swiperBuilder1: () => {
|
|
|
|
|
+ //选择打卡植物
|
|
|
|
|
+ this.SelectClockTaskGreenPlant()
|
|
|
|
|
+ },
|
|
|
|
|
+ swiperComController: this.vm.swiperComController[1]
|
|
|
|
|
+ })
|
|
|
|
|
+ SwiperCom({
|
|
|
|
|
+ swiperBuilder1: () => {
|
|
|
|
|
+ //选择打卡日期
|
|
|
|
|
+ this.SelectDate()
|
|
|
|
|
+ },
|
|
|
|
|
+ swiperComController: this.vm.swiperComController[2]
|
|
|
|
|
+ })
|
|
|
|
|
+ SwiperCom({
|
|
|
|
|
+ swiperBuilder1: () => {
|
|
|
|
|
+ //选择打卡时间
|
|
|
|
|
+ this.SelectTime()
|
|
|
|
|
+ },
|
|
|
|
|
+ swiperComController: this.vm.swiperComController[3]
|
|
|
|
|
+ })
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
- .width('100%')
|
|
|
|
|
- .height(530)
|
|
|
|
|
- .autoPlay(false)
|
|
|
|
|
- .indicator(false)
|
|
|
|
|
- .disableSwipe(true)
|
|
|
|
|
- .curve(Curve.EaseIn)
|
|
|
|
|
- .duration(100)
|
|
|
|
|
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ .width('100%')
|
|
|
|
|
+ .height(530)
|
|
|
|
|
+ .autoPlay(false)
|
|
|
|
|
+ .indicator(false)
|
|
|
|
|
+ .disableSwipe(true)
|
|
|
|
|
+ .curve(Curve.EaseIn)
|
|
|
|
|
+ .duration(100)
|
|
|
|
|
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
}.width('100%').backgroundColor(Color.Transparent)
|
|
}.width('100%').backgroundColor(Color.Transparent)
|
|
|
}
|
|
}
|
|
@@ -469,6 +534,7 @@ export struct MainView {
|
|
|
//获取到打卡事项
|
|
//获取到打卡事项
|
|
|
this.vm.taskItemId=task.itemId
|
|
this.vm.taskItemId=task.itemId
|
|
|
this.vm.taskItemName=task.itemName
|
|
this.vm.taskItemName=task.itemName
|
|
|
|
|
+ this.vm.img=task.itemIcon
|
|
|
},
|
|
},
|
|
|
swiperChange:()=>{
|
|
swiperChange:()=>{
|
|
|
this.vm.swiperComController[0].changeIndex(1, true)
|
|
this.vm.swiperComController[0].changeIndex(1, true)
|