修改:海报默认背景修改为远程读取,本地不在存储默认海报背景
This commit is contained in:
parent
e91e1b60f3
commit
4cc4ae1c35
|
|
@ -291,7 +291,7 @@
|
||||||
PromotionCode: '', //二维码图片
|
PromotionCode: '', //二维码图片
|
||||||
canvasStatus: false, //海报绘图标签
|
canvasStatus: false, //海报绘图标签
|
||||||
posterImage: '', //海报路径
|
posterImage: '', //海报路径
|
||||||
posterbackgd: '/static/images/posterbackgd.png',
|
posterbackgd: '',
|
||||||
isDown: true,
|
isDown: true,
|
||||||
isCopy: false,
|
isCopy: false,
|
||||||
copyUrl: '',
|
copyUrl: '',
|
||||||
|
|
@ -384,6 +384,8 @@
|
||||||
//#endif
|
//#endif
|
||||||
},
|
},
|
||||||
onReady: function() {
|
onReady: function() {
|
||||||
|
|
||||||
|
this.posterbackgd = `${HTTP_REQUEST_URL}/static/images/mer/posterbackgd.png`;
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
this.$nextTick(function() {
|
this.$nextTick(function() {
|
||||||
const clipboard = new ClipboardJS(".copy-data");
|
const clipboard = new ClipboardJS(".copy-data");
|
||||||
|
|
@ -429,11 +431,10 @@
|
||||||
mask: true
|
mask: true
|
||||||
});
|
});
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
arr2 = [that.posterbackgd, await that.imgToBase(that.storeImage), await that.imgToBase(that.codeImg), await that.imgToBase(that.share_pic)];
|
arr2 = [await that.imgToBase(that.posterbackgd), await that.imgToBase(that.storeImage), await that.imgToBase(that.codeImg), await that.imgToBase(that.share_pic)];
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef MP || APP-PLUS
|
// #ifdef MP || APP-PLUS
|
||||||
arr2 = [that.posterbackgd, await that.fileStoreImage(that.storeImage), await that.fileStoreImage(
|
arr2 = [await that.fileStoreImage(that.posterbackgd), await that.fileStoreImage(that.storeImage), await that.fileStoreImage(that.codeImg), await that.fileStoreImage(that.share_pic)];
|
||||||
that.codeImg), await that.fileStoreImage(that.share_pic)];
|
|
||||||
// #endif
|
// #endif
|
||||||
that.$util.goodsPosterCanvas(arr2, that.bargainData.store_name, that.bargainPrice, that.site_name, that.old_price, function(tempFilePath) {
|
that.$util.goodsPosterCanvas(arr2, that.bargainData.store_name, that.bargainPrice, that.site_name, that.old_price, function(tempFilePath) {
|
||||||
that.$set(that, 'posterImage', tempFilePath);
|
that.$set(that, 'posterImage', tempFilePath);
|
||||||
|
|
|
||||||
|
|
@ -429,7 +429,7 @@
|
||||||
PromotionCode: '', //二维码图片
|
PromotionCode: '', //二维码图片
|
||||||
canvasStatus: false, //海报绘图标签
|
canvasStatus: false, //海报绘图标签
|
||||||
posterImage: '', //海报路径
|
posterImage: '', //海报路径
|
||||||
posterbackgd: '/static/images/posterbackgd.png',
|
posterbackgd: '',
|
||||||
sharePacket: {
|
sharePacket: {
|
||||||
isState: true, //默认不显示
|
isState: true, //默认不显示
|
||||||
}, //分销商详细
|
}, //分销商详细
|
||||||
|
|
@ -588,6 +588,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
|
this.posterbackgd = `${HTTP_REQUEST_URL}/static/images/mer/posterbackgd.png`;
|
||||||
this.isNodes++;
|
this.isNodes++;
|
||||||
this.$nextTick(function() {
|
this.$nextTick(function() {
|
||||||
// #ifdef MP
|
// #ifdef MP
|
||||||
|
|
@ -1298,11 +1299,10 @@
|
||||||
mask: true
|
mask: true
|
||||||
});
|
});
|
||||||
// #ifdef MP || APP-PLUS
|
// #ifdef MP || APP-PLUS
|
||||||
arr2 = [that.posterbackgd, await this.fileStoreImage(this.storeImage), await this.fileStoreImage(
|
arr2 = [await this.fileStoreImage(that.posterbackgd), await this.fileStoreImage(this.storeImage), await this.fileStoreImage(this.codeImg), await that.fileStoreImage(that.share_pic)];
|
||||||
this.codeImg), await that.fileStoreImage(that.share_pic)];
|
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
arr2 = [that.posterbackgd, await this.imgToBase(that.storeImage), await this.imgToBase(this.codeImg), await that.imgToBase(that.share_pic)];
|
arr2 = [await this.imgToBase(that.posterbackgd), await this.imgToBase(that.storeImage), await this.imgToBase(this.codeImg), await that.imgToBase(that.share_pic)];
|
||||||
// #endif
|
// #endif
|
||||||
//生成推广海报
|
//生成推广海报
|
||||||
that.$util.goodsPosterCanvas(arr2, that.storeInfo.store_name, that.storeInfo.price, that.site_name, that.storeInfo.ot_price, function(tempFilePath) {
|
that.$util.goodsPosterCanvas(arr2, that.storeInfo.store_name, that.storeInfo.price, that.site_name, that.storeInfo.ot_price, function(tempFilePath) {
|
||||||
|
|
|
||||||
|
|
@ -355,7 +355,7 @@
|
||||||
PromotionCode: '', //二维码图片
|
PromotionCode: '', //二维码图片
|
||||||
canvasStatus: false, //海报绘图标签
|
canvasStatus: false, //海报绘图标签
|
||||||
posterImage: '', //海报路径
|
posterImage: '', //海报路径
|
||||||
posterbackgd: '/static/images/posterbackgd.png',
|
posterbackgd: '',
|
||||||
// uid: 0, //用户uid
|
// uid: 0, //用户uid
|
||||||
circular: false,
|
circular: false,
|
||||||
autoplay: false,
|
autoplay: false,
|
||||||
|
|
@ -507,6 +507,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
|
this.posterbackgd = `${HTTP_REQUEST_URL}/static/images/mer/posterbackgd.png`;
|
||||||
this.isNodes++;
|
this.isNodes++;
|
||||||
this.$nextTick(function() {
|
this.$nextTick(function() {
|
||||||
// #ifdef MP
|
// #ifdef MP
|
||||||
|
|
@ -1199,11 +1200,11 @@
|
||||||
mask: true
|
mask: true
|
||||||
});
|
});
|
||||||
// #ifdef MP || APP-PLUS
|
// #ifdef MP || APP-PLUS
|
||||||
arr2 = [that.posterbackgd, await that.fileStoreImage(that.storeImage), await that.fileStoreImage(
|
arr2 = [await that.fileStoreImage(that.posterbackgd), await that.fileStoreImage(that.storeImage), await that.fileStoreImage(
|
||||||
that.codeImg), await that.fileStoreImage(that.share_pic)];
|
that.codeImg), await that.fileStoreImage(that.share_pic)];
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
arr2 = [that.posterbackgd, await that.imgToBase(that.storeImage), await that.imgToBase(that.codeImg), await that.imgToBase(that.share_pic)];
|
arr2 = [await that.imgToBase(that.posterbackgd), await that.imgToBase(that.storeImage), await that.imgToBase(that.codeImg), await that.imgToBase(that.share_pic)];
|
||||||
// #endif
|
// #endif
|
||||||
that.$util.goodsPosterCanvas(arr2, that.storeInfo.store_name, that.storeInfo.price, that.site_name, that.storeInfo.ot_price, function(tempFilePath) {
|
that.$util.goodsPosterCanvas(arr2, that.storeInfo.store_name, that.storeInfo.price, that.site_name, that.storeInfo.ot_price, function(tempFilePath) {
|
||||||
that.$set(that, 'posterImage', tempFilePath);
|
that.$set(that, 'posterImage', tempFilePath);
|
||||||
|
|
|
||||||
|
|
@ -422,7 +422,7 @@
|
||||||
PromotionCode: '', //二维码图片
|
PromotionCode: '', //二维码图片
|
||||||
canvasStatus: false, //海报绘图标签
|
canvasStatus: false, //海报绘图标签
|
||||||
posterImage: '', //海报路径
|
posterImage: '', //海报路径
|
||||||
posterbackgd: '/static/images/posterbackgd.png',
|
posterbackgd: '',
|
||||||
sharePacket: {
|
sharePacket: {
|
||||||
isState: true, //默认不显示
|
isState: true, //默认不显示
|
||||||
}, //分销商详细
|
}, //分销商详细
|
||||||
|
|
@ -580,6 +580,7 @@
|
||||||
shareScence(that.currSpid, that.isLogin)
|
shareScence(that.currSpid, that.isLogin)
|
||||||
},
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
|
this.posterbackgd = `${HTTP_REQUEST_URL}/static/images/mer/posterbackgd.png`;
|
||||||
this.isNodes++;
|
this.isNodes++;
|
||||||
this.$nextTick(function() {
|
this.$nextTick(function() {
|
||||||
// #ifdef MP
|
// #ifdef MP
|
||||||
|
|
@ -1409,11 +1410,10 @@
|
||||||
mask: true
|
mask: true
|
||||||
});
|
});
|
||||||
// #ifdef MP || APP-PLUS
|
// #ifdef MP || APP-PLUS
|
||||||
arr2 = [that.posterbackgd, await that.fileStoreImage(that.storeImage), await that.fileStoreImage(
|
arr2 = [await that.fileStoreImage(that.posterbackgd), await that.fileStoreImage(that.storeImage), await that.fileStoreImage(that.codeImg), await that.fileStoreImage(that.share_pic)];
|
||||||
that.codeImg), await that.fileStoreImage(that.share_pic)];
|
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
arr2 = [that.posterbackgd, await this.imgToBase(that.storeImage), await this.imgToBase(this.codeImg), await that.imgToBase(that.share_pic)];
|
arr2 = [await that.imgToBase(that.posterbackgd), await this.imgToBase(that.storeImage), await this.imgToBase(this.codeImg), await that.imgToBase(that.share_pic)];
|
||||||
// #endif
|
// #endif
|
||||||
that.$util.goodsPosterCanvas(arr2, that.storeInfo.store_name, that.storeInfo.price, that.site_name, that.storeInfo.ot_price, function(tempFilePath) {
|
that.$util.goodsPosterCanvas(arr2, that.storeInfo.store_name, that.storeInfo.price, that.site_name, that.storeInfo.ot_price, function(tempFilePath) {
|
||||||
that.$set(that, 'posterImage', tempFilePath);
|
that.$set(that, 'posterImage', tempFilePath);
|
||||||
|
|
|
||||||
|
|
@ -317,7 +317,7 @@
|
||||||
storeImage: '', //海报产品图
|
storeImage: '', //海报产品图
|
||||||
canvasStatus: false, //海报绘图标签
|
canvasStatus: false, //海报绘图标签
|
||||||
posterImage: '', //海报路径
|
posterImage: '', //海报路径
|
||||||
posterbackgd: '/static/images/posterbackgd.png',
|
posterbackgd: '',
|
||||||
source: '',
|
source: '',
|
||||||
domain: HTTP_REQUEST_URL,
|
domain: HTTP_REQUEST_URL,
|
||||||
sharePacket: {
|
sharePacket: {
|
||||||
|
|
@ -403,7 +403,9 @@
|
||||||
});
|
});
|
||||||
this.getPreviewDetails()
|
this.getPreviewDetails()
|
||||||
},
|
},
|
||||||
onReady() {},
|
onReady() {
|
||||||
|
this.posterbackgd = `${HTTP_REQUEST_URL}/static/images/mer/posterbackgd.png`;
|
||||||
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
// this.getConfig()
|
// this.getConfig()
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -393,7 +393,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
var sysHeight = uni.getSystemInfoSync().statusBarHeight;
|
var sysHeight = uni.getSystemInfoSync().statusBarHeight;
|
||||||
// import { getconfig } from '@/api/public.js';
|
// import { getconfig } from '@/api/public.js';
|
||||||
import { arrivalSubscribe } from '@/utils/SubscribeMessage.js';
|
import { arrivalSubscribe } from '@/utils/SubscribeMessage.js';
|
||||||
|
|
@ -487,7 +486,7 @@
|
||||||
PromotionCode: '', //二维码图片
|
PromotionCode: '', //二维码图片
|
||||||
canvasStatus: false, //海报绘图标签
|
canvasStatus: false, //海报绘图标签
|
||||||
posterImage: '', //海报路径
|
posterImage: '', //海报路径
|
||||||
posterbackgd: '/static/images/posterbackgd.png',
|
posterbackgd: '',//
|
||||||
source: '',
|
source: '',
|
||||||
sharePacket: {
|
sharePacket: {
|
||||||
isState: true, //默认不显示
|
isState: true, //默认不显示
|
||||||
|
|
@ -655,6 +654,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
|
this.posterbackgd = `${HTTP_REQUEST_URL}/static/images/mer/posterbackgd.png`;
|
||||||
|
|
||||||
this.isNodes++;
|
this.isNodes++;
|
||||||
this.$nextTick(function() {
|
this.$nextTick(function() {
|
||||||
// #ifdef MP
|
// #ifdef MP
|
||||||
|
|
@ -1527,11 +1528,10 @@
|
||||||
mask: true
|
mask: true
|
||||||
});
|
});
|
||||||
// #ifdef MP || APP-PLUS
|
// #ifdef MP || APP-PLUS
|
||||||
arr2 = [that.posterbackgd, await that.fileStoreImage(that.storeImage), await that.fileStoreImage(
|
arr2 = [await that.fileStoreImage(that.posterbackgd), await that.fileStoreImage(that.storeImage), await that.fileStoreImage(that.codeImg), await that.fileStoreImage(that.share_pic)];
|
||||||
that.codeImg), await that.fileStoreImage(that.share_pic)];
|
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
arr2 = [that.posterbackgd, await that.imgToBase(that.storeImage), await that.imgToBase(that.codeImg), await that.imgToBase(that.share_pic)];
|
arr2 = [await that.imgToBase(that.posterbackgd), await that.imgToBase(that.storeImage), await that.imgToBase(that.codeImg), await that.imgToBase(that.share_pic)];
|
||||||
// #endif
|
// #endif
|
||||||
//生成推广海报
|
//生成推广海报
|
||||||
that.$util.goodsPosterCanvas(arr2, that.storeInfo.store_name, that.storeInfo.price, that.site_name, that.storeInfo.ot_price, function(tempFilePath) {
|
that.$util.goodsPosterCanvas(arr2, that.storeInfo.store_name, that.storeInfo.price, that.site_name, that.storeInfo.ot_price, function(tempFilePath) {
|
||||||
|
|
|
||||||
|
|
@ -321,7 +321,7 @@
|
||||||
PromotionCode: '', //二维码图片
|
PromotionCode: '', //二维码图片
|
||||||
canvasStatus: false, //海报绘图标签
|
canvasStatus: false, //海报绘图标签
|
||||||
posterImage: '', //海报路径
|
posterImage: '', //海报路径
|
||||||
posterbackgd: '../static/img/index/posterbackgd.png',
|
posterbackgd: '',
|
||||||
avatar: '/static/images/f.png',
|
avatar: '/static/images/f.png',
|
||||||
codeImg: "",
|
codeImg: "",
|
||||||
autoplay: false,
|
autoplay: false,
|
||||||
|
|
@ -387,6 +387,7 @@
|
||||||
uni.createVideoContext(this.dataList[this.k].community_id+''+this.k,this).pause();//暂停以后继续播放
|
uni.createVideoContext(this.dataList[this.k].community_id+''+this.k,this).pause();//暂停以后继续播放
|
||||||
},
|
},
|
||||||
onReady: function() {
|
onReady: function() {
|
||||||
|
this.posterbackgd = `${HTTP_REQUEST_URL}/static/images/mer/posterbackgd.png`;
|
||||||
this.windowWidth = uni.getSystemInfoSync().windowWidth
|
this.windowWidth = uni.getSystemInfoSync().windowWidth
|
||||||
this.windowHeight = uni.getSystemInfoSync().windowHeight
|
this.windowHeight = uni.getSystemInfoSync().windowHeight
|
||||||
},
|
},
|
||||||
|
|
@ -874,18 +875,17 @@
|
||||||
});
|
});
|
||||||
// #ifdef MP || APP-PLUS
|
// #ifdef MP || APP-PLUS
|
||||||
if(that.dataList[that.k].author.avatar){
|
if(that.dataList[that.k].author.avatar){
|
||||||
arr2 = [that.posterbackgd,await that.fileStoreImage(that.dataList[that.k].image[0]), await that.fileStoreImage(
|
arr2 = [await that.fileStoreImage(that.posterbackgd),await that.fileStoreImage(that.dataList[that.k].image[0]), await that.fileStoreImage(that.codeImg), await that.fileStoreImage(that.dataList[that.k].author.avatar)];
|
||||||
that.codeImg), await that.fileStoreImage(that.dataList[that.k].author.avatar)];
|
|
||||||
}else{
|
}else{
|
||||||
arr2 = [that.posterbackgd,await that.fileStoreImage(that.dataList[that.k].image[0]), await that.fileStoreImage(
|
arr2 = [await that.fileStoreImage(that.posterbackgd),await that.fileStoreImage(that.dataList[that.k].image[0]), await that.fileStoreImage(
|
||||||
that.codeImg), that.avatar];
|
that.codeImg), that.avatar];
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
if(that.dataList[that.k].author.avatar){
|
if(that.dataList[that.k].author.avatar){
|
||||||
arr2 = [that.posterbackgd,await that.imgToBase(that.dataList[that.k].image[0]), await that.imgToBase(that.codeImg), await that.imgToBase(that.dataList[that.k].author.avatar)];
|
arr2 = [await that.imgToBase(that.posterbackgd),await that.imgToBase(that.dataList[that.k].image[0]), await that.imgToBase(that.codeImg), await that.imgToBase(that.dataList[that.k].author.avatar)];
|
||||||
}else{
|
}else{
|
||||||
arr2 = [that.posterbackgd,await that.imgToBase(that.dataList[that.k].image[0]), await that.imgToBase(that.codeImg), that.avatar];
|
arr2 = [await that.imgToBase(that.posterbackgd),await that.imgToBase(that.dataList[that.k].image[0]), await that.imgToBase(that.codeImg), that.avatar];
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
//生成推广海报
|
//生成推广海报
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 35 KiB |
Loading…
Reference in New Issue