shopApply.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <view class="page">
  3. <view class="p-content">
  4. <view class="align-center justify-between inpt-line">
  5. <text class="text_2">*店铺名称</text>
  6. <input type="text" class="inpt" placeholder="请输入您的店铺名称">
  7. </view>
  8. <view class="align-center justify-between inpt-line" @tap="chooseLoc">
  9. <text class="text_2">*店铺地址</text>
  10. <text class="text_4">请选择城市</text>
  11. <image src="/static/r-arrow.png" mode="aspectFill" class="ic"></image>
  12. </view>
  13. <view class="align-center justify-end inpt-line">
  14. <input type="text" class="inpt txtright" placeholder="请输入详细地址">
  15. </view>
  16. <view class="align-center justify-between inpt-line">
  17. <text class="text_2">*联系电话</text>
  18. <input type="number" class="inpt" placeholder="请输入联系电话">
  19. </view>
  20. </view>
  21. <submit-btn @submit="submit" ref="submitRef">
  22. <template v-slot:btns="{isSubmitted}">
  23. <view class="p-btn" :class="{'disabled':isSubmitted}">
  24. 提交
  25. </view>
  26. </template>
  27. </submit-btn>
  28. </view>
  29. </template>
  30. <script>
  31. import {chooseLoc} from '@/common/loc.js';
  32. export default {
  33. data() {
  34. return {
  35. };
  36. },
  37. methods:{
  38. // 城市选择器
  39. async chooseLoc() {
  40. let {
  41. province,
  42. city,
  43. area,
  44. address,
  45. latitude,
  46. longitude,
  47. } =await chooseLoc();
  48. this.addr = `${province}${city} ${area}`;
  49. this.desc = address;
  50. },
  51. }
  52. }
  53. </script>
  54. <style lang="scss">
  55. page{
  56. background-color: #f8f8f8;
  57. }
  58. .p-content{
  59. background-color: #fff;
  60. padding: 0 20rpx;
  61. margin-bottom: 100rpx;
  62. }
  63. .inpt-line {
  64. padding: 0 3rpx;
  65. border-bottom: solid 2rpx #0000001a;
  66. height: 110rpx;
  67. &:last-child{
  68. border: none;
  69. }
  70. }
  71. .text_2 {
  72. color: #333333;
  73. font-size: 30rpx;
  74. font-family: PingFang;
  75. letter-spacing: 1.2rpx;
  76. flex-shrink: 0;
  77. }
  78. .inpt{
  79. height: 110rpx;
  80. line-height: 110rpx;
  81. font-size: 30rpx;
  82. color:#333;
  83. flex:1;
  84. text-align: right;
  85. }
  86. .text_4 {
  87. margin-left: auto;
  88. color: #999999;
  89. font-size: 30rpx;
  90. font-family: PingFang;
  91. letter-spacing: 1.2rpx;
  92. }
  93. .ic{
  94. flex-shrink: 0;
  95. margin-left: 10rpx;
  96. width: 20rpx;
  97. height: 20rpx;
  98. }
  99. .p-btn{
  100. width: 710rpx;
  101. height: 76rpx;
  102. background: #92B99C;
  103. border-radius: 38rpx;
  104. line-height: 76rpx;
  105. text-align: center;
  106. font-size: 30rpx;
  107. font-family: PingFang SC;
  108. font-weight: 500;
  109. color: #FFFFFF;
  110. margin: 0 auto;
  111. }
  112. </style>