Commit db46e2a1 authored by 罗超's avatar 罗超

1

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