master
lion 2 years ago
parent cf2e0c2c5f
commit 3d9a206e58

@ -33,8 +33,8 @@
<transition name="share-pop" enter-active-class="fade-in" leave-to-class="fade-out"> <transition name="share-pop" enter-active-class="fade-in" leave-to-class="fade-out">
<view class="share_cover" v-show="isShare" @click="isShare = false"> <view class="share_cover" v-show="isShare" @click="isShare = false">
<image :src="require('../static/cer-toShare.png')" class="share_cover_arrow"></image> <image :style="{'top':navBarTop+'px','right':navBarRight+'px'}" :src="require('../static/cer-toShare.png')" class="share_cover_arrow"></image>
<view class="share_cover_word"> <view class="share_cover_word" :style="{'margin-top':200+navBarTop+'px'}">
请点击右上角将它发送给指定朋友或分享到朋友圈 请点击右上角将它发送给指定朋友或分享到朋友圈
</view> </view>
</view> </view>
@ -78,13 +78,21 @@
userInfo: {}, userInfo: {},
myIndex: 0, myIndex: 0,
navBarTop: 0, navBarTop: 0,
navBarRight: 0,
}; };
}, },
onShareAppMessage() {
return shareInfo
},
onShareTimeline() {
return shareInfo
},
onShow() { onShow() {
this.userInfo = uni.getStorageSync('walksz_lifeData').vuex_user this.userInfo = uni.getStorageSync('walksz_lifeData').vuex_user
this.myIndex = this.userInfo.myIndex?this.userInfo.myIndex:'-' this.myIndex = this.userInfo.myIndex?this.userInfo.myIndex:'-'
const MenuButton = uni.getMenuButtonBoundingClientRect() const MenuButton = uni.getMenuButtonBoundingClientRect()
this.navBarTop = MenuButton.top + MenuButton.height // this.navBarTop = MenuButton.top + MenuButton.height //
this.navBarRight = MenuButton.width
let sysInfo = uni.getSystemInfoSync(); let sysInfo = uni.getSystemInfoSync();
this.SCREEN_WIDTH = sysInfo.screenWidth this.SCREEN_WIDTH = sysInfo.screenWidth
this.SCREEN_HEIGHT = sysInfo.screenHeight; this.SCREEN_HEIGHT = sysInfo.screenHeight;

Loading…
Cancel
Save