|
@@ -11,7 +11,9 @@ import { storeData } from "/src/store";
|
|
|
import { Popup } from "@varlet/ui";
|
|
|
import ChoosePartName from "./choosePartName";
|
|
|
import { useRoute } from "vue-router";
|
|
|
-import iconBack from "./icon-back.png";
|
|
|
+import iconBack from "./icons/icon-back.png";
|
|
|
+import VipModel from "./vipModel";
|
|
|
+import { postMessage } from "/src/utils/native-message";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: "detail-list",
|
|
@@ -86,9 +88,19 @@ export default defineComponent({
|
|
|
const nextUrl = `${location.origin + location.pathname}?${searchStr}#/detail/${musicData.row.id}?${hashSearchStr}`;
|
|
|
location.replace(nextUrl);
|
|
|
};
|
|
|
+ /** 去开通会员 */
|
|
|
+ const gotoMember = () => {
|
|
|
+ postMessage({
|
|
|
+ api: "openWebView",
|
|
|
+ content: {
|
|
|
+ url: location.origin + location.hostname + "/#/member",
|
|
|
+ orientation: 1,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ };
|
|
|
return () => (
|
|
|
<>
|
|
|
- <img class={styles.closeBtn} src={iconBack} onClick={() => emit('close')} />
|
|
|
+ <img class={styles.closeBtn} src={iconBack} onClick={() => emit("close")} />
|
|
|
<div class={styles.wrap}>
|
|
|
<List
|
|
|
loading={musicData.loading}
|
|
@@ -116,6 +128,16 @@ export default defineComponent({
|
|
|
}}
|
|
|
/>
|
|
|
</Popup>
|
|
|
+ <Popup v-model:show={musicData.vipShow} teleport="body" defaultStyle={false}>
|
|
|
+ <VipModel
|
|
|
+ onClose={(open: boolean) => {
|
|
|
+ if (open) {
|
|
|
+ gotoMember();
|
|
|
+ }
|
|
|
+ musicData.vipShow = false;
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ </Popup>
|
|
|
</div>
|
|
|
</>
|
|
|
);
|