1.28 更换echarts文件

This commit is contained in:
尚政杰
2026-01-28 14:43:26 +08:00
parent 3c6e5392cc
commit da90511b86
421 changed files with 45838 additions and 570 deletions

View File

@@ -0,0 +1,186 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const request_api = require("../../../request/api.js");
require("../../../request/http.js");
const common_assets = require("../../../common/assets.js");
const _sfc_main = {
data() {
return {
avatarTop: "",
contentTop: "",
avatar: "",
//选择头像临时地址
avatarUrl: "",
//已上传的链接
nickname: "",
//昵称
mobile: "",
//手机号
sexList: ["男", "女"],
sex: "",
profile: ""
//个人简介
};
},
onLoad() {
this.avatarTop = common_vendor.inject("navHeight") + 60 / 750 * common_vendor.inject("windowWidth");
this.contentTop = this.avatarTop + 75 / 750 * common_vendor.inject("windowWidth");
this.getUserInfoData();
},
methods: {
/**
* 点击选择头像
* @param {Object} e
*/
chooseAvatar(e) {
common_vendor.index.__f__("log", "at pages/mine/basicInfo/basicInfo.vue:71", e);
this.avatar = e.detail.avatarUrl;
},
/**
* 点击选择性别
* @param {Object} e
*/
sexChange(e) {
common_vendor.index.__f__("log", "at pages/mine/basicInfo/basicInfo.vue:80", e);
let value = e.detail.value;
this.sex = this.sexList[value];
},
/**
* 获取手机号
* @param {Object} e
*/
getPhoneNumData(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) => {
if (res.code == 200) {
common_vendor.index.showToast({
title: res.message
});
this.mobile = res.data.phone;
} else
common_vendor.index.showToast({
title: res.message,
icon: "none"
});
}).catch((error) => {
});
}
},
/**
* 点击完成或下一步
*/
clickFinishOrNext(type) {
if (!this.avatar && !this.avatarUrl) {
common_vendor.index.showToast({
title: "请选择头像",
icon: "none"
});
return;
}
if (!this.nickname) {
common_vendor.index.showToast({
title: "请输入昵称",
icon: "none"
});
return;
}
if (!this.sex) {
common_vendor.index.showToast({
title: "请选择性别",
icon: "none"
});
return;
}
if (this.avatar) {
let param = {
avatar: this.avatar,
nickname: this.nickname,
gender: this.sex == "男" ? "male" : "female",
phone: this.mobile,
bio: this.profile,
isFile: 1
};
request_api.updateBasicInfo(param).then((res) => {
if (type == 1) {
common_vendor.index.navigateTo({
url: "/pages/mine/investPreference/investPreference"
});
} else
common_vendor.index.navigateBack();
}).catch((error) => {
});
} else {
let param = {
nickname: this.nickname,
gender: this.sex == "男" ? "male" : "female",
phone: this.mobile,
bio: this.profile
};
request_api.updateBasicInfo(param).then((res) => {
if (type == 1) {
common_vendor.index.navigateTo({
url: "/pages/mine/investPreference/investPreference"
});
} else
common_vendor.index.navigateBack();
}).catch((error) => {
});
}
},
/**
* 获取用户信息数据
*/
getUserInfoData() {
request_api.userInfo().then((res) => {
if (res.code == 200) {
this.avatarUrl = res.data.basic_info.avatar_url;
this.nickname = res.data.basic_info.nickname;
this.mobile = res.data.basic_info.phone;
this.sex = res.data.basic_info.gender == "male" ? "男" : "女";
this.profile = res.data.basic_info.bio;
} else
common_vendor.wx$1.showToast({
title: res.message,
icon: "none"
});
}).catch((error) => {
});
}
}
};
if (!Array) {
const _easycom_navBar2 = common_vendor.resolveComponent("navBar");
_easycom_navBar2();
}
const _easycom_navBar = () => "../../../components/navBar/navBar.js";
if (!Math) {
_easycom_navBar();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.p({
leftText: "信息完善"
}),
b: common_assets._imports_0,
c: $data.avatar ? $data.avatar : $data.avatarUrl,
d: common_assets._imports_1$5,
e: common_vendor.o((...args) => $options.chooseAvatar && $options.chooseAvatar(...args)),
f: common_vendor.s("top:" + $data.avatarTop + "px;"),
g: $data.nickname,
h: common_vendor.o(($event) => $data.nickname = $event.detail.value),
i: common_vendor.t($data.mobile),
j: common_vendor.o((...args) => $options.getPhoneNumData && $options.getPhoneNumData(...args)),
k: common_vendor.t($data.sex),
l: common_assets._imports_2$5,
m: $data.sexList,
n: common_vendor.o((...args) => $options.sexChange && $options.sexChange(...args)),
o: common_vendor.s("top:" + $data.contentTop + "px;"),
p: common_vendor.o(($event) => $options.clickFinishOrNext(0)),
q: common_vendor.o(($event) => $options.clickFinishOrNext(1))
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/mine/basicInfo/basicInfo.js.map

View File

@@ -0,0 +1,6 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"nav-bar": "../../../components/navBar/navBar"
}
}

View File

@@ -0,0 +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="{{o}}"><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><view class="bottomC fixed flex"><view class="finish btn" bindtap="{{p}}">完成</view><view class="next btn flex1" bindtap="{{q}}">下一步</view></view></view>

View File

@@ -0,0 +1,119 @@
.topBg {
top: 0;
left: 0;
width: 100%;
height: auto;
}
.avatarC {
left: 0;
margin-left: calc((100% - 150rpx)/2);
width: 150rpx;
z-index: 10;
}
.avatarC .avatar {
width: 100%;
height: 150rpx;
border-radius: 50%;
border: solid 2rpx white;
}
.avatarC .icon {
right: 20rpx;
bottom: 0;
width: 40rpx;
height: auto;
}
.avatarC button {
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.basicInfoC {
background-color: white;
left: 0;
right: 0;
bottom: calc(73rpx + 17rpx + 80rpx);
border-radius: 20rpx 20rpx 0 0;
overflow-y: scroll;
}
.basicInfoC .title {
margin: 150rpx 0 0 60rpx;
font-size: 36rpx;
font-weight: bold;
}
.basicInfoC .section {
margin: 0 60rpx;
line-height: 66rpx;
font-size: 26rpx;
font-weight: bold;
}
.basicInfoC .inputC {
background-color: #FBFBFD;
margin: 0 60rpx;
padding: 0 28rpx;
height: 78rpx;
border: solid 2rpx #EFEFF2;
border-radius: 10rpx;
}
.basicInfoC .inputC input {
height: 100%;
font-size: 24rpx;
font-weight: 500;
color: #555;
}
.basicInfoC .selectC {
background-color: #FBFBFD;
margin: 0 60rpx;
padding: 0 25rpx 0 28rpx;
height: 78rpx;
border: solid 2rpx #EFEFF2;
border-radius: 10rpx;
font-size: 24rpx;
font-weight: 500;
color: #555;
}
.basicInfoC .selectC .arrow {
width: 16rpx;
height: auto;
}
.basicInfoC .selectC button {
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.basicInfoC .textareaC {
background-color: #FBFBFD;
margin: 0 60rpx;
padding: 20rpx 0 0 28rpx;
border: solid 2rpx #EFEFF2;
border-radius: 2rpx;
}
.basicInfoC .textareaC textarea {
height: 200rpx;
font-size: 24rpx;
font-weight: 500;
color: #555;
}
.bottomC {
left: 0;
right: 0;
bottom: 73rpx;
margin: 0 25rpx;
}
.bottomC .btn {
line-height: 80rpx;
border-radius: 20rpx;
font-size: 26rpx;
text-align: center;
}
.bottomC .finish {
background-color: #FFE9D9;
width: 226rpx;
color: #F97316;
}
.bottomC .next {
background-color: #F97316;
margin-left: 20rpx;
color: white;
}

View File

@@ -0,0 +1,131 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const request_api = require("../../../request/api.js");
const utils_util = require("../../../utils/util.js");
const common_assets = require("../../../common/assets.js");
const _sfc_main = {
data() {
return {
navH: common_vendor.inject("navHeight"),
listTop: "",
tabList: ["评论我的", "我评论的"],
selectTab: 0,
commentList: [],
page: 1,
loadAll: false,
getLocaleMonthDayHourMinte: utils_util.getLocaleMonthDayHourMinte
};
},
onLoad() {
this.listTop = this.navH + (75 + 10) / 750 * common_vendor.inject("windowWidth");
this.getCommentListData();
},
onPullDownRefresh() {
this.page = 1;
this.getCommentListData();
},
onReachBottom() {
if (!this.loadAll) {
this.page++;
this.getCommentListData();
}
},
methods: {
/**
* 点击选择对应分类
* @param {Object} index
*/
clickTabItem(index) {
if (this.selectTab != index) {
this.selectTab = index;
this.getCommentListData();
}
},
/**
* 点击查看事件详情
* @param {Object} id
*/
clickEventItem(id) {
common_vendor.index.navigateTo({
url: "/pages/index/eventDetails/eventDetails?id=" + id
});
},
/**
* 获取评论列表数据
*/
getCommentListData() {
let param = { page: this.page, type: this.selectTab == 0 ? "commented" : "comments" };
request_api.userActivityList(param).then((res) => {
if (res.code == 200) {
if (res.data.current_page == 1) {
this.commentList = res.data.activities;
} else
this.commentList = this.followList.concat(res.data.activities);
if (res.data.current_page == res.data.pages) {
this.loadAll = true;
}
} else
common_vendor.index.showToast({
title: res.message,
icon: "none"
});
}).catch((error) => {
});
}
}
};
if (!Array) {
const _easycom_navBar2 = common_vendor.resolveComponent("navBar");
_easycom_navBar2();
}
const _easycom_navBar = () => "../../../components/navBar/navBar.js";
if (!Math) {
_easycom_navBar();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.p({
leftText: "评论回复"
}),
b: common_assets._imports_0,
c: common_vendor.f($data.tabList, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item),
b: $data.selectTab == index
}, $data.selectTab == index ? {} : {}, {
c: common_vendor.n("item flex1 relative " + ($data.selectTab == index ? "select" : "")),
d: index,
e: common_vendor.o(($event) => $options.clickTabItem(index), index)
});
}),
d: common_vendor.s("top:" + $data.navH + "px;"),
e: $data.selectTab == 0
}, $data.selectTab == 0 ? {
f: common_vendor.f($data.commentList, (item, index, i0) => {
return {
a: common_vendor.t(item.event.importance),
b: common_vendor.t(item.event.title),
c: index
};
})
} : {
g: common_vendor.f($data.commentList, (item, index, i0) => {
return {
a: item.commenter.avatar_url,
b: common_vendor.t(item.commenter.nickname),
c: common_vendor.t($data.getLocaleMonthDayHourMinte(item.created_at)),
d: common_vendor.t(item.content),
e: common_vendor.t(item.event.importance),
f: common_vendor.t(item.event.title),
g: common_vendor.t(item.event.description),
h: common_vendor.o(($event) => $options.clickEventItem(item.event.id), index),
i: index
};
})
}, {
h: common_vendor.s("top:" + $data.listTop + "px;")
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/mine/commentReply/commentReply.js.map

View File

@@ -0,0 +1,6 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"nav-bar": "../../../components/navBar/navBar"
}
}

View File

@@ -0,0 +1 @@
<view><nav-bar wx:if="{{a}}" u-i="dc49bf38-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="tabC fixed flex" style="{{d}}"><view wx:for="{{c}}" wx:for-item="item" wx:key="d" class="{{item.c}}" bindtap="{{item.e}}">{{item.a}} <view wx:if="{{item.b}}" class="line absolute"></view></view></view><view class="list fixed" style="{{h}}"><block wx:if="{{e}}"><view wx:for="{{f}}" wx:for-item="item" wx:key="c" class="commentMeItem"><view class="replyContentC"><view class="flex"><view class="flex1 flex"><image class="avatar" src="{{''}}" mode="aspectFill"></image><view class="flex1"><view class="replyNickname">逸尘破晓</view><view class="time">2-15 15:37</view></view></view><view class="reply">回复</view></view><view class="content"> 回复<text class="originNickname">永不落的梦想</text><text>:四部门联合启动的人力资源服务业与制造业融合发展点。</text></view></view><view class="originalTextC"><view class="originReply"><text class="originNickname">永不落的梦想</text><text>:四部门联合启动的人力资源服务业与制造业融合发展点。</text></view><view class="originEventC"><view class="levelTitleC flex"><view class="level">{{item.a}}</view><view class="title">{{item.b}}</view></view><view class="eventContent">人社部、工信部等四部门印发通知明确在30个城市开展3年期试点培育人力资源服务与制造业协同机构...</view></view></view></view></block><block wx:else><view wx:for="{{g}}" wx:for-item="item" wx:key="i" class="myCommentItem"><view class="replyContentC"><view class="flex"><image class="avatar" src="{{item.a}}" mode="aspectFill"></image><view class="flex1"><view class="nickname">{{item.b}}</view><view class="time">{{item.c}}</view></view></view><view class="content">{{item.d}}</view></view><view class="originEventC" catchtap="{{item.h}}"><view class="levelTitleC flex"><view class="level">{{item.e}}</view><view class="title">{{item.f}}</view></view><view class="eventContent">{{item.g}}</view></view></view></block></view></view>

View File

@@ -0,0 +1,172 @@
.topBg {
top: 0;
left: 0;
width: 100%;
height: auto;
}
.tabC {
background-color: white;
left: 0;
right: 0;
margin-top: 10rpx;
border-bottom: solid 1rpx #E4E4E4;
border-radius: 20rpx 20rpx 0 0;
}
.tabC .item {
line-height: 74rpx;
font-size: 28rpx;
font-weight: 500;
color: #42485B;
text-align: center;
}
.tabC .item.select {
font-weight: bold;
color: #F97316;
}
.tabC .item.select .line {
background-color: #F97316;
left: calc((100% - 50rpx)/2);
width: 50rpx;
height: 2rpx;
bottom: 0;
}
.list {
background-color: white;
left: 0;
right: 0;
bottom: 0;
overflow-y: scroll;
}
.list .commentMeItem .replyContentC {
padding: 40rpx 25rpx 0;
}
.list .commentMeItem .replyContentC .avatar {
margin-right: 22rpx;
width: 80rpx;
height: 80rpx;
border-radius: 50%;
}
.list .commentMeItem .replyContentC .replyNickname {
font-size: 28rpx;
font-weight: bold;
color: #111;
}
.list .commentMeItem .replyContentC .time {
font-size: 26rpx;
font-weight: 500;
color: #aaa;
}
.list .commentMeItem .replyContentC .reply {
width: 90rpx;
height: 52rpx;
line-height: 50rpx;
border-radius: 26rpx;
border: solid 1rpx #DDD;
font-size: 24rpx;
text-align: center;
}
.list .commentMeItem .replyContentC .content {
margin-top: 20rpx;
font-size: 24rpx;
font-weight: 500;
color: #444;
}
.list .commentMeItem .replyContentC .content .originNickname {
color: #F97316;
}
.list .commentMeItem .originalTextC {
background-color: #F7F7F7;
margin-top: 20rpx;
padding: 20rpx 25rpx 25rpx;
}
.list .commentMeItem .originalTextC .originReply {
font-size: 24rpx;
font-weight: 500;
color: #444;
}
.list .commentMeItem .originalTextC .originReply .originNickname {
color: #F97316;
}
.list .commentMeItem .originalTextC .originEventC {
background-color: white;
margin-top: 20rpx;
padding: 34rpx 16rpx;
}
.list .commentMeItem .originalTextC .originEventC .levelTitleC {
font-size: 30rpx;
font-weight: bold;
}
.list .commentMeItem .originalTextC .originEventC .levelTitleC .level {
background-color: #FEC44F;
margin-right: 17rpx;
width: 50rpx;
height: 40rpx;
border-radius: 10rpx;
font-size: 30rpx;
font-weight: bold;
color: white;
text-align: center;
}
.list .commentMeItem .originalTextC .originEventC .levelTitleC .title {
color: #222;
}
.list .commentMeItem .originalTextC .originEventC .eventContent {
margin-top: 20rpx;
font-size: 24rpx;
font-weight: 500;
color: #666;
}
.list .myCommentItem .replyContentC {
padding: 40rpx 25rpx 0;
}
.list .myCommentItem .replyContentC .avatar {
margin-right: 22rpx;
width: 80rpx;
height: 80rpx;
border-radius: 50%;
}
.list .myCommentItem .replyContentC .nickname {
font-size: 28rpx;
font-weight: bold;
color: #111;
}
.list .myCommentItem .replyContentC .time {
font-size: 26rpx;
font-weight: 500;
color: #aaa;
}
.list .myCommentItem .replyContentC .content {
margin-top: 20rpx;
font-size: 24rpx;
font-weight: 500;
color: #444;
}
.list .myCommentItem .originEventC {
background-color: #F7F7F7;
margin-top: 20rpx;
padding: 20rpx 40rpx;
}
.list .myCommentItem .originEventC .levelTitleC {
font-size: 30rpx;
font-weight: bold;
}
.list .myCommentItem .originEventC .levelTitleC .level {
background-color: #FEC44F;
margin-right: 17rpx;
width: 50rpx;
height: 40rpx;
border-radius: 10rpx;
font-size: 30rpx;
font-weight: bold;
color: white;
text-align: center;
}
.list .myCommentItem .originEventC .levelTitleC .title {
color: #222;
}
.list .myCommentItem .originEventC .eventContent {
margin-top: 20rpx;
font-size: 24rpx;
font-weight: 500;
color: #666;
}

View File

@@ -0,0 +1,65 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const request_api = require("../../../request/api.js");
const common_assets = require("../../../common/assets.js");
const _sfc_main = {
data() {
return {
navH: common_vendor.inject("navHeight"),
content: ""
};
},
onLoad() {
},
methods: {
clickSubmit() {
if (!this.content) {
common_vendor.index.showToast({
title: "请输入您要反馈的问题",
icon: "none"
});
return;
}
let param = { content: this.content, isJson: 1 };
request_api.feedback(param).then((res) => {
if (res.code == 200) {
common_vendor.index.showToast({
title: res.message,
icon: "none"
});
setTimeout(function() {
common_vendor.index.navigateBack();
}, 1e3);
} else
common_vendor.index.showToast({
title: res.message,
icon: "none"
});
}).catch((error) => {
});
}
}
};
if (!Array) {
const _easycom_navBar2 = common_vendor.resolveComponent("navBar");
_easycom_navBar2();
}
const _easycom_navBar = () => "../../../components/navBar/navBar.js";
if (!Math) {
_easycom_navBar();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.p({
leftText: "意见反馈"
}),
b: common_assets._imports_0,
c: $data.content,
d: common_vendor.o(($event) => $data.content = $event.detail.value),
e: common_vendor.s("top:" + $data.navH + "px;"),
f: common_vendor.o(($event) => $options.clickSubmit())
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/mine/feedback/feedback.js.map

View File

@@ -0,0 +1,6 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"nav-bar": "../../../components/navBar/navBar"
}
}

View File

@@ -0,0 +1 @@
<view><nav-bar wx:if="{{a}}" u-i="315da0a4-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="feedbackC fixed" style="{{e}}"><view class="textareaC"><block wx:if="{{r0}}"><textarea placeholder="请输入您要反馈的问题200 字以内)" placeholder-style="color:#C5C5C5" maxlength="200" value="{{c}}" bindinput="{{d}}"></textarea></block></view></view><view class="submit fixed" bindtap="{{f}}">提交</view></view>

View File

@@ -0,0 +1,39 @@
.topBg {
top: 0;
left: 0;
width: 100%;
height: auto;
}
.feedbackC {
background-color: white;
margin-top: 10rpx;
left: 0;
right: 0;
bottom: 0;
padding: 43rpx 25rpx 0;
border-radius: 20rpx 20rpx 0 0;
}
.feedbackC .textareaC {
background-color: #F3F6F9;
border-radius: 20rpx;
padding: 20rpx 27rpx;
}
.feedbackC .textareaC textarea {
width: 100%;
height: 400rpx;
font-size: 24rpx;
font-weight: 500;
}
.submit {
background-color: #F97316;
left: 0;
right: 0;
bottom: 73rpx;
margin: 0 25rpx;
line-height: 80rpx;
border-radius: 20rpx;
font-size: 26rpx;
font-weight: 500;
color: white;
text-align: center;
}

View File

@@ -0,0 +1,154 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const request_api = require("../../../request/api.js");
const utils_util = require("../../../utils/util.js");
const common_assets = require("../../../common/assets.js");
const _sfc_main = {
data() {
return {
navH: common_vendor.inject("navHeight"),
followList: [],
page: 1,
loadAll: false,
getRateStr: utils_util.getRateStr,
getRateUpOrDown: utils_util.getRateUpOrDown,
getLocaleTime: utils_util.getLocaleTime
};
},
onLoad() {
this.getFollowCollectListData();
},
onPullDownRefresh() {
this.page = 1;
this.getFollowCollectListData();
},
onReachBottom() {
if (!this.loadAll) {
this.page++;
this.getFollowCollectListData();
}
},
methods: {
/**
* 点击相关股票
* @param {Object} code
*/
clickLookRelatedStockItem(id, code) {
common_vendor.index.navigateTo({
url: "/pages/index/stockDetails/stockDetails?type=1&code=" + code + "&id=" + id
});
},
/**
* 点击关注事件
* @param {Object} id
*/
clickFollowEvent(id, index) {
request_api.followEvent(id).then((res) => {
common_vendor.index.showToast({
title: res.message,
icon: "none"
});
this.followList.splice(index, 1);
}).catch((error) => {
});
},
/**
* 查看事件详情
*/
clickEventItem(id) {
common_vendor.index.navigateTo({
url: "/pages/index/eventDetails/eventDetails?id=" + id
});
},
/**
* 获取关注收藏列表数据
*/
getFollowCollectListData() {
let param = { page: this.page, type: "follows" };
request_api.userActivityList(param).then((res) => {
if (res.code == 200) {
if (res.data.current_page == 1) {
this.followList = res.data.activities;
} else
this.followList = this.followList.concat(res.data.activities);
if (res.data.current_page == res.data.pages) {
this.loadAll = true;
}
} else
common_vendor.index.showToast({
title: res.message,
icon: "none"
});
}).catch((error) => {
});
}
}
};
if (!Array) {
const _easycom_navBar2 = common_vendor.resolveComponent("navBar");
_easycom_navBar2();
}
const _easycom_navBar = () => "../../../components/navBar/navBar.js";
if (!Math) {
_easycom_navBar();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.p({
leftText: "关注收藏"
}),
b: common_assets._imports_0,
c: common_vendor.f($data.followList, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.importance),
b: common_vendor.n("level " + item.importance),
c: common_vendor.t(item.event_title),
d: common_vendor.t(item.event_description),
e: $data.getRateUpOrDown(item.related_avg_chg)
}, $data.getRateUpOrDown(item.related_avg_chg) ? {
f: common_assets._imports_1$1
} : {
g: common_assets._imports_2$1
}, {
h: common_vendor.t($data.getRateStr(item.related_avg_chg)),
i: common_vendor.n("rateItem " + ($data.getRateUpOrDown(item.related_avg_chg) ? "down" : "up")),
j: $data.getRateUpOrDown(item.related_max_chg)
}, $data.getRateUpOrDown(item.related_max_chg) ? {
k: common_assets._imports_1$1
} : {
l: common_assets._imports_2$1
}, {
m: common_vendor.t($data.getRateStr(item.related_max_chg)),
n: common_vendor.n("rateItem " + ($data.getRateUpOrDown(item.related_max_chg) ? "down" : "up")),
o: $data.getRateUpOrDown(item.related_week_chg)
}, $data.getRateUpOrDown(item.related_week_chg) ? {
p: common_assets._imports_1$1
} : {
q: common_assets._imports_2$1
}, {
r: common_vendor.t($data.getRateStr(item.related_week_chg)),
s: common_vendor.n("rateItem " + ($data.getRateUpOrDown(item.related_week_chg) ? "down" : "up")),
t: common_vendor.f(item.related_stocks, (sitem, sindex, i1) => {
return {
a: common_vendor.t(sitem.stock_name),
b: common_vendor.t(($data.getRateUpOrDown(sitem.daily_change) ? "" : "+") + sitem.daily_change),
c: sindex,
d: common_vendor.o(($event) => $options.clickLookRelatedStockItem(item.event_id, sitem.stock_code), sindex)
};
}),
v: common_vendor.t($data.getLocaleTime(item.created_at)),
w: common_vendor.t(item.view_count),
x: common_vendor.t(item.follower_count),
y: common_vendor.o(($event) => $options.clickFollowEvent(item.event_id, index), index),
z: common_vendor.o(($event) => $options.clickEventItem(item.event_id), index),
A: index
});
}),
d: common_assets._imports_3$1,
e: common_assets._imports_4$5,
f: common_vendor.s("top:" + $data.navH + "px;")
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/mine/followCollect/followCollect.js.map

View File

@@ -0,0 +1,6 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"nav-bar": "../../../components/navBar/navBar"
}
}

View File

@@ -0,0 +1 @@
<view><nav-bar wx:if="{{a}}" u-i="340e4710-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="list fixed" style="{{f}}"><view wx:for="{{c}}" wx:for-item="item" wx:key="A" class="item" bindtap="{{item.z}}"><view class="flex"><view class="{{item.b}}">{{item.a}}</view><view class="title">{{item.c}}</view></view><view class="content">{{item.d}}</view><scroll-view scroll-x class="increaseRateList"><view class="{{item.i}}"> 平均涨幅: <image wx:if="{{item.e}}" class="arrow" src="{{item.f}}" mode="widthFix"></image><image wx:else class="arrow" src="{{item.g}}" mode="widthFix"></image> {{item.h}}% </view><view class="{{item.n}}"> 最大涨幅: <image wx:if="{{item.j}}" class="arrow" src="{{item.k}}" mode="widthFix"></image><image wx:else class="arrow" src="{{item.l}}" mode="widthFix"></image> {{item.m}}% </view><view class="{{item.s}}"> 周涨幅: <image wx:if="{{item.o}}" class="arrow" src="{{item.p}}" mode="widthFix"></image><image wx:else class="arrow" src="{{item.q}}" mode="widthFix"></image> {{item.r}}% </view></scroll-view><scroll-view scroll-x class="stockList"><view wx:for="{{item.t}}" wx:for-item="sitem" wx:key="c" class="stockItem" catchtap="{{sitem.d}}">{{sitem.a}} <text class="change">{{sitem.b}}%</text></view></scroll-view><view class="timeToolBarC flex"><view class="time flex1">{{item.v}}</view><view class="toolBarC flex"><view class="toolItem flex"><image class="icon" src="{{d}}" mode="widthFix"></image><text>{{item.w}}</text></view><view class="toolItem flex" catchtap="{{item.y}}"><image class="icon" src="{{e}}" mode="widthFix"></image><text>{{item.x}}</text></view></view></view></view></view></view>

View File

@@ -0,0 +1,122 @@
.topBg {
top: 0;
left: 0;
width: 100%;
height: auto;
}
.list {
background-color: white;
left: 0;
right: 0;
bottom: 0;
padding: 0 25rpx;
overflow-y: scroll;
}
.list .item {
padding: 30rpx 0;
border-bottom: solid 1rpx #E4E4E4;
}
.list .item .level {
margin-right: 16rpx;
width: 50rpx;
line-height: 40rpx;
border-radius: 10rpx;
font-size: 30rpx;
font-weight: bold;
color: white;
text-align: center;
}
.list .item .level.S {
background-color: #CC4C02;
}
.list .item .level.A {
background-color: #EC7014;
}
.list .item .level.B {
background-color: #FB9A29;
}
.list .item .level.C {
background-color: #FEC44F;
}
.list .item .title {
font-size: 30rpx;
font-weight: bold;
color: #222;
}
.list .item .content {
margin-top: 20rpx;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
text-overflow: ellipsis;
overflow: hidden;
font-size: 24rpx;
font-weight: 500;
color: #666;
}
.list .item .increaseRateList {
white-space: nowrap;
margin-top: 24rpx;
}
.list .item .increaseRateList .rateItem {
display: inline-block;
margin-right: 15rpx;
line-height: 44rpx;
padding: 0 14rpx;
border-radius: 10rpx;
font-size: 22rpx;
font-weight: bold;
color: white;
}
.list .item .increaseRateList .rateItem .arrow {
width: 15rpx;
height: auto;
}
.list .item .increaseRateList .rateItem.up {
background-color: #C00000;
}
.list .item .increaseRateList .rateItem.down {
background-color: #355422;
}
.list .item .stockList {
white-space: nowrap;
margin-top: 20rpx;
}
.list .item .stockList .stockItem {
background-color: #F8F8F8;
margin-right: 21rpx;
display: inline-block;
padding: 0 20rpx;
line-height: 60rpx;
border-radius: 10rpx;
font-size: 30rpx;
font-weight: bold;
color: #222;
}
.list .item .stockList .stockItem .change {
color: #F97316;
}
.list .item .timeToolBarC {
margin-top: 20rpx;
}
.list .item .timeToolBarC .time {
font-size: 22rpx;
font-weight: 500;
color: #aaa;
}
.list .item .timeToolBarC .toolBarC .toolItem {
padding: 0 20rpx;
font-size: 26rpx;
font-weight: bold;
color: #666;
}
.list .item .timeToolBarC .toolBarC .toolItem .icon {
margin-right: 13rpx;
width: 29rpx;
height: auto;
}
.list .item .timeToolBarC .toolBarC .toolItem:first-child .icon {
margin-right: 15rpx;
width: 33rpx;
height: auto;
}

View File

@@ -0,0 +1,278 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const request_api = require("../../../request/api.js");
const common_assets = require("../../../common/assets.js");
const _sfc_main = {
data() {
return {
avatarTop: "",
contentTop: "",
avatar: "",
//选择头像临时地址
avatarUrl: "",
//已上传的链接
investPreferenceList: ["长期投资", "中短期投资", "风险控制型"],
selectInvestIndex: -1,
stockYearList: ["新手入门", "1年以内", "1-3年", "3-5年", "5-10年", "10年以上"],
selectYearIndex: -1,
riskPreferenceList: ["保守型", "稳健型", "积极型"],
selectRiskIndex: -1,
investmentScaleList: ["50万以下", "50-100万", "100万以上"],
selectScaleIndex: -1,
preferredMarketList: [{ title: "A股" }, { title: "港股" }, { title: "美股" }, { title: "期货" }, { title: "虚拟货币" }, { title: "新兴市场" }]
};
},
onLoad() {
this.avatarTop = common_vendor.inject("navHeight") + 60 / 750 * common_vendor.inject("windowWidth");
this.contentTop = this.avatarTop + 75 / 750 * common_vendor.inject("windowWidth");
this.getUserInfoData();
},
methods: {
/**
* 点击选择头像
* @param {Object} e
*/
chooseAvatar(e) {
this.avatar = e.detail.avatarUrl;
},
/**
* 点击选择投资偏好
* @param {Object} index
*/
clickInvestItem(index) {
if (this.selectInvestIndex != index) {
this.selectInvestIndex = index;
}
},
/**
* 点击选择风险偏好
* @param {Object} index
*/
clickYearItem(index) {
if (this.selectYearIndex != index) {
this.selectYearIndex = index;
}
},
/**
* 点击选择风险偏好
* @param {Object} index
*/
clickRiskItem(index) {
if (this.selectRiskIndex != index) {
this.selectRiskIndex = index;
}
},
/**
* 点击选择投资规模
* @param {Object} index
*/
clickScaleItem(index) {
if (this.selectScaleIndex != index) {
this.selectScaleIndex = index;
}
},
/**
* 点击选择市场偏好
* @param {Object} index
*/
clickMarketItem(index) {
this.preferredMarketList[index].select = !this.preferredMarketList[index].select;
},
/**
* 点击上一步
*/
clickPre() {
common_vendor.index.navigateBack();
},
/**
* 点击完成
*/
clickFinish() {
if (this.selectInvestIndex < 0) {
common_vendor.index.showToast({
title: "请选择投资偏好",
icon: "none"
});
return;
}
if (this.selectYearIndex < 0) {
common_vendor.index.showToast({
title: "请选择炒股年限",
icon: "none"
});
return;
}
if (this.selectRiskIndex < 0) {
common_vendor.index.showToast({
title: "请选择风险偏好",
icon: "none"
});
return;
}
if (this.selectScaleIndex < 0) {
common_vendor.index.showToast({
title: "请选择投资规模",
icon: "none"
});
return;
}
let arr = [];
for (let item of this.preferredMarketList) {
if (item.select) {
arr.push(item.title);
}
}
if (arr.length == 0) {
common_vendor.index.showToast({
title: "请选择偏好市场",
icon: "none"
});
return;
}
if (this.avatar) {
let param = { avatar: this.avatar, isFile: 1 };
updateBasicInfo(param).then((res) => {
this.uploadInvestPreferenceData();
}).catch((error) => {
});
} else
this.uploadInvestPreferenceData();
},
/**
* 更新投资偏好设置
*/
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],
risk_preference: this.riskPreferenceList[this.selectRiskIndex],
investment_amount: this.investmentScaleList[this.selectScaleIndex],
preferred_markets: arr
};
request_api.updateInvestPreference(param).then((res) => {
common_vendor.index.navigateBack({
delta: 2
});
}).catch((error) => {
});
},
/**
* 获取用户偏好设置数据
*/
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];
if (item == data.investment_style) {
this.selectInvestIndex = i;
break;
}
}
this.selectYearIndex = data.trading_experience;
for (var i = 0; i < this.riskPreferenceList.length; i++) {
let item = this.riskPreferenceList[i];
if (item == data.risk_preference) {
this.selectRiskIndex = i;
break;
}
}
for (var i = 0; i < this.investmentScaleList.length; i++) {
let item = this.investmentScaleList[i];
if (item == data.investment_amount) {
this.selectScaleIndex = i;
break;
}
}
for (let item of this.preferredMarketList) {
let arr = JSON.parse(data.preferred_markets);
let arr1 = arr[0].split(",");
if (arr1.indexOf(item.title) > -1) {
item.select = true;
} else {
item.select = false;
}
}
} else
common_vendor.wx$1.showToast({
title: res.message
});
}).catch((error) => {
});
}
}
};
if (!Array) {
const _easycom_navBar2 = common_vendor.resolveComponent("navBar");
_easycom_navBar2();
}
const _easycom_navBar = () => "../../../components/navBar/navBar.js";
if (!Math) {
_easycom_navBar();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.p({
leftText: "信息完善"
}),
b: common_assets._imports_0,
c: $data.avatar ? $data.avatar : $data.avatarUrl,
d: common_assets._imports_1$5,
e: common_vendor.o((...args) => $options.chooseAvatar && $options.chooseAvatar(...args)),
f: common_vendor.s("top:" + $data.avatarTop + "px;"),
g: common_vendor.f($data.investPreferenceList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: common_vendor.n("item " + ($data.selectInvestIndex == index ? "select" : "")),
c: index,
d: common_vendor.o(($event) => $options.clickInvestItem(index), index)
};
}),
h: common_vendor.f($data.stockYearList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: common_vendor.n("item " + ($data.selectYearIndex == index ? "select" : "")),
c: index,
d: common_vendor.o(($event) => $options.clickYearItem(index), index)
};
}),
i: common_vendor.f($data.riskPreferenceList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: common_vendor.n("item " + ($data.selectRiskIndex == index ? "select" : "")),
c: index,
d: common_vendor.o(($event) => $options.clickRiskItem(index), index)
};
}),
j: common_vendor.f($data.investmentScaleList, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: common_vendor.n("item " + ($data.selectScaleIndex == index ? "select" : "")),
c: index,
d: common_vendor.o(($event) => $options.clickScaleItem(index), index)
};
}),
k: common_vendor.f($data.preferredMarketList, (item, index, i0) => {
return {
a: common_vendor.t(item.title),
b: common_vendor.n("item " + (item.select ? "select" : "")),
c: index,
d: common_vendor.o(($event) => $options.clickMarketItem(index), index)
};
}),
l: common_vendor.s("top:" + $data.contentTop + "px;"),
m: common_vendor.o(($event) => $options.clickPre()),
n: common_vendor.o(($event) => $options.clickFinish())
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/mine/investPreference/investPreference.js.map

View File

@@ -0,0 +1,6 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"nav-bar": "../../../components/navBar/navBar"
}
}

View File

@@ -0,0 +1 @@
<view><nav-bar wx:if="{{a}}" u-i="ea3a6ff8-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="preferenceC fixed" style="{{l}}"><view class="title">投资偏好设置</view><view class="section first">投资偏好</view><view class="list flexWrap"><view wx:for="{{g}}" wx:for-item="item" wx:key="c" class="{{item.b}}" bindtap="{{item.d}}">{{item.a}}</view></view><view class="section">炒股年限</view><view class="list flexWrap"><view wx:for="{{h}}" wx:for-item="item" wx:key="c" class="{{item.b}}" bindtap="{{item.d}}">{{item.a}}</view></view><view class="section">风险偏好</view><view class="list flexWrap"><view wx:for="{{i}}" wx:for-item="item" wx:key="c" class="{{item.b}}" bindtap="{{item.d}}">{{item.a}}</view></view><view class="section">投资规模</view><view class="list flexWrap"><view wx:for="{{j}}" wx:for-item="item" wx:key="c" class="{{item.b}}" bindtap="{{item.d}}">{{item.a}}</view></view><view class="section">偏好市场(可多选)</view><view class="list flexWrap"><view wx:for="{{k}}" wx:for-item="item" wx:key="c" class="{{item.b}}" bindtap="{{item.d}}">{{item.a}}</view></view></view><view class="bottomC fixed flex"><view class="pre btn" bindtap="{{m}}">上一步</view><view class="finish btn flex1" bindtap="{{n}}">完成</view></view></view>

View File

@@ -0,0 +1,96 @@
.topBg {
top: 0;
left: 0;
width: 100%;
height: auto;
}
.avatarC {
left: 0;
margin-left: calc((100% - 150rpx)/2);
width: 150rpx;
z-index: 10;
}
.avatarC .avatar {
width: 100%;
height: 150rpx;
border-radius: 50%;
border: solid 2rpx white;
}
.avatarC .icon {
right: 20rpx;
bottom: 0;
width: 40rpx;
height: auto;
}
.avatarC button {
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.preferenceC {
background-color: white;
left: 0;
right: 0;
bottom: calc(73rpx + 17rpx + 80rpx);
border-radius: 20rpx 20rpx 0 0;
overflow-y: scroll;
}
.preferenceC .title {
margin: 150rpx 0 0 60rpx;
font-size: 36rpx;
font-weight: bold;
}
.preferenceC .section {
margin: 10rpx 60rpx 0;
line-height: 66rpx;
font-size: 26rpx;
font-weight: bold;
}
.preferenceC .section.first {
margin-top: 20rpx;
}
.preferenceC .list {
padding: 0 60rpx;
}
.preferenceC .list .item {
background-color: #FBFBFD;
margin: 0 14rpx 12rpx 0;
width: calc((100% - 28rpx)/3);
line-height: 76rpx;
border: solid 2rpx #EFEFF2;
border-radius: 10rpx;
font-size: 24rpx;
font-weight: 500;
color: #555;
text-align: center;
}
.preferenceC .list .item.select {
background-color: #FFE9D9;
border: solid 2rpx #F97316;
}
.preferenceC .list .item:nth-child(3n) {
margin-right: 0;
}
.bottomC {
left: 0;
right: 0;
bottom: 73rpx;
margin: 0 25rpx;
}
.bottomC .btn {
line-height: 80rpx;
border-radius: 20rpx;
font-size: 26rpx;
text-align: center;
}
.bottomC .pre {
background-color: #FFE9D9;
width: 226rpx;
color: #F97316;
}
.bottomC .finish {
background-color: #F97316;
margin-left: 20rpx;
color: white;
}

View File

@@ -0,0 +1,204 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const request_api = require("../../request/api.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = {
data() {
return {
menuTop: common_vendor.inject("menuTop"),
menuH: common_vendor.inject("menuHeight"),
infoTop: "",
userInfo: null,
//用户信息
memberInfo: null,
//会员信息
menuList: [
{
icon: "/static/icon/mine/aboutUs.png",
title: "关于我们",
url: "/pages/mine/web/web?type=1"
},
{
icon: "/static/icon/mine/serviceTerm.png",
title: "服务条款",
url: "/pages/mine/web/web?type=2"
},
{
icon: "/static/icon/mine/privacyProtocol.png",
title: "隐私协议",
url: "/pages/mine/web/web?type=3"
},
{
icon: "/static/icon/mine/feedback.png",
title: "意见反馈",
url: "/pages/mine/feedback/feedback"
},
{
icon: "/static/icon/mine/customerService.png",
title: "联系客服"
},
{
icon: "/static/icon/mine/logout.png",
title: "退出登录"
}
]
};
},
onLoad() {
this.infoTop = common_vendor.inject("navHeight") + 32 / 750 * common_vendor.inject("windowWidth");
},
onShow() {
this.getUserInfoData();
this.getMemberStatus();
},
methods: {
/**
* 点击查看个人信息
*/
clickPersonalInfo() {
common_vendor.index.navigateTo({
url: "/pages/mine/basicInfo/basicInfo"
});
},
/**
* 点击vip
*/
clickVip() {
common_vendor.index.navigateTo({
url: "/pagesMine/vip/vip"
});
},
/**
* 查看评论收藏点赞
* @param {Object} index
*/
clickNumItem(index) {
if (index == 0) {
common_vendor.index.navigateTo({
url: "/pages/mine/commentReply/commentReply"
});
} else if (index == 1) {
common_vendor.index.navigateTo({
url: "/pages/mine/followCollect/followCollect"
});
} else
common_vendor.index.navigateTo({
url: "/pages/mine/myLike/myLike"
});
},
/**
* 点击菜单
* @param {Object} url
* @param {Object} index
*/
clickMenuItem(url, index) {
if (url) {
common_vendor.index.navigateTo({
url
});
} else if (index == this.menuList.length - 2) {
this.$refs["popup"].open();
} else if (index == this.menuList.length - 1) {
common_vendor.index.showModal({
title: "您确定要退出登录么",
success(res) {
if (res.confirm) {
common_vendor.index.removeStorageSync("token");
common_vendor.index.switchTab({
url: "/pages/index/index"
});
}
}
});
}
},
/**
* 获取用户信息数据
*/
getUserInfoData() {
request_api.userInfo().then((res) => {
if (res.code == 200) {
this.userInfo = res.data;
} else
common_vendor.wx$1.showToast({
title: res.message,
icon: "none"
});
}).catch((error) => {
});
},
/**
* 获取会员状态
*/
getMemberStatus() {
request_api.membershipStatus().then((res) => {
if (res.code == 200) {
this.memberInfo = res.data;
} else
common_vendor.index.showToast({
title: res.message,
icon: "none"
});
}).catch((error) => {
});
}
}
};
if (!Array) {
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
_easycom_uni_popup2();
}
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
if (!Math) {
_easycom_uni_popup();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_assets._imports_0,
b: common_vendor.s("top:" + $data.menuTop + "px;line-height:" + $data.menuH + "px;"),
c: $data.userInfo
}, $data.userInfo ? common_vendor.e({
d: $data.userInfo.basic_info.avatar_url,
e: common_vendor.t($data.userInfo.basic_info.nickname),
f: common_vendor.t($data.userInfo.basic_info.phone),
g: $data.memberInfo && $data.memberInfo.is_member
}, $data.memberInfo && $data.memberInfo.is_member ? {
h: common_vendor.t($data.memberInfo.subscription_type)
} : {}, {
i: common_assets._imports_1$4,
j: common_vendor.s("margin-top:" + $data.infoTop + "px;"),
k: common_vendor.o(($event) => $options.clickPersonalInfo())
}) : {}, {
l: $data.userInfo
}, $data.userInfo ? {
m: common_vendor.t($data.userInfo.statistics.total_comments),
n: common_vendor.o(($event) => $options.clickNumItem(0)),
o: common_vendor.t($data.userInfo.statistics.follows_count),
p: common_vendor.o(($event) => $options.clickNumItem(1)),
q: common_vendor.t($data.userInfo.statistics.likes_count),
r: common_vendor.o(($event) => $options.clickNumItem(2))
} : {}, {
s: $data.memberInfo && !$data.memberInfo.is_member
}, $data.memberInfo && !$data.memberInfo.is_member ? {
t: common_assets._imports_2$4,
v: common_vendor.o(($event) => $options.clickVip())
} : {}, {
w: common_vendor.f($data.menuList, (item, index, i0) => {
return {
a: item.icon,
b: common_vendor.t(item.title),
c: index,
d: common_vendor.o(($event) => $options.clickMenuItem(item.url, index), index)
};
}),
x: common_assets._imports_3$2,
y: common_assets._imports_4$3,
z: common_vendor.sr("popup", "dd5840e4-0"),
A: common_vendor.p({
type: "center"
})
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/mine.js.map

View File

@@ -0,0 +1,6 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
}
}

View File

@@ -0,0 +1 @@
<view><image class="topBg absolute" src="{{a}}" mode="widthFix"></image><view class="navTitle fixed" style="{{b}}">个人中心</view><view wx:if="{{c}}" class="personalInfoC relative flex" style="{{j}}" bindtap="{{k}}"><image class="avatar" src="{{d}}" mode="aspectFill"></image><view class="flex1"><view class="nickname">{{e}}</view><view class="mobile">手机号:{{f}}</view><view wx:if="{{g}}" class="mobile">{{h}}会员</view></view><image class="arrow" src="{{i}}" mode="widthFix"></image></view><view wx:if="{{l}}" class="numList relative flex"><view class="item flex1 flexColumnCenter" bindtap="{{n}}"><view class="num">{{m}}</view><view class="title">评论回复</view></view><view class="item flex1 flexColumnCenter" bindtap="{{p}}"><view class="num">{{o}}</view><view class="title">关注收藏</view></view><view class="item flex1 flexColumnCenter" bindtap="{{r}}"><view class="num">{{q}}</view><view class="title">我的点赞</view></view></view><view wx:if="{{s}}" class="vipC relative" bindtap="{{v}}"><image class="icon" src="{{t}}" mode="widthFix"></image></view><view class="menuList relative"><view class="list"><view wx:for="{{w}}" wx:for-item="item" wx:key="c" class="item relative flex" bindtap="{{item.d}}"><image class="icon" src="{{item.a}}" mode="aspectFit"></image><view class="title flex1">{{item.b}}</view><image class="arrow" src="{{x}}" mode="widthFix"></image></view></view></view><uni-popup wx:if="{{A}}" class="r" u-s="{{['d']}}" u-r="popup" u-i="dd5840e4-0" bind:__l="__l" u-p="{{A}}"><view class="popup"><image class="icon" src="{{y}}" mode="widthFix" show-menu-by-longpress></image><view class="title">企业二维码</view></view></uni-popup></view>

View File

@@ -0,0 +1,102 @@
page {
background-color: black;
}
.topBg {
top: 0;
left: 0;
width: 100%;
height: auto;
}
.navTitle {
left: 0;
margin: 0 23rpx;
font-size: 36rpx;
font-weight: bold;
color: white;
}
.personalInfoC {
padding: 0 25rpx 0 30rpx;
}
.personalInfoC .avatar {
margin-right: 11rpx;
width: 130rpx;
height: 130rpx;
border-radius: 50%;
border: solid 3rpx white;
}
.personalInfoC .nickname {
font-size: 32rpx;
font-weight: bold;
color: white;
}
.personalInfoC .mobile {
margin-top: 6rpx;
font-size: 24rpx;
font-weight: 500;
color: #F3C368;
}
.personalInfoC .arrow {
width: 15rpx;
height: auto;
}
.numList .item {
padding: 25rpx 0;
}
.numList .item .num {
font-size: 48rpx;
font-weight: 800;
color: white;
}
.numList .item .title {
font-size: 24rpx;
font-weight: 500;
color: #FFECD3;
}
.vipC {
margin: 0 45rpx;
}
.vipC .icon {
display: block;
width: 100%;
height: auto;
}
.menuList {
background-color: white;
margin: 0 25rpx;
padding: 0 20rpx 220rpx;
border-radius: 20rpx;
}
.menuList .item {
height: 100rpx;
padding: 0 18rpx 0 20rpx;
border-bottom: solid 1rpx #F7F7F7;
font-size: 28rpx;
color: #222;
}
.menuList .item .icon {
margin-right: 16rpx;
width: 44rpx;
height: 44rpx;
}
.menuList .item .arrow {
width: 11rpx;
height: auto;
}
.menuList .item button {
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.popup {
background-color: white;
}
.popup .icon {
width: 560rpx;
height: auto;
}
.popup .title {
margin-top: 10rpx;
border-radius: 10rpx;
text-align: center;
}

View File

@@ -0,0 +1,96 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const request_api = require("../../../request/api.js");
const utils_util = require("../../../utils/util.js");
const common_assets = require("../../../common/assets.js");
const _sfc_main = {
data() {
return {
navH: common_vendor.inject("navHeight"),
myLikeList: [],
page: 1,
loadAll: false,
getLocaleHourMinute: utils_util.getLocaleHourMinute
};
},
onLoad() {
this.getMyLikeListData();
},
onPullDownRefresh() {
this.page = 1;
this.getMyLikeListData();
},
onReachBottom() {
if (!this.loadAll) {
this.page++;
this.getMyLikeListData();
}
},
methods: {
/**
* 点赞评论
*/
clickLikeComment(id, index) {
request_api.likeEventComment(id).then((res) => {
common_vendor.index.showToast({
title: res.message
});
this.myLikeList.splice(index, 1);
}).catch((error) => {
});
},
/**
* 获取我的点赞列表数据
*/
getMyLikeListData() {
let param = { page: this.page, type: "likes" };
request_api.userActivityList(param).then((res) => {
if (res.code == 200) {
if (res.data.current_page == 1) {
this.myLikeList = res.data.activities;
} else
this.myLikeList = this.myLikeList.concat(res.data.activities);
if (res.data.current_page == res.data.pages) {
this.loadAll = true;
}
} else
common_vendor.index.showToast({
title: res.message,
icon: "none"
});
}).catch((error) => {
});
}
}
};
if (!Array) {
const _easycom_navBar2 = common_vendor.resolveComponent("navBar");
_easycom_navBar2();
}
const _easycom_navBar = () => "../../../components/navBar/navBar.js";
if (!Math) {
_easycom_navBar();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.p({
leftText: "我的点赞"
}),
b: common_assets._imports_0,
c: common_vendor.f($data.myLikeList, (item, index, i0) => {
return {
a: item.author.avatar_url,
b: common_vendor.t(item.author.nickname),
c: item.post_content,
d: common_vendor.t($data.getLocaleHourMinute(item.like_time)),
e: common_vendor.o(($event) => $options.clickLikeComment(item.like_id, index), index),
f: index
};
}),
d: common_assets._imports_1$7,
e: common_vendor.s("top:" + $data.navH + "px;")
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/mine/myLike/myLike.js.map

View File

@@ -0,0 +1,6 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"nav-bar": "../../../components/navBar/navBar"
}
}

View File

@@ -0,0 +1 @@
<view><nav-bar wx:if="{{a}}" u-i="005f0838-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="list fixed" style="{{e}}"><view wx:for="{{c}}" wx:for-item="item" wx:key="f" class="item"><image class="avatar" src="{{item.a}}" mode="aspectFill"></image><view class="flex1"><view class="nickname">{{item.b}}</view><rich-text class="content" nodes="{{item.c}}"></rich-text><view class="timeReplyLikeC flex between"><view class="timeReplyC flex"><view class="time">{{item.d}}</view></view><view class="likeC flex" bindtap="{{item.e}}"><image class="icon" src="{{d}}" mode="widthFix"></image></view></view></view></view></view></view>

View File

@@ -0,0 +1,79 @@
.topBg {
top: 0;
left: 0;
width: 100%;
height: auto;
}
.list {
background-color: white;
margin-top: 10rpx;
left: 0;
right: 0;
bottom: 0;
overflow-y: scroll;
}
.list .item {
display: flex;
padding: 30rpx 25rpx;
border-bottom: solid 1rpx #E4E4E4;
}
.list .item .avatar {
margin-right: 23rpx;
width: 80rpx;
height: 80rpx;
border-radius: 50%;
}
.list .item .nickname {
font-size: 28rpx;
font-weight: bold;
color: #111;
}
.list .item .content {
margin-top: 10rpx;
line-height: 1.2rem;
font-size: 24rpx;
font-weight: 500;
color: #666;
}
.list .item .timeReplyLikeC .time {
margin-right: 36rpx;
font-size: 26rpx;
font-weight: 500;
color: #aaa;
}
.list .item .timeReplyLikeC .reply {
font-size: 26rpx;
font-weight: 500;
color: #F97316;
}
.list .item .timeReplyLikeC .likeC {
padding: 14rpx 0;
font-size: 28rpx;
font-weight: bold;
color: #999;
}
.list .item .timeReplyLikeC .likeC .icon {
margin-right: 12rpx;
width: 27rpx;
height: auto;
}
.list .item .timeReplyLikeC .likeC.like {
color: #F97316;
}
.list .item .totalCommentNumC {
padding: 14rpx 0 22rpx;
font-size: 26rpx;
font-weight: 500;
color: #999;
}
.list .item .totalCommentNumC .line {
background-color: #aaa;
margin-right: 18rpx;
width: 30rpx;
height: 2rpx;
}
.list .item .totalCommentNumC .arrow {
margin-left: 14rpx;
width: 13rpx;
height: auto;
}

View File

@@ -0,0 +1,71 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const request_api = require("../../../request/api.js");
const common_assets = require("../../../common/assets.js");
const _sfc_main = {
data() {
return {
navH: common_vendor.inject("navHeight"),
navTitle: "",
type: "",
//1.关于我们2.服务条款3.隐私协议
webContent: ""
};
},
onLoad(e) {
if (e.type) {
this.type = e.type;
this.getUserInfoData();
if (e.type == 1) {
this.navTitle = "关于我们";
} else if (e.type == 2) {
this.navTitle = "服务条款";
} else if (e.type == 3) {
this.navTitle = "隐私协议";
}
}
},
methods: {
/**
* 获取用户信息数据
*/
getUserInfoData() {
request_api.agreements().then((res) => {
if (res.code == 200) {
if (this.type == 1) {
this.webContent = res.data.agreements.about_us.content;
} else if (this.type == 2) {
this.webContent = res.data.agreements.service_terms.content;
} else if (this.type == 3) {
this.webContent = res.data.agreements.privacy_policy.content;
}
} else
common_vendor.wx$1.showToast({
title: res.message
});
}).catch((error) => {
});
}
}
};
if (!Array) {
const _easycom_navBar2 = common_vendor.resolveComponent("navBar");
_easycom_navBar2();
}
const _easycom_navBar = () => "../../../components/navBar/navBar.js";
if (!Math) {
_easycom_navBar();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.p({
leftText: $data.navTitle
}),
b: common_assets._imports_0,
c: common_vendor.t($data.webContent),
d: common_vendor.s("top:" + $data.navH + "px;")
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/mine/web/web.js.map

View File

@@ -0,0 +1,6 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"nav-bar": "../../../components/navBar/navBar"
}
}

View File

@@ -0,0 +1 @@
<view><nav-bar wx:if="{{a}}" u-i="0a02672e-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="contentC fixed" style="{{d}}"><text>{{c}}</text></view></view>

View File

@@ -0,0 +1,15 @@
.topBg {
top: 0;
left: 0;
width: 100%;
height: auto;
}
.contentC {
background-color: white;
left: 0;
right: 0;
bottom: 0;
margin-top: 10rpx;
padding: 50rpx 25rpx;
overflow-y: scroll;
}