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