sharePopup.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <view class="">
  3. <u-popup v-model="shareShow" mode="bottom" height="460" border-radius="30" :safe-area-inset-bottom="true">
  4. <view class="flex flex-direction" style="height: 100%;">
  5. <view class="center flex-twice"
  6. style="width: 100%;font-size: 32rpx;color: #353535;font-family: PingFang-SC-Heavy;">
  7. <text class="">分享到</text>
  8. </view>
  9. <view class="flex-treble padding-bottom-30">
  10. <view class="">
  11. <view class="cu-list grid col-3 no-border" style="border-radius:20rpx ;">
  12. <button class="cu-item u-reset-button" :open-type="item.name=='好友'?'share':''"
  13. v-for="(item,index) in posterList" :key="index" @click="confirm(item)">
  14. <view class="grid-icon">
  15. <image style="width: 88rpx;height: 88rpx;" :src="item.icon" />
  16. </view>
  17. <text style="color: #222222;font-size: 26rpx;">{{item.name}}</text>
  18. </button>
  19. </view>
  20. </view>
  21. </view>
  22. <view @click="shareShow=false" class="center flex-sub"
  23. style="color: #888888;background-color: #fefefe;border-top: #F6F6F6;">
  24. 取消
  25. </view>
  26. </view>
  27. </u-popup>
  28. </view>
  29. </template>
  30. <script>
  31. export default {
  32. name: '',
  33. data() {
  34. return {
  35. shareShow: false,
  36. posterList: [{
  37. icon: '/static/poster/wx.png',
  38. name: '好友'
  39. },
  40. {
  41. icon: '/static/poster/pyq.png',
  42. name: '朋友圈'
  43. },
  44. {
  45. icon: '/static/poster/haibao.png',
  46. name: '海报'
  47. },
  48. ],
  49. };
  50. },
  51. methods: {
  52. show() {
  53. this.shareShow = true
  54. },
  55. hide() {
  56. this.shareShow = false
  57. },
  58. confirm(item){
  59. this.shareShow=false
  60. this.$emit('confirm',item)
  61. }
  62. }
  63. };
  64. </script>
  65. <style lang="scss" scoped>
  66. </style>