Commit 2f2d08ea authored by 刘用法's avatar 刘用法
parents 468ee0bd 4b8810bc
...@@ -5,8 +5,8 @@ const UNI_APP = { ...@@ -5,8 +5,8 @@ const UNI_APP = {
// banshou: 'https://m.banshou.com', //扳手app // banshou: 'https://m.banshou.com', //扳手app
}, },
systemUrl: { systemUrl: {
apiUrl: 'http://192.168.1.22', //java端域名请求头 // apiUrl: 'http://192.168.1.22', //java端域名请求头
// apiUrl: 'http://apidoc.banshouhui.com:3000/mock/31', // mock端域名请求头 apiUrl: 'http://apidoc.banshouhui.com:3000/mock/31', // mock端域名请求头
}, },
qn_base_url: 'https://qn-static.banshouhui.com/self-support/' qn_base_url: 'https://qn-static.banshouhui.com/self-support/'
} }
......
...@@ -47,33 +47,19 @@ ...@@ -47,33 +47,19 @@
type: Boolean, type: Boolean,
default: true default: true
}, },
dateList: {
type: Array,
default: []
},
timeList: {
type: Array,
default: []
},
}, },
data() { data() {
return { return {
currentDay: 0, currentDay: 0,
currentTime: null, currentTime: null,
dateList: [{
weekDay: '周三',
day: '21',
}, {
weekDay: '周四',
day: '22',
}, {
weekDay: '周五',
day: '23',
}, {
weekDay: '周六',
day: '24',
}, {
weekDay: '周日',
day: '25',
}, {
weekDay: '周一',
day: '26',
}, ],
timeList: ['06:00-08:00', '08:00-10:00', '10:00-12:00', '12:00-14:00', '14:00-16:00', '16:00-18:00',
'18:00-20:00', '20:00-22:00', '22:00-24:00'
],
} }
}, },
computed: { computed: {
...@@ -88,13 +74,15 @@ ...@@ -88,13 +74,15 @@
getDateList() { getDateList() {
// 获取日期 // 获取日期
}, },
dateChange(item, index, list) { async dateChange(item, index, list) {
let data = { let data = {
item, item,
index, index,
list, list,
} }
this.currentDay = index this.currentDay = index
let res = await this.$u.api.openTimerange()
debugger
this.$emit('date-change', data) this.$emit('date-change', data)
}, },
timeChange(item, index, list) { timeChange(item, index, list) {
......
...@@ -141,6 +141,7 @@ ...@@ -141,6 +141,7 @@
}, },
}, },
async onLoad(e) { async onLoad(e) {
this.$u.vuex('vuex_token', 'RTOKEN7493e6defc2f1a77782f105dc297a9366763fec5');
this.orderId = 1 this.orderId = 1
this.categoryId = 88 this.categoryId = 88
if(e) { if(e) {
...@@ -151,9 +152,11 @@ ...@@ -151,9 +152,11 @@
title: "数据加载中", title: "数据加载中",
mask: true mask: true
}) })
this.loadCalendar()
await this.initPageData() await this.initPageData()
}, },
methods: { methods: {
/* 初始化页面数据 */
async initPageData() { async initPageData() {
let self = this let self = this
let params = {categoryId: self.categoryId} let params = {categoryId: self.categoryId}
...@@ -165,6 +168,7 @@ ...@@ -165,6 +168,7 @@
} }
uni.hideLoading() uni.hideLoading()
}, },
/* 组装参数 */
buildConfig() { buildConfig() {
let self = this let self = this
if(self.config) { if(self.config) {
...@@ -176,6 +180,7 @@ ...@@ -176,6 +180,7 @@
}) })
} }
}, },
/* 初始化参数 */
initParams() { initParams() {
let self = this let self = this
if(self.config) { if(self.config) {
...@@ -195,6 +200,17 @@ ...@@ -195,6 +200,17 @@
} }
} }
}, },
/* 加载日历数据 */
async loadCalendar() {
let self = this
let res = await this.$u.api.workerCalendar()
if(res && res.code == 200) {
}
debugger
},
/** /**
* 切换tab项 * 切换tab项
*/ */
......
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