index.vue 1023 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <view class="">
  3. <navBar title="制作数字分身" :backHome="share" flex="cen" :navImg="navImg" :back="true" color="#333333"
  4. background="#FFFFFF" />
  5. <genAvatarCom />
  6. </view>
  7. </template>
  8. <script>
  9. import genAvatarCom from '@/components/genAvatarComp/index.vue'
  10. export default {
  11. data() {
  12. return {
  13. share: false
  14. }
  15. },
  16. components: {
  17. genAvatarCom
  18. },
  19. onLoad(o) {
  20. if (o.share) {
  21. this.share = o.share
  22. console.log('this.share', this.share);
  23. }
  24. },
  25. onShareAppMessage(params) {
  26. if (params.from === 'button' || params.from === 'menu') {
  27. return {
  28. title: '思维定制相机-制作数字分身',
  29. imageUrl: '',
  30. path: '/pages/genDigitalFenshen/index?share=true',
  31. mpId: this.$appId,
  32. type: this.$shareType,
  33. }
  34. }
  35. },
  36. }
  37. </script>
  38. <style scoped>
  39. ::v-deep .u-upload__button {
  40. width: 90vw !important;
  41. height: 90vw !important;
  42. }
  43. ::v-deep .u-upload__wrap__preview__image {
  44. width: 90vw !important;
  45. height: 90vw !important;
  46. }
  47. </style>