提交 6abe5043 编写于 作者: DCloud_iOS_XHY's avatar DCloud_iOS_XHY

iOS平台放开 element-draw、calendar 示例

上级 99453d70
......@@ -652,18 +652,18 @@
"navigationBarTitleText": "get-window-info"
}
},
// #ifdef APP-ANDROID
{
"path": "pages/API/facial-recognition-verify/facial-recognition-verify",
"path": "pages/API/element-draw/element-draw",
"style": {
"navigationBarTitleText": "",
"navigationBarTitleText": "getDrawableContext",
"enablePullDownRefresh": false
}
},
// #ifdef APP-ANDROID
{
"path": "pages/API/element-draw/element-draw",
"path": "pages/API/facial-recognition-verify/facial-recognition-verify",
"style": {
"navigationBarTitleText": "getDrawableContext",
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
......@@ -1153,13 +1153,13 @@
}
},
// #endif
// #ifdef APP-ANDROID
{
"path": "pages/template/calendar/calendar",
"style": {
"navigationBarTitleText": "日历"
}
},
// #ifdef APP-ANDROID
{
"path": "pages/template/schema/schema",
"style": {
......
......@@ -87,7 +87,7 @@ export default {
// 点击具体的日历格子
clickGrid (x: number, y: number) {
// 小格子数组
const gridArray = this.$coords
const gridArray = this.$data.$coords
// 遍历小格子数组,找到最接近点击坐标的小格子
for (let i = 0; i < gridArray.length; i++) {
......@@ -103,7 +103,7 @@ export default {
if (is_select) {
const data = grid.data
this.timeData = this.$calendar.getDateInfo(data.fullDate)
this.timeData = this.$data.$calendar.getDateInfo(data.fullDate)
this.drawWeek(this.weeks, grid.data.fullDate)
}
}
......@@ -111,10 +111,10 @@ export default {
// 切换上个月
preDate () {
const fulldate = this.timeData.fullDate
const time = this.$calendar.getDate(fulldate, -1, 'month')
this.timeData = this.$calendar.getDateInfo(time.fullDate)
const time = this.$data.$calendar.getDate(fulldate, -1, 'month')
this.timeData = this.$data.$calendar.getDateInfo(time.fullDate)
this.weeks = this.$calendar.getWeeks(time.fullDate)
this.weeks = this.$data.$calendar.getWeeks(time.fullDate)
// 重新绘制日历
this.drawWeek(this.weeks, time.fullDate)
......@@ -123,20 +123,20 @@ export default {
// 切换下个他
nextDate () {
const fulldate = this.timeData.fullDate
const time = this.$calendar.getDate(fulldate, 1, 'month')
this.timeData = this.$calendar.getDateInfo(time.fullDate)
const time = this.$data.$calendar.getDate(fulldate, 1, 'month')
this.timeData = this.$data.$calendar.getDateInfo(time.fullDate)
this.weeks = this.$calendar.getWeeks(time.fullDate)
this.weeks = this.$data.$calendar.getWeeks(time.fullDate)
// 重新绘制日历
this.drawWeek(this.weeks, time.fullDate)
},
// 回到今天
gotoToday () {
const time = this.$calendar.getDate()
this.timeData = this.$calendar.getDateInfo(time.fullDate)
const time = this.$data.$calendar.getDate()
this.timeData = this.$data.$calendar.getDateInfo(time.fullDate)
this.weeks = this.$calendar.getWeeks(time.fullDate)
this.weeks = this.$data.$calendar.getWeeks(time.fullDate)
// 重新绘制日历
this.drawWeek(this.weeks, time.fullDate)
......@@ -183,7 +183,7 @@ export default {
const one_height = height / week_len
if (time !== '') {
this.$coords = []
this.$data.$coords = []
ctx.reset()
}
......@@ -232,7 +232,7 @@ export default {
height: day_height,
data: day_item
}
this.$coords.push(coords)
this.$data.$coords.push(coords)
// }
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册