home.vue 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502
  1. <template>
  2. <view class="index tn-safe-area-inset-bottom" style="background: #f7f7f7;min-height: 100vh;">
  3. <tn-nav-bar customBack>
  4. <view slot="back" class='tn-custom-nav-bar__back' >
  5. <image style="width: 28px;height: 28px;margin-left:4px" @click="reFetchData()" src="../../static/tu/reload.png"></image>
  6. <image style="width: 28px;height: 28px;margin-left:12px" @click="addButton()" src="../../static/tu/add.png"></image>
  7. </view>
  8. <view slot="default" style="display: flex;">
  9. <view style="flex:1;">
  10. <text :style="{fontSize:(wxFontSize)+'px'}">我要什么</text>
  11. </view>
  12. </view>
  13. </tn-nav-bar>
  14. <scroll-view :style="{paddingTop: vuex_custom_bar_height + 'px'}" style="height: 100vh;" class="custom-tabbar-page" lower-threshold="60" scroll-y :refresher-enabled="true" :refresher-triggered="triggered" @refresherpulling="onPulling" @refresherrestore="onRestore" @refresherrefresh="onRefresh" enable-back-to-top @scrolltolower="tabbarPageScrollLower">
  15. <view >
  16. <uv-sticky bgColor="#ffffff">
  17. <uni-search-bar radius="15" placeholder="搜索" @confirm="search" v-model="searchValue" @blur="search"
  18. @cancel="cancel" @clear="clear" cancelButton="auto" bgColor="#fff" clearButton="auto" :fontSize="(wxFontSize-2)"
  19. style="background: #f7f7f7;">
  20. <template v-slot:searchIcon>
  21. <image src="../../static/tu/search.png" style="width: 26px;height: 26px"></image>
  22. </template>
  23. </uni-search-bar></uv-sticky>
  24. <!-- 图文信息 -->
  25. <block v-for="(item,index) in content" :key="item.id" >
  26. <view class="blogger__item" style="border-radius: 12px;margin: 12px 16px 12px 16px; background-color: #fff;" :style="{marginTop:index==0?'0':'12px'}">
  27. <view class="blogger__author tn-flex tn-flex-row-between tn-flex-col-center">
  28. <view class="justify__author__info" @click="tn('')">
  29. <view class="tn-flex tn-flex-row-center">
  30. <view class="tn-flex tn-flex-row-center tn-flex-col-center">
  31. <view class="" style="width: 5px;height: 5px;background: #E18730;border-radius: 50%;margin-right: 4px;">
  32. </view>
  33. <view class="tn-padding-right">
  34. <view class="tn-padding-right tn-text-lg" style="color:#333" :style="{fontSize:(wxFontSize)+'px'}">
  35. {{ item.company }}
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. <view v-if="item.validDate"
  42. class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
  43. <text class="" style="background: #E6E8F4;font-size: 12px;word-break: keep-all;padding: 8px;color: #8383F7;border-radius: 24px;border-top-right-radius: 0;" :style="{fontSize:(wxFontSize-6)+'px'}" @click="showValid(item.validDate)">{{item.validDate}}</text>
  44. </view>
  45. </view>
  46. <view style="margin-top: 20rpx;border-radius: 0px 0px 0px 0px;width:calc(100% + 32px);margin-left:-16px;border-bottom: 1px solid #E6E6E6;"></view>
  47. <view
  48. class="blogger__desc tn-margin-top-sm tn-margin-bottom-sm tn-text-justify tn-flex-col-center tn-flex-row-left"
  49. >
  50. <text
  51. class="blogger__desc__content tn-flex-1 tn-text-justify tn-text-df" style="color:#747E87" :style="{fontSize:(wxFontSize-2)+'px'}">{{ item.content }}</text>
  52. </view>
  53. <block v-if="item.imgList">
  54. <view v-if="[1,2,4].indexOf(item.imgList.length) != -1" class="tn-padding-top-xs">
  55. <image v-for="(image_item,image_index) in item.imgList" :key="image_index"
  56. class="blogger__main-image" :class="{
  57. 'blogger__main-image--1 tn-margin-bottom-sm': item.imgList.length === 1,
  58. 'blogger__main-image--2 tn-margin-right-sm tn-margin-bottom-sm': item.imgList.length === 2 || item.imgList.length === 4
  59. }" :src="image_item.ftpUrl" mode="aspectFill" @click="showImg(item.imgList,image_index)"></image>
  60. </view>
  61. <view v-else class="tn-padding-top-xs">
  62. <tn-grid hoverClass="none" :col="3">
  63. <block v-for="(image_item,image_index) in item.imgList" :key="image_index">
  64. <!-- #ifndef MP-WEIXIN -->
  65. <tn-grid-item style="width: 30%;margin: 10rpx;">
  66. <image class="blogger__main-image blogger__main-image--3"
  67. :src="image_item.ftpUrl" mode="aspectFill"
  68. @click="showImg(item.imgList,image_index)"></image>
  69. </tn-grid-item>
  70. <!-- #endif-->
  71. <!-- #ifdef MP-WEIXIN -->
  72. <tn-grid-item style="width: 30%;margin: 10rpx;">
  73. <image class="blogger__main-image blogger__main-image--3"
  74. :src="image_item.ftpUrl" mode="aspectFill"
  75. @click="showImg(item.imgList,image_index)"></image>
  76. </tn-grid-item>
  77. <!-- #endif-->
  78. </block>
  79. </tn-grid>
  80. </view>
  81. </block>
  82. <view v-for="file in item.fileDetailList" style="background-color:#005da60d ;margin-bottom: 4px;padding: 4px 8px;border-radius: 4px;" :key="file.id" v-if="!isImage(file.fileName)" @click="clickLink(file.ftpUrl,file.fileName)">
  83. <view>
  84. <image src="../../static/tu/link.png" style="width: 18px;height: 18px;vertical-align: bottom;"></image>
  85. <view style="display: inline;margin-left:8px;color:#005DA6;" :style="{fontSize:(wxFontSize-3)+'px'}">
  86. {{file.fileName}}</view>
  87. </view>
  88. </view>
  89. <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin-top-xs">
  90. <view class="justify-content-item tn-color-gray tn-text-center">
  91. <view class="tn-padding-right tn-padding-top-xs tn-color-gray" :style="{fontSize:(wxFontSize-3)+'px',color:'#777'}">
  92. {{ item.createTime|formatDate }}
  93. </view>
  94. </view>
  95. <view class="justify-content-item tn-flex tn-flex-col-center" style="position: relative;">
  96. <image style="width: 30px;height:30px;" @click="showActionSheet(item)" src="../../static/tu/more.png"></image>
  97. <!-- <text class="tn-icon-more-vertical tn-text-bold tn-text-xxl" style="color: #005DA6;transform: rotate(90deg);"
  98. @click="showActionSheet(item)"></text> -->
  99. <view v-if="curItem.id==item.id&&showSheet" class="pop-dia" style="position: absolute;background: #E4F1FB;display: block;right: 10px;top: 24px;border-radius: 6px;z-index: 900;">
  100. <view class="content" style="padding: 8px;font-size: 16px;line-height: 24px; width: 180px;border-radius: 6px;z-index: -1;"
  101. v-if="!showContact">
  102. <button @click="linkTel()" style="border: none;border-radius: 0;color: #333333;background-color: #E4F1FB;border-bottom: 1px solid rgb(0 93 166 / 0.2);">
  103. <image src="../../static/tu/call.png" style="width: 26px;height: 26px;margin-right:10px;vertical-align: middle;"> 联系需方</button>
  104. <!-- <view>联系我们帮助对接</view> -->
  105. <button v-if="!collStatus" @click="addColl"
  106. style="border: none;border-radius: 0;color: #333333;background-color: #E4F1FB;border-bottom: 1px solid rgb(0 93 166 / 0.2);" type="default" plain="true">
  107. <image src="../../static/tu/coll.png" style="width: 26px;height: 26px;margin-right:10px;vertical-align: middle;">
  108. 收&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;藏</button>
  109. <button v-if="collStatus" @click="delColl"
  110. style="border: none;border-radius: 0;color: #333333;background-color: #E4F1FB;border-bottom: 1px solid rgb(0 93 166 / 0.2);" type="default" plain="true">
  111. <image src="../../static/tu/coll.png" style="width: 26px;height: 26px;margin-right:10px;vertical-align: middle;"> 取消收藏</button>
  112. <button open-type="share"
  113. style="border: none;border-radius: 0;color: #333333;background-color: #E4F1FB;" type="default" plain="true" :data-coupon="curItem">
  114. <image src="../../static/tu/share.png" style="width: 26px;height: 26px;margin-right:10px;vertical-align: middle;">
  115. 转&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发</button>
  116. </view>
  117. <view class="content " style="position: relative;background: linear-gradient( 180deg, #DAECFA 0%, #FFFFFF 27%, #FFFFFF 100%);padding: 24px 40px;padding-bottom: 32px;font-size: 16px;width: calc(100vw - 80px);line-height: 24px;border-radius: 12px;"
  118. v-if="showContact">
  119. <view><text style="font-size: 19px;font-weight: bold;color: #333;" v-if="curContact.company">{{curContact.company}}</text></view>
  120. <view style="margin-top:10px;font-size: 17px;text-align: center;color:#333">
  121. <image src="../../static/tu/person.png" style="width: 24px;height: 24px;vertical-align: sub;">
  122. <text style="margin-left: 6px;">{{curContact.contactPerson}}</text> </view>
  123. <view style="margin-top:10px;font-size: 17px;text-align: center;color:#333" @click="showTel(curContact.contactMethod)">
  124. <image src="../../static/tu/tel.png" style="width: 24px;height: 24px;vertical-align: middle;">
  125. <text style="margin-left: 4px;">{{curContact.contactMethod}}</text>
  126. </view>
  127. <image src="../../static/tu/close.png" style="width: 40px;height: 40px;position: absolute; left: calc(50vw - 60px);bottom: -64px;" @click="hideSheet()"></image>
  128. </view>
  129. <view style="position: fixed;top: 0;left: 0;height: 100000vh;width: 100%;background: rgb(0 0 0 / 0.5);z-index: -1;" @click="hideSheet()" v-if="showContact"></view>
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. <!-- 边距间隔 -->
  135. <!-- <view class="tn-strip-bottom" v-if="index != content.length - 1"></view> -->
  136. </block>
  137. <view v-if="showEmpty&&content.length==0" style="margin-top: 32vh;">
  138. <tn-empty mode="list"></tn-empty>
  139. </view>
  140. <!-- 结尾 -->
  141. <view v-if="content.length==totalSize&&totalSize!=0" style="background-color: #f7f7f7;padding: 16px 0;" :style="{paddingTop:showSheet?'166px':'16px'}">
  142. <tn-load-more status="nomore" :loadText="loadText" :fontSize="(wxFontSize+11)"></tn-load-more>
  143. </view>
  144. </view>
  145. </scroll-view>
  146. </view>
  147. </template>
  148. <script>
  149. import request from '../../utils/request'
  150. export default {
  151. name: 'Index',
  152. data() {
  153. return {
  154. loading: false,
  155. loadText: {
  156. loadmore: '下拉加载',
  157. loading: '快速加载中...',
  158. nomore: '恭喜你,已阅读完所有需求信息哦!'
  159. },
  160. showContact: false,
  161. curContact: {},
  162. totalSize: 0,
  163. curIndex: 1,
  164. showSheet: false,
  165. curItem: {},
  166. userNo: '',
  167. searchValue: '',
  168. collStatus: '',
  169. cardCur: 0,
  170. collId: '',
  171. isAndroid: true,
  172. content: [],
  173. showEmpty:false,
  174. wxFontSize:17,
  175. triggered: false,
  176. _freshing: false,
  177. shareData:{},
  178. }
  179. },
  180. filters: {
  181. formatDate(value) {
  182. if (!value) return '';
  183. const date = new Date(value);
  184. const today = new Date();
  185. const yesterday = new Date(today); // 昨天的日期
  186. yesterday.setDate(yesterday.getDate() - 1); // 将昨天的日期设置为前一天
  187. if (date.getFullYear() == today.getFullYear() && date.getMonth() == today.getMonth() && date.getDate() ==
  188. today.getDate()) {
  189. return '今天 ' + (date.getHours() > 9 ? '' : '0') + date.getHours() + ':' + (date
  190. .getMinutes() > 9 ? '' : '0') + date.getMinutes(); // 根据需要格式化日期
  191. }
  192. if (date.getFullYear() == yesterday.getFullYear() && date.getMonth() == yesterday.getMonth() && date
  193. .getDate() == yesterday.getDate()) {
  194. return '昨天 ' + (date.getHours() > 9 ? '' : '0') + date.getHours() + ':' + (date
  195. .getMinutes() > 9 ? '' : '0') + date.getMinutes(); // 根据需要格式化日期
  196. }
  197. return date.toLocaleDateString() + ' ' + (date.getHours() > 9 ? '' : '0') + date.getHours() + ':' + (date
  198. .getMinutes() > 9 ? '' : '0') + date.getMinutes(); // 根据需要格式化日期
  199. },
  200. },
  201. created() {
  202. const appBaseInfo = wx.getAppBaseInfo();
  203. this.wxFontSize = uni.getStorageSync('fontSize')||appBaseInfo.fontSizeSetting||17;
  204. // const accountInfo = uni.getAccountInfoSync();
  205. // if(accountInfo&&accountInfo.miniProgram.envVersion&&accountInfo.miniProgram.version){
  206. //正式上线版本
  207. this.fetchData();
  208. // }
  209. },
  210. methods: {
  211. // 瀑布流导航页面滚动到底部
  212. tabbarPageScrollLower(e) {
  213. this.loadMore();
  214. },
  215. onPulling(e) {
  216. console.log("onpulling", e);
  217. if(e.detail.deltaY<0){
  218. return
  219. }
  220. this.triggered = true
  221. },
  222. onRefresh(){
  223. if (this._freshing) return;
  224. this._freshing = true;
  225. this.reFetchData();
  226. setTimeout(() => {
  227. this.triggered = false;
  228. this._freshing = false;
  229. }, 2000)
  230. },
  231. onRestore() {
  232. this.triggered = false; // 需要重置
  233. },
  234. addLog(shareData){
  235. const that = this;
  236. let params= {
  237. bisNo:shareData.bisNo,
  238. bisType:'1',
  239. userNo:uni.getStorageSync('userNo')
  240. };
  241. request.post('/slbForward/add',{slbForward:JSON.stringify(params)},{
  242. headers: {
  243. 'Content-Type': 'application/json', // 默认值
  244. },
  245. }).then(res=>{
  246. })
  247. },
  248. sleep(time) {
  249. return new Promise((resolve) => setTimeout(resolve, time));
  250. },
  251. onShareAppMessage: function(option) {
  252. if(option.from=="button"){
  253. this.hideSheet();
  254. this.shareData=option.target.dataset.coupon;
  255. this.addLog(this.shareData);
  256. const promise = new Promise(async (resolve) => {
  257. await this.sleep(500);
  258. resolve({
  259. // title: `速立保`,
  260. path: `/pages/index/detail/detail?id=`+this.shareData.bisNo+'&isNeed=1',
  261. // imageUrl: url,
  262. });
  263. });
  264. // 默认参数
  265. return {
  266. // title: `速立保`,
  267. path: `/pages/index/detail/detail?id=`+this.shareData.bisNo+'&isNeed=1',
  268. promise,
  269. };
  270. }else{
  271. return {
  272. // title: '速立保',
  273. path: '/pages/index/index',
  274. };
  275. }
  276. },
  277. clickLink(url,fileName) {
  278. // uni.navigateTo({
  279. // url:'/pages/webview/web-view?url='+encodeURIComponent('https://slb-m.lx-device.com/webview?title='+fileName+'&url='+ url),
  280. // })
  281. uni.downloadFile({
  282. url: url,
  283. filePath: wx.env.USER_DATA_PATH + "/" + fileName,
  284. success: function (res) {
  285. const filePath = res.filePath
  286. uni.openDocument({
  287. filePath: filePath,
  288. showMenu: true,
  289. success: function (res) {
  290. console.log('打开文档成功')
  291. },
  292. fail: function(){
  293. uni.navigateTo({
  294. url:'/pages/webview/web-view?url='+encodeURIComponent('https://slb-m.lx-device.com/webview?title='+fileName+'&url='+ url),
  295. })
  296. }
  297. })
  298. }
  299. })
  300. // uni.navigateTo({
  301. // url: '/pages/webview/web-view?url=' + url,
  302. // })
  303. },
  304. isImage(fileName) {
  305. const imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'ico']
  306. const extension = fileName.split('.').pop().toLowerCase();
  307. return imageExtensions.includes(extension);
  308. },
  309. reFetchData() {
  310. this.loading = true;
  311. uni.showToast({
  312. title: '正在刷新...',
  313. icon: 'none'
  314. });
  315. this.fetchData();
  316. },
  317. fetchData(curIndex = 1) {
  318. let that = this;
  319. that.showEmpty = false;
  320. this.curIndex = curIndex;
  321. request.post('/slbResourceDemand/query', {
  322. index: curIndex,
  323. limit: 10,
  324. content: that.searchValue,
  325. }).then(res => {
  326. that.loading = false;
  327. if (res&&res.success) {
  328. that.totalSize = res.total || 0;
  329. let newList = res.list || [];
  330. for (let i = 0; i < newList.length; i++) {
  331. newList[i].imgList = [];
  332. for (let j = 0; j < newList[i].fileDetailList.length; j++) {
  333. if (that.isImage(newList[i].fileDetailList[j].fileName)) {
  334. newList[i].imgList.push(newList[i].fileDetailList[j]);
  335. }
  336. }
  337. }
  338. if (curIndex == 1) {
  339. that.content = newList || [];
  340. } else {
  341. that.content = that.content.concat(newList || []);
  342. }
  343. }
  344. that.showEmpty = true;
  345. })
  346. },
  347. // 跳转
  348. tn(e) {
  349. uni.navigateTo({
  350. url: e,
  351. });
  352. },
  353. hideSheet(){
  354. this.curItem = {}
  355. this.showSheet = false;
  356. },
  357. showActionSheet(item) {
  358. let that = this;
  359. if(!this.curItem.id){
  360. this.curItem = item;
  361. }else{
  362. this.curItem = {}
  363. this.showSheet = false;
  364. return false;
  365. }
  366. this.curItem.isNeed = 1;
  367. this.collStatus = false;
  368. this.showSheet = true;
  369. that.showContact = false;
  370. if (uni.getStorageSync('userNo')) {
  371. let params = {};
  372. params = {
  373. fkBisNo: that.curItem.bisNo,
  374. userNo: uni.getStorageSync('userNo'),
  375. };
  376. request.post('/slbCollect/query', params).then(res => {
  377. if (res.success) {
  378. if (res.list && res.list.length > 0) {
  379. that.collStatus = true;
  380. that.collId = res.list[0].id;
  381. }
  382. }
  383. })
  384. }
  385. },
  386. linkTel() {
  387. if (!uni.getStorageSync('userNo')) {
  388. uni.showToast({
  389. title: '请登录',
  390. icon:'none'
  391. })
  392. uni.navigateTo({
  393. url: '/pages/login/login'
  394. })
  395. return false;
  396. }
  397. let that = this;
  398. let params = {};
  399. params.slbBisContact = JSON.stringify({
  400. fkBisNo: that.curItem.bisNo,
  401. bisType: '1',
  402. type: '1',
  403. company: that.curItem.company,
  404. companyNo: that.curItem.companyNo,
  405. userNo: uni.getStorageSync('userNo'),
  406. });
  407. request.post('/slbBisContact/add', params).then(res => {
  408. if (res.success) {
  409. that.showContact = true;
  410. that.curContact.company = that.curItem.company;
  411. that.curContact.contactMethod = res.resultMap.contactMethod;
  412. that.curContact.contactPerson = res.resultMap.contactPerson;
  413. } else {
  414. that.showContact = false;
  415. uni.showToast({
  416. title: res.msg,
  417. icon: 'none'
  418. })
  419. }
  420. })
  421. },
  422. addColl() {
  423. if (!uni.getStorageSync('userNo')) {
  424. uni.showToast({
  425. title: '请登录',
  426. icon:'none'
  427. })
  428. uni.navigateTo({
  429. url: '/pages/login/login'
  430. })
  431. return false;
  432. }
  433. let that = this;
  434. let params = {};
  435. params.slbCollect = JSON.stringify({
  436. fkBisNo: that.curItem.bisNo,
  437. bisType: '1',
  438. userNo: uni.getStorageSync('userNo'),
  439. });
  440. request.post('/slbCollect/add', params).then(res => {
  441. if (res.success) {
  442. that.curItem = {}
  443. that.showSheet = false;
  444. uni.showToast({
  445. title: '信息已收藏,请在我的收藏里查看阅读',
  446. icon:'none',
  447. duration: 2000
  448. });
  449. } else {
  450. uni.showToast({
  451. title: res.msg,
  452. icon:'none'
  453. })
  454. }
  455. })
  456. },
  457. delColl() {
  458. let that = this;
  459. request.post('/slbCollect/del', {
  460. id: that.collId
  461. }).then(res => {
  462. if (res.success) {
  463. that.curItem = {}
  464. that.showSheet = false;
  465. wx.showToast({
  466. title: '此需求信息将不会保存在我的收藏里',
  467. icon:'none',
  468. duration: 2000
  469. });
  470. } else {
  471. uni.showToast({
  472. title: res.msg,
  473. icon:'none'
  474. })
  475. }
  476. })
  477. },
  478. showImg(items, index) {
  479. let urls = [];
  480. for (let i = 0; i < items.length; i++) {
  481. urls.push(items[i].ftpUrl);
  482. }
  483. // 预览图片
  484. uni.previewImage({
  485. urls: urls,
  486. current: index,
  487. });
  488. },
  489. showValid(text){
  490. uni.showToast({
  491. title: '有效期:'+text,
  492. icon: 'none'
  493. })
  494. },
  495. addButton() {
  496. if (!uni.getStorageSync('userNo')) {
  497. uni.showToast({
  498. title: '请登录',
  499. icon:'none'
  500. })
  501. uni.navigateTo({
  502. url: '/pages/login/login'
  503. })
  504. return false;
  505. } else {
  506. uni.navigateTo({
  507. url: '/circlePages/circle'
  508. })
  509. }
  510. //未登录,去登录
  511. //已登录,去新增第一步
  512. },
  513. loadMore() {
  514. if (this.totalSize > this.content.length) {
  515. this.fetchData(this.curIndex + 1);
  516. }
  517. console.error('正在加载更多');
  518. },
  519. search() {
  520. this.fetchData();
  521. },
  522. cancel() {
  523. this.searchValue = '';
  524. this.fetchData();
  525. },
  526. clear() {
  527. this.searchValue = '';
  528. this.fetchData();
  529. },
  530. showTel(tel){
  531. uni.makePhoneCall({
  532. phoneNumber: tel,
  533. });
  534. },
  535. showDetail(item){
  536. uni.navigateTo({
  537. url: '/pages/index/detail/detail?id='+item.bisNo+'&isNeed=1'
  538. })
  539. }
  540. }
  541. }
  542. </script>
  543. <style lang="scss" scoped>
  544. .index {
  545. max-height: 100vh;
  546. }
  547. /* 底部安全边距 start*/
  548. .tn-tabbar-height {
  549. min-height: 120rpx;
  550. height: calc(140rpx + env(safe-area-inset-bottom) / 2);
  551. height: calc(140rpx + constant(safe-area-inset-bottom));
  552. }
  553. /* 轮播视觉差 start */
  554. .card-swiper {
  555. height: 330rpx !important;
  556. }
  557. .card-swiper swiper-item {
  558. width: 750rpx !important;
  559. left: 0rpx;
  560. box-sizing: border-box;
  561. padding: 40rpx 30rpx 30rpx 30rpx;
  562. overflow: initial;
  563. }
  564. .card-swiper swiper-item .swiper-item {
  565. width: 100%;
  566. display: block;
  567. height: 100%;
  568. border-radius: 15rpx;
  569. transform: scale(1);
  570. transition: all 0.2s ease-in 0s;
  571. // overflow: hidden;
  572. }
  573. .card-swiper swiper-item.cur .swiper-item {
  574. transform: none;
  575. transition: all 0.2s ease-in 0s;
  576. }
  577. .card-swiper swiper-item .swiper-item-text {
  578. margin-top: -160rpx;
  579. text-align: center;
  580. width: 100%;
  581. display: block;
  582. height: 50%;
  583. border-radius: 10rpx;
  584. transform: translate(100rpx, -60rpx) scale(0.9, 0.9);
  585. transition: all 0.6s ease 0s;
  586. overflow: hidden;
  587. }
  588. .card-swiper swiper-item.cur .swiper-item-text {
  589. margin-top: -220rpx;
  590. width: 100%;
  591. transform: translate(0rpx, 0rpx) scale(0.9, 0.9);
  592. transition: all 0.6s ease 0s;
  593. }
  594. .image-banner {
  595. border: 1rpx solid #F8F7F8;
  596. display: flex;
  597. align-items: center;
  598. justify-content: center;
  599. }
  600. .image-banner image {
  601. width: 100%;
  602. height: 100%;
  603. }
  604. /* 轮播指示点 start*/
  605. .indication {
  606. z-index: 9999;
  607. width: 100%;
  608. height: 36rpx;
  609. position: absolute;
  610. display: flex;
  611. flex-direction: row;
  612. align-items: center;
  613. justify-content: center;
  614. }
  615. .spot {
  616. background-color: #FFFFFF;
  617. opacity: 0.6;
  618. width: 10rpx;
  619. height: 10rpx;
  620. border-radius: 20rpx;
  621. top: -70rpx;
  622. margin: 0 8rpx !important;
  623. position: relative;
  624. }
  625. .spot.active {
  626. opacity: 1;
  627. width: 30rpx;
  628. background-color: #FFFFFF;
  629. }
  630. /* 图标容器12 start */
  631. .tn-three {
  632. position: absolute;
  633. top: 50%;
  634. right: 50%;
  635. bottom: 50%;
  636. left: 50%;
  637. transform: translate(-38rpx, -20rpx) rotateX(20deg) rotateY(10deg) rotateZ(-20deg);
  638. text-shadow: -1rpx 2rpx 0 #f0f0f0, -2rpx 4rpx 0 #f0f0f0, -10rpx 20rpx 30rpx rgba(0, 0, 0, 0.2);
  639. }
  640. .icon12 {
  641. &__item {
  642. width: 30%;
  643. background-color: #FFFFFF;
  644. border-radius: 10rpx;
  645. padding: 30rpx;
  646. margin: 20rpx 10rpx;
  647. transform: scale(1);
  648. transition: transform 0.3s linear;
  649. transform-origin: center center;
  650. &--icon {
  651. width: 100rpx;
  652. height: 100rpx;
  653. font-size: 60rpx;
  654. border-radius: 50%;
  655. margin-bottom: 18rpx;
  656. position: relative;
  657. z-index: 1;
  658. &::after {
  659. content: " ";
  660. position: absolute;
  661. z-index: -1;
  662. width: 100%;
  663. height: 100%;
  664. left: 0;
  665. bottom: 0;
  666. border-radius: inherit;
  667. opacity: 1;
  668. transform: scale(1, 1);
  669. background-size: 100% 100%;
  670. background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/icon_bg6.png);
  671. }
  672. }
  673. }
  674. }
  675. /* 自定义导航栏内容 start */
  676. .custom-nav {
  677. height: 100%;
  678. &__back {
  679. margin: auto 5rpx;
  680. font-size: 40rpx;
  681. margin-right: 10rpx;
  682. margin-left: 30rpx;
  683. flex-basis: 5%;
  684. }
  685. &__search {
  686. flex-basis: 70%;
  687. width: 100%;
  688. height: 100%;
  689. &__box {
  690. width: 100%;
  691. height: 70%;
  692. padding: 10rpx 0;
  693. margin: 0 30rpx;
  694. border-radius: 60rpx 60rpx 0 60rpx;
  695. font-size: 24rpx;
  696. }
  697. &__icon {
  698. padding-right: 10rpx;
  699. margin-left: 20rpx;
  700. font-size: 30rpx;
  701. }
  702. &__text {
  703. // color: #AAAAAA;
  704. }
  705. }
  706. }
  707. .logo-image {
  708. width: 65rpx;
  709. height: 65rpx;
  710. position: relative;
  711. border: 1rpx solid #F8F7F8;
  712. border-radius: 50%;
  713. }
  714. .logo-pic {
  715. background-size: cover;
  716. background-repeat: no-repeat;
  717. // background-attachment:fixed;
  718. background-position: top;
  719. border-radius: 50%;
  720. }
  721. /* 自定义导航栏内容 end */
  722. /* 热门图片 start*/
  723. .image-tuniao1 {
  724. padding: 165rpx 0rpx;
  725. font-size: 40rpx;
  726. font-weight: 300;
  727. position: relative;
  728. }
  729. .image-tuniao2 {
  730. padding: 75rpx 0rpx;
  731. font-size: 40rpx;
  732. font-weight: 300;
  733. position: relative;
  734. }
  735. .image-tuniao3 {
  736. padding: 90rpx 0rpx;
  737. font-size: 40rpx;
  738. font-weight: 300;
  739. position: relative;
  740. }
  741. .image-pic {
  742. border: 1rpx solid #F8F7F8;
  743. background-size: cover;
  744. background-repeat: no-repeat;
  745. // background-attachment:fixed;
  746. background-position: top;
  747. border-radius: 10rpx;
  748. }
  749. /* 文章内容 start*/
  750. .tn-blogger-content {
  751. &__wrap {
  752. margin: 30rpx;
  753. }
  754. &__info {
  755. &__btn {
  756. margin-right: -12rpx;
  757. opacity: 0.5;
  758. }
  759. }
  760. &__label {
  761. &__item {
  762. color: #1D2541;
  763. background-color: #F3F2F7;
  764. border-radius: 10rpx;
  765. font-size: 22rpx;
  766. padding: 5rpx 15rpx;
  767. margin: 5rpx 0 0 18rpx;
  768. &--prefix {
  769. font-size: 24rpx;
  770. color: #1D2541;
  771. padding-right: 10rpx;
  772. }
  773. }
  774. &__desc {
  775. line-height: 55rpx;
  776. }
  777. }
  778. &__main-image {
  779. border: 1rpx solid #F8F7F8;
  780. border-radius: 16rpx;
  781. &--1 {
  782. max-width: 690rpx;
  783. min-width: 690rpx;
  784. max-height: 400rpx;
  785. min-height: 400rpx;
  786. }
  787. &--2 {
  788. max-width: 260rpx;
  789. max-height: 260rpx;
  790. }
  791. &--3 {
  792. height: 212rpx;
  793. width: 100%;
  794. }
  795. }
  796. &__count-icon {
  797. font-size: 40rpx;
  798. padding-right: 5rpx;
  799. }
  800. }
  801. .image-wallpaper {
  802. padding: 160rpx 0rpx;
  803. font-size: 40rpx;
  804. font-weight: 300;
  805. position: relative;
  806. }
  807. .image-pic {
  808. background-size: cover;
  809. background-repeat: no-repeat;
  810. // background-attachment:fixed;
  811. background-position: top;
  812. border-radius: 10rpx;
  813. }
  814. /* 文章内容 end*/
  815. .circle {
  816. max-height: 100vh;
  817. }
  818. /* 底部安全边距 start*/
  819. .tn-tabbar-height {
  820. min-height: 120rpx;
  821. height: calc(140rpx + env(safe-area-inset-bottom) / 2);
  822. height: calc(140rpx + constant(safe-area-inset-bottom));
  823. }
  824. /* 自定义导航栏内容 start */
  825. .custom-nav {
  826. height: 100%;
  827. &__back {
  828. margin: auto 5rpx;
  829. font-size: 40rpx;
  830. margin-right: 10rpx;
  831. margin-left: 30rpx;
  832. flex-basis: 5%;
  833. }
  834. &__search {
  835. flex-basis: 60%;
  836. width: 100%;
  837. height: 100%;
  838. &__box {
  839. width: 100%;
  840. height: 70%;
  841. padding: 10rpx 0;
  842. margin: 0 30rpx;
  843. border-radius: 60rpx 60rpx 0 60rpx;
  844. font-size: 24rpx;
  845. }
  846. &__icon {
  847. padding-right: 10rpx;
  848. margin-left: 20rpx;
  849. font-size: 30rpx;
  850. }
  851. &__text {
  852. color: #AAAAAA;
  853. }
  854. }
  855. }
  856. .logo-image {
  857. width: 60rpx;
  858. height: 60rpx;
  859. position: relative;
  860. margin-top: -15rpx;
  861. }
  862. .logo-pic {
  863. background-size: cover;
  864. background-repeat: no-repeat;
  865. // background-attachment:fixed;
  866. background-position: top;
  867. border-radius: 50%;
  868. }
  869. /* 自定义导航栏内容 end */
  870. /* 博主头像 start*/
  871. .image-circle {
  872. // padding: 95rpx;
  873. width: 190rpx;
  874. height: 190rpx;
  875. font-size: 40rpx;
  876. font-weight: 300;
  877. position: relative;
  878. }
  879. .image-pic {
  880. border: 1rpx solid #F8F7F8;
  881. background-size: cover;
  882. background-repeat: no-repeat;
  883. // background-attachment:fixed;
  884. background-position: top;
  885. border-radius: 10rpx;
  886. }
  887. .tn-color-cat {
  888. color: #1D2541;
  889. }
  890. .tn-bg-cat {
  891. background-color: #1D2541;
  892. }
  893. /* 文章内容 start*/
  894. .blogger {
  895. &__item {
  896. padding: 30rpx;
  897. }
  898. &__author {
  899. &__btn {
  900. margin-right: -12rpx;
  901. opacity: 0.5;
  902. }
  903. }
  904. &__desc {
  905. line-height: 30rpx;
  906. &__label {
  907. color: #1D2541;
  908. background-color: #F3F2F7;
  909. border-radius: 10rpx;
  910. font-size: 22rpx;
  911. padding: 5rpx 15rpx;
  912. margin: 5rpx 18rpx 0 0;
  913. &--prefix {
  914. font-size: 24rpx;
  915. color: #1D2541;
  916. padding-right: 10rpx;
  917. }
  918. }
  919. &__content {
  920. line-height: 50rpx;
  921. }
  922. }
  923. &__content {
  924. margin-top: 18rpx;
  925. padding-right: 18rpx;
  926. &__data {
  927. line-height: 46rpx;
  928. text-align: justify;
  929. overflow: hidden;
  930. transition: all 0.25s ease-in-out;
  931. }
  932. &__status {
  933. margin-top: 10rpx;
  934. font-size: 26rpx;
  935. color: #82B2FF;
  936. }
  937. }
  938. &__main-image {
  939. border: 1rpx solid #F8F7F8;
  940. border-radius: 16rpx;
  941. &--1 {
  942. max-width: 80%;
  943. max-height: 300rpx;
  944. }
  945. &--2 {
  946. max-width: 260rpx;
  947. max-height: 260rpx;
  948. }
  949. &--3 {
  950. height: 212rpx;
  951. width: 100%;
  952. }
  953. }
  954. &__count-icon {
  955. font-size: 40rpx;
  956. padding-right: 5rpx;
  957. }
  958. &__ad {
  959. width: 100%;
  960. height: 500rpx;
  961. transform: translate3d(0px, 0px, 0px) !important;
  962. ::v-deep .uni-swiper-slide-frame {
  963. transform: translate3d(0px, 0px, 0px) !important;
  964. }
  965. .uni-swiper-slide-frame {
  966. transform: translate3d(0px, 0px, 0px) !important;
  967. }
  968. &__item {
  969. position: absolute;
  970. width: 100%;
  971. height: 100%;
  972. transform-origin: left center;
  973. transform: translate3d(100%, 0px, 0px) scale(1) !important;
  974. transition: transform 0.25s ease-in-out;
  975. z-index: 1;
  976. &--0 {
  977. transform: translate3d(0%, 0px, 0px) scale(1) !important;
  978. z-index: 4;
  979. }
  980. &--1 {
  981. transform: translate3d(13%, 0px, 0px) scale(0.9) !important;
  982. z-index: 3;
  983. }
  984. &--2 {
  985. transform: translate3d(26%, 0px, 0px) scale(0.8) !important;
  986. z-index: 2;
  987. }
  988. }
  989. &__content {
  990. border-radius: 40rpx;
  991. width: 640rpx;
  992. height: 500rpx;
  993. overflow: hidden;
  994. }
  995. &__image {
  996. width: 100%;
  997. height: 100%;
  998. }
  999. }
  1000. }
  1001. /* 文章内容 end*/
  1002. /* 间隔线 start*/
  1003. .tn-strip-bottom {
  1004. width: 100%;
  1005. border-bottom: 20rpx solid rgba(241, 241, 241, 0.8);
  1006. }
  1007. /* 间隔线 end*/
  1008. /* 广告内容 start */
  1009. .ad-image {
  1010. width: 80rpx;
  1011. height: 80rpx;
  1012. position: relative;
  1013. }
  1014. .ad-pic {
  1015. background-size: cover;
  1016. background-repeat: no-repeat;
  1017. // background-attachment:fixed;
  1018. background-position: top;
  1019. border-radius: 20%;
  1020. }
  1021. /* 自定义导航栏内容 end */
  1022. /* 全屏轮播 start*/
  1023. .card-swiper {
  1024. height: 100vh !important;
  1025. }
  1026. .card-swiper swiper-item {
  1027. width: 750rpx !important;
  1028. left: 0rpx;
  1029. box-sizing: border-box;
  1030. overflow: initial;
  1031. }
  1032. .card-swiper swiper-item .swiper-item {
  1033. width: 100%;
  1034. display: block;
  1035. height: 100vh;
  1036. border-radius: 0rpx;
  1037. transform: scale(1);
  1038. transition: all 0.2s ease-in 0s;
  1039. overflow: hidden;
  1040. }
  1041. .card-swiper swiper-item.cur .swiper-item {
  1042. transform: none;
  1043. transition: all 0.2s ease-in 0s;
  1044. }
  1045. .card-swiper swiper-item .swiper-item-png {
  1046. margin-top: -50vh;
  1047. width: 100%;
  1048. display: block;
  1049. border-radius: 0rpx;
  1050. transform: translate(1040rpx, 20rpx) scale(0.5, 0.5);
  1051. transition: all 0.6s ease 0s;
  1052. // overflow: hidden;
  1053. }
  1054. .card-swiper swiper-item.cur .swiper-item-png {
  1055. margin-top: -100vh;
  1056. width: 900rpx;
  1057. transform: translate(-80rpx, 0rpx) scale(1, 1);
  1058. transition: all 0.6s ease 0s;
  1059. }
  1060. .image-banner {
  1061. display: flex;
  1062. align-items: center;
  1063. justify-content: center;
  1064. }
  1065. .image-banner image {
  1066. width: 100%;
  1067. }
  1068. /* 轮播指示点 start*/
  1069. .indication {
  1070. z-index: 9999;
  1071. width: 100%;
  1072. height: 36rpx;
  1073. position: fixed;
  1074. // display:flex;
  1075. display: block;
  1076. flex-direction: row;
  1077. align-items: center;
  1078. justify-content: center;
  1079. }
  1080. .spot {
  1081. background-color: #000;
  1082. opacity: 0.3;
  1083. width: 10rpx;
  1084. height: 10rpx;
  1085. border-radius: 20rpx;
  1086. margin: 20rpx 0 !important;
  1087. left: 95vw;
  1088. top: -60vh;
  1089. position: relative;
  1090. }
  1091. .spot.active {
  1092. opacity: 0.6;
  1093. height: 30rpx;
  1094. background-color: #000;
  1095. }
  1096. /* 资讯主图 start*/
  1097. .image-article {
  1098. border-radius: 8rpx;
  1099. border: 1rpx solid #F8F7F8;
  1100. width: 200rpx;
  1101. height: 200rpx;
  1102. position: relative;
  1103. }
  1104. .image-pic {
  1105. background-size: cover;
  1106. background-repeat: no-repeat;
  1107. // background-attachment:fixed;
  1108. background-position: top;
  1109. border-radius: 10rpx;
  1110. }
  1111. .article-shadow {
  1112. border-radius: 15rpx;
  1113. box-shadow: 0rpx 0rpx 50rpx 0rpx rgba(0, 0, 0, 0.07);
  1114. }
  1115. /* 文字截取*/
  1116. .clamp-text-1 {
  1117. -webkit-line-clamp: 1;
  1118. display: -webkit-box;
  1119. -webkit-box-orient: vertical;
  1120. text-overflow: ellipsis;
  1121. overflow: hidden;
  1122. }
  1123. .clamp-text-2 {
  1124. -webkit-line-clamp: 2;
  1125. display: -webkit-box;
  1126. -webkit-box-orient: vertical;
  1127. text-overflow: ellipsis;
  1128. overflow: hidden;
  1129. }
  1130. /* 标签内容 start*/
  1131. .tn-tag-content {
  1132. &__item {
  1133. display: inline-block;
  1134. line-height: 35rpx;
  1135. color: #1D2541;
  1136. background-color: #F3F2F7;
  1137. border-radius: 10rpx;
  1138. font-size: 22rpx;
  1139. padding: 5rpx 15rpx;
  1140. &--prefix {
  1141. padding-right: 10rpx;
  1142. }
  1143. }
  1144. }
  1145. /* 图标容器9 start */
  1146. .icon9 {
  1147. &__item {
  1148. width: 30%;
  1149. background-color: #FFFFFF;
  1150. border-radius: 10rpx;
  1151. padding: 30rpx;
  1152. margin: 20rpx 10rpx;
  1153. transform: scale(1);
  1154. transition: transform 0.3s linear;
  1155. transform-origin: center center;
  1156. &--icon {
  1157. width: 110rpx;
  1158. height: 110rpx;
  1159. font-size: 65rpx;
  1160. border-radius: 50%;
  1161. margin: 20rpx 40rpx;
  1162. position: relative;
  1163. z-index: 1;
  1164. &::after {
  1165. content: " ";
  1166. position: absolute;
  1167. z-index: -1;
  1168. width: 100%;
  1169. height: 100%;
  1170. left: 0;
  1171. bottom: 0;
  1172. border-radius: inherit;
  1173. opacity: 1;
  1174. transform: scale(1, 1);
  1175. background-size: 100% 100%;
  1176. background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/icon_bg5.png);
  1177. }
  1178. }
  1179. }
  1180. }
  1181. /* 悬浮 */
  1182. .tnxuanfu {
  1183. animation: suspension 3s ease-in-out infinite;
  1184. }
  1185. @keyframes suspension {
  1186. 0%,
  1187. 100% {
  1188. transform: translateY(0);
  1189. }
  1190. 50% {
  1191. transform: translateY(-0.8rem);
  1192. }
  1193. }
  1194. /* 悬浮按钮 */
  1195. .button-shop {
  1196. width: 90rpx;
  1197. height: 90rpx;
  1198. display: flex;
  1199. flex-direction: row;
  1200. position: fixed;
  1201. /* bottom:200rpx;
  1202. right: 20rpx; */
  1203. left: 5rpx;
  1204. top: 5rpx;
  1205. z-index: 1001;
  1206. border-radius: 100px;
  1207. opacity: 0.9;
  1208. }
  1209. /* 按钮 */
  1210. .edit {
  1211. bottom: 300rpx;
  1212. right: 75rpx;
  1213. position: fixed;
  1214. z-index: 9999;
  1215. }
  1216. .pa,
  1217. .pa0 {
  1218. position: absolute
  1219. }
  1220. .pa0 {
  1221. left: 0;
  1222. top: 0
  1223. }
  1224. .bg0 {
  1225. width: 100rpx;
  1226. height: 100rpx;
  1227. top: 50%;
  1228. left: 50%;
  1229. transform: translate(-50%, -50%);
  1230. }
  1231. .bg1 {
  1232. width: 100%;
  1233. height: 100%;
  1234. }
  1235. .hx-box {
  1236. top: 50%;
  1237. left: 50%;
  1238. width: 100rpx;
  1239. height: 100rpx;
  1240. transform-style: preserve-3d;
  1241. transform: translate(-50%, -50%) rotateY(75deg) rotateZ(10deg);
  1242. }
  1243. .hx-box .pr {
  1244. width: 100rpx;
  1245. height: 100rpx;
  1246. transform-style: preserve-3d;
  1247. animation: hxz 20s linear infinite;
  1248. }
  1249. @keyframes hxz {
  1250. 0% {
  1251. transform: rotateX(0deg);
  1252. }
  1253. 100% {
  1254. transform: rotateX(-360deg);
  1255. }
  1256. }
  1257. .hx-box .pr .pa0 {
  1258. width: 100rpx;
  1259. height: 100rpx;
  1260. /* border: 4px solid #5ec0ff; */
  1261. border-radius: 1000px;
  1262. }
  1263. .hx-box .pr .pa0 .span {
  1264. display: block;
  1265. width: 100%;
  1266. height: 100%;
  1267. background: url(https://resource.tuniaokj.com/images/cool_bg_image/arc4.png) no-repeat center center;
  1268. background-size: 100% 100%;
  1269. animation: hx 4s linear infinite;
  1270. }
  1271. @keyframes hx {
  1272. to {
  1273. transform: rotate(360deg);
  1274. }
  1275. }
  1276. .hx-k1 {
  1277. transform: rotateX(-60deg) rotateZ(-60deg)
  1278. }
  1279. .hx-k2 {
  1280. transform: rotateX(-30deg) rotateZ(-30deg)
  1281. }
  1282. .hx-k3 {
  1283. transform: rotateX(0deg) rotateZ(0deg)
  1284. }
  1285. .hx-k4 {
  1286. transform: rotateX(30deg) rotateZ(30deg)
  1287. }
  1288. .hx-k5 {
  1289. transform: rotateX(60deg) rotateZ(60deg)
  1290. }
  1291. .hx-k6 {
  1292. transform: rotateX(90deg) rotateZ(90deg)
  1293. }
  1294. </style>