sellerClubVisible.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <template name="Visible">
  2. <view class="orderVisible-template">
  3. <!-- 订单对机构是否可见 -->
  4. <view class="visible-title" @tap.stop="showPopup">
  5. <text class="orderVisible">订单对机构是否可见</text>
  6. <view class="visible-right">
  7. <text class="text-l">{{ orderVisibleText }}</text> <text class="iconfont icon-xiayibu"></text>
  8. </view>
  9. </view>
  10. <!-- 优惠券 -->
  11. <tui-bottom-popup :radius="true" :show="popupShow" @close="hidePopup">
  12. <view class="tui-popup-box clearfix">
  13. <view class="tui-popup-content">
  14. <radio-group @change="radioChange">
  15. <label class="uni-list-cell uni-list-cell-pd" v-for="(item, index) in items" :key="item.value">
  16. <view class="uni-list-text">{{ item.name }}</view>
  17. <view class="uni-list-radio">
  18. <radio
  19. :value="item.value"
  20. :checked="index === current"
  21. color="#E15616"
  22. style="transform:scale(0.7)"
  23. />
  24. </view>
  25. </label>
  26. </radio-group>
  27. </view>
  28. <view class="tui-right-flex tui-popup-btn">
  29. <view class="tui-flex-1"> <view class="tui-button" @click="hidePopup">确定</view> </view>
  30. </view>
  31. </view>
  32. </tui-bottom-popup>
  33. </view>
  34. </template>
  35. <script>
  36. export default {
  37. name: 'Visible',
  38. props: {},
  39. data() {
  40. return {
  41. StaticUrl: this.$Static, //静态图片路径
  42. isIphoneX: this.$store.state.isIphoneX,
  43. popupShow: false,
  44. orderVisibleText: '可见',
  45. orderVisibleValue: '1',
  46. items: [
  47. {
  48. value: '1',
  49. name: '可见',
  50. },
  51. {
  52. value: '2',
  53. name: '不可见'
  54. }
  55. ],
  56. current: 0
  57. }
  58. },
  59. created() {},
  60. methods: {
  61. showPopup() {
  62. this.popupShow = true
  63. },
  64. radioChange(evt) {
  65. console.log('radioChange',evt)
  66. for (let i = 0; i < this.items.length; i++) {
  67. if (this.items[i].value === evt.detail.value) {
  68. this.current = i
  69. this.orderVisibleText = this.items[i].name
  70. this.orderVisibleValue = Number(this.items[i].value)
  71. console.log('orderVisibleText',this.orderVisibleText)
  72. }
  73. }
  74. },
  75. hidePopup() {
  76. this.popupShow = false
  77. this.$emit('handleClubVisible', this.orderVisibleValue)
  78. }
  79. }
  80. }
  81. </script>
  82. <style lang="scss">
  83. .orderVisible-template {
  84. width: 100%;
  85. height: auto;
  86. background: #ffffff;
  87. float: left;
  88. .visible-title {
  89. width: 702rpx;
  90. padding: 0 24rpx;
  91. height: 88rpx;
  92. line-height: 88rpx;
  93. position: relative;
  94. font-size: $font-size-28;
  95. font-weight: bold;
  96. border-bottom: 1px solid #ebebeb;
  97. .orderVisible {
  98. font-size: $font-size-28;
  99. color: $text-color;
  100. font-weight: bold;
  101. }
  102. .visible-right {
  103. float: right;
  104. color: #2a81ff;
  105. .text-l {
  106. margin-right: 40rpx;
  107. }
  108. .iconfont {
  109. width: 50rpx;
  110. height: 88rpx;
  111. line-height: 88rpx;
  112. color: #999999;
  113. display: block;
  114. position: absolute;
  115. right: 0;
  116. top: 0;
  117. }
  118. }
  119. }
  120. }
  121. .tui-popup-box {
  122. position: relative;
  123. box-sizing: border-box;
  124. min-height: 220rpx;
  125. padding: 24rpx 24rpx 0 24rpx;
  126. .tui-popup-content {
  127. width: 100%;
  128. height: 168rpx;
  129. .uni-list-cell {
  130. width: 100%;
  131. height: 66rpx;
  132. line-height: 66rpx;
  133. display: block;
  134. .uni-list-radio {
  135. float: right;
  136. height: 66rpx;
  137. }
  138. .uni-list-text {
  139. float: left;
  140. height: 66rpx;
  141. font-size: $font-size-28;
  142. color: #333;
  143. }
  144. }
  145. }
  146. .tui-popup-btn {
  147. width: 100%;
  148. height: auto;
  149. float: left;
  150. margin-top: 24rpx;
  151. .tui-button {
  152. width: 100%;
  153. height: 88rpx;
  154. background: $btn-confirm;
  155. line-height: 88rpx;
  156. text-align: center;
  157. color: #ffffff;
  158. font-size: $font-size-28;
  159. border-radius: 44rpx;
  160. }
  161. }
  162. }
  163. </style>