diff --git a/config/baseUrl.js b/config/baseUrl.js index 5310888..5be196a 100644 --- a/config/baseUrl.js +++ b/config/baseUrl.js @@ -6,7 +6,7 @@ if (process.env.NODE_ENV === 'development') { // socketUrl = "ws://localhost:6001/"; // baseUrl = "https://twin-ui.com/demo/"; // baseUrl = "http://59.110.212.44:9100/pb/"; - baseUrl = "http://192.168.110.100:9100/pb/"; + baseUrl = "http://192.168.110.100:9100/pb/"; // socketUrl = "ws://8.129.186.35:6001/"; } else if (process.env.NODE_ENV === 'production') { // 生产环境 diff --git a/pages.json b/pages.json index d31f1fb..7dc1794 100644 --- a/pages.json +++ b/pages.json @@ -28,7 +28,7 @@ "navigationBarTitleText": "我的", "enablePullDownRefresh":false } - }, + }, { "path": "pages/peanut/searchFor", "style": { @@ -210,7 +210,8 @@ { "path": "pages/bookShop/settlement", "style": { - "navigationBarTitleText": "商品结算" + "navigationBarTitleText": "商品结算", + "enablePullDownRefresh": false } }, { @@ -234,7 +235,8 @@ { "path": "pages/user/address", "style": { - "navigationBarTitleText": "地址管理" + "navigationBarTitleText": "地址管理", + "enablePullDownRefresh": false } }, { @@ -259,6 +261,33 @@ } } + ,{ + "path" : "pages/listen/listen", + "style" : + { + "navigationBarTitleText": "悦耳列表", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/listen/home", + "style" : + { + "navigationBarTitleText": "悦耳听书", + "enablePullDownRefresh": true + } + + } + ,{ + "path" : "pages/listen/search", + "style" : + { + "navigationBarTitleText": "搜索听书", + "enablePullDownRefresh": false + } + + } ], "globalStyle": { "navigationBarTextStyle": "black", diff --git a/pages/bookShop/commodityDetail.vue b/pages/bookShop/commodityDetail.vue index 830f843..3139e95 100644 --- a/pages/bookShop/commodityDetail.vue +++ b/pages/bookShop/commodityDetail.vue @@ -26,7 +26,8 @@ - + + 书名:{{productInfo.productName}} @@ -48,11 +49,15 @@ - + - + + + + 用户评价 + { - this.productInfo = res.shopProduct - if (this.productInfo.productImageList == null || this.productInfo.productImageList == '') { - this.swiperlist.push('../../static/icon/home_ban_1.jpg') - } else { - let imgList = this.productInfo.productImageList.split(",") - // if(this.productInfo.productDetails != null){ - // let info = this.formatRichText(this.productInfo.productDetails) - // } - // this.productInfo.productDetails = info - for (var i = 0; i < imgList.length; i++) { - this.swiperlist.push(imgList[i]) - } - } - uni.hideLoading(); - }) + onLoad(e) { + this.getProDetail(e) + this.getComment() }, computed: { ...mapState(['userInfo']), }, methods: { + getProDetail(e){ + // 获取商品详情 + uni.showLoading({ + title: '加载中' + }); + this.$http + .post('/book/shopproduct/info/' + e.id) + .then(res => { + this.productInfo = res.shopProduct + if (this.productInfo.productImageList == null || this.productInfo.productImageList == '') { + this.swiperlist.push('../../static/icon/home_ban_1.jpg') + } else { + let imgList = this.productInfo.productImageList.split(",") + // if(this.productInfo.productDetails != null){ + // let info = this.formatRichText(this.productInfo.productDetails) + // } + // this.productInfo.productDetails = info + for (var i = 0; i < imgList.length; i++) { + this.swiperlist.push(imgList[i]) + } + } + uni.hideLoading(); + }) + }, + + // 获取商品评论 + getComment(){ + + }, + + contentButtonClick(e){ + this.contentShow = e.index + }, // 点击购物车 onClick(e) { console.log(e.content.text) diff --git a/pages/bookShop/deliverDetail.vue b/pages/bookShop/deliverDetail.vue index af4d630..af81aba 100644 --- a/pages/bookShop/deliverDetail.vue +++ b/pages/bookShop/deliverDetail.vue @@ -2,8 +2,10 @@ - - + + + @@ -22,6 +24,10 @@ + + + - 暂无物流信息 - + @@ -76,7 +82,7 @@ this.$http .post(`/book/buyorder/queryFMS?orderId=${this.orderId}`) .then(res => { - // console.log(res, '物流信息') + console.log(res, '物流信息') if (res && res.code === 0) { uni.hideLoading() this.deliverDetails = res.rntStr @@ -101,6 +107,13 @@ }