作者 杨乐
1 个管道 的构建 通过 耗费 4 秒

提交

... ... @@ -3,6 +3,17 @@ var newId = ''
var userId = ''
var recommendTwoId = ''
var recommendThreeId = ''
var header = {
"Content-Type": "application/x-www-form-urlencoded",
"token": localStorage.getItem('token'),
}
var params = {
id: newId
}
var header1 = {
"Content-Type": "application/json",
"token": localStorage.getItem('token'),
}
$(document).ready(function() {
var url = window.location.search;
// console.log(url);
... ... @@ -229,8 +240,7 @@ $('#title-content').on('click', '.leftClick', function(e) {
let indexs = $(this).index();
$('.divClass').eq(indexs).css('display', 'block').siblings().css('display', 'none')
// $(this).next().siblings().css("color", "#66CA94")
// 调用公共ajax
// 调用公共ajax
ajax(url, "GET", header, params, function(res) {
console.log(res);
for (let i in res.data) {
... ... @@ -368,10 +378,7 @@ function getValue() {
console.log(arr);
var url2 = "/recommend/userAnswerAdd"; // 接口
var url3 = "/recommend/recommendFiveLists";
var header1 = {
"Content-Type": "application/json",
"token": localStorage.getItem('token'),
}
var params1 = JSON.stringify({
answer: arr,
answer1: 0,
... ...
... ... @@ -93,7 +93,7 @@
</div>
<div style="padding-right: 3%;">
<p style="font-family: Helvetica;">邮箱</p>
<input id="emailAddress" style="border: none;padding-right: 51%;font-family: PingFangSC;border-bottom: 1px solid #969696;padding-left: 0;" placeholder="E.g. student001@start-line.com">
<input id="emailAddress" type="text" style="border: none;padding-right: 51%;font-family: PingFangSC;border-bottom: 1px solid #969696;padding-left: 0;" placeholder="E.g. student001@start-line.com">
</div>
</div>
<div class="btnSave" style="display: flex;place-items: center;margin: 10% 10% 2%;justify-content: flex-end;">
... ...