|
@@ -45,7 +45,7 @@
|
|
|
<view class="btn" style="width: 120rpx;" @click="changeMore(item)">更多</view>
|
|
|
<view class="btn" @click="goSign(item)">报名详情</view>
|
|
|
<view class="btn" @click="goStatis(item)">数据统计</view>
|
|
|
- <view class="btn" style="width: 120rpx;" @click="">分享</view>
|
|
|
+ <view class="btn" style="width: 120rpx;" @click="goshare(item)">分享</view>
|
|
|
</view>
|
|
|
<view class="moreBtn" v-if="item.showMoreBtn==true">
|
|
|
<view class="more" @click="goEdit(item.ID)">
|
|
@@ -117,6 +117,20 @@
|
|
|
uni.navigateTo({
|
|
|
url:'choice?type=2'
|
|
|
})
|
|
|
+ },
|
|
|
+ goshare(item){
|
|
|
+ var standalone = window.navigator.standalone
|
|
|
+ var userAgent = window.navigator.userAgent.toLowerCase()
|
|
|
+ var safari = /safari/.test(userAgent)
|
|
|
+ var ios = /iphone|ipod|ipad|mac/.test(userAgent)
|
|
|
+ var android = /android/.test(userAgent)
|
|
|
+ if (ios) {
|
|
|
+ if ( true) {//!standalone&& !safari
|
|
|
+ window.webkit.messageHandlers.goShare.postMessage(item)
|
|
|
+ }
|
|
|
+ } else if (android) {
|
|
|
+ window.android.postMessage()
|
|
|
+ }
|
|
|
},
|
|
|
goback(){
|
|
|
if(this.type==2){
|