edit-code.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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]">
  13. </view>
  14. </view>
  15. </view>
  16. </uni-popup>
  17. </view>
  18. </template>
  19. <script>
  20. export default {
  21. props:['value'],
  22. data(){
  23. return{
  24. list:[],
  25. }
  26. },
  27. methods:{
  28. getList(){
  29. this.openPop();
  30. },
  31. openPop(){
  32. this.$refs.popupCode.open();
  33. },
  34. closeCoupon(){
  35. this.$refs.popupCode.close();
  36. },
  37. save(){
  38. this.$emit('input',this.value);
  39. this.$refs.popupCode.close();
  40. },
  41. },
  42. }
  43. </script>
  44. <style scoped lang="scss">
  45. .pop-address{
  46. width: 100%;
  47. height: 50vh;
  48. background-color: #fff;
  49. border-radius: 24rpx 24rpx 0rpx 0rpx;
  50. padding-top: 32rpx !important;
  51. display: flex;
  52. flex-direction: column;
  53. .box-title{
  54. position: relative;
  55. .box-close{
  56. position: absolute;
  57. left: 22rpx;
  58. }
  59. .box-save{
  60. position: absolute;
  61. right: 22rpx;
  62. top: 0;
  63. }
  64. }
  65. input{
  66. width: 100%;
  67. height: 92rpx;
  68. background: #F6F6F6;
  69. border-radius: 20rpx 20rpx 20rpx 20rpx;
  70. margin-bottom: 20rpx;
  71. font-size: 32rpx;
  72. box-sizing: border-box;
  73. padding: 0 24rpx;
  74. }
  75. }
  76. </style>