Commit 2e197983 authored by 黄奎's avatar 黄奎

页面修改

parent 3b33688e
......@@ -8,7 +8,7 @@
</view>
<view class="index-header-tetx">
<view class="index-header-title">
welcome
welcome {{userData}}
</view>
<view class="index-header-name">周一围</view>
</view>
......@@ -50,9 +50,6 @@
provide,
nextTick,
} from "vue";
// import {
// getActivityList
// } from "../../api/activity";
import {
getSweepCode
......@@ -101,10 +98,7 @@
});
let methods = {
goTongji() {
//console.log("SurveyObj",data.SurveyObj);
this.jumpPage('/pages/study/questionNaire?ActivitySurveyId='+data.SurveyObj.ActivitySurveyId+"&ActivitySurveyGuestId="+data.SurveyObj.ActivitySurveyGuestId);
},
jumpPage(url) {
uni.navigateTo({
url: url,
......@@ -211,7 +205,7 @@
// }
},
getIndexData() {
proxy.$request("/AppletIndex/GetIndexInfo_V2", {}).then(res => {
proxy.$request("/Stu/GetStuCourse", {}).then(res => {
data.pageData = res.Data
uni.setStorageSync("indexData", res.Data);
data.SurveyObj.ActivitySurveyId=res.Data.ActivitySurveyId;
......
......@@ -63,8 +63,8 @@
} = getCurrentInstance();
let Toast = inject("$toast");
let msg = reactive({
Account: "",
Password: "",
Account: "13880093563",
Password: "093563",
});
let data = reactive({
phoneNum: "",
......@@ -100,7 +100,7 @@
Toast.fail("请输入密码");
return;
}
let res = await this.$request('/AppletLogin/Login', msg).then(res=>{
let res = await this.$request('/Login/Login', msg).then(res=>{
if(res.Code==1){
res.Data.Account = msg.Account;
uni.setStorageSync("userInfo", res.Data);
......
//请求教育接口
let host = ''
if (process.env.NODE_ENV === "development") {
host = 'http://192.168.10.46:8300/api'
host = 'http://192.168.10.46:8900/api'
// host = 'http://192.168.10.65:8085/api'
// host = 'https://eduapi.oytour.com/api'
} else {
host = 'https://eduapi.oytour.com/api'
}
......@@ -16,10 +15,10 @@ let request = (param) => {
method: param.method || "Post",
header: param.header || {
'content-type': "application/json",
'token': token || ""
'Authorization': token || ""
},
data: {
msg: param.data,
Msg: param.data,
},
success: res => {
if (res.data.Code === 1) {
......
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