edit-code.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <template>
  2. <view>
  3. <uni-popup ref="popupCode" type="bottom">
  4. <view class="pop-address box-border-box p-24">
  5. <view class="text-align-center fs-36 fw-600 box-title mb-32">
  6. 取件码
  7. <uni-icons @click="closeCoupon" class="box-close" type="closeempty" size="20"></uni-icons>
  8. <view class="box-save fs-30 fc-41ABF5" @click="save">确认</view>
  9. </view>
  10. <view class="scroll-view-css">
  11. <view class="" v-for="(item,i) in value" :key="i">
  12. <input type="text" v-model="value[i]" maxlength="20" placeholder="未输入取件码" placeholder-class="input-p fc-FB3D03">
  13. </view>
  14. </view>
  15. </view>
  16. </uni-popup>
  17. </view>
  18. </template>
  19. <script>
  20. import tools from "@/service/tools";
  21. export default {
  22. props:['value'],
  23. data(){
  24. return{
  25. list:[],
  26. }
  27. },
  28. methods:{
  29. getList(){
  30. this.openPop();
  31. },
  32. openPop(){
  33. this.$refs.popupCode.open();
  34. },
  35. closeCoupon(){
  36. this.$refs.popupCode.close();
  37. },
  38. save(){
  39. this.$emit('input',this.value);
  40. this.$refs.popupCode.close();
  41. },
  42. },
  43. }
  44. </script>
  45. <style scoped lang="scss">
  46. .pop-address{
  47. width: 100%;
  48. height: 50vh;
  49. background-color: #fff;
  50. border-radius: 24rpx 24rpx 0rpx 0rpx;
  51. padding-top: 32rpx !important;
  52. display: flex;
  53. flex-direction: column;
  54. .box-title{
  55. position: relative;
  56. .box-close{
  57. position: absolute;
  58. left: 22rpx;
  59. }
  60. .box-save{
  61. position: absolute;
  62. right: 22rpx;
  63. top: 0;
  64. }
  65. }
  66. input{
  67. width: 100%;
  68. height: 92rpx;
  69. background: #F6F6F6;
  70. border-radius: 20rpx 20rpx 20rpx 20rpx;
  71. margin-bottom: 20rpx;
  72. font-size: 32rpx;
  73. box-sizing: border-box;
  74. padding: 0 24rpx;
  75. }
  76. }
  77. </style>