app-member-mark.vue 813 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <view class="member dir-left-nowrap cross-center main-center" :class="[theme.color, theme.backO]" :style="{width: width,height: height,lineHeight: height}">会员价</view>
  3. </template>
  4. <script>
  5. export default {
  6. name: "app-member-mark",
  7. props: {
  8. width: {
  9. type: String,
  10. default() {
  11. return `68rpx`;
  12. }
  13. },
  14. height: {
  15. type: String,
  16. default() {
  17. return `28rpx`;
  18. }
  19. },
  20. theme: Object
  21. }
  22. }
  23. </script>
  24. <style scoped lang="scss">
  25. .member {
  26. border: #{1rpx} solid;
  27. border-radius: #{8rpx};
  28. font-size: #{20rpx};
  29. transform: rotateZ(360deg)
  30. }
  31. </style>