index.vue 620 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <view class="flex-center recommend-box mt-20 mb-24">
  3. <image :src="`${urlDomain}crmebimage/presets/haowuzuo.png`"></image>
  4. <view class="f-s-32 lh-44rpx ml-4">{{title}}</view>
  5. <image class="ml-6" :src="`${urlDomain}crmebimage/presets/haowuyou.png`"></image>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. props: {
  11. title: {
  12. type: String,
  13. default: ''
  14. }
  15. },
  16. data() {
  17. return {
  18. urlDomain: this.$Cache.get("imgHost"),
  19. }
  20. }
  21. }
  22. </script>
  23. <style scoped lang="scss">
  24. .recommend-box {
  25. image {
  26. width: 42rpx;
  27. height: 36rpx;
  28. }
  29. view {
  30. font-weight: 600;
  31. }
  32. }
  33. </style>