Commit 368b0c70 by huSun

添加分享快捷入口功能。

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