diff --git a/common/js/app.js b/common/js/app.js index 6bc302f..3748c37 100644 --- a/common/js/app.js +++ b/common/js/app.js @@ -133,6 +133,7 @@ let App = { } this.img_root = this.siteInfo.siteroot + `${this.base}/resource/image/`; this.img_root_new = this.siteInfo.siteroot + `addons/weliam_smartcity/data/img/`; + this.img_root_new2 = this.siteInfo.siteroot + `attachment/`; let apiObj = this.urlToObj(this.api_root); if (!!apiObj.token && apiObj.token !== "undefined") { uni.setStorageSync('weliam_user_token', apiObj.token) diff --git a/components/page/pageComponents/goodsStyle.vue b/components/page/pageComponents/goodsStyle.vue index 595041a..5097ac2 100644 --- a/components/page/pageComponents/goodsStyle.vue +++ b/components/page/pageComponents/goodsStyle.vue @@ -4,7 +4,8 @@ - + + {{item.title}} + + 顶 + {{item.salary}} + font-weight: 600;color: #FF4444;flex:1;text-align: right;">{{item.salary}} 已认证 @@ -112,6 +115,17 @@ margin: 30upx!important; border-radius: 20upx!important; background-color: #FFFFFF!important; + } + + .wprk-top{ + background: #F1C426; + border-radius: 4upx; + font-size: 22upx; + font-family: PingFang SC; + font-weight: 500; + padding: 2upx 5upx; + margin-left: 20upx; + color: #FFFFFF; } .workList{ padding: 0upx 24upx 0upx; @@ -125,16 +139,6 @@ font-weight: bold; color: #333333; } - .wprk-top{ - background: #F1C426; - border-radius: 4upx; - font-size: 22upx; - font-family: PingFang SC; - font-weight: 500; - padding: 2upx 5upx; - margin-left: 20upx; - color: #FFFFFF; - } .wprk-pay{ float: right; font-size: 30upx; diff --git a/components/template/pic_text/pic_text.vue b/components/template/pic_text/pic_text.vue index cb8ac44..7b8ebc2 100644 --- a/components/template/pic_text/pic_text.vue +++ b/components/template/pic_text/pic_text.vue @@ -28,11 +28,21 @@ - - - - - + + + + + + + + + + + + + + + @@ -59,17 +69,17 @@ - - + + {{itemInfos.comment_list.total}} 0 - - + + {{itemInfos.fabulous_num}} @@ -115,7 +125,9 @@ export default { listVideoHeight: '40vw', detailVideoHeight: '60vw', videoContext: '', - query: '' + query: '', + singleImgW: '2', + singleImgH: '1', } }, components:{ @@ -190,6 +202,9 @@ export default { }, share(){ + }, + editCom(){ + this.commentShow=true; }, // 提交评论 submit(){ @@ -343,9 +358,20 @@ export default { // console.log(this.videoWidth, this.videoHeight) } }, + changeImgSize(e){ + console.log(e.detail.width, e.detail.height, '单张图片尺寸'); + this.singleImgW = e.detail.width; + this.singleImgH = e.detail.height; + }, stopOther(){ this.$emit('changePlay', this.index); - } + }, + updateImgW(){ + return { width: `calc(${this.singleImgW} / ${this.singleImgH} * 50vw)` }; + }, + updateImgH(){ + return { height: `calc(${this.singleImgH} / ${this.singleImgW} * 50vw)` }; + }, }, onReady(){ // 页面初次渲染! createVideoContext uni video自带 上下文 如果不懂可以去百度 @@ -458,6 +484,18 @@ export default { border-radius: 5px; overflow: hidden; } + .img-item-single-w{ + width: 50vw; + margin-bottom: 1vw; + border-radius: 5px; + overflow: hidden; + } + .img-item-single-h{ + height: 50vw; + margin-bottom: 1vw; + border-radius: 5px; + overflow: hidden; + } image{ width: 100%; height: 100%; diff --git a/components/template/tabs/tabs-copy.vue b/components/template/tabs/tabs-copy.vue new file mode 100644 index 0000000..948f4c3 --- /dev/null +++ b/components/template/tabs/tabs-copy.vue @@ -0,0 +1,733 @@ +