renewalModel.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <template>
  2. <Popup title="续存储期" isClose ref="popRef">
  3. <template #content>
  4. <view class="form">
  5. <view class="form_item">
  6. <view class="item_label">
  7. <trans _t="商品数量" />
  8. </view>
  9. <view class="item_value">1</view>
  10. </view>
  11. <view class="form_item">
  12. <view class="item_label">
  13. <trans _t="单价" />
  14. </view>
  15. <view class="item_value">{{ symbol.symbol }} {{ Moneyhtml(6.9) }}</view>
  16. </view>
  17. <view class="form_item">
  18. <view class="item_label">
  19. 30
  20. <trans _t="天" />
  21. </view>
  22. <view class="item_value">
  23. <up-number-box :min="1" :max="4" integer></up-number-box>
  24. </view>
  25. </view>
  26. <view class="tips">
  27. <trans _t="续存储期提示" />
  28. </view>
  29. <view class="total">
  30. <trans _t="总计" />:
  31. <text class="amount">{{ symbol.symbol }} {{ Moneyhtml(6.9) }}</text>
  32. </view>
  33. </view>
  34. </template>
  35. <!-- footer -->
  36. <template #footer>
  37. <view class="submit_btn">
  38. <trans _t="支付" />
  39. </view>
  40. </template>
  41. </Popup>
  42. </template>
  43. <script setup>
  44. import { computed, ref, nextTick } from 'vue'
  45. import Popup from '@/components/popup.vue';
  46. import { Toast, Moneyhtml } from "@/utils"
  47. import { t } from "@/locale"
  48. import { useSystemStore } from "@/store";
  49. const useSystem = useSystemStore();
  50. const symbol = computed(() => useSystem.getSymbol);
  51. const props = defineProps({
  52. oid: { type: String, default: '' }
  53. })
  54. const emit = defineEmits(['open', 'close'])
  55. const popRef = ref(null)
  56. const open = (type = 0) => {
  57. emit('open')
  58. popRef.value && popRef.value.open()
  59. }
  60. const close = () => {
  61. emit('close')
  62. popRef.value && popRef.value.close()
  63. }
  64. defineExpose({ open, close })
  65. </script>
  66. <style lang="less" scoped>
  67. @import url('@/style.less');
  68. .form {
  69. width: 100%;
  70. &_item {
  71. width: 100%;
  72. .flex_position(space-between);
  73. color: var(--text-02);
  74. .size(24rpx);
  75. margin-top: 24rpx;
  76. &:first-child {
  77. margin-top: 0;
  78. }
  79. .item_label {}
  80. .item_value {}
  81. }
  82. .tips {
  83. color: var(--text-01);
  84. .size(24rpx);
  85. margin: 24rpx 0;
  86. }
  87. .total {
  88. text-align: right;
  89. color: var(--black);
  90. .size(28rpx);
  91. .amount {
  92. color: var(--red);
  93. font-weight: 700;
  94. margin-left: 2rpx;
  95. }
  96. }
  97. }
  98. .submit_btn {
  99. height: 38px;
  100. padding: 16rpx 30rpx;
  101. background-color: var(--black);
  102. color: var(--light);
  103. .flex_center();
  104. border-radius: 16rpx;
  105. .size(24rpx);
  106. }
  107. </style>