Commit fac6a46a by yuzhenWang

换海报合并测试

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