Commit db46e2a1 authored by 罗超's avatar 罗超

1

parent 985f4c6b
...@@ -256,11 +256,10 @@ export default { ...@@ -256,11 +256,10 @@ export default {
}; };
}, },
onLoad(options) { onLoad(options) {
let { proxy } = getCurrentInstance(); this.msg.StartTime = getToday();
proxy.msg.StartTime = getToday(); this.msg.EndTime = getToday();
proxy.msg.EndTime = getToday(); this.msg.ClassId = JSON.parse(options.classId);
proxy.msg.ClassId = JSON.parse(options.classId); this.getData();
proxy.getData();
}, },
}; };
</script> </script>
......
...@@ -28,8 +28,13 @@ ...@@ -28,8 +28,13 @@
<view v-for="(item, index) in peaperDetail.Paper.GroupList" :key="index"> <view v-for="(item, index) in peaperDetail.Paper.GroupList" :key="index">
<i <i
class="iconfont icon-caidanzu answerSheet" class="iconfont icon-caidanzu answerSheet"
style="position: absolute; right: 15px; z-index: 999;margin-top:13px;" style="
:style="{'top':statusBarHeight+65}" position: absolute;
right: 15px;
z-index: 999;
margin-top: 13px;
"
:style="{ top: statusBarHeight + 65 }"
@click="showAnswerSheet" @click="showAnswerSheet"
></i> ></i>
<!-- 数字单选题 --> <!-- 数字单选题 -->
...@@ -354,13 +359,11 @@ export default { ...@@ -354,13 +359,11 @@ export default {
Answer, Answer,
}, },
setup(props, context) { setup(props, context) {
let Gid = uni.getStorageSync("userInfo").Id;
let { refs } = getCurrentInstance(); let { refs } = getCurrentInstance();
let data = reactive({ let data = reactive({
time: 999, time: 999,
statusBarHeight: 0, statusBarHeight: 0,
// msg: { GuestId: 64, PaperId: 34, PublishId: 9 }, msg: { GuestId: 0, PaperId: 0, PublishId: 0 },
msg: { GuestId: Gid, PaperId: 0, PublishId: 0 },
peaperDetail: {}, peaperDetail: {},
changeIndex: 0, //大题序号 changeIndex: 0, //大题序号
isLast: false, //用于判断是否从后往前翻 isLast: false, //用于判断是否从后往前翻
...@@ -446,6 +449,7 @@ export default { ...@@ -446,6 +449,7 @@ export default {
this.msg.PublishId = options.Id; this.msg.PublishId = options.Id;
} }
if (options.Exam_Student_Id) { if (options.Exam_Student_Id) {
this.msg.GuestId = options.Exam_Student_Id;
this.Exam_Student_Id = options.Exam_Student_Id; this.Exam_Student_Id = options.Exam_Student_Id;
} }
this.getPaperDetail(); this.getPaperDetail();
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
/>服务人员</view />服务人员</view
> >
<view class="info2 one_line"> <view class="info2 one_line">
<text style="margin-right: 10rpx">销售</text <text style="margin-right: 10rpx">课程顾问</text
>{{ userinfo.EnterPhone2 }}</view >{{ userinfo.EnterPhone2 }}</view
> >
</view> </view>
...@@ -325,7 +325,7 @@ export default { ...@@ -325,7 +325,7 @@ export default {
} }
.saleInfo { .saleInfo {
width: 200rpx; /* width: 200rpx; */
height: 66rpx; height: 66rpx;
background-color: #00acf9; background-color: #00acf9;
border-radius: 33rpx 0rpx 0rpx 33rpx; border-radius: 33rpx 0rpx 0rpx 33rpx;
...@@ -335,12 +335,13 @@ export default { ...@@ -335,12 +335,13 @@ export default {
right: -30rpx; right: -30rpx;
z-index: 10; z-index: 10;
box-sizing: border-box; box-sizing: border-box;
padding-left: 20rpx; padding: 0 20rpx;
font-family: PingFang SC; font-family: PingFang SC;
color: #ffffff; color: #ffffff;
} }
.saleInfo .info1 { .saleInfo .info1 {
text-align: center;
font-size: 22rpx; font-size: 22rpx;
font-weight: bold; font-weight: bold;
} }
......
let host = 'http://192.168.20.17:8017/api' let host = 'http://192.168.20.17:8017/api'
if (process.env.NODE_ENV === "development") { if (process.env.NODE_ENV === "development") {
// host = 'http://192.168.20.17:8017/api' host = 'http://192.168.20.17:8017/api'
host = 'http://192.168.20.24:8300/api' // host = 'http://192.168.20.24:8300/api'
} else { } else {
host = 'https://eduapi.oytour.com/api' host = 'https://eduapi.oytour.com/api'
} }
...@@ -24,13 +24,21 @@ let request = (param) => { ...@@ -24,13 +24,21 @@ let request = (param) => {
if (res.data.Code === 1) { if (res.data.Code === 1) {
resolve(res.data) resolve(res.data)
} else { } else {
Toast.fail(res.data.Message) Toast({
type: 'fail',
message: res.data.Message,
onClose: () => {
if (res.data.Code === 10001) {
uni.navigateTo({
url: '/pages/login/login'
});
}
},
});
} }
}, },
fail: (err) => { fail: (err) => {
// reject(err)
console.warn("fail:" + JSON.stringify(err)); console.warn("fail:" + JSON.stringify(err));
// Toast.fail("网络请求失败")
uni.showToast({ uni.showToast({
title: '网络请求失败', title: '网络请求失败',
duration: 2000, duration: 2000,
......
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