app-member-mark.vue 797 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <view class="member dir-left-nowrap cross-center main-center" :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. }
  21. }
  22. </script>
  23. <style scoped lang="scss">
  24. .member {
  25. border: #{1rpx} solid #f39800;
  26. border-radius: #{8rpx};
  27. font-size: #{20rpx};
  28. background-color: rgba(243, 152, 0, 0.1);
  29. color: #f39800;
  30. }
  31. </style>