diff --git a/common/default.scss b/common/default.scss index ebd5f0e..af9b14d 100644 --- a/common/default.scss +++ b/common/default.scss @@ -679,3 +679,22 @@ height: var(--status-bar-height); width: 100%; } + +.font-12 { + font-size: 24rpx; +} +.font-14 { + font-size: 28rpx; +} +.font-16 { + font-size: 32rpx; +} +.font-18 { + font-size: 36rpx; +} +.font-20 { + font-size: 40rpx; +} +.font-bold { + font-weight: bold; +} diff --git a/components/my-tabbar/my-tabbar.vue b/components/my-tabbar/my-tabbar.vue index d2ceb9d..8720f4c 100644 --- a/components/my-tabbar/my-tabbar.vue +++ b/components/my-tabbar/my-tabbar.vue @@ -1,61 +1,90 @@ + + \ No newline at end of file diff --git a/components/w-picker/date-picker.vue b/components/w-picker/date-picker.vue new file mode 100644 index 0000000..57e413f --- /dev/null +++ b/components/w-picker/date-picker.vue @@ -0,0 +1,760 @@ + + + + + diff --git a/components/w-picker/half-picker.vue b/components/w-picker/half-picker.vue new file mode 100644 index 0000000..58fd556 --- /dev/null +++ b/components/w-picker/half-picker.vue @@ -0,0 +1,526 @@ + + + + + diff --git a/components/w-picker/range-picker.vue b/components/w-picker/range-picker.vue new file mode 100644 index 0000000..7dd8b5b --- /dev/null +++ b/components/w-picker/range-picker.vue @@ -0,0 +1,344 @@ + + + + + diff --git a/components/w-picker/w-picker.css b/components/w-picker/w-picker.css new file mode 100644 index 0000000..fc325f4 --- /dev/null +++ b/components/w-picker/w-picker.css @@ -0,0 +1,32 @@ +.w-picker-flex2 { + flex: 2; +} + +.w-picker-flex1 { + flex: 1; +} + +.w-picker-view { + width: 100%; + height: 540upx; + overflow: hidden; + background-color: rgba(255, 255, 255, 1); + z-index: 666; +} + +.d-picker-view { + height: 75%; +} + +.w-picker-item { + display: flex; + align-items: center; + justify-content: center; + text-align: center; + width: 100%; + /* height: 88upx; */ + /* line-height: 88upx; */ + text-overflow: ellipsis; + white-space: nowrap; + font-size: 30upx; +} \ No newline at end of file diff --git a/components/w-picker/w-picker.vue b/components/w-picker/w-picker.vue new file mode 100644 index 0000000..9706f2a --- /dev/null +++ b/components/w-picker/w-picker.vue @@ -0,0 +1,311 @@ + + + + + diff --git a/pages.json b/pages.json index d08718e..5310836 100644 --- a/pages.json +++ b/pages.json @@ -10,7 +10,6 @@ { "path": "pages/my/my", "style": { - "navigationStyle": "custom", "navigationBarTitleText": "", "enablePullDownRefresh": false } @@ -48,15 +47,14 @@ }, "uniIdRouter": {}, "tabBar": { - "custom": true, "list": [ { - "pagePath": "pages/ticket/index" - + "pagePath": "pages/ticket/index", + "text": "场馆" }, { - "pagePath": "pages/my/my" - + "pagePath": "pages/my/my", + "text": "我的" } ] } diff --git a/pages/index/index.vue b/pages/index/index.vue deleted file mode 100644 index fbb1692..0000000 --- a/pages/index/index.vue +++ /dev/null @@ -1,50 +0,0 @@ - - - - - diff --git a/pages/my/my.vue b/pages/my/my.vue index 0c7d10b..b249d97 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -1,7 +1,7 @@ + diff --git a/pages/ticket/index.vue b/pages/ticket/index.vue index 467b9fa..af33e30 100644 --- a/pages/ticket/index.vue +++ b/pages/ticket/index.vue @@ -11,6 +11,14 @@ + + + + 场馆列表 + @@ -21,24 +29,24 @@ - {{item.name}} + {{item.name}} - {{ item.typeNum }} + {{ item.typeNum }}种 - + + 查看 - + + diff --git a/static/elector-1-view.png b/static/elector-1-view.png new file mode 100644 index 0000000..55751a5 Binary files /dev/null and b/static/elector-1-view.png differ diff --git a/static/elector-1.png b/static/elector-1.png new file mode 100644 index 0000000..928ecdb Binary files /dev/null and b/static/elector-1.png differ diff --git a/static/elector-2.png b/static/elector-2.png new file mode 100644 index 0000000..1c49dc1 Binary files /dev/null and b/static/elector-2.png differ diff --git a/static/icon-pick.png b/static/icon-pick.png new file mode 100644 index 0000000..9883de9 Binary files /dev/null and b/static/icon-pick.png differ diff --git a/static/icon-ticket.png b/static/icon-ticket-addr.png similarity index 100% rename from static/icon-ticket.png rename to static/icon-ticket-addr.png diff --git a/static/pageData.json b/static/pageData.json index fe831e4..2b9e843 100644 --- a/static/pageData.json +++ b/static/pageData.json @@ -1,98 +1,156 @@ { - "ticketData":[ - { - "name":"门票系统的某个场馆", - "typeNum":"3" - }, - - { - "name":"门票系统的某个场馆", - "typeNum":"3" - }, - - { - "name":"门票系统的某个场馆", - "typeNum":"0" - }, - - { - "name":"门票系统的某个场馆", - "typeNum":"0" - }, - - { - "name":"门票系统的某个场馆", - "typeNum":"0" - }, - - { - "name":"门票系统的某个场馆", - "typeNum":"0" - }, - - { - "name":"门票系统的某个场馆", - "typeNum":"0" - }, - - { - "name":"门票系统的某个场馆", - "typeNum":"0" - }, - - { - "name":"门票系统的某个场馆", - "typeNum":"0" - }, - - { - "name":"门票系统的某个场馆", - "typeNum":"0" - }, - - { - "name":"门票系统的某个场馆", - "typeNum":"0" - }, - - { - "name":"门票系统的某个场馆", - "typeNum":"0" - }, - - { - "name":"门票系统的某个场馆", - "typeNum":"0" - }, - - { - "name":"门票系统的某个场馆", - "typeNum":"0" - }, - - { - "name":"门票系统的某个场馆", - "typeNum":"0" - }, - - { - "name":"门票系统的某个场馆", - "typeNum":"0" - }, - - { - "name":"门票系统的某个场馆", - "typeNum":"0" - }, - - { - "name":"门票系统的某个场馆", - "typeNum":"0" - }, - - { - "name":"门票系统的某个场馆", - "typeNum":"0" - } - ] -} \ No newline at end of file + "ticketData": [ + { + "name": "门票系统的某个场馆", + "typeNum": "3" + }, + { + "name": "门票系统的某个场馆", + "typeNum": "3" + }, + { + "name": "门票系统的某个场馆", + "typeNum": "0" + }, + { + "name": "门票系统的某个场馆", + "typeNum": "0" + }, + { + "name": "门票系统的某个场馆", + "typeNum": "0" + }, + { + "name": "门票系统的某个场馆", + "typeNum": "0" + }, + { + "name": "门票系统的某个场馆", + "typeNum": "0" + }, + { + "name": "门票系统的某个场馆", + "typeNum": "0" + }, + { + "name": "门票系统的某个场馆", + "typeNum": "0" + }, + { + "name": "门票系统的某个场馆", + "typeNum": "0" + }, + { + "name": "门票系统的某个场馆", + "typeNum": "0" + }, + { + "name": "门票系统的某个场馆", + "typeNum": "0" + } + ], + "elector": [ + { + "url": "../../static/elector-1.png", + "name": "首都博物馆门票", + "canReserve": "1023", + "total": "20000" + }, + { + "url": "../../static/elector-1.png", + "name": "首都博物馆节假日门票", + "canReserve": "11123", + "total": "20000" + }, + { + "url": "../../static/elector-1.png", + "name": "首都博物馆工作日门票", + "canReserve": "0", + "total": "2000" + }, + { + "url": "../../static/elector-2.png", + "name": "首都博物馆元旦门票", + "canReserve": "23", + "total": "2000" + }, + { + "url": "../../static/elector-2.png", + "name": "首都博物馆元旦门票", + "canReserve": "23", + "total": "2000" + }, + { + "url": "../../static/elector-2.png", + "name": "首都博物馆元旦门票", + "canReserve": "23", + "total": "2000" + }, + { + "url": "../../static/elector-2.png", + "name": "首都博物馆元旦门票", + "canReserve": "23", + "total": "2000" + }, + { + "url": "../../static/elector-2.png", + "name": "首都博物馆元旦门票", + "canReserve": "23", + "total": "2000" + }, + { + "url": "../../static/elector-2.png", + "name": "首都博物馆元旦门票", + "canReserve": "23", + "total": "2000" + }, + { + "url": "../../static/elector-2.png", + "name": "首都博物馆元旦门票", + "canReserve": "23", + "total": "2000" + }, + { + "url": "../../static/elector-2.png", + "name": "首都博物馆元旦门票", + "canReserve": "23", + "total": "2000" + }, + { + "url": "../../static/elector-2.png", + "name": "首都博物馆元旦门票", + "canReserve": "23", + "total": "2000" + }, + { + "url": "../../static/elector-2.png", + "name": "首都博物馆元旦门票", + "canReserve": "23", + "total": "2000" + }, + { + "url": "../../static/elector-2.png", + "name": "首都博物馆元旦门票", + "canReserve": "23", + "total": "2000" + }, + { + "url": "../../static/elector-2.png", + "name": "首都博物馆元旦门票", + "canReserve": "23", + "total": "2000" + }, + { + "url": "../../static/elector-2.png", + "name": "首都博物馆元旦门票", + "canReserve": "23", + "total": "2000" + }, + { + "url": "../../static/elector-2.png", + "name": "首都博物馆元旦门票", + "canReserve": "23", + "total": "2000" + } + ] +} diff --git a/static/zu760@3x.png b/static/tabbar/icon-mine-active.png similarity index 100% rename from static/zu760@3x.png rename to static/tabbar/icon-mine-active.png diff --git a/static/zu628@3x (1).png b/static/tabbar/icon-mine.png similarity index 100% rename from static/zu628@3x (1).png rename to static/tabbar/icon-mine.png diff --git a/static/zu618@3x (1).png b/static/tabbar/icon-ticket-active.png similarity index 100% rename from static/zu618@3x (1).png rename to static/tabbar/icon-ticket-active.png diff --git a/static/zu759@3x.png b/static/tabbar/icon-ticket.png similarity index 100% rename from static/zu759@3x.png rename to static/tabbar/icon-ticket.png diff --git a/util/date.js b/util/date.js new file mode 100644 index 0000000..9247ce3 --- /dev/null +++ b/util/date.js @@ -0,0 +1,21 @@ +/** + * + * @param {*} time 时间戳 + */ + +export const getTheDate = function (time) { + let date = new Date(time); + let y = date.getFullYear(); + let MM = date.getMonth() + 1; + MM = MM < 10 ? ('0' + MM) : MM; + let d = date.getDate(); + d = d < 10 ? ('0' + d) : d; + let h = date.getHours(); + h = h < 10 ? ('0' + h) : h; + let m = date.getMinutes(); + m = m < 10 ? ('0' + m) : m; + let s = date.getSeconds(); + s = s < 10 ? ('0' + s) : s; + // return y + '-' + MM + '-' + d + ' ' + h + ':' + m + ':' + s; + return y + '-' + MM + '-' + d + '-' + h + '-' + m +}