Storesettings.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <template>
  2. <!-- <view>
  3. <titlenav></titlenav> -->
  4. <view class="stores">
  5. <view class="title">店铺设置</view>
  6. <u-cell-group :border="false" class="from">
  7. <u-cell-item title="店铺头像" is-link>
  8. <image class="imgBox" src="https://bpic.588ku.com/illus_water_img/21/07/05/ecab6de5a7b2972500459ba95cf97deb.jpg" mode=""></image>
  9. </u-cell-item>
  10. <u-cell-item v-if="form.labels == 1" title="店铺标签" is-link @click="chooseSex">接受预约</u-cell-item>
  11. <u-cell-item v-if="form.labels == 2" title="店铺标签" is-link @click="chooseSex">不接受预约</u-cell-item>
  12. <u-cell-item title="营业时间" is-link>07:00-14:00 14:00-14:00</u-cell-item>
  13. <u-field name="店铺电话" label="店铺电话" placeholder="请输入" v-model="form.phone" />
  14. <u-field name="起送费(元)" label="起送费(元)" placeholder="请输入" v-model="form.delivery" />
  15. <u-field name="配送费(元)" label="配送费(元)" placeholder="请输入" v-model="form.distribution" />
  16. </u-cell-group>
  17. <view class="characteristic">店家特色</view>
  18. <u-field type="textarea" placeholder="请输入" v-model="form.characteristic" />
  19. <view class="characteristic">店家公告</view>
  20. <u-field type="textarea" placeholder="请输入" v-model="form.notice" />
  21. <view class="btn"><u-button block type="primary" @click="submit">保存</u-button></view>
  22. </view>
  23. <!-- </view> -->
  24. </template>
  25. <script>
  26. import { mapState } from 'vuex';
  27. import Titlenav from '../components/Titlenav.vue';
  28. export default {
  29. components: {
  30. Titlenav
  31. },
  32. data() {
  33. return {
  34. form: {
  35. labels: 1
  36. }
  37. };
  38. },
  39. // computed: {
  40. // ...mapState(['systemInfo'])
  41. // },
  42. methods: {
  43. chooseSex() {
  44. uni.showActionSheet({
  45. itemList: ['接受预约', '不接受预约'],
  46. success: res => {
  47. this.form.labels = (res.tapIndex + 1).toString();
  48. },
  49. fail(res) {
  50. console.log(res.errMsg);
  51. }
  52. });
  53. }
  54. }
  55. };
  56. </script>
  57. <style lang="scss" scoped>
  58. .stores {
  59. padding-bottom: 120px;
  60. /deep/ .u-btn {
  61. font-size: 16px;
  62. }
  63. .from {
  64. /deep/ .u-iconfont {
  65. font-size: 14px !important;
  66. }
  67. /deep/ .u-cell {
  68. padding: 17px 0;
  69. color: #000000;
  70. font-weight: bold;
  71. }
  72. /deep/ .u-cell_title {
  73. font-size: 14px;
  74. }
  75. /deep/ .u-cell__value {
  76. color: #000000;
  77. font-weight: 400;
  78. height: 36px;
  79. font-size: 14px;
  80. line-height: 36px;
  81. }
  82. /deep/ .u-field {
  83. padding: 23px 0;
  84. color: #000000;
  85. font-weight: bold;
  86. text-align: right;
  87. }
  88. /deep/ .uni-input-input {
  89. text-align: right;
  90. font-weight: 400;
  91. }
  92. /deep/ .uni-input-placeholder {
  93. text-align: right;
  94. font-weight: 400;
  95. font-size: 16px;
  96. }
  97. /deep/ .u-label {
  98. span {
  99. width: 90px;
  100. font-size: 14px;
  101. }
  102. }
  103. }
  104. /deep/ .u-btn {
  105. height: 48px;
  106. font-size: 14px;
  107. margin: 6px 0;
  108. }
  109. /deep/ .u-field {
  110. padding: 0;
  111. }
  112. /deep/ .u-label {
  113. flex: 0 0 0 !important;
  114. }
  115. /deep/ .uni-textarea-textarea {
  116. font-size: 16px;
  117. font-weight: 400;
  118. color: #000000;
  119. line-height: 24px;
  120. }
  121. margin: 10px 20px 0;
  122. .characteristic {
  123. font-size: 14px;
  124. font-weight: bold;
  125. color: #000000;
  126. line-height: 24px;
  127. margin: 24px 0 8px 0;
  128. }
  129. /deep/ .uni-textarea-placeholder {
  130. font-weight: 400;
  131. font-size: 16px;
  132. }
  133. .imgBox {
  134. width: 36px;
  135. height: 36px;
  136. border-radius: 50%;
  137. }
  138. .text1 {
  139. font-size: 18px;
  140. font-weight: 400;
  141. color: #c8c9cc;
  142. line-height: 25px;
  143. text-align: right;
  144. }
  145. .title {
  146. font-size: 24px;
  147. font-weight: bold;
  148. color: #000000;
  149. line-height: 33px;
  150. margin-bottom: 10px;
  151. }
  152. .btn {
  153. position: fixed;
  154. left: 0;
  155. right: 0;
  156. bottom: 0;
  157. z-index: 100;
  158. padding: 6px 43px;
  159. padding-bottom: 34px;
  160. padding-bottom: calc(34px + constant(safe-area-inset-bottom)); // 兼容 IOS<11.2
  161. padding-bottom: calc(34px + env(safe-area-inset-bottom)); // 兼容 IOS>=11.2
  162. background-color: #ffffff;
  163. }
  164. }
  165. </style>