12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <template>
- <view>
- <diyC ref="diy" v-if="isDiy" @pullResh="pullResh"></diyC>
- </view>
- </template>
- <script>
- import diyC from './diy/index_mall.vue'
- export default {
- data() {
- return {
- isDiy: uni.getStorageSync('is_diy'),
- shareInfo: {}
- }
- },
- components: {
- diyC
- },
- onShow() {
- uni.$on('is_diy', (data) => {
- this.isDiy = data
- })
- this.$refs.diy.pullResh();
- },
- onHide() {
-
- },
- onPullDownRefresh() {
- this.$refs.diy.pullResh();
-
- },
- onLoad(){
-
-
-
-
-
- },
- methods: {
- },
-
-
-
-
-
-
-
- onShareAppMessage: function (option) {
- console.log(option)
- let groupon = option.target.dataset.groupon;
- let userInfo = this.$Cache.get("USER_INFO", true)
- let that = this;
- return {
- title: groupon.mainTitle,
- imageUrl: groupon.shareImage || groupon.slideshow[0],
- path: `/pages/groupbuying_details/index?id=${groupon.id}&selfTakeId=${that.selfTakeId}&organizerUserId=${that.organizerUserId}&inviteUserId=${userInfo.userId}`,
- success(res) {
- uni.showToast({
- title: '分享成功'
- })
- },
- fail(res) {
- uni.showToast({
- title: '分享失败',
- icon: 'none'
- })
- }
- };
- },
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- </script>
- <style></style>
|