From 56b70cdad0a96691eaf37e04a79ef5e92b892480 Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期五, 19 四月 2024 11:14:40 +0800 Subject: [PATCH] bug1 --- pages/cart/paymentPage/index.wxml | 2 packageBookService/pages/bookServices/detail/index.wxml | 2 packagePersonal/pages/myOrder/index.js | 13 pages/bookExhibitionList/index.wxss | 5 pages/bookExhibitionList/index.js | 171 ++++++++--------- pages/bookExhibitionList/index.wxml | 14 - packageDomain/pages/resourceDetails/myAudio/index.js | 4 pages/bookExhibitionDetails/index.js | 50 ++++- pages/retrievalPage/index.wxss | 10 packageBookService/pages/bookServices/detail/components/learnResource/learnResource.js | 18 + pages/cart/paymentPage/index.js | 77 ++++--- packageBookService/pages/bookServices/detail/components/tree/index.js | 1 pages/bookExhibitionDetails/index.json | 8 pages/bibliographyList/index.wxss | 12 + packageBookService/pages/bookServices/detail/index.js | 30 ++ packageDomain/pages/resourceDetails/myVideo/index.wxss | 9 packageDomain/pages/resourceDetails/myAudio/index.wxss | 2 packageBookService/pages/bookServices/detail/components/testResource/testResource.wxss | 5 pages/bibliographyList/index.js | 95 +++++--- pages/bookExhibitionDetails/index.wxml | 4 pages/cart/index.wxss | 7 pages/bookExhibitionDetails/index.wxss | 4 22 files changed, 328 insertions(+), 215 deletions(-) diff --git a/packageBookService/pages/bookServices/detail/components/learnResource/learnResource.js b/packageBookService/pages/bookServices/detail/components/learnResource/learnResource.js index 259c5f3..195d0a2 100644 --- a/packageBookService/pages/bookServices/detail/components/learnResource/learnResource.js +++ b/packageBookService/pages/bookServices/detail/components/learnResource/learnResource.js @@ -10,8 +10,12 @@ bookId: { type: Number }, - isshowDrawBtn:{ - type:Boolean + isshowDrawBtn: { + type: Boolean + }, + successOrderNumber: { + type: Number, + } }, @@ -44,10 +48,16 @@ // this.triggerEvent('allAddShoppiingCar', myEventDetail, myEventOption) // }, goBuyResource() { + console.log(this.properties.successOrderNumber); +if(this.properties.successOrderNumber !== 0){ + + + +} wx.navigateTo({ url: `/packageBookService/pages/bookServices/detail/buyResource/index?productLinkPath=${this.properties.buyResourceData.productLinkPath}&refCode=${this.properties.buyResourceData.refCode}&bookId=${this.properties.bookId}`, }) - + }, changeReceive(type) { @@ -61,4 +71,4 @@ }) } } -}) +}) \ No newline at end of file diff --git a/packageBookService/pages/bookServices/detail/components/testResource/testResource.wxss b/packageBookService/pages/bookServices/detail/components/testResource/testResource.wxss index 2e09a5a..61e67c9 100644 --- a/packageBookService/pages/bookServices/detail/components/testResource/testResource.wxss +++ b/packageBookService/pages/bookServices/detail/components/testResource/testResource.wxss @@ -41,7 +41,8 @@ display: flex; justify-content: space-evenly; align-items: center; - padding: 0 0 20rpx 15rpx; + /* padding: 0 0 20rpx 15rpx; */ + padding: 5rpx; border-bottom: 1px solid #EFF0F1; } @@ -90,7 +91,7 @@ .btn-box { display: flex; justify-content: space-between; - width: 49%; + width: 50%; } .practice-btn { diff --git a/packageBookService/pages/bookServices/detail/components/tree/index.js b/packageBookService/pages/bookServices/detail/components/tree/index.js index ef5aa5a..9c1880c 100644 --- a/packageBookService/pages/bookServices/detail/components/tree/index.js +++ b/packageBookService/pages/bookServices/detail/components/tree/index.js @@ -600,7 +600,6 @@ item.isShopCar = false this.triggerEvent("updateCloudLearning") } - } }, sadd() { diff --git a/packageBookService/pages/bookServices/detail/index.js b/packageBookService/pages/bookServices/detail/index.js index 7cadc31..bddc6e9 100644 --- a/packageBookService/pages/bookServices/detail/index.js +++ b/packageBookService/pages/bookServices/detail/index.js @@ -149,7 +149,8 @@ width: '100%' }, ], - showIndex: '' + showIndex: '', + successOrderNumber: '' }, resetTree: function (e) { @@ -378,6 +379,7 @@ }, }; app.MG.store.getProductDetail(query).then(async (res) => { + console.log(res.datas, 'res.datas'); this.setData({ bookDetail: res.datas, buyIdList: res.datas.purchasedSaleMethodIdList, @@ -520,6 +522,7 @@ this.setData({ noFile: true, }); + // debugger if (this.data.bookDetail.pdf) { this.setData({ "fileInfo.bookName": this.data.bookDetail.name, @@ -528,6 +531,7 @@ "fileInfo.freePage": this.data.bookDetail.probationPage, }); } else if (this.data.bookDetail.protectedEpub) { + this.setData({ "fileInfo.bookName": this.data.bookDetail.name, "fileInfo.fileType": "epub", @@ -1107,12 +1111,13 @@ }, // 鐢宠鏁欏璧勬簮 applyResource() { - if (this.data.applyResourceState) { - return wx.showToast({ - icon: "error", - title: "璇峰嬁閲嶅鐐瑰嚮", - }); - } + + // if (this.data.applyResourceState) { + // return wx.showToast({ + // icon: "error", + // title: "璇峰嬁閲嶅鐐瑰嚮", + // }); + // } this.setData({ applyResourceState: true, }); @@ -1470,12 +1475,21 @@ }; // 纭璁㈠崟 const confirmOrderRes = await app.MG.store.confirmOrder(parameter); + console.log(confirmOrderRes.orderNumber, 'confirmOrderRes.orderNumber'); + + + if (confirmOrderRes.orderNumber) { child.changeReceive(false); wx.showToast({ title: "棰嗗彇鎴愬姛", }); this.getBookInfo(this.data.bookId); + this.setData({ + successOrderNumber: confirmOrderRes.orderNumber + }) + + } } catch (error) { console.log(error); @@ -1784,6 +1798,8 @@ }); return false; } + + // debugger wx.navigateTo({ url: "/packageBookService/pages/components/webView/index?md5=" + this.data.fileInfo.md5 + diff --git a/packageBookService/pages/bookServices/detail/index.wxml b/packageBookService/pages/bookServices/detail/index.wxml index c590075..d33f284 100644 --- a/packageBookService/pages/bookServices/detail/index.wxml +++ b/packageBookService/pages/bookServices/detail/index.wxml @@ -145,7 +145,7 @@ </t-tab-panel> <t-tab-panel label="浜戝涔�" icon="{{tabValue == 'jsek_cloudLearning' ? learnResourceClickIcon : learnResourceIcon}}" value="jsek_cloudLearning" style="{{tabPanelstyle}}"> <view wx:if="{{!loading && learn.length}}"> - <learn-resource bind:getFreeResource="getFreeResource" bind:allAddShoppiingCar="allAddShoppiingCar" id="learn-resource" buyResourceData="{{buyResourceData}}" bookId="{{bookDetail.id}}" isshowDrawBtn="{{isshowDrawBtn}}"></learn-resource> + <learn-resource bind:getFreeResource="getFreeResource" bind:allAddShoppiingCar="allAddShoppiingCar" id="learn-resource" buyResourceData="{{buyResourceData}}" bookId="{{bookDetail.id}}" isshowDrawBtn="{{isshowDrawBtn}}" successOrderNumber="{{successOrderNumber}}" ></learn-resource> <tree id="tree" openIds="{{openLearnids}}" bookInfo="{{bookDetail}}" tab="{{tabValue}}" treeList="{{learn}}" buyIds="{{buyIdList}}" openLearnids="{{openLearnids}}" bind:updateShoppingCartHidden="updateShoppingCartHidden" bind:updateCloudLearning="updateCloudLearning"></tree> </view> diff --git a/packageDomain/pages/resourceDetails/myAudio/index.js b/packageDomain/pages/resourceDetails/myAudio/index.js index 60b7fc6..b42f0f1 100644 --- a/packageDomain/pages/resourceDetails/myAudio/index.js +++ b/packageDomain/pages/resourceDetails/myAudio/index.js @@ -636,7 +636,7 @@ // 鎾斁瀹屾垚澶勭悊锛屾寜閽彉涓�涓� myAudio.onEnded((res) => { this.setData({ - isplay: false + isplay: true }) }); @@ -648,6 +648,7 @@ myAudioPos: myAudio.currentTime / myAudio.duration * 100, myAudioCurrent: this.format(myAudio.currentTime), myAudioDuration: this.format(myAudio.duration), + }); }) console.log(this.data.myAudioCurrent); @@ -761,6 +762,7 @@ this.setData({ myAudioPos: position, myAudioCurrent: this.format(currentTime) + }) }, diff --git a/packageDomain/pages/resourceDetails/myAudio/index.wxss b/packageDomain/pages/resourceDetails/myAudio/index.wxss index 0af6100..a49d20e 100644 --- a/packageDomain/pages/resourceDetails/myAudio/index.wxss +++ b/packageDomain/pages/resourceDetails/myAudio/index.wxss @@ -121,6 +121,7 @@ .outsideDetailsName { overflow-y: scroll; + overflow-x: hidden; height: 35vh; } @@ -397,7 +398,6 @@ width: 210rpx; display: flex; flex-direction: row; - } .wrapper { diff --git a/packageDomain/pages/resourceDetails/myVideo/index.wxss b/packageDomain/pages/resourceDetails/myVideo/index.wxss index 15a3407..6196df7 100644 --- a/packageDomain/pages/resourceDetails/myVideo/index.wxss +++ b/packageDomain/pages/resourceDetails/myVideo/index.wxss @@ -323,6 +323,10 @@ height: 0px !important; } +.t-tabs__scroll::after { + height: 0rpx !important; +} + .buttonBox { position: absolute; top: 95rpx; @@ -334,10 +338,11 @@ .outsideDetailsName { overflow-y: scroll; + overflow-x: hidden; height: 35vh; } -.wrapper { +/* .wrapper { overflow-y: scroll; height: 45vh; -} \ No newline at end of file +} */ \ No newline at end of file diff --git a/packagePersonal/pages/myOrder/index.js b/packagePersonal/pages/myOrder/index.js index 33478e0..1ad1223 100644 --- a/packagePersonal/pages/myOrder/index.js +++ b/packagePersonal/pages/myOrder/index.js @@ -172,19 +172,20 @@ this.getDataList(false); }, async goBookDetails(e) { + + console.log(e.currentTarget.dataset); const { book, remarks } = e.currentTarget.dataset; let parentData = null; let bookId = book.orderSaleMethod.product.id; - if (remarks == null) { - parentData = await app.MG.store.getProductBySaleMethod({ - 'saleMethodId': book.orderSaleMethod.id - }) + + parentData = await app.MG.store.getProductBySaleMethod({ + 'saleMethodId': book.orderSaleMethod.id + }) + if (parentData.parentProduct.length > 0) { bookId = parentData.parentProduct[parentData.parentProduct.length - 1].id; - } else if (remarks != null && JSON.parse(remarks).pId) { - bookId = JSON.parse(remarks).pId } wx.navigateTo({ url: `/packageBookService/pages/bookServices/detail/index?id=${bookId}&name=${book.name}`, diff --git a/pages/bibliographyList/index.js b/pages/bibliographyList/index.js index af7a83d..7529409 100644 --- a/pages/bibliographyList/index.js +++ b/pages/bibliographyList/index.js @@ -251,6 +251,8 @@ fileType: [], jsek_resource: [], freeFile: [], + bookshelf_freeEpub: [], //epub璇曡鐧惧垎姣� + bookshelf_probationPage: [], //pdf璇曡椤垫暟 ...searchObj }, SysType: 'CmsItem' @@ -265,44 +267,65 @@ }) wx.stopPullDownRefresh() }, + // downloadData(event) { + // this.setData({ + // downloadLoadin: true + // }) + // console.log(111); + // const item = event.currentTarget.dataset.item; + // // console.log(item.datas.freeFile.Value); + // const URL = app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.datas.freeFile.Value + // item.determine = false + // console.log(URL, 'URL'); + // setTimeout(() => { + // if (URL) { + // item.determine = true + // } + // }, 600) + // wx.downloadFile({ + // url: URL, + // success: function (res) { + // const filePath = res.tempFilePath; + // wx.openDocument({ + // filePath: filePath, + // success: function (res) { + // console.log('鎵撳紑鏂囨。鎴愬姛'); + // }, + // fail: function (res) { + // console.log('鎵撳紑鏂囨。澶辫触', res); + // } + // }); + // }, + // fail: function (res) { + // console.log('涓嬭浇鏂囦欢澶辫触', res); + // } + // }); + // setTimeout(() => { + // this.setData({ + // downloadLoadin: false + // }); + // }, 2000); + // }, downloadData(event) { - this.setData({ - downloadLoadin: true - }) - console.log(111); - const item = event.currentTarget.dataset.item; - // console.log(item.datas.freeFile.Value); - const URL = app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.datas.freeFile.Value - item.determine = false - console.log(URL, 'URL'); - setTimeout(() => { - if (URL) { - item.determine = true - } - }, 600) - wx.downloadFile({ - url: URL, - success: function (res) { - const filePath = res.tempFilePath; - wx.openDocument({ - filePath: filePath, - success: function (res) { - console.log('鎵撳紑鏂囨。鎴愬姛'); - }, - fail: function (res) { - console.log('鎵撳紑鏂囨。澶辫触', res); - } - }); - }, - fail: function (res) { - console.log('涓嬭浇鏂囦欢澶辫触', res); - } + + const item = event.currentTarget.dataset.item + console.log(item); + wx.navigateTo({ + url: "/packageBookService/pages/components/webView/index?md5=" + + item.freeFile + + "&fileName=" + + item.name + + "&fileType=" + + item.fileType + "&bookBuy=true" + // "&freePage=" + + // this.data.fileInfo.freePage + + + // + + // "&bookId=" + + // this.data.bookDetail.id, }); - setTimeout(() => { - this.setData({ - downloadLoadin: false - }); - }, 2000); + + }, onSearchSubmit: function (e) { const keyword = e.detail.value; diff --git a/pages/bibliographyList/index.wxss b/pages/bibliographyList/index.wxss index 6fcb8e4..eb196ef 100644 --- a/pages/bibliographyList/index.wxss +++ b/pages/bibliographyList/index.wxss @@ -158,6 +158,10 @@ .contentBox { margin-top: 200rpx; + /* + -webkit-transform: translateX(52.796875px); + transform: translateX(52.796875px); */ + } .noDataBox { @@ -224,7 +228,11 @@ /* 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: 40% 90%; + background-position: 90% center; + background-size: 30% 60%; /* 灏嗚儗鏅浘鐗囦綅缃缃负闈犲彸 */ +} + +.t-search__input-box .t-input__keyword { + font-size: var(--td-search-font-size, var(--td-font-size-m, 28rpx)) !important; } \ No newline at end of file diff --git a/pages/bookExhibitionDetails/index.js b/pages/bookExhibitionDetails/index.js index 43c1898..21ac2b4 100644 --- a/pages/bookExhibitionDetails/index.js +++ b/pages/bookExhibitionDetails/index.js @@ -6,6 +6,7 @@ * 椤甸潰鐨勫垵濮嬫暟鎹� */ data: { + start: 1, loading: true, hidden: true, bookName: '', @@ -17,6 +18,9 @@ navBarHeight: '', barHeight: '', subtitleName: '', + totalSize: '', + passId: '', + isMore: null, }, /** @@ -35,13 +39,14 @@ this.setData({ bookName: options.bookName, - subtitleName: options.subtitleName + subtitleName: options.subtitleName, + passId: options.id }) const passId = options.id this.bookExhibitionGet(passId) - this.getBookExhibitionDetails(passId) + this.getBookExhibitionDetails() }, /** @@ -131,16 +136,17 @@ }) }, //涔﹀睍璇︽儏鎺ュ彛 - getBookExhibitionDetails(passId) { - this.setData({ - loading: true, - hidden: true, - }) + getBookExhibitionDetails() { + app.MG.store.getProductList({ path: '*', storeInfo: 'jsek_bookFair', - mainProductId: passId, + mainProductId: this.data.passId, queryType: 'Related', // 鏌ヨ绫诲瀷锛� Related锛氭煡璇㈠叧鑱斿晢鍝侊紱SubProduct: 鏌ヨ瀛愬晢鍝侊紱 + paging: { + start: 0, + size: this.data.start * 6 + }, fields: { author: [], publicationDate: [], @@ -151,9 +157,10 @@ }).then(res => { this.setData({ - bookExhibitionList: res.datas + bookExhibitionList: res.datas, + totalSize: res.total }) - console.log(this.data.bookExhibitionList, 'bookExhibitionList'); + this.setData({ loading: false, hidden: false, @@ -170,5 +177,28 @@ goBack() { wx.navigateBack(); }, + // 瑙﹀簳鍑芥暟 + onReachBottom() { + console.log(this.data.bookExhibitionList.length); + console.log(this.data.totalSize); + if (this.data.bookExhibitionList.length < this.data.totalSize) { + console.log(11111); + this.setData({ + isMore: true, + start: this.data.start + 1 + }) + this.getBookExhibitionDetails() + } else { + this.setData({ + isMore: true, + }) + setTimeout(() => { + this.setData({ + isMore: false + }) + console.log('300'); + }, 300) + } + }, }) \ No newline at end of file diff --git a/pages/bookExhibitionDetails/index.json b/pages/bookExhibitionDetails/index.json index 02871f3..6d1837a 100644 --- a/pages/bookExhibitionDetails/index.json +++ b/pages/bookExhibitionDetails/index.json @@ -1,6 +1,10 @@ { + "component": true, "usingComponents": { - "t-icon": "tdesign-miniprogram/icon/icon" + "t-icon": "tdesign-miniprogram/icon/icon", + "t-loading": "tdesign-miniprogram/loading/loading" }, - "navigationStyle": "custom" + "navigationStyle": "custom", + "enablePullDownRefresh": true, + "onReachBottomDistance": 200 } \ No newline at end of file diff --git a/pages/bookExhibitionDetails/index.wxml b/pages/bookExhibitionDetails/index.wxml index 9ec1f8a..193286b 100644 --- a/pages/bookExhibitionDetails/index.wxml +++ b/pages/bookExhibitionDetails/index.wxml @@ -49,6 +49,10 @@ <view class="booksTextBox"> <text>{{item.name}}</text></view> <view class="boosAuthor">{{item.author}}</view> </view> + <view wx:if="{{bookExhibitionList.length > 0}}" class="bottom-box"> + <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> + <text wx:if="{{isMore == false}}">娌℃湁鏇村浜�</text> + </view> </view> </view> diff --git a/pages/bookExhibitionDetails/index.wxss b/pages/bookExhibitionDetails/index.wxss index 5c4f291..8bac510 100644 --- a/pages/bookExhibitionDetails/index.wxss +++ b/pages/bookExhibitionDetails/index.wxss @@ -145,4 +145,8 @@ .outsideHeadBox { margin-top: 200rpx; +} + +.bottom-box { + margin: 0 auto; } \ No newline at end of file diff --git a/pages/bookExhibitionList/index.js b/pages/bookExhibitionList/index.js index 64570f8..e3b7d50 100644 --- a/pages/bookExhibitionList/index.js +++ b/pages/bookExhibitionList/index.js @@ -8,22 +8,6 @@ * 椤甸潰鐨勫垵濮嬫暟鎹� */ data: { - product: { - value: 'all', - options: [{ - value: 'all', - label: '鍏ㄩ儴浜у搧', - }, - { - value: 'new', - label: '鏈�鏂颁骇鍝�', - }, - { - value: 'hot', - label: '鏈�鐏骇鍝�', - }, - ], - }, loading: true, hidden: true, totalSize: '', @@ -45,32 +29,32 @@ sorter: { value: 'default', }, - // product: { - // value: '*', - // options: [{ - // value: '*', - // label: '鎬诲垎绫�', - // }, - // { - // value: 'jsek_bFHigherEducation', - // //閲嶇偣椤圭洰 - // price: 'jsek_higherEducation', - // label: '楂樼瓑鏁欒偛', - // }, - // { - // value: 'jsek_bFVocationalEducation', - // //閲嶇偣椤圭洰 - // price: 'jsek_vocationalEducation', - // label: '鑱屼笟鏁欒偛', - // }, - // { - // value: 'jsek_bFTeacherEducation', - // //閲嶇偣椤圭洰 - // price: 'jsek_teacherEducation', - // label: '鏁欏笀鏁欒偛', - // }, - // ], - // }, + product: { + value: '*', + options: [{ + value: '*', + label: '鎬诲垎绫�', + }, + { + value: 'jsek_bFHigherEducation', + //閲嶇偣椤圭洰 + price: 'jsek_higherEducation', + label: '楂樼瓑鏁欒偛', + }, + { + value: 'jsek_bFVocationalEducation', + //閲嶇偣椤圭洰 + price: 'jsek_vocationalEducation', + label: '鑱屼笟鏁欒偛', + }, + { + value: 'jsek_bFTeacherEducation', + //閲嶇偣椤圭洰 + price: 'jsek_teacherEducation', + label: '鏁欏笀鏁欒偛', + }, + ], + }, multipleSelect: { value: [], options: [], @@ -376,52 +360,62 @@ }, + + + // 鎬诲垎绫� + // 鎬诲垎绫� onChange(e) { - console.log(e); + // e.stopImmediatePropagation(); + + + + + + + + + + + this.data.page.size = 16 //鏇存敼鏄剧ず鐨勫�� + const newValue = e.detail.value; + const selectedOption = this.data.product.options.find(option => option.value === newValue); + const newPrice = selectedOption ? selectedOption.price : null; + const bookExhibitionListsubsidiary = [] + this.setData({ + bookExhibitionListsubsidiary: this.data.bookExhibitionList + }) + console.log(bookExhibitionListsubsidiary, 'bookExhibitionListsubsidiary'); + console.log(newValue, 'newValue'); + console.log(newPrice, 'newPrice'); + + if (newPrice) { + this.setData({ + keynoteDisabled: false + }) + } + if (!newPrice) { + this.setData({ + keynoteDisabled: true + }) + } + console.log(newValue); + this.setData({ + 'product.value': newValue, + 'product.price': newPrice, // 灏嗛�変腑鐨� price 鍊间繚瀛樺湪鏁版嵁涓� + }); + this.bookExhibitionGet(newValue); + this.keyProjectsGet(newPrice); + // 璋冪敤鏇存柊椤甸潰鏁版嵁鐨勫嚱鏁帮紝浼犲叆鏂扮殑 value 鍜� price 鍊� + + if (this.data.keynoteValue) { + //濡傛灉鏈夋暟鎹氨娓呯┖骞跺埛鏂伴〉闈� + this.data.keynoteValue = [] + this.bookExhibitionGet(newValue) + this.onLoad() + } + // e.stopImmediatePropagation() + }, - - // 鎬诲垎绫� - // 鎬诲垎绫� - // onChange(e) { - - // this.data.page.size = 16 //鏇存敼鏄剧ず鐨勫�� - // const newValue = e.detail.value; - // const selectedOption = this.data.product.options.find(option => option.value === newValue); - // const newPrice = selectedOption ? selectedOption.price : null; - // const bookExhibitionListsubsidiary = [] - // this.setData({ - // bookExhibitionListsubsidiary: this.data.bookExhibitionList - // }) - // console.log(bookExhibitionListsubsidiary, 'bookExhibitionListsubsidiary'); - // console.log(newValue, 'newValue'); - // console.log(newPrice, 'newPrice'); - - // if (newPrice) { - // this.setData({ - // keynoteDisabled: false - // }) - // } - // if (!newPrice) { - // this.setData({ - // keynoteDisabled: true - // }) - // } - // console.log(newValue); - // this.setData({ - // 'product.value': newValue, - // 'product.price': newPrice, // 灏嗛�変腑鐨� price 鍊间繚瀛樺湪鏁版嵁涓� - // }); - // this.bookExhibitionGet(newValue); - // this.keyProjectsGet(newPrice); - // // 璋冪敤鏇存柊椤甸潰鏁版嵁鐨勫嚱鏁帮紝浼犲叆鏂扮殑 value 鍜� price 鍊� - - // if (this.data.keynoteValue) { - // //濡傛灉鏈夋暟鎹氨娓呯┖骞跺埛鏂伴〉闈� - // this.data.keynoteValue = [] - // this.bookExhibitionGet(newValue) - // this.onLoad() - // } - // }, // 閲嶇偣椤圭洰 handleMultipleSelect(e) { @@ -430,9 +424,6 @@ }); }, handleConfirm(event) { - - - const { value } = event.detail; @@ -500,7 +491,7 @@ console.log(e.detail.value, 'e.detail.value'); this.bookExhibitionGet() }, - onTest() { + onOpend() { console.log(7555); } }) \ No newline at end of file diff --git a/pages/bookExhibitionList/index.wxml b/pages/bookExhibitionList/index.wxml index ee3b7ab..01ede90 100644 --- a/pages/bookExhibitionList/index.wxml +++ b/pages/bookExhibitionList/index.wxml @@ -29,27 +29,20 @@ <view class="menuBox"> <t-dropdown-menu> + <!-- show-overlay="{{false}}" --> <!-- <t-dropdown-item options="{{product.options}}" value="{{product.value}}" bindchange="onChange" /> --> <t-dropdown-item options="{{product.options}}" value="{{product.value}}" bindchange="onChange" /> <!-- disabled="{{keynoteDisabled}}" --> - <t-dropdown-item label=" 閲嶇偣椤圭洰" options="{{multipleSelect.options}}" value="{{multipleSelect.value}}" bindchange="handleMultipleSelect" multiple bind:confirm="handleConfirm" bind:reset="handleReset"> + <t-dropdown-item disabled="{{keynoteDisabled}}" label=" 閲嶇偣椤圭洰" options="{{multipleSelect.options}}" value="{{multipleSelect.value}}" bindchange="handleMultipleSelect" multiple bind:confirm="handleConfirm" bind:reset="handleReset"> </t-dropdown-item> <t-dropdown-item options="{{sorter.options}}" default-value="{{sorter.value}}" bindchange="onSort" /> </t-dropdown-menu> - <!-- <view class="outsideSortBox"> - <view class="sortBox" bind:tap="onSwapRight"> - <text>鎺掑簭</text> - <view class="iconBox"> - <t-icon class="swapRight" name="swap-right" size="35rpx" color="{{nameSort == 'Asc' ? '#ff6c00' : ''}}" /> - <t-icon class="swapLeft" name="swap-right" size="35rpx" color="{{nameSort == 'Desc' ? '#ff6c00' : ''}}" /> - </view> - </view> - </view> --> + </view> </view> </view> @@ -78,6 +71,7 @@ </view> <view class="contentBox" wx:for="{{bookExhibitionList}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="onBookExhibitionDetails"> <view class="imageBox"> + <view></view> <image wx:if="{{item.icon}}" src="{{item.icon}}" mode="aspectFit" /> <image wx:else src="/static/images/bookExhibitionList/banner.png" mode="aspectFit" /> </view> diff --git a/pages/bookExhibitionList/index.wxss b/pages/bookExhibitionList/index.wxss index 6eb61f8..f6a9b09 100644 --- a/pages/bookExhibitionList/index.wxss +++ b/pages/bookExhibitionList/index.wxss @@ -28,6 +28,7 @@ width: 330rpx; margin: 10px 0; background-color: #fff; + /* z-index: 11600; */ } .contentBox .imageBox { @@ -259,7 +260,6 @@ height: calc(100vh - 300rpx); /* width: calc(100vw - 60rpx); */ /* height: 700rpx; */ - } @@ -279,5 +279,8 @@ .t-search__input-box--square { border-radius: var(--td-search-square-radius, var(--td-radius-default, 36rpx)) !important; height: 72rpx; +} +.t-radio { + font-size: var(--td-radio-font-size, 28rpx) !important; } \ No newline at end of file diff --git a/pages/cart/index.wxss b/pages/cart/index.wxss index b5877c9..ca38e42 100644 --- a/pages/cart/index.wxss +++ b/pages/cart/index.wxss @@ -30,8 +30,9 @@ /* padding: 30rpx; */ background: #F2F3F8; border-radius: 18rpx 18rpx 18rpx 18rpx; - padding-bottom: 325rpx; + /* padding-bottom: 325rpx; */ height: calc(100vh - 250rpx); + /* width: calc(100vw - 60rpx); */ } @@ -128,7 +129,6 @@ margin: 30rpx 0; border-radius: 18rpx 18rpx 18rpx 18rpx; height: 260rpx; - } .totalPriceText { @@ -192,7 +192,8 @@ .noDataBox { width: 100%; - margin-top: 200rpx; + /* margin-top: 200rpx; */ + height: 620rpx; display: flex; justify-content: center; align-items: center; diff --git a/pages/cart/paymentPage/index.js b/pages/cart/paymentPage/index.js index ef5df32..1e853ee 100644 --- a/pages/cart/paymentPage/index.js +++ b/pages/cart/paymentPage/index.js @@ -1,5 +1,6 @@ // pages/cart/paymentPage/index.js import Toast from 'tdesign-miniprogram/toast/index'; + const app = getApp() import { getPublicImage @@ -153,6 +154,7 @@ } } app.MG.store.getUserOrderList(data).then((res) => { + res.datas.forEach((item) => { this.data.myOrderOrderNumber.push(item.saleMethodLinks[0].orderSaleMethod.id) console.log(this.data.myOrderOrderNumber); @@ -184,38 +186,49 @@ // 鐢ㄦ埛鏈粦瀹氬井淇� 鎶�500 app.MG.store.makeWeChatPay(resOrderNum).then(payRes => { console.log(payRes, 'payRes'); - const payVal = JSON.parse(payRes); - console.log(payVal); - wx.requestPayment({ - "appId": payVal.appId, - "timeStamp": payVal.timeStamp, - "nonceStr": payVal.nonceStr, - "package": payVal.package, - "signType": payVal.signType, - "paySign": payVal.paySign, - success: function (res) { - console.log('鏀粯鎴愬姛'); - if (res.errMsg == 'requestPayment:ok') { - that.setData({ - isPaySuccess: true - }) + if (payRes) { + const payVal = JSON.parse(payRes); + console.log(payVal); + wx.requestPayment({ + "appId": payVal.appId, + "timeStamp": payVal.timeStamp, + "nonceStr": payVal.nonceStr, + "package": payVal.package, + "signType": payVal.signType, + "paySign": payVal.paySign, + success: function (res) { + console.log('鏀粯鎴愬姛'); + if (res.errMsg == 'requestPayment:ok') { + that.setData({ + isPaySuccess: true + }) + } + }, + fail: function (res) { + console.log('鏀粯澶辫触'); + }, + // 鏃犺鏀粯鎴愬姛澶辫触閮戒細璋冪敤 + "complete": function (res) { + if (res.errMsg == 'requestPayment:ok') { + that.setData({ + isPayComplete: true + }) + } + if (that.data.isPaySuccess && that.data.isPayComplete) { + that.navToBack() + } } - }, - fail: function (res) { - console.log('鏀粯澶辫触'); - }, - // 鏃犺鏀粯鎴愬姛澶辫触閮戒細璋冪敤 - "complete": function (res) { - if (res.errMsg == 'requestPayment:ok') { - that.setData({ - isPayComplete: true - }) - } - if (that.data.isPaySuccess && that.data.isPayComplete) { - that.navToBack() - } - } - }); + }); + } else { + Toast({ + context: this, + selector: '#t-toast', + message: '鏀粯澶辫触', + theme: 'warning', + direction: 'column', + }); + } + }) } }) @@ -224,7 +237,7 @@ }, // 椤甸潰杩斿洖 navToBack() { - + this.getOrderByOrderNumData() // 杩斿洖 wx.navigateBack() }, diff --git a/pages/cart/paymentPage/index.wxml b/pages/cart/paymentPage/index.wxml index 4b90cde..68affcd 100644 --- a/pages/cart/paymentPage/index.wxml +++ b/pages/cart/paymentPage/index.wxml @@ -20,7 +20,7 @@ <view class="shoppingCartList"> <view class="cartList" wx:for="{{productList}}" wx:key="index" wx:for-item="item" wx:for-index="index"> <view class="imageBox"> - <image wx:if="{{item.paymentIcon}}" src="{{item.paymentIcon }}" mode="aspectFill" /> + <image wx:if="{{item.paymentIcon}}" src="{{item.paymentIcon }}" mode="aspectFit" /> <image wx:else src="/static/images/default-book-img.png" class="imageStyle" mode="aspectFit" /> </view> <view class="cartListContent"> diff --git a/pages/retrievalPage/index.wxss b/pages/retrievalPage/index.wxss index af3bb18..bbe819e 100644 --- a/pages/retrievalPage/index.wxss +++ b/pages/retrievalPage/index.wxss @@ -219,9 +219,6 @@ color: #FF6C00 !important; } -.t-tabs__track { - background-color: #FF6C00 !important; -} .noDataBox { margin: 0 auto; @@ -385,6 +382,7 @@ -webkit-transform: translateX(38.9921875px) !important; transform: translateX(38.9921875px) !important; } */ + .t-tabs .t-tabs__item--active { background-repeat: no-repeat; /* background-size: 100% 100%; @@ -393,4 +391,10 @@ background-position: right center; background-size: 50% 90%; /* 灏嗚儗鏅浘鐗囦綅缃缃负闈犲彸 */ +} + +.t-tabs__track { + background-color: #FF6C00 !important; + -webkit-transform: translateX(39px); + transform: translateX(39px); } \ No newline at end of file -- Gitblit v1.9.1