diff --git a/.env.development b/.env.development index 4339c237..0d46fbc7 100644 --- a/.env.development +++ b/.env.development @@ -47,8 +47,8 @@ VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001' # VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.16.144:9605' -# VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.154:9604' -VITE_APP_BASE_H5_API_Url_TRAPRACTICE = 'http://25.64.32.157:9603' +VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.32.154:9601' +#VITE_APP_BASE_H5_API_Url_TRAPRACTICE = 'http://25.64.32.157:9603' diff --git a/src/api/index.js b/src/api/index.js index cd5e5e84..b811e820 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -16,6 +16,8 @@ export const getStatisticsData = (data) => { }); }; + + // 最新课程查询接口 export const queryCrsInfoByLastnew = (data) => { /** @@ -89,3 +91,13 @@ export const queryCrsInfoByRecmd = (data) => { +// 新政新品 +export const queryNewPolicyNewProducts = (data) => { + + return request({ + url: '/traapp/mycrs/queryNewPolicyNewProducts', + method: 'post', + data + }); +}; + diff --git a/src/pages/index/components/class_scroll.vue b/src/pages/index/components/class_scroll.vue index 3925facd..eed3763b 100644 --- a/src/pages/index/components/class_scroll.vue +++ b/src/pages/index/components/class_scroll.vue @@ -10,17 +10,21 @@ + + + + - - + + - {{ item.crsName }} + {{ item.nama }} 更新:{{ (item.mtTime || '').substr(0, 10) }} - 已学:{{ item.accmStdyCnt }}人次 + 已学:{{ item.accmCnt }} 去学习 @@ -44,11 +48,21 @@ @@ -144,29 +160,40 @@ white-space: nowrap; width: 100%; } - .scroll-view-item { display: inline-block; margin-right: 30rpx; background-color: #ffffff; border-radius: 22rpx; box-shadow: #eaeaea 0 0 6rpx; - padding: 20rpx 20rpx 36rpx 34rpx; + padding: 20rpx 20rpx 26rpx 34rpx; + position: relative; + overflow: hidden; + .icon { + position: absolute; + right: 0; + top: 0; + width: 76rpx; + height: 76rpx; + } } .item_div { - width: calc(562rpx + 56rpx); + // width: calc(562rpx + 56rpx); + width: 562rpx; } .item { display: flex; - width: calc(562rpx + 56rpx); + width: 562rpx; flex-direction: column; + .title { font-weight: 500; font-size: 30rpx; color: #333333; margin-bottom: 10rpx; + padding-right: 30rpx; width: 100%; } .content { @@ -224,11 +251,11 @@ .module_title_div { display: flex; - margin: 30rpx $bg-margin-left; + margin: 20rpx $bg-margin-left; align-items: center; - .icon { - margin-right: 6rpx; + margin-right: 8rpx; + margin-top: 12rpx; } .icon_1 { @@ -254,7 +281,7 @@ height: 31rpx; } } - + .title { font-size: 34rpx; color: #323e57; diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 9f35808a..f3d4d85f 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -153,7 +153,7 @@ - + diff --git a/src/static/images/index/kc_icon.png b/src/static/images/index/kc_icon.png new file mode 100644 index 00000000..d2a82ae7 Binary files /dev/null and b/src/static/images/index/kc_icon.png differ diff --git a/src/static/images/index/new.png b/src/static/images/index/new.png index fa389afa..144c1bbb 100644 Binary files a/src/static/images/index/new.png and b/src/static/images/index/new.png differ diff --git a/src/static/images/index/pl_icon.png b/src/static/images/index/pl_icon.png new file mode 100644 index 00000000..672abe4e Binary files /dev/null and b/src/static/images/index/pl_icon.png differ