Commit 368b0c70 by huSun

添加分享快捷入口功能。

parent b193ccdd
......@@ -4,12 +4,14 @@
<view class="uni-share-content">
<view class="uni-share-content-box">
<view class="uni-share-content-item" v-for="(item,index) in bottomData" :key="index" @click.stop="select(item,index)">
<image class="uni-share-image" :src="item.icon" mode="aspectFill"></image>
<!-- <image class="uni-share-image" :src="item.icon" mode="aspectFill"></image> -->
<img class="uni-share-image" :src="item.icon" alt="">
<text class="uni-share-text">{{item.text}}</text>
</view>
</view>
</view>
<!-- <image src="" mode=""></image> -->
<view class="uni-share-button-box">
<button class="uni-share-button" @click="close">{{cancelText}}</button>
</view>
......@@ -40,24 +42,28 @@
data() {
return {
bottomData: [{
text: '微信',
icon: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/c2b17470-50be-11eb-b680-7980c8a877b8.png',
name: 'wx'
text: '首页',
icon: '../../../../static/fastentry/homepage.png',
name: 'home',
link:'/pages/index/index'
},
{
text: '支付宝',
icon: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/d684ae40-50be-11eb-8ff1-d5dcf8779628.png',
name: 'wx'
text: '搜索',
icon: '../../../../static/fastentry/search.png',
name: 'searh',
link:''
},
{
text: 'QQ',
icon: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/e7a79520-50be-11eb-b997-9918a5dda011.png',
name: 'qq'
text: '我的',
icon: '../../../../static/fastentry/user.png',
name: 'user',
link:'/pages/personalCenter/personalCenter'
},
{
text: '新浪',
icon: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/0dacdbe0-50bf-11eb-8ff1-d5dcf8779628.png',
name: 'sina'
text: '消息',
icon: '../../../../static/fastentry/news.png',
name: 'news',
link:'/pages/systemMsg/system_msg'
},
// {
// text: '百度',
......@@ -78,7 +84,7 @@
return t("uni-popup.cancel")
},
shareTitleText() {
return this.title || t("uni-popup.shareTitle")
return this.title || '快捷入口'
}
},
methods: {
......@@ -106,8 +112,8 @@
<style lang="scss" >
.uni-popup-share {
background-color: #fff;
border-top-left-radius: 11px;
border-top-right-radius: 11px;
border-top-left-radius: 11rpx;
border-top-right-radius: 11rpx;
}
.uni-share-title {
/* #ifndef APP-NVUE */
......@@ -116,10 +122,10 @@
flex-direction: row;
align-items: center;
justify-content: center;
height: 40px;
height: 40rpx;
}
.uni-share-title-text {
font-size: 14px;
font-size: 14rpx;
color: #666;
}
.uni-share-content {
......@@ -128,7 +134,7 @@
/* #endif */
flex-direction: row;
justify-content: center;
padding-top: 10px;
padding-top: 10rpx;
}
.uni-share-content-box {
......@@ -137,17 +143,17 @@
/* #endif */
flex-direction: row;
flex-wrap: wrap;
width: 360px;
// width: 360rpx;
}
.uni-share-content-item {
width: 90px;
width: 90rpx;
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: column;
justify-content: center;
padding: 10px 0;
padding: 10rpx 30rpx;
align-items: center;
}
......@@ -156,13 +162,13 @@
}
.uni-share-image {
width: 30px;
height: 30px;
width: 60rpx;
height: 60rpx;
}
.uni-share-text {
margin-top: 10px;
font-size: 14px;
margin-top: 10rpx;
font-size: 14rpx;
color: #3B4144;
}
......@@ -171,17 +177,17 @@
display: flex;
/* #endif */
flex-direction: row;
padding: 10px 15px;
padding: 10rpx 15rpx;
}
.uni-share-button {
flex: 1;
border-radius: 50px;
border-radius: 50rpx;
color: #666;
font-size: 16px;
font-size: 16rpx;
}
.uni-share-button::after {
border-radius: 50px;
border-radius: 50rpx;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment