|
@@ -194,6 +194,7 @@ export default defineComponent({
|
|
|
gradeAndClassIndex: [] as any,
|
|
|
submitLoading: false,
|
|
|
id: null as any,
|
|
|
+ code: null as any,
|
|
|
})
|
|
|
|
|
|
onMounted(async () => {
|
|
@@ -260,7 +261,7 @@ export default defineComponent({
|
|
|
// 判断是否获取微信code码
|
|
|
if (!forms.openId) return;
|
|
|
const { data } = await request.get(
|
|
|
- '/edu-oauth/open/schoolMeetingQuestion/detail?openId=' + forms.openId
|
|
|
+ '/edu-app/open/schoolMeetingQuestion/detail?openId=' + forms.openId
|
|
|
);
|
|
|
// console.log(12222,data)
|
|
|
forms.provinceCode = data.provinceCode
|
|
@@ -277,6 +278,7 @@ export default defineComponent({
|
|
|
forms.participationFlag = data.participationFlag
|
|
|
forms.areaName = data.provinceName + ' ' + data.cityName + ' ' + data.districtName
|
|
|
const gradeIdx = gradeList.find(item => item.text === data.currentGrade)?.value || 1
|
|
|
+ // @ts-ignore
|
|
|
const classIdx = classList.find(item => item.text === data.currentClass)?.value || 1
|
|
|
forms.gradeAndClassIndex = [gradeIdx, classIdx]
|
|
|
getSchoolAreaList()
|
|
@@ -362,7 +364,7 @@ export default defineComponent({
|
|
|
params.phone = phone
|
|
|
params.smsCode = smsCode
|
|
|
}
|
|
|
- const res = await request.post('/edu-oauth/open/schoolMeetingQuestion/save', {
|
|
|
+ const res = await request.post('/edu-app/open/schoolMeetingQuestion/save', {
|
|
|
data: params
|
|
|
});
|
|
|
if (res.code === 200) {
|