YY 2 éve
szülő
commit
2865aa385b

+ 8 - 0
pages/schAdmin/course/info.wxml

@@ -54,6 +54,10 @@
                         <view class="list" wx:for="{{coach}}" wx:key="index">
                         <view class="list" wx:for="{{coach}}" wx:key="index">
                             <view class="name">{{item.coach_id_name||'暂无'}}</view>
                             <view class="name">{{item.coach_id_name||'暂无'}}</view>
                             <view class="other">
                             <view class="other">
+                                <view class="other_1">
+                                    <text>是否签到:</text>
+                                    <text>{{item.is_sign=='0'?'未签到':item.is_sign=='1'?'已签到':'暂无'}}</text>
+                                </view>
                                 <view class="other_1">
                                 <view class="other_1">
                                     <text>课程名称:</text>
                                     <text>课程名称:</text>
                                     <text>{{item.lesson_id_title||'暂无'}}</text>
                                     <text>{{item.lesson_id_title||'暂无'}}</text>
@@ -77,6 +81,10 @@
                                     <text>是否试课:</text>
                                     <text>是否试课:</text>
                                     <text>{{item.is_try=='0'?'非试课':item.is_try=='1'?'试课':'暂无'}}</text>
                                     <text>{{item.is_try=='0'?'非试课':item.is_try=='1'?'试课':'暂无'}}</text>
                                 </view>
                                 </view>
+                                <view class="other_1">
+                                    <text>是否签到:</text>
+                                    <text>{{item.is_sign=='0'?'未签到':item.is_sign=='1'?'已签到':'暂无'}}</text>
+                                </view>
                                 <view class="other_1">
                                 <view class="other_1">
                                     <text>缴费金额:</text>
                                     <text>缴费金额:</text>
                                     <text>{{item.money||'0'}}元</text>
                                     <text>{{item.money||'0'}}元</text>

+ 2 - 1
pages/schAdmin/courseexam/info.js

@@ -72,7 +72,7 @@ Page({
                 const acc = await app.$get(`/dict`, { code: "lesson_type" });
                 const acc = await app.$get(`/dict`, { code: "lesson_type" });
                 if (acc.errcode == '0' && aee.total > 0) that.setData({ typeList: acc.data[0].list });
                 if (acc.errcode == '0' && aee.total > 0) that.setData({ typeList: acc.data[0].list });
                 if (that.data.id) {
                 if (that.data.id) {
-                    const aee = await app.$get(`/lessonStudent/${that.data.id}`);
+                    const aee = await app.$get(`/tempLessonApply/${that.data.id}`);
                     if (aee.errcode == '0') {
                     if (aee.errcode == '0') {
                         that.setData({ student_id: aee.data.student_id })
                         that.setData({ student_id: aee.data.student_id })
                         that.setData({ lesson_id: aee.data.lesson_id })
                         that.setData({ lesson_id: aee.data.lesson_id })
@@ -94,6 +94,7 @@ Page({
                         let type = that.data.typeList.find(i => i.value == abb.data.type)
                         let type = that.data.typeList.find(i => i.value == abb.data.type)
                         if (type) abb.data.zhtype = type.label;
                         if (type) abb.data.zhtype = type.label;
                         that.setData({ lesInfo: abb.data });
                         that.setData({ lesInfo: abb.data });
+
                     }
                     }
                 }
                 }
             },
             },

+ 1 - 0
pages/schAdmin/courseexam/list.js

@@ -54,6 +54,7 @@ Page({
                 if (arr.errcode == '0') {
                 if (arr.errcode == '0') {
                     that.setData({ list: [...that.data.list, ...arr.data] });
                     that.setData({ list: [...that.data.list, ...arr.data] });
                     that.setData({ total: arr.total });
                     that.setData({ total: arr.total });
+                    console.log(arr.data);
                 }
                 }
                 else { wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 }) }
                 else { wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 }) }
             },
             },

+ 2 - 3
pages/schAdmin/courseexam/list.wxml

@@ -16,9 +16,8 @@
                             </view>
                             </view>
                             <view class="content">
                             <view class="content">
                                 <view class="name textOver">{{item.student_id_name||'学员姓名'}}</view>
                                 <view class="name textOver">{{item.student_id_name||'学员姓名'}}</view>
-                                <view class="other">课程名称:<text>{{item.lesson_id||'一级'}}</text></view>
-                                <view class="other">联系电话:{{item.student_id_phone||'暂无'}}
-                                </view>
+                                <view class="other">课程名称:<text>{{item.lesson_id_title||'一级'}}</text></view>
+                                <view class="other">已付金额:<text>{{item.money||'0.00'}}元</text></view>
                             </view>
                             </view>
                         </view>
                         </view>
                         <view class="btn">
                         <view class="btn">