8.28 修改事件详情相关概念模块样式,增加股票详情信息来源展示
This commit is contained in:
@@ -116,13 +116,13 @@ const _sfc_main = {
|
||||
});
|
||||
return;
|
||||
}
|
||||
let arr2 = [];
|
||||
let arr = [];
|
||||
for (let item of this.preferredMarketList) {
|
||||
if (item.select) {
|
||||
arr2.push(item.title);
|
||||
arr.push(item.title);
|
||||
}
|
||||
}
|
||||
if (arr2.length == 0) {
|
||||
if (arr.length == 0) {
|
||||
common_vendor.index.showToast({
|
||||
title: "请选择偏好市场",
|
||||
icon: "none"
|
||||
@@ -142,6 +142,12 @@ const _sfc_main = {
|
||||
* 更新投资偏好设置
|
||||
*/
|
||||
uploadInvestPreferenceData() {
|
||||
let arr = [];
|
||||
for (let item of this.preferredMarketList) {
|
||||
if (item.select) {
|
||||
arr.push(item.title);
|
||||
}
|
||||
}
|
||||
let param = {
|
||||
trading_experience: this.selectYearIndex,
|
||||
investment_style: this.investPreferenceList[this.selectInvestIndex],
|
||||
@@ -162,6 +168,7 @@ const _sfc_main = {
|
||||
getUserInfoData() {
|
||||
request_api.userInfo().then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.avatarUrl = res.data.basic_info.avatar_url;
|
||||
let data = res.data.investment_preferences;
|
||||
for (var i = 0; i < this.investPreferenceList.length; i++) {
|
||||
let item = this.investPreferenceList[i];
|
||||
@@ -186,8 +193,8 @@ const _sfc_main = {
|
||||
}
|
||||
}
|
||||
for (let item of this.preferredMarketList) {
|
||||
let arr2 = JSON.parse(data.preferred_markets);
|
||||
let arr1 = arr2[0].split(",");
|
||||
let arr = JSON.parse(data.preferred_markets);
|
||||
let arr1 = arr[0].split(",");
|
||||
if (arr1.indexOf(item.title) > -1) {
|
||||
item.select = true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user