1.4 修改概念中心日期默认传值

This commit is contained in:
尚政杰
2026-01-04 18:13:05 +08:00
parent 091c1372fd
commit 260fc7bebf
107 changed files with 480 additions and 256 deletions

View File

@@ -135,7 +135,6 @@ const _sfc_main = {
this.selectStartMonth = startYear + "年" + startMonth + "月";
this.startDateStr = this.selectStartDateStr = startYear + "-" + (startMonth > 9 ? startMonth : "0" + startMonth) + "-" + (startDay > 9 ? startDay : "0" + startDay);
this.generateMonthDateListData();
this.getConceptCenterData();
this.getNewestPriceDateData();
this.getRankListData();
this.getMemberStatusData();
@@ -300,7 +299,7 @@ const _sfc_main = {
return;
}
this.startDateStr = this.selectStartDateStr;
this.endDateStr = this.endDateStr;
this.endDateStr = this.selectEndDateStr;
this.getRankListData();
},
/**
@@ -499,7 +498,13 @@ const _sfc_main = {
* 获取概念中心数据
*/
getConceptCenterData() {
let param = { query: this.keywords, size: 10, page: this.page, sort_by: this.sortType, isJson: 1, trade_date: this.selectDateStr };
let dateStr = this.selectDateStr;
let selectDateTimestamp = new Date(this.selectDateStr).getTime();
let newestTimeStamp = new Date(this.newestPriceDate).getTime();
if (selectDateTimestamp > newestTimeStamp) {
dateStr = this.newestPriceDate;
}
let param = { query: this.keywords, size: 10, page: this.page, sort_by: this.sortType, isJson: 1, trade_date: dateStr };
request_api.eventRelatedConcept(param).then((res) => {
this.isRefreshing = false;
if (res.page == 1) {
@@ -520,6 +525,7 @@ const _sfc_main = {
getNewestPriceDateData() {
request_api.newestPriceDate().then((res) => {
this.newestPriceDate = res.latest_trade_date;
this.getConceptCenterData();
}).catch((error) => {
});
},
@@ -647,7 +653,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
w: common_vendor.o(($event) => $options.loadMoreData()),
x: common_assets._imports_11$1,
y: common_vendor.o(($event) => $options.clickRankClose()),
z: common_assets._imports_8,
z: common_assets._imports_8$1,
A: common_vendor.t($data.startDateStr),
B: common_vendor.t($data.endDateStr),
C: common_vendor.f($data.cycleList, (item, index, i0) => {
@@ -684,11 +690,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: index == 0
}, index == 0 ? {
b: common_assets._imports_9$1
b: common_assets._imports_9
} : {}, {
c: index == 1
}, index == 1 ? {
d: common_assets._imports_10$2
d: common_assets._imports_10$1
} : {}, {
e: index == 2
}, index == 2 ? {
@@ -710,10 +716,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
} : {}) : common_vendor.e({
n: $data.selectTab == 0 || $data.selectTab == 1
}, $data.selectTab == 0 || $data.selectTab == 1 ? {
o: common_assets._imports_12$1,
o: common_assets._imports_12$2,
p: common_vendor.t(item.news_count)
} : {}, {
q: common_assets._imports_13$1,
q: common_assets._imports_13$2,
r: common_vendor.t(item.news_count),
s: $data.selectTab == 2
}, $data.selectTab == 2 ? {
@@ -746,7 +752,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
type: "bottom",
safeArea: false
}),
V: common_assets._imports_13,
V: common_assets._imports_13$1,
W: common_vendor.f($data.sortTypeList, (item, index, i0) => {
return {
a: item.icon,

View File

@@ -41,8 +41,8 @@ const _sfc_main = {
let currentDay = currentDate.getDate();
this.selectMonthIndex = 20 * 12 + currentMonth - 1;
this.selectMonth = currentYear + "年" + currentMonth + "月";
this.startDateStr = currentYear + "-" + currentMonth + "-01";
this.endDateStr = this.selectDateStr = currentYear + "-" + currentMonth + "-" + (currentDay > 9 ? currentDay : "0" + currentDay);
this.startDateStr = currentYear + "-" + (currentMonth > 9 ? currentMonth : "0" + currentMonth) + "-01";
this.endDateStr = this.selectDateStr = currentYear + "-" + (currentMonth > 9 ? currentMonth : "0" + currentMonth) + "-" + (currentDay > 9 ? currentDay : "0" + currentDay);
this.generateMonthDateListData();
if (e.id) {
this.conceptId = e.id;

View File

@@ -570,12 +570,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
D: common_vendor.o(($event) => $options.sendEventComment()),
E: $data.eventComment,
F: common_vendor.o(($event) => $data.eventComment = $event.detail.value),
G: common_assets._imports_3$1,
G: common_assets._imports_8$2,
H: common_vendor.t($data.eventDetails.view_count),
I: common_assets._imports_4,
I: common_assets._imports_9$1,
J: common_vendor.t($data.eventDetails.post_count),
K: common_vendor.o(($event) => $options.clickComment()),
L: common_assets._imports_10$1,
L: common_assets._imports_10$2,
M: common_vendor.t($data.eventDetails.follower_count),
N: common_vendor.o(($event) => $options.clickFollow())
} : {}, {
@@ -593,7 +593,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
h: index
};
}),
R: common_assets._imports_12$2,
R: common_assets._imports_12,
S: $data.isFocus,
T: common_vendor.o(($event) => $options.sendReplyComment()),
U: $data.replyComment,
@@ -602,7 +602,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
X: common_vendor.p({
type: "bottom"
}),
Y: common_assets._imports_13,
Y: common_assets._imports_13$1,
Z: common_vendor.s("margin-top:" + $data.scoreTop + "px;"),
aa: common_vendor.sr("expectScorePopup", "6e1a61f1-3"),
ab: common_vendor.p({

View File

@@ -25,10 +25,6 @@ const _sfc_main = {
{
icon: "/static/icon/home/eventLevel.png",
title: "事件等级"
},
{
icon: "/static/icon/home/sort.png",
title: "最新排序"
}
],
keywords: "",
@@ -273,7 +269,7 @@ const _sfc_main = {
*/
clickSortListItem(item) {
this.selectSortKey = item.key;
this.$refs["screenPopup"].close();
this.clickCancel();
this.clickSearch();
},
/**
@@ -289,6 +285,30 @@ const _sfc_main = {
clickCancel() {
this.$refs["screenPopup"].close();
},
/**
* 点击筛选弹窗重置
*/
clickReset() {
if (this.selectScreenCategory == 0) {
this.selectQuickTimeIndex = -1;
this.startDateStr = this.endDateStr = "";
} else if (this.selectScreenCategory == 1) {
this.industryKeywords = "";
this.searchResultList = [];
this.selectIndustryTopCategory = 0;
this.selectIndustrySecondCategory = 0;
this.selectIndustryThirdCategory = 0;
this.searchIndustryTopCategory = 0;
this.searchIndustrySecondCategory = 0;
this.searchIndustryThirdCategory = 0;
} else if (this.selectScreenCategory == 2) {
for (let item of this.importanceList) {
item.select = false;
}
}
this.clickCancel();
this.clickSearch();
},
/**
* 点击筛选弹窗确定
*/
@@ -597,21 +617,7 @@ const _sfc_main = {
request_api.filterOptions().then((res) => {
if (res.code == 200) {
resolve(1);
let timeList = [...res.data.sort_options];
this.timeCategoryList = timeList.splice(0, 2);
let sortList = [...res.data.sort_options];
for (let item of sortList) {
if (item.name == "最新") {
item.icon = "/static/icon/home/new.png";
}
if (item.name == "热门") {
item.icon = "/static/icon/home/hot.png";
}
if (item.name == "收益率") {
item.icon = "/static/icon/home/yield.png";
}
}
this.sortTypeList = res.data.sort_options.slice(0, 3);
this.timeCategoryList = res.data.sort_options;
this.importanceList = res.data.importance_options;
this.importanceList.unshift({ desc: "全部", key: "all", name: "全部" });
} else {
@@ -838,7 +844,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
i: common_vendor.f($data.timeCategoryList, (item, index, i0) => {
return {
a: common_vendor.t(item.name),
b: common_vendor.n("item " + ($data.selectTimeCategory == index ? "select" : "")),
b: common_vendor.n("item flex1 " + ($data.selectTimeCategory == index ? "select" : "")),
c: index,
d: common_vendor.o(($event) => $options.clickTimeCategoryItem(index), index)
};
@@ -878,23 +884,27 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
v: common_vendor.n("rateItem " + ($data.getRateUpOrDown(item.related_week_chg) ? "down" : "up")),
w: common_vendor.t($data.getLocaleTime(item.created_at)),
x: common_vendor.t(item.view_count),
y: common_vendor.t(item.post_count),
z: common_vendor.t(item.follower_count),
A: common_vendor.o(($event) => $options.clickFollowEvent(item.id), index),
B: common_vendor.o(($event) => $options.clickEventItem(item.id), index),
C: index
y: common_vendor.t(item.follower_count),
z: common_vendor.o(($event) => $options.clickFollowEvent(item.id), index),
A: common_vendor.t(item.post_count),
B: common_vendor.t(item.follower_count),
C: common_vendor.o(($event) => $options.clickFollowEvent(item.id), index),
D: common_vendor.o(($event) => $options.clickEventItem(item.id), index),
E: index
});
}),
l: common_assets._imports_3$1,
m: common_assets._imports_4,
n: common_assets._imports_10$1,
o: common_vendor.s("top:" + $data.listTop + "px"),
p: $data.isRefreshing,
q: common_vendor.o(($event) => $options.pullDownRefresh()),
r: common_vendor.o(($event) => $options.loadMoreData()),
s: common_assets._imports_2,
t: common_vendor.s("height:" + $data.menuH + "px;"),
v: common_vendor.f($data.screenCategoryList, (item, index, i0) => {
m: common_assets._imports_12,
n: common_assets._imports_4,
o: common_assets._imports_8,
p: common_vendor.s("top:" + $data.listTop + "px"),
q: $data.isRefreshing,
r: common_vendor.o(($event) => $options.pullDownRefresh()),
s: common_vendor.o(($event) => $options.loadMoreData()),
t: common_assets._imports_2,
v: common_vendor.s("height:" + $data.menuH + "px;"),
w: common_vendor.o(($event) => $options.clickCancel()),
x: common_vendor.f($data.screenCategoryList, (item, index, i0) => {
return common_vendor.e({
a: item.icon,
b: common_vendor.t(item.title),
@@ -905,10 +915,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
f: index
});
}),
w: common_assets._imports_3,
x: $data.selectScreenCategory == 0
y: common_assets._imports_3,
z: $data.selectScreenCategory == 0
}, $data.selectScreenCategory == 0 ? common_vendor.e({
y: common_vendor.f($data.quickTimeList, (item, index, i0) => {
A: common_vendor.f($data.quickTimeList, (item, index, i0) => {
return {
a: common_vendor.t(item.title),
b: common_vendor.n("item " + ($data.selectQuickTimeIndex == index ? "select" : "")),
@@ -916,65 +926,65 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
d: common_vendor.o(($event) => $options.clickQuickTimeItem(index, item), index)
};
}),
z: common_assets._imports_9,
A: $data.startDateStr
B: common_assets._imports_10,
C: $data.startDateStr
}, $data.startDateStr ? {
B: common_vendor.t($data.startDateStr)
D: common_vendor.t($data.startDateStr)
} : {}, {
C: common_assets._imports_9,
D: $data.endDateStr
E: common_assets._imports_10,
F: $data.endDateStr
}, $data.endDateStr ? {
E: common_vendor.t($data.endDateStr)
G: common_vendor.t($data.endDateStr)
} : {}, {
F: common_vendor.f($data.yearList, (item, index, i0) => {
H: common_vendor.f($data.yearList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: index
};
}),
G: common_vendor.f($data.monthList, (item, index, i0) => {
I: common_vendor.f($data.monthList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: index
};
}),
H: common_vendor.f($data.dayList, (item, index, i0) => {
J: common_vendor.f($data.dayList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: index
};
}),
I: $data.startDateValue,
J: common_vendor.o((...args) => $options.startDateChange && $options.startDateChange(...args)),
K: common_vendor.f($data.yearList, (item, index, i0) => {
K: $data.startDateValue,
L: common_vendor.o((...args) => $options.startDateChange && $options.startDateChange(...args)),
M: common_vendor.f($data.yearList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: index
};
}),
L: common_vendor.f($data.monthList, (item, index, i0) => {
N: common_vendor.f($data.monthList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: index
};
}),
M: common_vendor.f($data.dayList, (item, index, i0) => {
O: common_vendor.f($data.dayList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: index
};
}),
N: $data.endDateValue,
O: common_vendor.o((...args) => $options.endDateChange && $options.endDateChange(...args))
P: $data.endDateValue,
Q: common_vendor.o((...args) => $options.endDateChange && $options.endDateChange(...args))
}) : {}, {
P: $data.selectScreenCategory == 1
R: $data.selectScreenCategory == 1
}, $data.selectScreenCategory == 1 ? common_vendor.e({
Q: common_assets._imports_10,
R: common_vendor.o([($event) => $data.industryKeywords = $event.detail.value, (...args) => $options.industrySearch && $options.industrySearch(...args)]),
S: $data.industryKeywords,
T: $data.industryKeywords.length > 0
S: common_assets._imports_11,
T: common_vendor.o([($event) => $data.industryKeywords = $event.detail.value, (...args) => $options.industrySearch && $options.industrySearch(...args)]),
U: $data.industryKeywords,
V: $data.industryKeywords.length > 0
}, $data.industryKeywords.length > 0 ? common_vendor.e({
U: common_vendor.f($data.searchResultList, (item, index, i0) => {
W: common_vendor.f($data.searchResultList, (item, index, i0) => {
return {
a: common_vendor.t(item.level1_sector),
b: common_vendor.n("item relative " + ($data.searchIndustryTopCategory == index ? "select" : "")),
@@ -982,7 +992,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
d: common_vendor.o(($event) => $options.clickSearchIndustryTopCategoryItem(index, item), index)
};
}),
V: common_vendor.f($data.searchResultList[$data.searchIndustryTopCategory].level2_sectors, (item, index, i0) => {
X: common_vendor.f($data.searchResultList[$data.searchIndustryTopCategory].level2_sectors, (item, index, i0) => {
return {
a: common_vendor.t(item.level2_sector),
b: common_vendor.n("item relative " + ($data.searchIndustrySecondCategory == index ? "select" : "")),
@@ -990,14 +1000,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
d: common_vendor.o(($event) => $options.clickSearchIndustrySecondCategoryItem(index, item), index)
};
}),
W: $data.searchResultList[$data.searchIndustryTopCategory].level2_sectors.length > 0
Y: $data.searchResultList[$data.searchIndustryTopCategory].level2_sectors.length > 0
}, $data.searchResultList[$data.searchIndustryTopCategory].level2_sectors.length > 0 ? {
X: common_vendor.f($data.searchResultList[$data.searchIndustryTopCategory].level2_sectors[$data.searchIndustrySecondCategory].level3_sectors, (item, index, i0) => {
Z: common_vendor.f($data.searchResultList[$data.searchIndustryTopCategory].level2_sectors[$data.searchIndustrySecondCategory].level3_sectors, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.level3_sector),
b: $data.searchIndustryThirdCategory == index
}, $data.searchIndustryThirdCategory == index ? {
c: common_assets._imports_11
c: common_assets._imports_12$1
} : {}, {
d: common_vendor.n("item flex relative " + ($data.searchIndustryThirdCategory == index ? "select" : "")),
e: index,
@@ -1005,7 +1015,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
});
})
} : {}) : common_vendor.e({
Y: common_vendor.f($data.industryCategoryList, (item, index, i0) => {
aa: common_vendor.f($data.industryCategoryList, (item, index, i0) => {
return {
a: common_vendor.t(item.level1_sector),
b: common_vendor.n("item relative " + ($data.selectIndustryTopCategory == index ? "select" : "")),
@@ -1013,7 +1023,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
d: common_vendor.o(($event) => $options.clickIndustryTopCategoryItem(index), index)
};
}),
Z: common_vendor.f($data.industryCategoryList[$data.selectIndustryTopCategory].level2_sectors, (item, index, i0) => {
ab: common_vendor.f($data.industryCategoryList[$data.selectIndustryTopCategory].level2_sectors, (item, index, i0) => {
return {
a: common_vendor.t(item.level2_sector),
b: common_vendor.n("item relative " + ($data.selectIndustrySecondCategory == index ? "select" : "")),
@@ -1021,14 +1031,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
d: common_vendor.o(($event) => $options.clickIndustrySecondCategoryItem(index), index)
};
}),
aa: $data.industryCategoryList[$data.selectIndustryTopCategory].level2_sectors.length > 0
ac: $data.industryCategoryList[$data.selectIndustryTopCategory].level2_sectors.length > 0
}, $data.industryCategoryList[$data.selectIndustryTopCategory].level2_sectors.length > 0 ? {
ab: common_vendor.f($data.industryCategoryList[$data.selectIndustryTopCategory].level2_sectors[$data.selectIndustrySecondCategory].level3_sectors, (item, index, i0) => {
ad: common_vendor.f($data.industryCategoryList[$data.selectIndustryTopCategory].level2_sectors[$data.selectIndustrySecondCategory].level3_sectors, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.level3_sector),
b: $data.selectIndustryThirdCategory == index
}, $data.selectIndustryThirdCategory == index ? {
c: common_assets._imports_11
c: common_assets._imports_12$1
} : {}, {
d: common_vendor.n("item flex relative " + ($data.selectIndustryThirdCategory == index ? "select" : "")),
e: index,
@@ -1036,14 +1046,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
});
})
} : {})) : {}, {
ac: $data.selectScreenCategory == 2
ae: $data.selectScreenCategory == 2
}, $data.selectScreenCategory == 2 ? {
ad: common_vendor.f($data.importanceList, (item, index, i0) => {
af: common_vendor.f($data.importanceList, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.name),
b: item.select
}, item.select ? {
c: common_assets._imports_12
c: common_assets._imports_13
} : {}, {
d: common_vendor.n("item flex " + (item.select ? "select" : "")),
e: index,
@@ -1051,9 +1061,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
});
})
} : {}, {
ae: $data.selectScreenCategory == 3
ag: $data.selectScreenCategory == 3
}, $data.selectScreenCategory == 3 ? {
af: common_vendor.f($data.sortTypeList, (item, index, i0) => {
ah: common_vendor.f($data.sortTypeList, (item, index, i0) => {
return {
a: item.icon,
b: common_vendor.t(item.name),
@@ -1063,14 +1073,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
};
})
} : {}, {
ag: $data.selectScreenCategory != 3
ai: $data.selectScreenCategory != 3
}, $data.selectScreenCategory != 3 ? {
ah: common_vendor.o(($event) => $options.clickCancel()),
ai: common_vendor.o(($event) => $options.clickCertain())
aj: common_vendor.o(($event) => $options.clickReset()),
ak: common_vendor.o(($event) => $options.clickCertain())
} : {}, {
aj: common_vendor.s("padding-top:" + $data.menuTop + "px;"),
ak: common_vendor.sr("screenPopup", "9dfd58d8-1"),
al: common_vendor.p({
al: common_vendor.s("padding-top:" + $data.menuTop + "px;"),
am: common_vendor.sr("screenPopup", "9dfd58d8-1"),
an: common_vendor.p({
type: "top"
})
});

File diff suppressed because one or more lines are too long

View File

@@ -63,11 +63,10 @@ page {
margin-top: 10rpx;
}
.topC .timeCategoryC .item {
display: inline-block;
padding: 0 26rpx;
line-height: 60rpx;
font-size: 32rpx;
color: #CCCDD1;
text-align: center;
}
.topC .timeCategoryC .item.select {
font-weight: bold;

View File

@@ -47,7 +47,9 @@ const _sfc_main = {
loadAll: false,
getLocaleHourMinute: utils_util.getLocaleHourMinute,
replaceAnswerLabel: utils_util.replaceAnswerLabel,
accMul: utils_util.accMul
accMul: utils_util.accMul,
isData: false
//是否请求过数据了
};
},
onLoad() {
@@ -293,6 +295,7 @@ const _sfc_main = {
param.category = this.stockCategoryList[this.selectTopCategory].primary_sector;
}
request_api.calendarEventList(param).then((res) => {
this.isData = true;
this.isRefreshing = false;
if (res.code == 200) {
if (res.data.page == 1) {
@@ -309,6 +312,7 @@ const _sfc_main = {
});
}).catch((error) => {
this.isRefreshing = false;
this.isData = true;
});
},
/**
@@ -553,22 +557,26 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
};
})
} : {}, {
z: common_vendor.s("top:" + $data.contentTop + "px;"),
A: $data.isRefreshing,
B: common_vendor.o(($event) => $options.pullDownRefresh()),
C: common_vendor.o(($event) => $options.loadMoreData()),
D: common_assets._imports_4$1,
E: common_vendor.o(($event) => $options.clickPreMonth()),
F: common_vendor.t($data.selectMonth),
G: common_assets._imports_5,
H: common_vendor.o(($event) => $options.clickNextMonth()),
I: common_vendor.f($data.weekList, (item, index, i0) => {
z: $data.isData && ($data.selectTab == 0 && $data.eventList.length == 0 || $data.selectTab == 1 && $data.dataList.length == 0)
}, $data.isData && ($data.selectTab == 0 && $data.eventList.length == 0 || $data.selectTab == 1 && $data.dataList.length == 0) ? {
A: common_assets._imports_4$1
} : {}, {
B: common_vendor.s("top:" + $data.contentTop + "px;"),
C: $data.isRefreshing,
D: common_vendor.o(($event) => $options.pullDownRefresh()),
E: common_vendor.o(($event) => $options.loadMoreData()),
F: common_assets._imports_5,
G: common_vendor.o(($event) => $options.clickPreMonth()),
H: common_vendor.t($data.selectMonth),
I: common_assets._imports_6,
J: common_vendor.o(($event) => $options.clickNextMonth()),
K: common_vendor.f($data.weekList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: index
};
}),
J: common_vendor.f($data.calendarDateList[$data.selectMonthIndex], (item, index, i0) => {
L: common_vendor.f($data.calendarDateList[$data.selectMonthIndex], (item, index, i0) => {
return common_vendor.e({
a: item.isToday || item.date == $data.selectDate
}, item.isToday || item.date == $data.selectDate ? {
@@ -584,9 +592,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
g: common_vendor.o(($event) => $options.clickSelectDate(item), index)
});
}),
K: common_vendor.s("margin-top:" + $data.navH + "px;"),
L: common_vendor.sr("popup", "2cf1ca64-3"),
M: common_vendor.p({
M: common_vendor.s("margin-top:" + $data.navH + "px;"),
N: common_vendor.sr("popup", "2cf1ca64-3"),
O: common_vendor.p({
type: "top"
})
});

File diff suppressed because one or more lines are too long

View File

@@ -400,6 +400,24 @@ page {
font-weight: 500;
color: #666;
}
.noDataC {
margin-top: 200rpx;
font-weight: 500;
}
.noDataC .icon {
width: 412rpx;
height: auto;
}
.noDataC .title {
margin-top: 8rpx;
font-size: 32rpx;
color: #939393;
}
.noDataC .subtitle {
margin-top: 16rpx;
font-size: 26rpx;
color: #646464;
}
.popup {
background-color: white;
padding: 30rpx 0;

View File

@@ -153,7 +153,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
l: common_vendor.f($data.investDetails.related_stocks, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.code + " " + item.name),
b: common_vendor.t($data.accMul(item.score, 100)),
b: common_vendor.t(item.score),
c: item.sw_primary_sector
}, item.sw_primary_sector ? {
d: common_vendor.t(item.sw_primary_sector)

View File

@@ -33,7 +33,7 @@ const _sfc_main = {
* @param {Object} e
*/
chooseAvatar(e) {
common_vendor.index.__f__("log", "at pages/mine/basicInfo/basicInfo.vue:68", e);
common_vendor.index.__f__("log", "at pages/mine/basicInfo/basicInfo.vue:71", e);
this.avatar = e.detail.avatarUrl;
},
/**
@@ -41,7 +41,7 @@ const _sfc_main = {
* @param {Object} e
*/
sexChange(e) {
common_vendor.index.__f__("log", "at pages/mine/basicInfo/basicInfo.vue:77", e);
common_vendor.index.__f__("log", "at pages/mine/basicInfo/basicInfo.vue:80", e);
let value = e.detail.value;
this.sex = this.sexList[value];
},
@@ -50,7 +50,7 @@ const _sfc_main = {
* @param {Object} e
*/
getPhoneNumData(e) {
common_vendor.index.__f__("log", "at pages/mine/basicInfo/basicInfo.vue:87", e);
common_vendor.index.__f__("log", "at pages/mine/basicInfo/basicInfo.vue:90", e);
if (e.detail.errMsg == "getPhoneNumber:ok") {
let param = { code: e.detail.code };
request_api.wxBindPhone(param).then((res) => {
@@ -69,9 +69,9 @@ const _sfc_main = {
}
},
/**
* 点击下一步
* 点击完成或下一步
*/
clickNext() {
clickFinishOrNext(type) {
if (!this.avatar && !this.avatarUrl) {
common_vendor.index.showToast({
title: "请选择头像",
@@ -110,9 +110,12 @@ const _sfc_main = {
isFile: 1
};
request_api.updateBasicInfo(param).then((res) => {
common_vendor.index.navigateTo({
url: "/pages/mine/investPreference/investPreference"
});
if (type == 1) {
common_vendor.index.navigateTo({
url: "/pages/mine/investPreference/investPreference"
});
} else
common_vendor.index.navigateBack();
}).catch((error) => {
});
} else {
@@ -123,9 +126,12 @@ const _sfc_main = {
bio: this.profile
};
request_api.updateBasicInfo(param).then((res) => {
common_vendor.index.navigateTo({
url: "/pages/mine/investPreference/investPreference"
});
if (type == 1) {
common_vendor.index.navigateTo({
url: "/pages/mine/investPreference/investPreference"
});
} else
common_vendor.index.navigateBack();
}).catch((error) => {
});
}
@@ -180,7 +186,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
o: $data.profile,
p: common_vendor.o(($event) => $data.profile = $event.detail.value),
q: common_vendor.s("top:" + $data.contentTop + "px;"),
r: common_vendor.o(($event) => $options.clickNext())
r: common_vendor.o(($event) => $options.clickFinishOrNext(0)),
s: common_vendor.o(($event) => $options.clickFinishOrNext(1))
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);

View File

@@ -1 +1 @@
<view><nav-bar wx:if="{{a}}" u-i="8b6eb184-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="avatarC fixed" style="{{f}}"><image class="avatar" src="{{c}}" mode="aspectFill"></image><image class="icon absolute" src="{{d}}" mode="widthFix"></image><button class="absolute" open-type="chooseAvatar" bindchooseavatar="{{e}}"></button></view><view class="basicInfoC fixed" style="{{q}}"><view class="title">基本信息</view><view class="section">昵称</view><view class="inputC"><input type="nickname" value="{{g}}" bindinput="{{h}}"/></view><view class="section">手机号</view><view class="selectC flex relative">{{i}} <button class="absolute" open-type="getPhoneNumber" bindgetphonenumber="{{j}}"></button></view><view class="section">性别</view><picker mode="selector" range="{{m}}" bindchange="{{n}}"><view class="selectC flex"><view class="flex1">{{k}}</view><image class="arrow" src="{{l}}" mode="widthFix"></image></view></picker><view class="section">个人简介</view><view class="textareaC"><block wx:if="{{r0}}"><textarea placeholder="简单介绍一下自己吧" placeholder-style="color:#AAA" value="{{o}}" bindinput="{{p}}"></textarea></block></view></view><view class="next fixed" bindtap="{{r}}">下一步</view></view>
<view><nav-bar wx:if="{{a}}" u-i="8b6eb184-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="avatarC fixed" style="{{f}}"><image class="avatar" src="{{c}}" mode="aspectFill"></image><image class="icon absolute" src="{{d}}" mode="widthFix"></image><button class="absolute" open-type="chooseAvatar" bindchooseavatar="{{e}}"></button></view><view class="basicInfoC fixed" style="{{q}}"><view class="title">基本信息</view><view class="section">昵称</view><view class="inputC"><input type="nickname" value="{{g}}" bindinput="{{h}}"/></view><view class="section">手机号</view><view class="selectC flex relative">{{i}} <button class="absolute" open-type="getPhoneNumber" bindgetphonenumber="{{j}}"></button></view><view class="section">性别</view><picker mode="selector" range="{{m}}" bindchange="{{n}}"><view class="selectC flex"><view class="flex1">{{k}}</view><image class="arrow" src="{{l}}" mode="widthFix"></image></view></picker><view class="section">个人简介</view><view class="textareaC"><block wx:if="{{r0}}"><textarea placeholder="简单介绍一下自己吧" placeholder-style="color:#AAA" value="{{o}}" bindinput="{{p}}"></textarea></block></view></view><view class="bottomC fixed flex"><view class="finish btn" bindtap="{{r}}">完成</view><view class="next btn flex1" bindtap="{{s}}">下一步</view></view></view>

View File

@@ -95,16 +95,25 @@
font-weight: 500;
color: #555;
}
.next {
background-color: #F97316;
.bottomC {
left: 0;
right: 0;
bottom: 73rpx;
margin: 0 25rpx;
}
.bottomC .btn {
line-height: 80rpx;
border-radius: 20rpx;
font-size: 26rpx;
font-weight: 500;
color: white;
text-align: center;
}
.bottomC .finish {
background-color: #FFE9D9;
width: 226rpx;
color: #F97316;
}
.bottomC .next {
background-color: #F97316;
margin-left: 20rpx;
color: white;
}