commit
f7f5704284
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
@ -0,0 +1,72 @@
|
|||||||
|
<!--
|
||||||
|
【微信消息 - 定位】
|
||||||
|
-->
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-link
|
||||||
|
type="primary"
|
||||||
|
target="_blank"
|
||||||
|
:href="
|
||||||
|
'https://map.qq.com/?type=marker&isopeninfowin=1&markertype=1&pointx=' +
|
||||||
|
locationY +
|
||||||
|
'&pointy=' +
|
||||||
|
locationX +
|
||||||
|
'&name=' +
|
||||||
|
label +
|
||||||
|
'&ref=yudao'
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<el-col>
|
||||||
|
<el-row>
|
||||||
|
<img
|
||||||
|
:src="
|
||||||
|
'https://apis.map.qq.com/ws/staticmap/v2/?zoom=10&markers=color:blue|label:A|' +
|
||||||
|
locationX +
|
||||||
|
',' +
|
||||||
|
locationY +
|
||||||
|
'&key=' +
|
||||||
|
qqMapKey +
|
||||||
|
'&size=250*180'
|
||||||
|
"
|
||||||
|
/>
|
||||||
|
</el-row>
|
||||||
|
<el-row>
|
||||||
|
<el-icon><Location /></el-icon>{{ label }}
|
||||||
|
</el-row>
|
||||||
|
</el-col>
|
||||||
|
</el-link>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts" name="WxLocation">
|
||||||
|
import { Location } from '@element-plus/icons-vue'
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
locationX: {
|
||||||
|
required: true,
|
||||||
|
type: Number
|
||||||
|
},
|
||||||
|
locationY: {
|
||||||
|
required: true,
|
||||||
|
type: Number
|
||||||
|
},
|
||||||
|
label: {
|
||||||
|
// 地名
|
||||||
|
required: true,
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
qqMapKey: {
|
||||||
|
// QQ 地图的密钥 https://lbs.qq.com/service/staticV2/staticGuide/staticDoc
|
||||||
|
required: false,
|
||||||
|
type: String,
|
||||||
|
default: 'TVDBZ-TDILD-4ON4B-PFDZA-RNLKH-VVF6E' // 需要自定义
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
defineExpose({
|
||||||
|
locationX: props.locationX,
|
||||||
|
locationY: props.locationY,
|
||||||
|
label: props.label,
|
||||||
|
qqMapKey: props.qqMapKey
|
||||||
|
})
|
||||||
|
</script>
|
||||||
@ -0,0 +1,101 @@
|
|||||||
|
.avue-card{
|
||||||
|
&__item{
|
||||||
|
margin-bottom: 16px;
|
||||||
|
border: 1px solid #e8e8e8;
|
||||||
|
background-color: #fff;
|
||||||
|
box-sizing: border-box;
|
||||||
|
color: rgba(0,0,0,.65);
|
||||||
|
font-size: 14px;
|
||||||
|
font-variant: tabular-nums;
|
||||||
|
line-height: 1.5;
|
||||||
|
list-style: none;
|
||||||
|
font-feature-settings: "tnum";
|
||||||
|
cursor: pointer;
|
||||||
|
height:200px;
|
||||||
|
&:hover{
|
||||||
|
border-color: rgba(0,0,0,.09);
|
||||||
|
box-shadow: 0 2px 8px rgba(0,0,0,.09);
|
||||||
|
}
|
||||||
|
&--add{
|
||||||
|
border:1px dashed #000;
|
||||||
|
width: 100%;
|
||||||
|
color: rgba(0,0,0,.45);
|
||||||
|
background-color: #fff;
|
||||||
|
border-color: #d9d9d9;
|
||||||
|
border-radius: 2px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 16px;
|
||||||
|
i{
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
&:hover{
|
||||||
|
color: #40a9ff;
|
||||||
|
background-color: #fff;
|
||||||
|
border-color: #40a9ff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&__body{
|
||||||
|
display: flex;
|
||||||
|
padding: 24px;
|
||||||
|
}
|
||||||
|
&__detail{
|
||||||
|
flex:1
|
||||||
|
}
|
||||||
|
&__avatar{
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
border-radius: 48px;
|
||||||
|
overflow: hidden;
|
||||||
|
margin-right: 12px;
|
||||||
|
img{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&__title{
|
||||||
|
color: rgba(0,0,0,.85);
|
||||||
|
margin-bottom: 12px;
|
||||||
|
font-size: 16px;
|
||||||
|
&:hover{
|
||||||
|
color:#1890ff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&__info{
|
||||||
|
color: rgba(0,0,0,.45);
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
-webkit-line-clamp: 3;
|
||||||
|
overflow: hidden;
|
||||||
|
height: 64px;
|
||||||
|
}
|
||||||
|
&__menu{
|
||||||
|
display: flex;
|
||||||
|
justify-content:space-around;
|
||||||
|
height: 50px;
|
||||||
|
background: #f7f9fa;
|
||||||
|
color: rgba(0,0,0,.45);
|
||||||
|
text-align: center;
|
||||||
|
line-height: 50px;
|
||||||
|
&:hover{
|
||||||
|
color:#1890ff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/** joolun 额外加的 */
|
||||||
|
.avue-comment__main {
|
||||||
|
flex: unset!important;
|
||||||
|
border-radius: 5px!important;
|
||||||
|
margin: 0 8px!important;
|
||||||
|
}
|
||||||
|
.avue-comment__header {
|
||||||
|
border-top-left-radius: 5px;
|
||||||
|
border-top-right-radius: 5px;
|
||||||
|
}
|
||||||
|
.avue-comment__body {
|
||||||
|
border-bottom-right-radius: 5px;
|
||||||
|
border-bottom-left-radius: 5px;
|
||||||
|
}
|
||||||
@ -0,0 +1,88 @@
|
|||||||
|
/* 来自 https://github.com/nmxiaowei/avue/blob/master/styles/src/element-ui/comment.scss */
|
||||||
|
.avue-comment{
|
||||||
|
margin-bottom: 30px;
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
&--reverse{
|
||||||
|
flex-direction:row-reverse;
|
||||||
|
.avue-comment__main{
|
||||||
|
&:before,&:after{
|
||||||
|
left: auto;
|
||||||
|
right: -8px;
|
||||||
|
border-width: 8px 0 8px 8px;
|
||||||
|
}
|
||||||
|
&:before{
|
||||||
|
border-left-color: #dedede;
|
||||||
|
}
|
||||||
|
&:after{
|
||||||
|
border-left-color: #f8f8f8;
|
||||||
|
margin-right: 1px;
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&__avatar{
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
box-sizing: border-box;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
&__header{
|
||||||
|
padding: 5px 15px;
|
||||||
|
background: #f8f8f8;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
&__author{
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
&__main{
|
||||||
|
flex:1;
|
||||||
|
margin: 0 20px;
|
||||||
|
position: relative;
|
||||||
|
border: 1px solid #dedede;
|
||||||
|
border-radius: 2px;
|
||||||
|
&:before,&:after{
|
||||||
|
position: absolute;
|
||||||
|
top: 10px;
|
||||||
|
left: -8px;
|
||||||
|
right: 100%;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
display: block;
|
||||||
|
content: " ";
|
||||||
|
border-color: transparent;
|
||||||
|
border-style: solid solid outset;
|
||||||
|
border-width: 8px 8px 8px 0;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
&:before {
|
||||||
|
border-right-color: #dedede;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
&:after{
|
||||||
|
border-right-color: #f8f8f8;
|
||||||
|
margin-left: 1px;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&__body{
|
||||||
|
padding: 15px;
|
||||||
|
overflow: hidden;
|
||||||
|
background: #fff;
|
||||||
|
font-family: Segoe UI,Lucida Grande,Helvetica,Arial,Microsoft YaHei,FreeSans,Arimo,Droid Sans,wenquanyi micro hei,Hiragino Sans GB,Hiragino Sans GB W3,FontAwesome,sans-serif;color: #333;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
blockquote{
|
||||||
|
margin:0;
|
||||||
|
font-family: Georgia,Times New Roman,Times,Kai,Kaiti SC,KaiTi,BiauKai,FontAwesome,serif;
|
||||||
|
padding: 1px 0 1px 15px;
|
||||||
|
border-left: 4px solid #ddd;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,60 @@
|
|||||||
|
<!--
|
||||||
|
【微信消息 - 音乐】
|
||||||
|
-->
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-link
|
||||||
|
type="success"
|
||||||
|
:underline="false"
|
||||||
|
target="_blank"
|
||||||
|
:href="hqMusicUrl ? hqMusicUrl : musicUrl"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="avue-card__body"
|
||||||
|
style="padding: 10px; background-color: #fff; border-radius: 5px"
|
||||||
|
>
|
||||||
|
<div class="avue-card__avatar">
|
||||||
|
<img :src="thumbMediaUrl" alt="" />
|
||||||
|
</div>
|
||||||
|
<div class="avue-card__detail">
|
||||||
|
<div class="avue-card__title" style="margin-bottom: unset">{{ title }}</div>
|
||||||
|
<div class="avue-card__info" style="height: unset">{{ description }}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</el-link>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts" name="WxMusic">
|
||||||
|
const props = defineProps({
|
||||||
|
title: {
|
||||||
|
required: false,
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
description: {
|
||||||
|
required: false,
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
musicUrl: {
|
||||||
|
required: false,
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
hqMusicUrl: {
|
||||||
|
required: false,
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
thumbMediaUrl: {
|
||||||
|
required: true,
|
||||||
|
type: String
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
defineExpose({
|
||||||
|
musicUrl: props.musicUrl
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
/* 因为 joolun 实现依赖 avue 组件,该页面使用了 card.scc */
|
||||||
|
@import '../wx-msg/card.scss';
|
||||||
|
</style>
|
||||||
Loading…
Reference in New Issue