diff --git a/App.vue b/App.vue index 0330f2d..fed2ce2 100644 --- a/App.vue +++ b/App.vue @@ -18,45 +18,6 @@ }) this.$u.vuex('vuex_token', res.token) this.$u.vuex('vuex_userId', res.user_id) - let url = location.href.split('#')[0] - this.$u.api.share({ - url - }).then(res => { - jwx.config({ - debug: true, // 开启调试模式,调用的所有 api 的返回值会在客户端 alert 出来,若要查看传入的参数,可以在 pc 端打开,参数信息会通过 log 打出,仅在 pc 端时才会打印。 - appId: res.appId, - jsApiList: res.jsApiList, - nonceStr: res.nonceStr, - signature: res.signature, - timestamp: res.timestamp, - }) - jwx.ready(() => { - jwx.updateAppMessageShareData({ - title: '疯狂赏金-192用户现金红包大派送', // 分享标题 - desc: '疯狂赏金-192用户现金红包大派', - link: url, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致 - imgUrl: '/static/share-img.jpeg', // 分享图标 - }); - jwx.onMenuShareAppMessage({ - title: '疯狂赏金-192用户现金红包大派', // 分享标题 - desc: '疯狂赏金-192用户现金红包大派', - link: url, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致 - imgUrl: '/static/share-img.jpeg', // 分享图标 - }); - jwx.updateTimelineShareData({ - title: '疯狂赏金-192用户现金红包大派', // 分享标题 - desc: '疯狂赏金-192用户现金红包大派', - link: url, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致 - imgUrl: '/static/share-img.jpeg', // 分享图标 - }); - jwx.onMenuShareTimeline({ - title: '疯狂赏金-192用户现金红包大派', // 分享标题 - desc: '疯狂赏金-192用户现金红包大派', - link: url, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致 - imgUrl: '/static/share-img.jpeg', // 分享图标 - }); - }) - }) }) } } else { diff --git a/pages/index/index.vue b/pages/index/index.vue index 60ea6b1..120b018 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -46,7 +46,7 @@ - {{ tips }} + {{ tips }} @@ -176,6 +176,13 @@ import popover from "@/component/popover/index.vue"; case 3: return 'laugh'; } + }, + btnStyle() { + if(!/^1[3-9]\d{9}$/.test(`192${this.inputMobile}`)) { + return { 'height': '100%','background': '#969696','color': '#fff' } + } else { + return { 'height': '100%','background': '#ea3323','color': '#fff' } + } } }, watch: { diff --git a/pages/raffle/raffle.vue b/pages/raffle/raffle.vue index f2b6500..bf97332 100644 --- a/pages/raffle/raffle.vue +++ b/pages/raffle/raffle.vue @@ -102,14 +102,17 @@ {{ item.b }} + }" shape="circle" :hair-line="false" :ripple="true" @click="taskClick(item)">{{ item.b }} @@ -143,17 +146,38 @@ + + + + + + + + + + + + + 扫码{{ taskId === 2 ? '关注' : '下载' }} + + +