| | |
| | | /** |
| | | * 组件的初始数据 |
| | | */ |
| | | data: {}, |
| | | data: { |
| | | rowCol: [{ |
| | | size: '200rpx', |
| | | borderRadius: '12rpx' |
| | | }, 1], |
| | | }, |
| | | |
| | | /** |
| | | * 组件的方法列表 |
| | |
| | | this.triggerEvent("goBookDetails", myEventDetail, myEventOption); |
| | | }, |
| | | }, |
| | | }); |
| | | }); |
| | |
| | | <!--packageBookService/pages/bookServices/detail/components/relatedBooks/index.wxml--> |
| | | <view class="reletedBooks fl "> |
| | | <view class="reletedBooks fl"> |
| | | <view |
| | | wx:for="{{relatedBookData}}" |
| | | wx:key="id" |
| | |
| | | <t-empty icon="folder-open" description="暂无数据" /> |
| | | </view> |
| | | <view class="loading-box" wx:if="{{relatedBookLoading}}"> |
| | | <!-- relatedBookLoading --> |
| | | <t-skeleton |
| | | row-col="{{[1,1,1,1,1,1]}}" |
| | | theme="paragraph" |
| | | animation="gradient" |
| | | loading="{{relatedBookLoading}}" |
| | | ></t-skeleton> |
| | | rowCol="{{rowCol}}" |
| | | theme="paragraph" |
| | | animation="gradient" |
| | | loading="{{true}}" |
| | | ></t-skeleton> |
| | | <t-skeleton |
| | | rowCol="{{rowCol}}" |
| | | theme="paragraph" |
| | | animation="gradient" |
| | | loading="{{true}}" |
| | | ></t-skeleton> |
| | | <t-skeleton |
| | | rowCol="{{rowCol}}" |
| | | theme="paragraph" |
| | | animation="gradient" |
| | | loading="{{true}}" |
| | | ></t-skeleton> |
| | | </view> |
| | | </view> |
| | |
| | | } |
| | | |
| | | .loading-box { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | width: 100%; |
| | | height: min-content; |
| | | } |
| | |
| | | icon1: { |
| | | name: "/static/images/bookService/detail/dangdang.png", |
| | | }, |
| | | rowCol: [{ |
| | | width: '50%', |
| | | }, |
| | | { |
| | | width: '100%' |
| | | }, |
| | | { |
| | | width: '80%' |
| | | }, |
| | | { |
| | | width: '100%' |
| | | }, { |
| | | width: '100%' |
| | | }, |
| | | ] |
| | | }, |
| | | |
| | | resetTree: function (e) { |
| | |
| | | /> --> |
| | | <view wx:if="{{loading}}" style="width: 100%; height: min-content"> |
| | | <t-skeleton |
| | | row-col="{{[1,1,2,1,1,2]}}" |
| | | row-col="{{rowCol}}" |
| | | theme="paragraph" |
| | | animation="gradient" |
| | | loading="{{loading}}" |
| | |
| | | <!--pages/examination/examination.wxml--> |
| | | |
| | | <import src="examination.skeleton.wxml" /> |
| | | <template is="skeleton" wx:if="{{true}}" /> |
| | | <template is="skeleton" wx:if="{{loading}}" /> |
| | | |
| | | <!--导航区域 --> |
| | | <view |
| | |
| | | // pages/bookServices/assort/index.js |
| | | import { getPublicImage } from "../../../assets/js/middleGround/tool"; |
| | | import { |
| | | getPublicImage |
| | | } from "../../../assets/js/middleGround/tool"; |
| | | const app = getApp(); |
| | | Page({ |
| | | /** |
| | |
| | | }); |
| | | const query = { |
| | | path: "*", |
| | | filterList: [ |
| | | { |
| | | value: "Normal", |
| | | field: "state", |
| | | }, |
| | | ], |
| | | filterList: [{ |
| | | value: "Normal", |
| | | field: "state", |
| | | }, ], |
| | | queryType: "\\", |
| | | searchList: [], |
| | | size: "30", |
| | | start: "0", |
| | | storeRefCode: app.config.goodsStore, |
| | | sort: { type: "Asc", field: "LinkOrder" }, |
| | | sort: { |
| | | type: "Asc", |
| | | field: "LinkOrder" |
| | | }, |
| | | }; |
| | | app.MG.store.getStoreChannelList(query).then((res) => { |
| | | const list = res.datas.filter( |
| | |
| | | }); |
| | | const query = { |
| | | path, |
| | | filterList: [ |
| | | { |
| | | value: "Normal", |
| | | field: "state", |
| | | }, |
| | | ], |
| | | filterList: [{ |
| | | value: "Normal", |
| | | field: "state", |
| | | }, ], |
| | | queryType: "\\", |
| | | searchList: [], |
| | | size: "30", |
| | | start: "0", |
| | | storeRefCode: app.config.goodsStore, |
| | | sort: { type: "Asc", field: "LinkOrder" }, |
| | | sort: { |
| | | type: "Asc", |
| | | field: "LinkOrder" |
| | | }, |
| | | }; |
| | | app.MG.store.getStoreChannelList(query).then(async (res) => { |
| | | // 获取二级分类 |
| | | for (let index = 0; index < res.datas.length; index++) { |
| | | const item = res.datas[index]; |
| | | item.icon |
| | | ? (item.icon = getPublicImage(item.icon, 500)) |
| | | : (item.icon = item.icon); |
| | | item.icon ? |
| | | (item.icon = getPublicImage(item.icon, 500)) : |
| | | (item.icon = item.icon); |
| | | item.children = await this.getSecondList(item); |
| | | } |
| | | console.log(res.datas); |
| | | // 一级分类赋值 |
| | | this.setData({ |
| | | startList: res.datas, |
| | |
| | | let datas; |
| | | const query = { |
| | | path, |
| | | filterList: [ |
| | | { |
| | | value: "Normal", |
| | | field: "state", |
| | | }, |
| | | ], |
| | | filterList: [{ |
| | | value: "Normal", |
| | | field: "state", |
| | | }, ], |
| | | coverSize: { |
| | | width: 500, |
| | | }, |
| | |
| | | size: "30", |
| | | start: "0", |
| | | storeRefCode: app.config.goodsStore, |
| | | sort: { type: "Asc", field: "LinkOrder" }, |
| | | sort: { |
| | | type: "Asc", |
| | | field: "LinkOrder" |
| | | }, |
| | | }; |
| | | await app.MG.store.getStoreChannelList(query).then((res) => { |
| | | for (let index = 0; index < res.datas.length; index++) { |
| | |
| | | "startCheck.id": data.id, |
| | | "startCheck.code": data.refCode, |
| | | }); |
| | | console.log(data); |
| | | }, |
| | | // 跳转列表页 |
| | | goPageList(e) { |
| | |
| | | url: `/packageBookService/pages/bookServices/list/index?assorName=${this.data.assortCheck.name}&assortCode=${this.data.assortCheck.code}&stairCode=${this.data.startCheck.code}&searchValue=${e.detail.value}`, |
| | | }); |
| | | }, |
| | | }); |
| | | }); |
| | |
| | | <view style="width: 100%; height: 47px"></view> |
| | | <view class="nacigationBar" style="width: 100%; height: 40px"> |
| | | <view |
| | | class="navbar-title sk-transparent sk-text-14-2857-436 sk-text" |
| | | class="navbar-title " |
| | | style="background-position-x: 50%" |
| | | >图书服务</view |
| | | > |
| | |
| | | .navbar-title { |
| | | text-align: center; |
| | | color: #0F1214; |
| | | font-size: 40rpx; |
| | | font-weight: bold; |
| | | font-size: 36rpx; |
| | | } |
| | | |
| | | .page-header { |