diff --git a/api/gift.js b/api/gift.js
index a8b60ac..4098fb4 100644
--- a/api/gift.js
+++ b/api/gift.js
@@ -55,4 +55,12 @@ export function getGiftCardSendOrderAmount(key, data) {
*/
export function getGiftCardResend(data) {
return request.post("/giftCard/makeAgain", data);
+}
+
+/**
+ * 获取背景图
+ * @param {*} data
+ */
+export function getGiftCardSendBackground(data) {
+ return request.get("giftCard/giftCardBackgroundImage", data);
}
\ No newline at end of file
diff --git a/pages/shop/GoodsCon/index.vue b/pages/shop/GoodsCon/index.vue
index 6b5aaf0..cf93638 100644
--- a/pages/shop/GoodsCon/index.vue
+++ b/pages/shop/GoodsCon/index.vue
@@ -66,7 +66,12 @@
{{ storeInfo.storeName }}
-
+
+
支持礼包赠送
@@ -551,7 +556,7 @@ import {
removeProduct
} from '@/api/favorite'
import { pageListenMixins } from '@/mixins/pageListenMixins'
-
+import {getGiftCardSendBackground} from "@/api/gift"
export default {
name: 'GoodsCon',
components: {
@@ -568,6 +573,7 @@ export default {
data: function () {
return {
isGift: false,
+ giftBg: '',
// 商品信息是否展开
isProductInfoExpand: true,
shareInfoStatus: false,
@@ -768,6 +774,11 @@ export default {
},
onShow() {
this.getMapData()
+ getGiftCardSendBackground().then(res => {
+ if (res.status === 200) {
+ this.giftBg = res.data || ''
+ }
+ })
},
watch: {
posterImageStatus(status) {
@@ -2161,4 +2172,12 @@ export default {
height: 34rpx;
margin-right: 10rpx;
}
+.gift-wrap{
+ position: relative;
+}
+.gift-bg{
+ position: absolute;
+ left: 0;
+ width: 100%;
+}