diff --git a/components/Book.vue b/components/Book.vue index 9ce34b5..6ca0bb9 100644 --- a/components/Book.vue +++ b/components/Book.vue @@ -80,7 +80,6 @@ export default { currentIndex: 0, scrollLeft: 0, itemWidth: 224, // 207rpx + 30rpx margin - JDSU_IMG_URL: "https://epic.js-dyyj.com", }; }, mounted() { @@ -109,17 +108,6 @@ export default { } }); }, - - // 图片显示方法 - showImg(img) { - if (!img) return ""; - if (img.indexOf("https://") != -1 || img.indexOf("http://") != -1) { - return img; - } else { - return this.JDSU_IMG_URL + img; - } - }, - // 上一张 prevSlide() { if (!this.validateData()) return; diff --git a/components/CustomTabBar.vue b/components/CustomTabBar.vue index d3f1d85..7d7ea30 100644 --- a/components/CustomTabBar.vue +++ b/components/CustomTabBar.vue @@ -11,8 +11,8 @@ > - - - - - - - - - - - - - - - - {{item.title}} - - - {{item.des}} + "> + 文化IP合作体 + + + + + + + + + + + + + + + + + + + {{item.title}} + + + {{item.des}} + + + + + + + + 暂无数据 + - - - - - - - 暂无数据 - - - - - - - - - - - + + + + + + + + + + + // 背景图片 + .card-bg { + width: 100%; + height: 100%; + } + + // 导航箭头 + .nav-arrow { + position: absolute; + top: 50%; + transform: translateY(-50%); + width: 60rpx; + height: 60rpx; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + z-index: 3; + transition: all 0.3s ease; + + &.left-arrow { + left: 0rpx; + } + + &.right-arrow { + right: 0rpx; + } + } + + .arrow-icon { + font-size: 32rpx; + color: #ffffff; + font-weight: bold; + text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.3); + } + + // 无数据提示 + .no-data { + display: flex; + align-items: center; + justify-content: center; + width: 100%; + height: 368rpx; + color: #999; + font-size: 28rpx; + } + + // 标题区域 + .title-section { + display: inline-block; + padding: 0rpx 0 30rpx; + width: 100%; + + .title { + font-size: 34rpx; + font-weight: bold; + color: #000000; + } + + .more-btn { + font-size: 26rpx; + color: #000000; + margin-left: 35rpx; + } + } + + .title-info { + position: absolute; + bottom: 10rpx; + right: 0; + width: 100%; + color: white; + padding: 0 5rpx; + + .title-item { + text-align: center; + font-size: 16rpx; + font-weight: bold; + overflow: hidden; + word-wrap: normal; + text-overflow: ellipsis; + } + + .title-des { + margin-top: 5rpx; + text-align: center; + font-size: 14rpx; + overflow: hidden; + word-wrap: normal; + text-overflow: ellipsis; + } + } + \ No newline at end of file diff --git a/manifest.json b/manifest.json index e9579b6..97a5994 100644 --- a/manifest.json +++ b/manifest.json @@ -50,7 +50,7 @@ "quickapp" : {}, /* 小程序特有相关 */ "mp-weixin" : { - "appid" : "wx8954209bb3ad489e", + "appid" : "wx9660f8c5776663e0", "setting" : { "urlCheck" : false, "es6" : true, diff --git a/static/js/request.js b/static/js/request.js index 64a8552..380ec2f 100644 --- a/static/js/request.js +++ b/static/js/request.js @@ -2,14 +2,14 @@ import Vue from 'vue'; import store from '@/store'; // 定义 API URL -const DEV_API_URL = 'https://epic.new.js-dyyj.com'; +const DEV_API_URL = 'http://1.13.193.49'; // const DEV_API_URL = 'https://epic.js-dyyj.com'; // const PROD_API_URL = 'https://epic.js-dyyj.com'; const PROD_API_URL = 'https://epic.new.js-dyyj.com'; const NEWAPIURL = process.env.NODE_ENV === 'development' ? DEV_API_URL : PROD_API_URL; -const DEV_API_URL_DES = 'http://192.168.124.177:8083/xcx'; -// const DEV_API_URL_DES = 'https://des.js-dyyj.com/xcx'; +// const DEV_API_URL_DES = 'http://192.168.124.177:8083/xcx'; +const DEV_API_URL_DES = 'https://des.js-dyyj.com/xcx'; const PROD_API_URL_DES = 'https://des.js-dyyj.com/xcx'; const NEWAPIURL_DES = process.env.NODE_ENV === 'development' ? DEV_API_URL_DES : PROD_API_URL_DES; const getToken = () => {