小程序端工程代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.1 KiB

  1. <template>
  2. <view class="sharing-packets" :class="state === true ? 'on' : ''">
  3. <view
  4. class="iconfont icon-guanbi acea-row row-center-wrapper"
  5. @click="closeShare"
  6. ></view>
  7. <view class="line"></view>
  8. <view class="sharing-con" @click="goShare">
  9. <image :src="`${$VUE_APP_RESOURCES_URL}/images/red-packets.png`" class="image" />
  10. <view class="text font-color-red">
  11. <view>会员分享返</view>
  12. <view class="money"><text class="label"></text>{{ priceName }}</view>
  13. <view class="tip">下单即返佣金</view>
  14. <view class="shareBut">立即分享</view>
  15. </view>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. export default {
  21. name: "ShareRedPackets",
  22. props: {
  23. priceName: {
  24. type: [String, Number],
  25. default: ""
  26. }
  27. },
  28. data: function() {
  29. return {
  30. state: false
  31. };
  32. },
  33. mounted: function() {},
  34. methods: {
  35. goShare: function() {
  36. this.$emit("changeFun", { action: "shareCode", value: false });
  37. },
  38. closeShare: function() {
  39. this.state = true;
  40. }
  41. }
  42. };
  43. </script>