|
@@ -2,22 +2,37 @@
|
|
|
<div class="invite-container">
|
|
|
<Mall
|
|
|
:goods="shops"
|
|
|
- ref="myMall"/>
|
|
|
+ ref="myMall"
|
|
|
+ @showShareTip="showShareTip"/>
|
|
|
+ <!--弹窗:分享提示-->
|
|
|
+ <van-popup
|
|
|
+ class="fbt-van-popup-share"
|
|
|
+ position="top"
|
|
|
+ v-model="booShareTip">
|
|
|
+ <img
|
|
|
+ src="./image/icon_01@2x.png"
|
|
|
+ alt="">
|
|
|
+ </van-popup>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import funWxShare from '@/utils/wxShare0.0'
|
|
|
import Mall from '../marketing/save/mall'
|
|
|
+import { Popup } from 'vant'
|
|
|
import { getHomeList } from '@/views/marketing/api'
|
|
|
+import { platform } from '@/utils/platform'
|
|
|
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
components: {
|
|
|
- Mall
|
|
|
+ Mall,
|
|
|
+ 'van-popup': Popup
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
- shops: []
|
|
|
+ shops: [],
|
|
|
+ booShareTip: false
|
|
|
}
|
|
|
},
|
|
|
activated () {
|
|
@@ -42,6 +57,10 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
} catch (err) {}
|
|
|
+ },
|
|
|
+ showShareTip (obj) {
|
|
|
+ platform.isWeixin && funWxShare('返不停', '一个省钱、赚钱又返钱的生活平台', `${location.origin}/img/share.png`, obj.link_url)
|
|
|
+ this.booShareTip = true
|
|
|
}
|
|
|
},
|
|
|
beforeRouteLeave (to, form, next) {
|
|
@@ -63,4 +82,14 @@ export default {
|
|
|
bottom: 50px;
|
|
|
width: 100%;
|
|
|
}
|
|
|
+
|
|
|
+.fbt-van-popup-share {
|
|
|
+ background: transparent;
|
|
|
+
|
|
|
+ img {
|
|
|
+ display: block;
|
|
|
+ width: 100%;
|
|
|
+ height: 286px;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|