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

页面修改

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