...
|
...
|
@@ -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,
|
...
|
...
|
|