Compare commits

...

2 Commits
master ... dev

Author SHA1 Message Date
刘嘉炜 525e0e5737 fix all 4 years ago
刘嘉炜 70c38a3c15 vtest 1.0.0 4 years ago
  1. 6
      README.md
  2. 4
      src/js/api.js
  3. 2
      src/manifest.json
  4. 2
      src/pages/course/offer_info/offer_info.vue
  5. 35
      src/pages/shift/application/application.vue
  6. 2
      src/pages/shift/record/record.vue

6
README.md

@ -43,14 +43,8 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
APPID: APPID:
wxd71043ec955dfecf wxd71043ec955dfecf
AppSecret:
dacec45d75df1cd109090e88855cefc8
测试服: 测试服:
APPID: APPID:
wx7873af4ffca558fd wx7873af4ffca558fd
AppSecret:
9110b93981e88b0127a4f6a8c940dc90

4
src/js/api.js

@ -1,7 +1,7 @@
// export const ORIGIN = `https://test.ouxuanzhineng.cn`; // 测试
export const ORIGIN = `https://test.ouxuanzhineng.cn`; // 测试
// export const ORIGIN = `http://testmanager.ouxuanzhineng.cn`; // 测试 // export const ORIGIN = `http://testmanager.ouxuanzhineng.cn`; // 测试
// export const ORIGIN = `http://kahing.local:9090`; // 本地测试 // export const ORIGIN = `http://kahing.local:9090`; // 本地测试
export const ORIGIN = `https://coach.ouxuanzhineng.cn`; // 正式
// export const ORIGIN = `https://coach.ouxuanzhineng.cn`; // 正式
export const API = { export const API = {
coachLogin: `${ORIGIN}/stadium/coach/login`, // 小程序-账号登录 coachLogin: `${ORIGIN}/stadium/coach/login`, // 小程序-账号登录

2
src/manifest.json

@ -54,7 +54,7 @@
}, },
"mp-weixin": { /* */ "mp-weixin": { /* */
"appid": "wxd71043ec955dfecf",
"appid": "wx7873af4ffca558fd",
"setting": { "setting": {
"urlCheck": false "urlCheck": false
}, },

2
src/pages/course/offer_info/offer_info.vue

@ -10,7 +10,7 @@
<view class="i-setion"> <view class="i-setion">
<view class="s-line"><text>课程名称</text>{{offerInfo.course.name || '-'}}</view> <view class="s-line"><text>课程名称</text>{{offerInfo.course.name || '-'}}</view>
<view class="s-line"><text>上课用户</text>{{offerInfo.name || '-'}}</view> <view class="s-line"><text>上课用户</text>{{offerInfo.name || '-'}}</view>
<view class="s-line"><text>课程次数</text>{{offerInfo.number || '0'}}</view>
<view class="s-line"><text>课程次数</text>{{offerInfo.offer_number || '0'}}</view>
<view class="s-line"><text>课程报价</text>{{offerInfo.offer_price || '0'}}</view> <view class="s-line"><text>课程报价</text>{{offerInfo.offer_price || '0'}}</view>
</view> </view>
</view> </view>

35
src/pages/shift/application/application.vue

@ -81,9 +81,6 @@ export default {
coachInfo: { coachInfo: {
name: '' name: ''
}, },
dateInfo: {
_time: ''
}
} }
} }
}, },
@ -92,7 +89,7 @@ export default {
}, },
methods: { methods: {
submitBtn: util.debounce(function(){ submitBtn: util.debounce(function(){
let { courseInfo, classInfo, coachInfo, dateInfo } = this.selectInfo;
let { courseInfo, classInfo, coachInfo } = this.selectInfo;
let { selectTimeIDS } = this; let { selectTimeIDS } = this;
if(!courseInfo.id || !classInfo.id || !coachInfo.id || selectTimeIDS.length<=0 )return util.showNone('请选择完整!'); if(!courseInfo.id || !classInfo.id || !coachInfo.id || selectTimeIDS.length<=0 )return util.showNone('请选择完整!');
util.showLoad(); util.showLoad();
@ -141,28 +138,16 @@ export default {
this.selectTimeIDS = [...this.tempSelectTimeID]; this.selectTimeIDS = [...this.tempSelectTimeID];
this.isShowTimeModal = false; this.isShowTimeModal = false;
}, },
//
timeChange(e){
console.warn(e)
let { timeList, selectInfo } = this;
if(!selectInfo.coachInfo.id)return util.showNone('请选择教练!');
let _timeInfo = timeList[e.detail.value] || {};
this.selectInfo = {
...selectInfo,
dateInfo: _timeInfo
};
},
// //
coachChange(e){ coachChange(e){
let { coachList, selectInfo } = this; let { coachList, selectInfo } = this;
if(!selectInfo.classInfo.id)return util.showNone('请选择班级!'); if(!selectInfo.classInfo.id)return util.showNone('请选择班级!');
let _coachInfo = coachList[e.detail.value] || {}; let _coachInfo = coachList[e.detail.value] || {};
this.timeList = [];
this.selectTimeIDS = [];
this.selectInfo = { this.selectInfo = {
...selectInfo, ...selectInfo,
coachInfo: _coachInfo,
dateInfo: {
_time: ''
}
coachInfo: _coachInfo
}; };
this.getShiftWorkClassTimes(selectInfo.courseInfo.id); this.getShiftWorkClassTimes(selectInfo.courseInfo.id);
@ -172,14 +157,13 @@ export default {
let { classList, selectInfo } = this; let { classList, selectInfo } = this;
if(!selectInfo.courseInfo.id)return util.showNone('请选择课程!'); if(!selectInfo.courseInfo.id)return util.showNone('请选择课程!');
let _classInfo = classList[e.detail.value] || {}; let _classInfo = classList[e.detail.value] || {};
this.timeList = [];
this.selectTimeIDS = [];
this.selectInfo = { this.selectInfo = {
...selectInfo, ...selectInfo,
classInfo: _classInfo, classInfo: _classInfo,
coachInfo: { coachInfo: {
name: '' name: ''
},
dateInfo: {
_time: ''
} }
}; };
this.getCoachList(); this.getCoachList();
@ -188,6 +172,8 @@ export default {
courseChange(e){ courseChange(e){
let { courseList } = this; let { courseList } = this;
let _courseInfo = courseList[e.detail.value] || {}; let _courseInfo = courseList[e.detail.value] || {};
this.timeList = [];
this.selectTimeIDS = [];
this.selectInfo = { this.selectInfo = {
courseInfo: _courseInfo, courseInfo: _courseInfo,
classInfo: { classInfo: {
@ -195,9 +181,6 @@ export default {
}, },
coachInfo: { coachInfo: {
name: '' name: ''
},
dateInfo: {
_time: ''
} }
}; };
this.getClassList( _courseInfo.id ); this.getClassList( _courseInfo.id );
@ -219,7 +202,7 @@ export default {
this.timeList = _list.map(e=>{ this.timeList = _list.map(e=>{
return { return {
...e, ...e,
_time: `${e.date} ${e.start_duration}`
_time: `${e.date} ${e.start_duration}~${e.end_duration}`
} }
}); });
}) })

2
src/pages/shift/record/record.vue

@ -33,7 +33,7 @@
<view class="i-line"> <view class="i-line">
<view>换班时间:</view> <view>换班时间:</view>
<view> <view>
<view v-for="(k,j) in e.duration_data" :key="j">{{k.date || '-'}} {{k.start_duration || '-'}}</view>
<view v-for="(k,j) in e.duration_data" :key="j">{{k.date || '-'}} {{k.start_duration || '-'}}~{{k.end_duration || '-'}}</view>
</view> </view>
</view> </view>
</view> </view>

Loading…
Cancel
Save