This commit is contained in:
Pengxiansen
2025-02-26 21:06:29 +08:00
parent 53ef2858e7
commit d5eeb828cc
5 changed files with 11 additions and 16 deletions

View File

@@ -2,11 +2,11 @@
<view class="growth"> <view class="growth">
<u-navbar <u-navbar
title="专业力必修" title="专业力必修"
bgColor="rgba(0,0,0,0)" bgColor="#3e7eff"
:safeAreaInsetTop="true" :safeAreaInsetTop="true"
placeholder placeholder
leftIconColor="#fff" leftIconColor="#fff"
autoBack @leftClick="leftClick"
fixed fixed
titleStyle="color:#fff" titleStyle="color:#fff"
> >
@@ -218,6 +218,9 @@ export default {
}); });
}, },
methods: { methods: {
leftClick() {
this.$router.push({ path: "/pages/my/index" });
},
toBack() { toBack() {
uni.navigateBack(); uni.navigateBack();
}, },
@@ -229,17 +232,8 @@ export default {
// 学习任务跳转详情 // 学习任务跳转详情
loaddetail(task) { loaddetail(task) {
let taskUrl = ""; let taskUrl = "";
if (this.selectData.template == 1) {
//路径图
let params = encodeURIComponent("routerId=" + this.selectData.id); let params = encodeURIComponent("routerId=" + this.selectData.id);
// "/pages/forward?to=/fe-student-h5-release/growthPath&params=" + params; taskUrl = "/pages/forward?to=/student-h5/growthDetails&params=" + params;
taskUrl = "/pages/forward?to=/student-h5/growthPath&params=" + params;
} else {
//任务列表
let params = encodeURIComponent("routerId=" + this.selectData.id);
taskUrl =
"/pages/forward?to=/student-h5/growthDetails&params=" + params;
}
uni.navigateTo({ uni.navigateTo({
url: taskUrl, url: taskUrl,
}); });
@@ -270,6 +264,7 @@ export default {
display: flex; display: flex;
justify-content: center; justify-content: center;
margin-top: 114rpx; margin-top: 114rpx;
margin-bottom: 50px;
view { view {
width: 560rpx; width: 560rpx;
height: 88rpx; height: 88rpx;

View File

@@ -19,4 +19,4 @@
hm.src = "https://hm.baidu.com/hm.js?ea89f02dca369037a73c5e3907e2c14a"; hm.src = "https://hm.baidu.com/hm.js?ea89f02dca369037a73c5e3907e2c14a";
var s = document.getElementsByTagName("script")[0]; var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s); s.parentNode.insertBefore(hm, s);
})();</script></head><body><div id=app></div><script src=/mobile/static/js/chunk-vendors.bb72ee6e.js></script><script src=/mobile/static/js/index.4a17d1a1.js></script></body></html> })();</script></head><body><div id=app></div><script src=/mobile/static/js/chunk-vendors.bb72ee6e.js></script><script src=/mobile/static/js/index.03967f6e.js></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long