From bbd3feaa30f2d980eb55c17f8cb492eae4372b5b Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期一, 17 六月 2024 17:27:12 +0800 Subject: [PATCH] 专题讨论 --- pages/specialDiscussion/index.json | 11 pages/digitalTextbooks/digitalTextbooksDetails/index.json | 3 pages/digitalTextbooks/index.wxss | 2 pages/specialDiscussion/webView/index.json | 3 pages/specialDiscussion/webView/index.wxml | 1 pages/specialDiscussion/webView/index.wxss | 1 services/home/home.js | 2 pages/digitalCourses/index.wxml | 65 ++-- pages/digitalCourses/index.wxss | 12 pages/digitalCourses/index.js | 1 app.json | 4 pages/specialDiscussion/index.wxml | 75 +++++ pages/specialDiscussion/index.wxss | 136 ++++++++++ pages/digitalTextbooks/digitalTextbooksDetails/index.wxml | 36 -- pages/digitalTextbooks/digitalTextbooksDetails/index.wxss | 7 pages/specialDiscussion/index.js | 315 ++++++++++++++++++++++++ assets/js/config.js | 8 packageBookService/pages/bookServices/detail/index.js | 2 pages/digitalTextbooks/digitalTextbooksDetails/index.js | 18 + pages/specialDiscussion/webView/index.js | 69 +++++ 20 files changed, 686 insertions(+), 85 deletions(-) diff --git a/app.json b/app.json index 9a453e1..76e4b4d 100644 --- a/app.json +++ b/app.json @@ -20,7 +20,9 @@ "pages/digitalTextbooks/digitalTextbooksDetails/index", "pages/digitalTextbooks/digitalTextbooksDetails/components/webView/index", "pages/digitalCourses/index", - "pages/digitalCourses/digitalCoursesDetails/index" + "pages/digitalCourses/digitalCoursesDetails/index", + "pages/specialDiscussion/index", + "pages/specialDiscussion/webView/index" ], "subPackages": [ { diff --git a/assets/js/config.js b/assets/js/config.js index 7174e7f..4bf5cc6 100644 --- a/assets/js/config.js +++ b/assets/js/config.js @@ -1,7 +1,7 @@ -export const requestCtx = "http://182.92.203.7:3001"; // 璇锋眰鍦板潃 -export const appId = 27; -// export const requestCtx = "https://jsek.bnuic.com"; // 璇锋眰鍦板潃 -// export const appId = 3; +// export const requestCtx = "http://182.92.203.7:3001"; // 璇锋眰鍦板潃 +// export const appId = 27; +export const requestCtx = "https://jsek.bnuic.com"; // 璇锋眰鍦板潃 +export const appId = 3; // export const epubUrl = "http://182.92.203.7:3007/epubReadMobile/"; export const epubUrl = "https://jsek.bnuic.com/epubReadMobile/#/"; export const pdfUrl = "http://182.92.203.7:3007/pdfRead/"; diff --git a/packageBookService/pages/bookServices/detail/index.js b/packageBookService/pages/bookServices/detail/index.js index 4181ea1..fe3d06d 100644 --- a/packageBookService/pages/bookServices/detail/index.js +++ b/packageBookService/pages/bookServices/detail/index.js @@ -640,6 +640,8 @@ this.setData({ showIndex: '1' }) + console.log(this.data.bookDetail.icon, '0111111'); + console.log(this.data.bookDetail.name, '45688'); }, // 璺宠浆缃戝簵 goShop(e) { diff --git a/pages/digitalCourses/index.js b/pages/digitalCourses/index.js index 11e16d7..b4d5ba5 100644 --- a/pages/digitalCourses/index.js +++ b/pages/digitalCourses/index.js @@ -84,7 +84,6 @@ }, onTabsChange(event) { - const value = event.detail.value this.getCourseList(this.data.tabList[value]) }, diff --git a/pages/digitalCourses/index.wxml b/pages/digitalCourses/index.wxml index 3222dd1..ce0b8d8 100644 --- a/pages/digitalCourses/index.wxml +++ b/pages/digitalCourses/index.wxml @@ -25,47 +25,42 @@ </view> </view> + <scroll-view scroll-y="{{true}}" class="outsideContentBox" bindscrolltolower="onScrollToLower"> + <view class="ExternalInformationBox"> + <view class="informationBox" wx:for="{{courseList}}" wx:key="index" wx:for-item="item" data-item="{{item}}" bind:tap="courseDetail"> - <view class="ExternalInformationBox"> - <view class="informationBox" wx:for="{{courseList}}" wx:key="index" wx:for-item="item" data-item="{{item}}" bind:tap="courseDetail"> - - <view class="book-img"> - <image src="{{item.icon}}" mode="aspectFit" /> - </view> - - <view class="book-name"> - {{item.name}} - </view> - <view class="viewCount"> - {{item.viewCount }}娆$偣鍑� - - </view> - <view class="author"> - <view> - {{ item.courseLeader}} + <view class="book-img"> + <image src="{{item.icon}}" mode="aspectFit" /> </view> - <view> - {{ item.classHours}}璇炬椂 + + <view class="book-name"> + {{item.name}} </view> - </view> - <view class="money"> - <view wx:if="{{item.price != 0}}">锟{item.price }}</view> - <view wx:else> 鍏嶈垂</view> - <view> - <t-icon name="cart" size="16" /> + <view class="viewCount"> + {{item.viewCount }}娆$偣鍑� + + </view> + <view class="author"> + <view> + {{ item.courseLeader}} + </view> + <view> + {{ item.classHours}}璇炬椂 + </view> + </view> + <view class="money"> + <view wx:if="{{item.price != 0}}">锟{item.price }}</view> + <view wx:else> 鍏嶈垂</view> + <view> + <t-icon name="cart" size="16" /> + </view> </view> </view> </view> - </view> - <view wx:if="{{courseList.length <= 0}}" class="noDataBox"> - - <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" font-size="80" /> - - - </view> - + <view wx:if="{{courseList.length <= 0}}" class="noDataBox"> + <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" font-size="80" /> + </view> + </scroll-view> </view> - </t-tab-panel> - </t-tabs> \ No newline at end of file diff --git a/pages/digitalCourses/index.wxss b/pages/digitalCourses/index.wxss index 9f75e4e..b249d7a 100644 --- a/pages/digitalCourses/index.wxss +++ b/pages/digitalCourses/index.wxss @@ -36,7 +36,6 @@ .t-tabs__track { background-color: #FF6C00 !important; - /* height: var(--td-tab-track-thickness, 0rpx) !important; */ } .t-tabs .t-tabs__item--active { @@ -157,4 +156,15 @@ font-weight: 400; font-size: 22rpx; color: #AEAFC0; +} + +.outsideContentBox { + /* padding: 30rpx; */ + background: #F2F3F8; + border-radius: 18rpx 18rpx 18rpx 18rpx; + /* padding-bottom: 325rpx; */ + height: calc(100vh - 450rpx); + + /* width: calc(100vw - 60rpx); */ + } \ No newline at end of file diff --git a/pages/digitalTextbooks/digitalTextbooksDetails/index.js b/pages/digitalTextbooks/digitalTextbooksDetails/index.js index 55b7beb..ba85f02 100644 --- a/pages/digitalTextbooks/digitalTextbooksDetails/index.js +++ b/pages/digitalTextbooks/digitalTextbooksDetails/index.js @@ -637,12 +637,20 @@ }) } } + }, + // 鎴戣寤鸿 + suggestBtn() { + // 妫�鏌ョ櫥褰曠姸鎬� + const token = wx.getStorageSync(app.config.tokenKey); + console.log(465); - - - - - } + const child = this.selectComponent("#suggest-component"); + // if (token) + // // child.showDialog(); + // this.setData({ + // showIndex: '1' + // }) + }, }) \ No newline at end of file diff --git a/pages/digitalTextbooks/digitalTextbooksDetails/index.json b/pages/digitalTextbooks/digitalTextbooksDetails/index.json index 530aaca..671d347 100644 --- a/pages/digitalTextbooks/digitalTextbooksDetails/index.json +++ b/pages/digitalTextbooks/digitalTextbooksDetails/index.json @@ -5,6 +5,7 @@ "t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel", "t-image": "tdesign-miniprogram/image/image", "t-toast": "tdesign-miniprogram/toast/toast", - "t-empty": "tdesign-miniprogram/empty/empty" + "t-empty": "tdesign-miniprogram/empty/empty", + "suggest": "/packageBookService/pages/bookServices/detail/components/suggest/suggest" } } \ No newline at end of file diff --git a/pages/digitalTextbooks/digitalTextbooksDetails/index.wxml b/pages/digitalTextbooks/digitalTextbooksDetails/index.wxml index ac1f78c..b2cc5af 100644 --- a/pages/digitalTextbooks/digitalTextbooksDetails/index.wxml +++ b/pages/digitalTextbooks/digitalTextbooksDetails/index.wxml @@ -45,7 +45,7 @@ </view> <view class="certificate"> - <view class="proposal"> + <view class="proposal" bind:tap="suggestBtn"> <view class="suggestion"> <image src="/static/images/digitalTextbooks/Suggestion@2x.png" mode="" /> </view> @@ -163,7 +163,7 @@ <view class="correlation" wx:else> - <view wx:for="{{relatedBookData}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="onCorrelationBook"> + <view style="margin-bottom: 30rpx;" wx:for="{{relatedBookData}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="onCorrelationBook"> <view class="correlationImage"> <image src="{{item.icon}}" mode="" /> @@ -172,11 +172,7 @@ <view class="correlationName">{{item.name}}</view> <view class="correlationAuthor">{{digitalsData.author}}</view> </view> - - </view> - - </t-tab-panel> </t-tabs> @@ -184,34 +180,10 @@ - - - - - - - - - - - - - - - - - - - - - - - - + <!-- 鎴戣寤鸿寮圭獥 --> + <suggest class="suggest-component" id="suggest-component" bookIcon="{{bookDetail.icon}}" bookName="{{bookDetail.name}}"></suggest> <view class="box-bottom"> - <view style="border-top: 1rpx solid #DDDDDD; display: flex;"> - <view class="collection" bind:tap="setCoolect"> <view class="collectionImage"> <image wx:if="{{!digitalsData.isFavourite}}" src="/static/images/digitalTextbooks/wodeshoucang@2x.png" mode="" /> diff --git a/pages/digitalTextbooks/digitalTextbooksDetails/index.wxss b/pages/digitalTextbooks/digitalTextbooksDetails/index.wxss index 4c65eb0..1a37fc0 100644 --- a/pages/digitalTextbooks/digitalTextbooksDetails/index.wxss +++ b/pages/digitalTextbooks/digitalTextbooksDetails/index.wxss @@ -180,8 +180,10 @@ .correlation { display: flex; flex-direction: row; - justify-content: space-around; - margin: 30rpx; + justify-content: space-between; + flex-wrap: wrap; + margin: 30rpx 50rpx; + margin-bottom: 160rpx; } .correlationName { @@ -192,7 +194,6 @@ -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; - font-weight: bold; font-size: 25rpx; color: #333333; diff --git a/pages/digitalTextbooks/index.wxss b/pages/digitalTextbooks/index.wxss index 9bfdfd0..67ed29f 100644 --- a/pages/digitalTextbooks/index.wxss +++ b/pages/digitalTextbooks/index.wxss @@ -202,7 +202,6 @@ margin: 0 20rpx; height: 75rpx; color: #333; - font-size: 28rpx; font-weight: 700; word-break: break-all; @@ -221,6 +220,7 @@ overflow: hidden; text-overflow: ellipsis; text-align: left; + width: 150rpx; } .price { diff --git a/pages/specialDiscussion/index.js b/pages/specialDiscussion/index.js new file mode 100644 index 0000000..26717a1 --- /dev/null +++ b/pages/specialDiscussion/index.js @@ -0,0 +1,315 @@ +// pages/specialDiscussion/index.js +const app = getApp() +Page({ + + /** + * 椤甸潰鐨勫垵濮嬫暟鎹� + */ + data: { + barHeight: "", + navBarHeight: "", + tabList: [{ + name: '鍗冲皢鐩存挱', + amount: '' + }, { + name: '鐩存挱鍥炴斁', + amount: 20 + }], + tabIndex: 0, + specialSubjectList: [], + + now: new Date(), // 鍋囪杩欐槸褰撳墠鏃堕棿 + formattedDate: '', // 鐢ㄤ簬瀛樺偍鏍煎紡鍖栧悗鐨勬棩鏈熸椂闂村瓧绗︿覆 + batList: [], + specialDiscussionList: [], + searchValue: '', + batListValue: '' + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 + */ + onLoad(options) { + this.formatDateTime() + const systInfo = wx.getSystemInfoSync(); + const menu = wx.getMenuButtonBoundingClientRect(); // 鑳跺泭淇℃伅 + const navBarHeight = + (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 瀵艰埅鏍忛珮搴� + this.setData({ + barHeight: systInfo.statusBarHeight, + navBarHeight: navBarHeight, + }); + this.ceShiList() + this.getCourseTypeListList() + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚 + */ + onReady() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず + */ + onShow() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰闅愯棌 + */ + onHide() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍗歌浇 + */ + onUnload() { + + }, + + /** + * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔 + */ + onPullDownRefresh() { + + }, + + /** + * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁� + */ + onReachBottom() { + + }, + + /** + * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜� + */ + onShareAppMessage() { + + }, + goBack() { + wx.navigateBack(); + }, + onTabsChange(event) { + console.log(event.detail.value); + const value = event.detail.value + + this.setData({ + batListValue: value + }) + + this.specialDiscussionGet(this.data.batList[value]) + + + }, + onTabsTap(event) { + const index = event.currentTarget.dataset.index + console.log(index); + + this.setData({ + tabIndex: index + }) + + + this.specialDiscussionGet(this.data.batList[0]) + + }, + // 鑾峰彇鍥剧墖鏂囧瓧鍒楄〃 + ceShiList() { + let searchObj = {} + if (this.data.searchValue) { + searchObj = { + 'Name*': this.data.searchValue.trim() + // '||subtitle*': searchInputValue.value.trim() + } + } + + + app.MG.store + .getProductList({ + storeInfo: 'jsek_seminar', + path: '*', + queryType: '*', + paging: { + start: 0, + size: 99 + }, + + fields: { + content: [], + subtitle: [], + backgroundSelection: [], + author: [], + viewCount: [], + startTime: [], //寮�鎾椂闂� + // "liveTime>=": [formattedDate.value], //鐩存挱鏃堕棿 + liveTime: [], + lecturer: [], + position: [], + jsek_link: [], + ...searchObj + } + }) + .then((res) => { + console.log(res, '000'); + const specialSubjectList = [] + res.datas.forEach((item) => { + item.price = item.price.toFixed(2) + + + const date1 = new Date(this.data.formattedDate) + const date2 = new Date(item.liveTime) + + // 姣旇緝涓や釜鏃ユ湡 + if (date1 > date2) { + // console.log('鐩存挱缁撴潫锛岃鐪嬪洖鏀�') + } else if (date1 < date2) { + // console.log('鐩存挱杩樻病寮�濮嬶紝璇风湅鍗冲皢寮�鎾�') + + specialSubjectList.push(item) + + console.log(specialSubjectList); + } else { + // console.log('涓や釜鏃堕棿鐩稿悓锛�') + } + }) + this.setData({ + specialSubjectList, + + "tabList[0].amount": specialSubjectList.length + }) + }) + }, + // 鏍煎紡鍖栨棩鏈熸椂闂寸殑鏂规硶 + formatDateTime: function () { + let date = new Date(); + const year = date.getFullYear(); + const month = (date.getMonth() + 1).toString().padStart(2, '0'); + const day = date.getDate().toString().padStart(2, '0'); + const hour = date.getHours().toString().padStart(2, '0'); + const minute = date.getMinutes().toString().padStart(2, '0'); + const second = date.getSeconds().toString().padStart(2, '0'); + const formattedDate = `${year}-${month}-${day} ${hour}:${minute}:${second}`; + this.setData({ + formattedDate: formattedDate + }); + }, + onLink(e) { + + const item = e.currentTarget.dataset.item + console.log(item.jsek_link); + wx.navigateTo({ + url: '/pages/specialDiscussion/webView/index?link=' + item.jsek_link + }); + }, + + async getCourseTypeListList() { + + const quer = { + path: '*', + filterList: [{ + value: 'Normal', + field: 'state' + }], + queryType: '\\', + searchList: [], + size: '20', + start: '0', + storeRefCode: app.config.seminar, + sort: { + type: 'Asc', + field: 'LinkOrder' + }, + + } + const data = await app.MG.store.getStoreChannelList(quer) + let dataList = data.datas + + // data.datas.forEach(item => { + // if (item.refCode != "jsek_homepageSeminar") { + // console.log(item); + // dataList.push(item) + // } + // }) + this.setData({ + batList: dataList + }) + + + this.specialDiscussionGet(data.datas[0]) + + + }, + + + specialDiscussionGet(item) { + let searchObj = {} + if (this.data.searchValue) { + searchObj = { + 'Name*': this.data.searchValue.trim() + // '||subtitle*': searchInputValue.value.trim() + } + } + const data = [] + app.MG.store + .getProductList({ + storeInfo: 'jsek_seminar', + path: item.refCode, + queryType: '*', + paging: { + start: 0, + size: 99 + }, + + fields: { + content: [], + subtitle: [], + backgroundSelection: [], + author: [], + viewCount: [], + startTime: [], + liveTime: [], + lecturer: [], + position: [], + jsek_link: [], + ...searchObj + } + }) + .then((res) => { + res.datas.forEach((item) => { + const date1 = new Date(this.data.formattedDate) + const date2 = new Date(item.liveTime) + + // 姣旇緝涓や釜鏃ユ湡 + if (date1 > date2) { + // console.log('鐩存挱缁撴潫锛岃鐪嬪洖鏀�') + data.push(item) + } else if (date1 < date2) { + // console.log('鐩存挱杩樻病寮�濮嬶紝璇风湅鍗冲皢寮�鎾�') + } else { + // console.log('涓や釜鏃堕棿鐩稿悓锛�') + } + }) + + this.setData({ + specialDiscussionList: data, + "tabList[1].amount": data.length + }) + + console.log(this.data.specialDiscussionList); + }) + }, + + searchBook() { + console.log(this.data.searchValue); + this.ceShiList() + this.specialDiscussionGet(this.data.batList[this.data.batListValue]) + + + }, + +}) \ No newline at end of file diff --git a/pages/specialDiscussion/index.json b/pages/specialDiscussion/index.json new file mode 100644 index 0000000..e2da6ff --- /dev/null +++ b/pages/specialDiscussion/index.json @@ -0,0 +1,11 @@ +{ + "usingComponents": { + "t-icon": "tdesign-miniprogram/icon/icon", + "t-search": "tdesign-miniprogram/search/search", + "t-empty": "tdesign-miniprogram/empty/empty", + "t-tabs": "tdesign-miniprogram/tabs/tabs", + "t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel" + }, + "navigationStyle": "custom", + "disableScroll": false +} \ No newline at end of file diff --git a/pages/specialDiscussion/index.wxml b/pages/specialDiscussion/index.wxml new file mode 100644 index 0000000..4e1a671 --- /dev/null +++ b/pages/specialDiscussion/index.wxml @@ -0,0 +1,75 @@ +<view style="width: 100%; height: {{barHeight}}px;"></view> +<view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;"> + <view> + <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> + </view> + <t-search model:value="{{searchValue}}" shape="round" placeholder="璇疯緭鍏ュ叧閿瘝/涔﹀悕/浣滆��" class="navBar-search" style="width: 464rpx" bind:submit="searchBook" /> +</view> + + +<view class="tabsBox"> + <view wx:for="{{tabList}}" wx:key="index" wx:for-item="item" data-index="{{index}}" bind:tap="onTabsTap" class="{{ index == tabIndex ?' tabsSelect ' : 'tabsNameBox'}}"> + <view class="{{ index == tabIndex ?' tabsNameSelect ' : 'tabsName'}}">{{item.name}} ({{item.amount}})</view> + <view class="{{index == tabIndex ? 'selectLine' :''}}"></view> + </view> +</view> + + +<view wx:if="{{tabIndex == 0}}"> + + + <view wx:for="{{specialSubjectList}}" wx:key="index" wx:for-item="item" data-item="{{item}}" bind:tap="onLink" class="displayContent"> + <view class="imageBox"> + <image src="{{item.icon}}" mode="aspectFit" /> + </view> + + <view class="tltieBox"> + <view class="nameTltieBox"> + {{item.name}} + </view> + <view class="directSeeding"> + 鐩存挱鏃堕棿锛歿{ item.liveTime }} + </view> + + <view class="position"> + <view style="color: #333;"> {{item.lecturer }}</view> + <view wx:if="{{item.price == 0}}" style="color: #FF6C00;">鍏嶈垂</view> + <view wx:else="" style="color: #FF6C00;">锟{item.price}}</view> + </view> + </view> + </view> + + + + +</view> +<view wx:else> + <t-tabs defaultValue="{{0}}" bind:change="onTabsChange" t-class="custom-tabs" t-class-content="custom-panel"> + <t-tab-panel wx:for="{{batList}}" wx:key="index" wx:for-item="item" data-item="{{item}}" label="{{item.name}}" value="{{index}}" style="{{tabPanelstyle}}"> + + + <view wx:for="{{specialDiscussionList}}" wx:key="index" wx:for-item="item" data-item="{{item}}" bind:tap="onLink" class="displayContent"> + <view class="imageBox"> + <image src="{{item.icon}}" mode="aspectFit" /> + </view> + + <view class="tltieBox"> + <view class="nameTltieBox"> + {{item.name}} + </view> + <view class="directSeeding"> + 鐩存挱鏃堕棿锛歿{ item.liveTime }} + </view> + + <view class="position"> + <view style="color: #333;"> {{item.lecturer }}</view> + <view wx:if="{{item.price == 0}}" style="color: #FF6C00;">鍏嶈垂</view> + <view wx:else="" style="color: #FF6C00;">锟{item.price}}</view> + </view> + </view> + </view> + + + </t-tab-panel> + </t-tabs> +</view> \ No newline at end of file diff --git a/pages/specialDiscussion/index.wxss b/pages/specialDiscussion/index.wxss new file mode 100644 index 0000000..3e2efd0 --- /dev/null +++ b/pages/specialDiscussion/index.wxss @@ -0,0 +1,136 @@ +/* pages/specialDiscussion/index.wxss */ +image { + width: 100%; + height: 100%; +} + +.nacigationBar { + display: flex; + align-items: center; + --td-search-font-size: 28rpx; + margin-bottom: 30rpx; +} + + +.nacigationBar .t-icon-base { + font-size: 38rpx; +} + + +.t-tabs__item--active { + color: #FF6C00 !important; +} + +.t-tabs__track { + background-color: #FF6C00 !important; +} + +.tabsBox { + width: 100%; + display: flex; + justify-content: flex-start; + border-bottom: 1rpx solid #ccc; +} + +.tabsNameBox { + margin: 0 50rpx; +} + +.tabsSelect { + margin: 0 50rpx; + color: #FF6C00; +} + +.tabsNameSelect { + min-width: 170rpx; + height: 40rpx; + background-repeat: no-repeat; + background-image: url(https://jsek.bnuic.com/home/image/click-icon.png); + background-position: 75% center; + background-size: 40% 60%; + /* 灏嗚儗鏅浘鐗囦綅缃缃负闈犲彸 */ + font-weight: bold; + font-size: 29rpx; + color: #FF6C00; +} + +.tabsName { + min-width: 170rpx; + height: 40rpx; + font-weight: 400; + font-size: 29rpx; + color: #333333; +} + +.selectLine { + width: 40rpx; + height: 6rpx; + background-color: #FF6C00; + border-radius: 8px; + margin: 0 auto; + margin-top: 20rpx; + margin-bottom: 1rpx; +} + +.displayContent { + width: 692rpx; + height: 250rpx; + background: #FFFFFF; + box-shadow: 0rpx 0rpx 18rpx 2rpx rgba(0, 0, 0, 0.08); + border-radius: 9rpx; + margin: 0 auto; + margin-top: 50rpx; + display: flex; + flex-direction: row; +} + +.imageBox { + width: 464rpx; + height: 100%; + background: #EAEAEA; + border-radius: 9rpx 0rpx 0rpx 9rpx; + object-fit: contain; +} + + +.tltieBox { + margin: 15rpx; +} + +.nameTltieBox { + width: 290rpx; + min-height: 76rpx; + font-weight: bold; + font-size: 29rpx; + color: #333333; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + overflow: hidden; + text-overflow: ellipsis; +} + +.directSeeding { + font-weight: 400; + font-size: 25rpx; + color: #9D9D9D; + margin: 20rpx 0; +} + +.position { + display: flex; + justify-content: space-between; + font-weight: 400; + font-size: 25rpx; + +} + +.t-tabs .t-tabs__item--active { + background-repeat: no-repeat; + /* background-size: 100% 100%; + background-position: 100% 100%; */ + background-image: url(https://jsek.bnuic.com/home/image/click-icon.png); + background-position: right center; + background-size: 30% 50%; + /* 灏嗚儗鏅浘鐗囦綅缃缃负闈犲彸 */ +} \ No newline at end of file diff --git a/pages/specialDiscussion/webView/index.js b/pages/specialDiscussion/webView/index.js new file mode 100644 index 0000000..5315a56 --- /dev/null +++ b/pages/specialDiscussion/webView/index.js @@ -0,0 +1,69 @@ +// pages/specialDiscussion/webView/index.js +Page({ + + /** + * 椤甸潰鐨勫垵濮嬫暟鎹� + */ + data: { + link:'' + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 + */ + onLoad(options) { + console.log(options); + this.setData({ + link:options.link + }) + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚 + */ + onReady() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず + */ + onShow() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰闅愯棌 + */ + onHide() { + + }, + + /** + * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍗歌浇 + */ + onUnload() { + + }, + + /** + * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔 + */ + onPullDownRefresh() { + + }, + + /** + * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁� + */ + onReachBottom() { + + }, + + /** + * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜� + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/specialDiscussion/webView/index.json b/pages/specialDiscussion/webView/index.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/pages/specialDiscussion/webView/index.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/specialDiscussion/webView/index.wxml b/pages/specialDiscussion/webView/index.wxml new file mode 100644 index 0000000..1c9a973 --- /dev/null +++ b/pages/specialDiscussion/webView/index.wxml @@ -0,0 +1 @@ +<web-view src="{{link}}"></web-view> \ No newline at end of file diff --git a/pages/specialDiscussion/webView/index.wxss b/pages/specialDiscussion/webView/index.wxss new file mode 100644 index 0000000..74240e5 --- /dev/null +++ b/pages/specialDiscussion/webView/index.wxss @@ -0,0 +1 @@ +/* pages/specialDiscussion/webView/index.wxss */ \ No newline at end of file diff --git a/services/home/home.js b/services/home/home.js index 4d907a8..e7f415a 100644 --- a/services/home/home.js +++ b/services/home/home.js @@ -43,7 +43,7 @@ text: '涓撻璁ㄨ', key: 4, icon: '/static/images/home/zhuantitaolun@2x.png', - url: '', + url: '/pages/specialDiscussion/index', }, { text: '绾夸笂涔﹀睍', -- Gitblit v1.9.1