Commit 8f146994 by yuzhenWang

发布测试换海报

parent 89f296a6
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<view class="imgContainer"> <view class="imgContainer">
<image <image
style="display: block;" style="display: block;"
src="@/static/registerBg.png" src="@/static/images/shareBg.png"
mode="widthFix" mode="widthFix"
@load="handleBgImageLoad" @load="handleBgImageLoad"
@error="handleBgImageError" @error="handleBgImageError"
...@@ -137,20 +137,20 @@ export default { ...@@ -137,20 +137,20 @@ export default {
const delay = 1000 * this.retryCount; const delay = 1000 * this.retryCount;
console.log(`第${this.retryCount}次重试,${delay}ms后重试...`); console.log(`第${this.retryCount}次重试,${delay}ms后重试...`);
uni.showToast({ // uni.showToast({
title: `生成中,请稍候...(${this.retryCount}/${this.maxRetryCount})`, // title: `生成中,请稍候...(${this.retryCount}/${this.maxRetryCount})`,
icon: 'none', // icon: 'none',
duration: delay // duration: delay
}); // });
setTimeout(() => { setTimeout(() => {
this.generateQrcodeAndCapture(); this.generateQrcodeAndCapture();
}, delay); }, delay);
} else { } else {
uni.showToast({ // uni.showToast({
title: '生成分享图失败,请稍后再试', // title: '生成分享图失败,请稍后再试',
icon: 'none' // icon: 'none'
}); // });
} }
}, },
...@@ -294,7 +294,7 @@ export default { ...@@ -294,7 +294,7 @@ export default {
.bottomBox { .bottomBox {
// flex: 1; // flex: 1;
border-radius: 20rpx 20rpx 0 0; border-radius: 20rpx 20rpx 0 0;
height: 150rpx; height: 200rpx;
width: 100%; width: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -309,7 +309,7 @@ export default { ...@@ -309,7 +309,7 @@ export default {
.preview-container{ .preview-container{
box-sizing: border-box; box-sizing: border-box;
flex: 1; flex: 1;
padding: 30rpx; padding: 80rpx 30rpx 0rpx 30rpx;
.preview-image { .preview-image {
width: 100%; width: 100%;
......
...@@ -1083,17 +1083,9 @@ ...@@ -1083,17 +1083,9 @@
} }
} }
// #ifdef H5 // #ifdef H5
const currentUrl = `${shareURL}/pages/index/index`;
const shareData = {
title: '银盾家办家庭财务策划师联盟邀您加入',
desc: `${this.userInfo.name || ''}邀您加入【家庭财策师联盟】,资源+伙伴,共赢未来!`,
link: currentUrl,
imgUrl: `${shareURL}/static/images/shareBg.png`
};
initJssdkShare(() => { initJssdkShare(() => {
setWechatShare(shareData); setWechatShare();
}, window.location.href.split('#')[0]); }, window.location.href);
// #endif // #endif
} }
} }
......
...@@ -352,16 +352,9 @@ ...@@ -352,16 +352,9 @@
api.userShare(UserShareRequestVO).then(res => { api.userShare(UserShareRequestVO).then(res => {
if (res['success']) { if (res['success']) {
// #ifdef H5 // #ifdef H5
const currentUrl = `${shareURL}/pages/index/index`;
const shareData = {
title: '银盾家办家庭财务策划师联盟邀您加入',
desc: `${this.userInfo.name || ''}邀您加入【家庭财策师联盟】,资源+伙伴,共赢未来!`,
link: currentUrl,
imgUrl: `${shareURL}/static/images/shareBg.png`
};
initJssdkShare(() => { initJssdkShare(() => {
setWechatShare(shareData); setWechatShare();
}, window.location.href.split('#')[0]); }, window.location.href);
// #endif // #endif
// uni.showToast({ // uni.showToast({
// title: '分享成功', // title: '分享成功',
......
...@@ -344,14 +344,6 @@ ...@@ -344,14 +344,6 @@
// 不是window.location.href.split('#')[0]很可能不成功 // 不是window.location.href.split('#')[0]很可能不成功
initShare() { initShare() {
// #ifdef H5 // #ifdef H5
const currentUrl = `${shareURL}/pages/index/index`;
const shareData = {
title: '银盾家办家庭财务策划师联盟邀您加入',
desc: `${this.userInfo.name || ''}邀您加入【家庭财策师联盟】,资源+伙伴,共赢未来!`,
link: currentUrl,
imgUrl: `${shareURL}/static/images/shareBg.png`
};
// shareData
initJssdkShare(() => { initJssdkShare(() => {
setWechatShare(); setWechatShare();
}, window.location.href.split('#')[0]); }, window.location.href.split('#')[0]);
......
...@@ -354,16 +354,9 @@ ...@@ -354,16 +354,9 @@
) )
setTimeout(()=>{ setTimeout(()=>{
// #ifdef H5 // #ifdef H5
const currentUrl = `${shareURL}/pages/index/index`;
const shareData = {
title: '银盾家办家庭财务策划师联盟邀您加入',
desc: `${this.userInfo.name || ''}邀您加入【家庭财策师联盟】,资源+伙伴,共赢未来!`,
link: currentUrl,
imgUrl: `${shareURL}/static/images/shareBg.png`
};
initJssdkShare(() => { initJssdkShare(() => {
setWechatShare(shareData); setWechatShare();
}, window.location.href.split('#')[0]); }, window.location.href);
// #endif // #endif
},500) },500)
......
...@@ -273,7 +273,9 @@ ...@@ -273,7 +273,9 @@
this.userInfo = JSON.parse(uni.getStorageSync('cffp_userInfo')) this.userInfo = JSON.parse(uni.getStorageSync('cffp_userInfo'))
} }
// #ifdef H5 // #ifdef H5
this.shareBtnBottom = dataHandling.isNotchIOS() const systemInfo = uni.getSystemInfoSync();
this.shareBtnBottom = systemInfo.platform === 'ios'
console.log('this.shareBtnBottom',this.shareBtnBottom);
initJssdkShare(() => { initJssdkShare(() => {
setWechatShare(); setWechatShare();
}, window.location.href); }, window.location.href);
...@@ -799,7 +801,7 @@ ...@@ -799,7 +801,7 @@
} }
} }
.shareBottom{ .shareBottom{
padding-bottom: 100rpx; padding-bottom: 150rpx;
} }
} }
.joinContent{ .joinContent{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment