| | |
| | | const app = getApp(); |
| | | import moment from 'moment' |
| | | import tool2 from "../../../assets/js/toolClass.js" |
| | | import { getPublicImage } from "../../../assets/js/middleGround/tool.js"; |
| | | import { |
| | | getPublicImage |
| | | } from "../../../assets/js/middleGround/tool.js"; |
| | | Page({ |
| | | |
| | | /** |
| | |
| | | }, 1000) //延迟时间 |
| | | } |
| | | }) |
| | | |
| | | |
| | | }); |
| | | } |
| | | } |
| | | |
| | | |
| | | }, |
| | | //商品列表 |
| | | getDataList(isReachBottom) { |
| | |
| | | }).then((res) => { |
| | | try { |
| | | if (res.datas.length > 0) { |
| | | console.log(res.datas); |
| | | res.datas.forEach((item, index) => { |
| | | item.createDate = moment(item.createDate).format("YYYY-MM-DD HH:mm:ss"); |
| | | let oldlist = []; |
| | |
| | | |
| | | }) |
| | | }, |
| | | |
| | | goBookDetails(e) { |
| | | const { |
| | | book |
| | | } = e.currentTarget.dataset; |
| | | console.log(book) |
| | | wx.navigateTo({ |
| | | url: `/packageBookService/pages/bookServices/detail/index?id=${book.id}&name=${book.name}`, |
| | | }); |
| | | }, |
| | | /** |
| | | * 页面相关事件处理函数--监听用户下拉动作 |
| | | */ |