leaflet.vue 780 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <view class="leaflet-image">
  3. <image :src="leafletImageUrl" mode="widthFix"></image>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. leafletImageUrlParams:'',
  11. leafletImageUrl:''
  12. }
  13. },
  14. methods: {
  15. },
  16. onLoad(option) {
  17. this.leafletImageUrlParams = option.leafletImage
  18. this.leafletImageUrl = option.leafletImage?decodeURIComponent(option.leafletImage):''
  19. },
  20. /** 用户点击分享 */
  21. onShareAppMessage: function (res) {
  22. return {
  23. title: "买方研选宣传单",
  24. path: "/pages-purchaser/leaflet/leaflet?leafletImage="+this.leafletImageUrlParams,
  25. };
  26. },
  27. }
  28. </script>
  29. <style lang="scss">
  30. .leaflet-image{
  31. image{
  32. width: 100vw;
  33. vertical-align: bottom;
  34. object-fit: cover;
  35. }
  36. }
  37. </style>