From a5ee96c279d3ab9f5adf67b36367e6cc69e4971d Mon Sep 17 00:00:00 2001 From: yuweiqi Date: Wed, 1 Jul 2020 15:55:54 +0800 Subject: [PATCH] =?UTF-8?q?[FIX]=E3=80=90=E5=95=86=E5=93=81=E5=95=86?= =?UTF-8?q?=E5=9F=8E=E3=80=91=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/product-store/StoreDetail.vue | 80 +++++++++----------- 1 file changed, 37 insertions(+), 43 deletions(-) diff --git a/src/views/ebiz/product-store/StoreDetail.vue b/src/views/ebiz/product-store/StoreDetail.vue index 3a975384d..001abafda 100644 --- a/src/views/ebiz/product-store/StoreDetail.vue +++ b/src/views/ebiz/product-store/StoreDetail.vue @@ -5,10 +5,13 @@
-
-
+
+
+ +
+
- +
{ - getShopList(data).then( - res => { - this.$toast.clear() - if (res.result == '0') { - this.detail = res.content[0] - this.isCanCheck = false - resolve() - } else { - reject(this.$toast(res.resultMessage)) - } - }, - error => { - reject(this.$toast(error)) - } - ) + async getShopList(data) { + const res = await getShopList(data).catch(err => { + this.loaded = false }) + if (!res) return + if (res.result == '0') { + this.detail = res.content[0] + this.loaded = true + this.isCanCheck = false + } else { + this.$toast(res.resultMessage) + } }, //查看 check() { @@ -144,11 +135,14 @@ export default { }, //分享轨迹保存 saveShareTrack(data) { - saveShareTrack(data).then(res => { - if (res.result == '0') { - } else { - this.$toast(res.resultMessage) - } + return new Promise((resolve, reject) => { + saveShareTrack(data).then(res => { + if (res.result == '0') { + resolve() + } else { + reject(this.$toast(res.resultMessage)) + } + }) }) }, //app回调 @@ -166,6 +160,13 @@ export default { } }) } + }, + imageLoaded(e) { + const screeVH = window.innerHeight, + detailVH = e.path[3].offsetHeight + this.$nextTick(() => { + screeVH - detailVH > 0 ? (this.$refs.fillContent.style.height = screeVH - detailVH + 'px') : '0px' + }) } } } @@ -176,10 +177,6 @@ export default { /deep/.van-field__label { width: 40%; } - .img-store > div { - float: left; - width: 100%; - } .img-store { img { display: block; @@ -187,9 +184,6 @@ export default { /deep/.van-button { width: 100%; } - .mindle-img { - height: 75vh; - } } }