Browse Source

add all

master
刘嘉炜 4 years ago
parent
commit
53d37f05dc
  1. 4
      src/js/api.js
  2. 2
      src/manifest.json
  3. 5
      src/pages/course/class_list/class_list.vue
  4. 16
      src/pages/course/task/task.vue
  5. 21
      src/pages/course/task_finish/task_finish.vue
  6. BIN
      src/static/images/triangle_c33.png

4
src/js/api.js

@ -1,5 +1,5 @@
// export const ORIGIN = `https://test.ouxuanzhineng.cn`; // 测试
export const ORIGIN = `http://kahing.local:9090`; // 本地测试
export const ORIGIN = `https://test.ouxuanzhineng.cn`; // 测试
// 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 = {

2
src/manifest.json

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

5
src/pages/course/class_list/class_list.vue

@ -20,7 +20,7 @@
<block v-if="e.class_status == 1 || true"> <block v-if="e.class_status == 1 || true">
<view hover-class="hover-active">点名</view> <view hover-class="hover-active">点名</view>
<view hover-class="hover-active">作业</view>
<view hover-class="hover-active" @click="toTask">作业</view>
</block> </block>
</view> </view>
@ -48,6 +48,9 @@ export default {
this.getClassList(_query.course_id) this.getClassList(_query.course_id)
}, },
methods: { methods: {
toTask(){
util.routeTo(`/pages/course/task/task`, 'nT');
},
toStudentLst(e){ toStudentLst(e){
let { optionsQuery } = this; let { optionsQuery } = this;
let _query = { let _query = {

16
src/pages/course/task/task.vue

@ -14,19 +14,28 @@
</view> </view>
<view class="cc-unfold"> <view class="cc-unfold">
<text>展开</text> <text>展开</text>
<image></image>
<image mode="aspectFit" src="/static/images/arrow_c874.png"></image>
</view> </view>
<view class="cc-btn" hover-class="hover-active">完成列表</view>
<view class="cc-btn" hover-class="hover-active" @click="toFinish">完成列表</view>
</view> </view>
</view> </view>
<view class="fixed-bot-btn"><view hover-class="hover-active">布置作业</view></view>
<view class="fixed-bot-btn"><view hover-class="hover-active" @click="toPublish">布置作业</view></view>
</view> </view>
</template> </template>
<script> <script>
import util from '../../../utils/util'
export default { export default {
methods: {
toPublish(){
util.routeTo(`/pages/course/task_publish/task_publish`, 'nT');
},
toFinish(){
util.routeTo(`/pages/course/task_finish/task_finish`, 'nT');
}
}
} }
</script> </script>
@ -73,7 +82,6 @@ export default {
margin-left: 10upx; margin-left: 10upx;
width: 24upx; width: 24upx;
height: 24upx; height: 24upx;
background-color: skyblue;
} }
} }
.cc-btn{ .cc-btn{

21
src/pages/course/task_finish/task_finish.vue

@ -7,22 +7,22 @@
<picker class="ct-picker"> <picker class="ct-picker">
<view class="cp-con"> <view class="cp-con">
<input disabled value="2020年12月27日" /> <input disabled value="2020年12月27日" />
<image></image>
<image mode="aspectFit" src="/static/images/triangle_c33.png"></image>
</view> </view>
</picker> </picker>
</view> </view>
<view class="ctf-list"> <view class="ctf-list">
<view class="cl-item" v-for="i in 10" :key="i">
<view class="cl-item" v-for="i in 10" :key="i" @click="toTaskInfo">
<view class="ci-time">10:18</view> <view class="ci-time">10:18</view>
<view class="ci-content"> <view class="ci-content">
<view class="cc-user"> <view class="cc-user">
<image class="u-avatar"></image>
<image class="u-avatar" mode="aspectFit" src="/static/images/logo.png"></image>
<view class="u-name">Adjoin</view> <view class="u-name">Adjoin</view>
<image class="u-icon"></image>
<image class="u-icon" mode="aspectFit" src="/static/images/sex_0.png"></image>
</view> </view>
<view class="cc-status"> <view class="cc-status">
<view :class="[i == 2?'active':'']">已完成</view> <view :class="[i == 2?'active':'']">已完成</view>
<image></image>
<image mode="aspectFit" src="/static/images/arrow_cb2.png"></image>
</view> </view>
</view> </view>
</view> </view>
@ -32,8 +32,14 @@
</template> </template>
<script> <script>
import util from '../../../utils/util'
export default { export default {
methods: {
toTaskInfo(){
console.warn(1);
util.routeTo(`/pages/course/task_info/task_info`, 'nT');
}
}
} }
</script> </script>
@ -66,7 +72,6 @@ export default {
flex-shrink: 0; flex-shrink: 0;
width: 28upx; width: 28upx;
height: 28upx; height: 28upx;
background-color: skyblue;
} }
} }
} }
@ -110,7 +115,6 @@ export default {
flex-shrink: 0; flex-shrink: 0;
width: 36upx; width: 36upx;
height: 36upx; height: 36upx;
background-color: skyblue;
} }
} }
.cc-status{ .cc-status{
@ -132,7 +136,6 @@ export default {
margin-left: 16upx; margin-left: 16upx;
width: 32upx; width: 32upx;
height: 32upx; height: 32upx;
background-color: skyblue;
} }
} }

BIN
src/static/images/triangle_c33.png

After

Width: 32  |  Height: 32  |  Size: 174 B

Loading…
Cancel
Save