分销:修正分享海报

pull/2/head
owen 2023-09-24 23:18:50 +08:00
parent 5d319b3f37
commit 380b47e371
2 changed files with 2 additions and 20 deletions

View File

@ -278,7 +278,6 @@
import uQRCode from '@/js_sdk/Sansnn-uQRCode/uqrcode.js'
import { toLogin } from '@/libs/login.js';
import { mapGetters } from "vuex";
import { imageBase64 } from "@/api/public";
import productConSwiper from '@/components/productConSwiper';
import couponListWindow from '@/components/couponListWindow';
import productWindow from '@/components/productWindow';
@ -530,7 +529,7 @@
// #ifdef H5
this.make();
this.ShareInfo();
this.getImageBase64();
this.imgTop = this.spu.picUrl;
// #endif
// #ifdef MP
this.getQrcode();
@ -1003,16 +1002,6 @@
"onMenuShareTimeline"
], configAppMessage);
},
/**
* 获得商品的封面 base64
*/
getImageBase64: function() {
imageBase64({
url: this.spu.picUrl
}).then(res => {
this.imgTop = res.data.code;
})
},
/**
* 获得小程序的二维码
*/

View File

@ -42,7 +42,6 @@
import { getQrcode } from '@/api/api.js';
// #endif
import home from '@/components/home';
import { imageBase64 } from "@/api/public";
import * as TradeConfigApi from '@/api/trade/config.js';
export default {
components: {
@ -131,13 +130,7 @@
let posterUrls = []
// Promise
images.forEach(item => {
// TODO @imageBase64 base64
const oneApi = imageBase64({
url: item.pic
}).then(res => {
return res.data.code;
})
posterUrls.push(oneApi)
posterUrls.push(item.pic)
})
Promise.all(posterUrls).then(result => {
that.$set(that, 'base64List', result);