diff --git a/manifest.json b/manifest.json index 162b6a4..a7ff410 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "惠农商户平台", "appid" : "__UNI__7626C0F", "description" : "", - "versionName" : "1.5.1", - "versionCode" : 1510, + "versionName" : "1.5.3", + "versionCode" : 1530, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/pages/admin/cancellate_result/index.vue b/pages/admin/cancellate_result/index.vue index 2b099ac..0b633bf 100644 --- a/pages/admin/cancellate_result/index.vue +++ b/pages/admin/cancellate_result/index.vue @@ -198,7 +198,6 @@ that.$util.Tips({ title: res.message }); - that.getOrderData(); }) .catch(res => { that.$util.Tips({ diff --git a/pages/admin/goods_details/index.vue b/pages/admin/goods_details/index.vue index 17279e7..41b1c7a 100644 --- a/pages/admin/goods_details/index.vue +++ b/pages/admin/goods_details/index.vue @@ -229,7 +229,8 @@ - + {{item.label}} @@ -238,8 +239,8 @@ {{item.value}} - + @@ -755,9 +756,10 @@ getPreviewProDetail(params).then(res => { uni.hideLoading(); let storeInfo = res.data; - // this.product_attribute = res.data.product_attribute - console.log(res.data.product_attribute); + if (res.data.product_attribute) + this.product_attribute = res.data.product_attribute + this.image = res.data.image; if (storeInfo.video_link && storeInfo.slider_image.length > 1) { diff --git a/pages/index/index.vue b/pages/index/index.vue index 187c512..6d7e46f 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -830,7 +830,6 @@ } }, onPullDownRefresh() { - this.getGoods(true); this.list1(); this.getUserInfo(); this.codelist(); @@ -873,26 +872,6 @@ } }, onReady() { - // if (Boolean(this.$store.state.app.userInfo.service?.mer_id)) { - // isNewMer(this.$store.state.app.userInfo.uid, this.$store.state.app.userInfo.service?.mer_id).then(res => { - // if (res.data == 'true') { - // let that = this - // const query = uni.createSelectorQuery().in(this); - // query - // .select(".tools-two-img") - // .boundingClientRect((data) => { - // let info = JSON.stringify(data) - // that.elInfo = data - // // #ifdef APP-PLUS - // that.openDiver() - // // #endif - // }) - // .exec(); - // } - // }) - // } - - }, onShow() { @@ -901,7 +880,6 @@ this.getUserInfo(); } else { this.isNewUser() - console.log('1111111111') } // this.getGoods(true); }, diff --git a/pages/product/addGood/addGood.vue b/pages/product/addGood/addGood.vue index 1ac401d..c9657ed 100644 --- a/pages/product/addGood/addGood.vue +++ b/pages/product/addGood/addGood.vue @@ -13,7 +13,7 @@ - 上传时应注重真实性、清晰度 + 上传时应注重真实性、清晰度、至少上传两张 @@ -175,7 +175,7 @@ data() { return { - coverUrl: '?spm=a2c4e.11153940.blogcont573781.6.c1032027sQ46VG&x-oss-process=video/snapshot,t_1000,m_fast', + coverUrl: '?x-oss-process=video/snapshot,t_1000,m_fast,ar_auto', videoIndex: 0, showVideo: false, upload_max: 100, @@ -354,7 +354,20 @@ console.log("字符串中没有找到点号。"); } }, - choseMedia(e) { + async choseMedia(e) { + + // #ifdef APP-PLUS + let result = await this.$store.dispatch("permission/requestPermissions", + 'CAMERA') + if (result !== 1) { + return + } + result = await this.$store.dispatch("permission/requestPermissions", + 'READ_EXTERNAL_STORAGE') + if (result !== 1) { + return + } + // #endif console.log(e.value) this.show = false if (e.value[0] == '图片') { diff --git a/pages/product/addGoodDetail/addGoodDetail.vue b/pages/product/addGoodDetail/addGoodDetail.vue index e9084b9..ce30ca9 100644 --- a/pages/product/addGoodDetail/addGoodDetail.vue +++ b/pages/product/addGoodDetail/addGoodDetail.vue @@ -62,7 +62,6 @@ - 上传时应注重真实性、清晰度 diff --git a/pages/product/addGoodDetail/goodsAttr.vue b/pages/product/addGoodDetail/goodsAttr.vue index 8cde171..c6e6535 100644 --- a/pages/product/addGoodDetail/goodsAttr.vue +++ b/pages/product/addGoodDetail/goodsAttr.vue @@ -1,7 +1,7 @@