shish 2 лет назад
Родитель
Сommit
4c2b67f8bb
1 измененных файлов с 5 добавлено и 2 удалено
  1. 5 2
      hdApp/src/pagesPurchase/ghsProduct.vue

+ 5 - 2
hdApp/src/pagesPurchase/ghsProduct.vue

@@ -266,7 +266,8 @@ export default {
 			showClassRemind:false,
 			buyNotice:0,
 			getappIdList: {},
-			backAction:''
+			backAction:'',
+			shareImgUrl:''
 		};
 	},
 	onPullDownRefresh() {
@@ -357,7 +358,7 @@ export default {
 		return {
 			title: this.ghsInfo.name,
 			desc: "首次下单领红包",
-			imageUrl: this.constant.imgUrl + "/buy_logo.jpg",
+			imageUrl: this.shareImgUrl,
 			path: `pagesPurchase/ghsProduct?hdShopAdminId=${this.loginInfo.shopAdminId}&ghsShopAdminId=${ghsShopAdminId}&shopId=${this.shopId}&id=0&fromGhsId=${this.ghsId}&fromCg=${fromCg}`
 		}
 	},
@@ -518,6 +519,7 @@ export default {
 			if(this.option.id == 0) {
 				ghsInfo({shopId: this.option.shopId}).then(res => {
 					this.ghsInfo = res.data
+					this.shareImgUrl = res.data.shareLogo ? res.data.shareLogo : ''
 					let id = res.data.id
 					this.ghsId = id
 					this.buyNotice = res.data.buyNotice
@@ -549,6 +551,7 @@ export default {
 					this.ghsInfo = res.data
 					this.shopId = res.data.shopId
 					this.buyNotice = res.data.buyNotice
+					this.shareImgUrl = res.data.shareLogo ? res.data.shareLogo : ''
 					//只有注册了和没有列入黑名单才判断他是不是花店身份
 					if(this.buyNotice == 1){
 						this.myClass = 'fadeIn'