|
@@ -12,7 +12,10 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <van-overlay :custom-style="{'background-color': 'rgba(0, 0, 0, .4)'}" :show="toShanshipin">
|
|
|
+ <van-overlay
|
|
|
+ :custom-style="{ 'background-color': 'rgba(0, 0, 0, .4)' }"
|
|
|
+ :show="toShanshipin"
|
|
|
+ >
|
|
|
<div class="dialogBody">
|
|
|
<van-image width="100" height="100" :src="logoImage" round />
|
|
|
<div class="title">请打开闪视频投稿或查看我的作品</div>
|
|
@@ -34,7 +37,7 @@
|
|
|
</div>
|
|
|
</van-overlay>
|
|
|
|
|
|
- <!-- confirm-button-color="linear-gradient(90deg, #0038ad, #004fd9)" -->
|
|
|
+ <!-- confirm-button-color="linear-gradient(90deg, #0038ad, #004fd9)" -->
|
|
|
<van-dialog
|
|
|
theme="round-button"
|
|
|
confirm-button-text="关 闭"
|
|
@@ -72,7 +75,7 @@
|
|
|
</div>
|
|
|
</van-dialog>
|
|
|
|
|
|
- <img v-if="showWixin" src="../../assets/img/weixin.jpg" class="Down">
|
|
|
+ <img v-if="showWixin" src="../../assets/img/weixin.jpg" class="Down" />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup>
|
|
@@ -115,12 +118,42 @@ function toShanshipinFunc() {
|
|
|
}, 2000);
|
|
|
}
|
|
|
|
|
|
-function tougao(){
|
|
|
- if(window.$shanshipin) {
|
|
|
- if(location.replace) return location.replace("https://ssp-api.sxtvs.com.cn/tapi/form/index.html?ChannelID=20441");
|
|
|
- else return location.href = "https://ssp-api.sxtvs.com.cn/tapi/form/index.html?ChannelID=20441";
|
|
|
+function tougao() {
|
|
|
+ const url = "https://ssp-api.sxtvs.com.cn/tapi/form/index.html?ChannelID=20441",
|
|
|
+ contentId = "",
|
|
|
+ shareTitle = "",
|
|
|
+ shareSummary = "",
|
|
|
+ shareIcon = "",
|
|
|
+ shareUrl = "";
|
|
|
+ if (isIphone||isIpad||isIpod) {
|
|
|
+ try {
|
|
|
+ window.webkit.messageHandlers.TideAppStartNewsDetail.postMessage([
|
|
|
+ url,
|
|
|
+ contentId,
|
|
|
+ shareTitle,
|
|
|
+ shareSummary,
|
|
|
+ shareIcon,
|
|
|
+ shareUrl,
|
|
|
+ ]);
|
|
|
+ } catch (e) {
|
|
|
+ console.log(e)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ try {
|
|
|
+ window.TideApp.startNewsDetail(
|
|
|
+ url,
|
|
|
+ contentId,
|
|
|
+ shareTitle,
|
|
|
+ shareSummary,
|
|
|
+ shareIcon,
|
|
|
+ shareUrl
|
|
|
+ );
|
|
|
+ } catch (e) {
|
|
|
+ console.log(e);
|
|
|
}
|
|
|
- toShanshipin.value = true;
|
|
|
+ }
|
|
|
+
|
|
|
+// toShanshipin.value = true;
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="scss">
|
|
@@ -187,7 +220,7 @@ function tougao(){
|
|
|
bottom: -4em;
|
|
|
transform: translateX(-50%);
|
|
|
position: absolute;
|
|
|
- background-color:rgba(0, 0, 0, .4);
|
|
|
+ background-color: rgba(0, 0, 0, 0.4);
|
|
|
text-align: center;
|
|
|
}
|
|
|
|
|
@@ -217,7 +250,7 @@ function tougao(){
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- .Down{
|
|
|
+ .Down {
|
|
|
position: fixed;
|
|
|
z-index: 100000;
|
|
|
width: 100vw;
|