Commit a4de4395a9a0f7a03fa382baf575793277e6920b

Authored by yvan.ni
1 parent f2b86b46

1、 我的拼团成功页面分享海报的bug优化

packageG/pages/team/team_success/team_success.js
@@ -464,7 +464,7 @@ Page({ @@ -464,7 +464,7 @@ Page({
464 464
465 465
466 //先画背景 466 //先画背景
467 - var pg_path = "../../../images/share/share_bg.png"; 467 + var pg_path = "../../../../images/share/share_bg.png";
468 //-- 如果有自定义海报的时候,判断背景的图片 -- 468 //-- 如果有自定义海报的时候,判断背景的图片 --
469 if(th.data.share_b_img){ 469 if(th.data.share_b_img){
470 pg_path=th.data.share_b_img; 470 pg_path=th.data.share_b_img;
@@ -493,7 +493,7 @@ Page({ @@ -493,7 +493,7 @@ Page({
493 context.fillText(app.globalData.userInfo.nickname, x1, y1); 493 context.fillText(app.globalData.userInfo.nickname, x1, y1);
494 var width = 24 * app.globalData.userInfo.nickname.length * unit + 4 * unit; 494 var width = 24 * app.globalData.userInfo.nickname.length * unit + 4 * unit;
495 //强烈推荐 改许程 495 //强烈推荐 改许程
496 - var tj_path = "../../../images/share/q_tj.png"; 496 + var tj_path = "../../../../images/share/q_tj.png";
497 context.drawImage(tj_path, x1 + width, y1-22*unit, 85 * unit, 30 * unit); 497 context.drawImage(tj_path, x1 + width, y1-22*unit, 85 * unit, 30 * unit);
498 context.setFontSize(16 * unit) 498 context.setFontSize(16 * unit)
499 context.setLineJoin('round'); //交点设置成圆角 499 context.setLineJoin('round'); //交点设置成圆角
@@ -508,7 +508,7 @@ Page({ @@ -508,7 +508,7 @@ Page({
508 context.fillText(app.globalData.userInfo.nickname, 152 * unit, 76 * unit); 508 context.fillText(app.globalData.userInfo.nickname, 152 * unit, 76 * unit);
509 var width = 24 * app.globalData.userInfo.nickname.length * unit + 2 * unit; 509 var width = 24 * app.globalData.userInfo.nickname.length * unit + 2 * unit;
510 //强烈推荐 510 //强烈推荐
511 - var tj_path = "../../../images/share/q_tj.png"; 511 + var tj_path = "../../../../images/share/q_tj.png";
512 context.drawImage(tj_path, 152 * unit + width, 54 * unit, 110 * unit, 30 * unit); 512 context.drawImage(tj_path, 152 * unit + width, 54 * unit, 110 * unit, 30 * unit);
513 context.setFontSize(18 * unit) 513 context.setFontSize(18 * unit)
514 context.setFillStyle("white") 514 context.setFillStyle("white")
@@ -579,7 +579,7 @@ Page({ @@ -579,7 +579,7 @@ Page({
579 context.fillText("好物拼起来,拼拼更划算", 40 * unit, 726 * unit); 579 context.fillText("好物拼起来,拼拼更划算", 40 * unit, 726 * unit);
580 580
581 //绘制成团图片 581 //绘制成团图片
582 - var ct_img ="../../../images/share/ct_num.png"; 582 + var ct_img ="../../../../images/share/ct_num.png";
583 context.drawImage(ct_img, 40 * unit, 740 * unit, 120 * unit, 30 * unit); 583 context.drawImage(ct_img, 40 * unit, 740 * unit, 120 * unit, 30 * unit);
584 var ct_num = th.data.teamlist.ct_num; 584 var ct_num = th.data.teamlist.ct_num;
585 context.setFontSize(14 * unit) 585 context.setFontSize(14 * unit)
@@ -772,7 +772,7 @@ Page({ @@ -772,7 +772,7 @@ Page({
772 //---获取分享图片的本地地址,头像和商品图片---- 772 //---获取分享图片的本地地址,头像和商品图片----
773 var path2 = getApp().globalData.userInfo.head_pic; 773 var path2 = getApp().globalData.userInfo.head_pic;
774 if(path2==""){ 774 if(path2==""){
775 - ee.data.share_head ="../../../images/share/hui_hear_pic.png"; 775 + ee.data.share_head ="../../../../images/share/hui_hear_pic.png";
776 tt(func); 776 tt(func);
777 }else { 777 }else {
778 path2=path2.replace("http://thirdwx.qlogo.cn","https://wx.qlogo.cn"); 778 path2=path2.replace("http://thirdwx.qlogo.cn","https://wx.qlogo.cn");
@@ -785,7 +785,7 @@ Page({ @@ -785,7 +785,7 @@ Page({
785 tt(func);; 785 tt(func);;
786 }, 786 },
787 fail: function (res) { 787 fail: function (res) {
788 - ee.data.share_head = "../../../images/share/hui_hear_pic.png"; //分享的图片不能用网络的 788 + ee.data.share_head = "../../../../images/share/hui_hear_pic.png"; //分享的图片不能用网络的
789 tt(func); 789 tt(func);
790 } 790 }
791 }); 791 });
@@ -957,7 +957,7 @@ Page({ @@ -957,7 +957,7 @@ Page({
957 957
958 958
959 if (type == 1) { // 商家和会员团 959 if (type == 1) { // 商家和会员团
960 - src = '../../../images/share/ct_num.png'; 960 + src = '../../../../images/share/ct_num.png';
961 context.drawImage(src, 54 * unit, 648 * unit, 120 * unit, 30 * unit); 961 context.drawImage(src, 54 * unit, 648 * unit, 120 * unit, 30 * unit);
962 context.setTextAlign('left'); 962 context.setTextAlign('left');
963 963