Browse Source

优化分享到朋友弹窗

pull/19/head
zyronon 4 years ago
parent
commit
29db827eb5
  1. 2
      src/components/Share.vue
  2. 21
      src/pages/home/Music.vue
  3. 4
      src/pages/home/components/ShareTo.vue
  4. 4
      src/pages/home/components/ShareToFriend.vue

2
src/components/Share.vue

@ -31,7 +31,7 @@
<span>分享日常</span> <span>分享日常</span>
</div> </div>
</template> </template>
<div class="share-to" @click="closeShare($nav('/message/share-to-friend'))"> <div class="share-to" @click="closeShare($emit('ShareToFriend'))">
<img src="../assets/img/icon/components/video/tofriend.webp" alt=""> <img src="../assets/img/icon/components/video/tofriend.webp" alt="">
<span>站内私信</span> <span>站内私信</span>
</div> </div>

21
src/pages/home/Music.vue

@ -1,5 +1,5 @@
<template> <template>
<div class="Music"> <div id="Music">
<div class="header"> <div class="header">
<back mode="light" @click="$back"/> <back mode="light" @click="$back"/>
<transition name="fade"> <transition name="fade">
@ -65,11 +65,11 @@
@share2QQZone="shareType = 4" @share2QQZone="shareType = 4"
@share2QQ="shareType = 5" @share2QQ="shareType = 5"
@share2Webo="shareType = 8" @share2Webo="shareType = 8"
@ShareToFriend="shareToFriend = true"
/> />
<DouyinCode v-model="showDouyinCode"/> <DouyinCode v-model="showDouyinCode"/>
<ConfirmDialog <ConfirmDialog
v-model:visible="showSharePassword" v-model:visible="showSharePassword"
title="你的口令已复制" title="你的口令已复制"
@ -82,6 +82,8 @@
</template> </template>
</ConfirmDialog> </ConfirmDialog>
<ShareToFriend v-model="shareToFriend"/>
</div> </div>
</template> </template>
<script> <script>
@ -91,6 +93,7 @@ import Loading from "../../components/Loading";
import Share from "../../components/Share"; import Share from "../../components/Share";
import DouyinCode from "../../components/DouyinCode"; import DouyinCode from "../../components/DouyinCode";
import ConfirmDialog from "../../components/dialog/ConfirmDialog"; import ConfirmDialog from "../../components/dialog/ConfirmDialog";
import ShareToFriend from "./components/ShareToFriend";
export default { export default {
name: "Music", name: "Music",
@ -100,7 +103,8 @@ export default {
Loading, Loading,
Share, Share,
DouyinCode, DouyinCode,
ConfirmDialog ConfirmDialog,
ShareToFriend
}, },
data() { data() {
return { return {
@ -112,17 +116,10 @@ export default {
okText: '', okText: '',
showSharePassword: false, showSharePassword: false,
shareToFriend: false,
shareType: -1, shareType: -1,
showPlayFeedback: false,
showShareDuoshan: false,
showShareDialog: false,
showShare2WeChatZone: false,
showDouyinCode: false, showDouyinCode: false,
showFollowSetting: false,
showFollowSetting2: false,
showBlockDialog: false,
showChangeNote: false,
videos: [ videos: [
{ {
@ -2525,7 +2522,7 @@ export default {
@import "../../assets/scss/index"; @import "../../assets/scss/index";
.Music { #Music {
position: fixed; position: fixed;
left: 0; left: 0;
right: 0; right: 0;

4
src/pages/home/components/ShareTo.vue

@ -117,7 +117,9 @@
<script> <script>
import FromBottomDialog from "../../../components/dialog/FromBottomDialog"; import FromBottomDialog from "../../../components/dialog/FromBottomDialog";
import {mapState} from "vuex"; import {mapState} from "vuex";
/*
* 分享到各种工具
* */
export default { export default {
name: "ShareTo", name: "ShareTo",
components: { components: {

4
src/pages/home/components/ShareToFriend.vue

@ -1,7 +1,9 @@
<template> <template>
<from-bottom-dialog <from-bottom-dialog
page-id="Music"
v-model="modelValue" v-model="modelValue"
@cancel="cancel" @cancel="cancel"
maskMode="light"
:height="height"> :height="height">
<div class="content" :style="{minHeight:height}"> <div class="content" :style="{minHeight:height}">
<div class="create-chat" v-show="!showJoinedChat"> <div class="create-chat" v-show="!showJoinedChat">
@ -97,7 +99,7 @@ import {mapState} from "vuex";
import Search from "../../../components/Search"; import Search from "../../../components/Search";
import Check from "../../../components/Check"; import Check from "../../../components/Check";
/* /*
分享给朋友
* */ * */
export default { export default {
name: "ShareTo", name: "ShareTo",

Loading…
Cancel
Save