cm-clubmodal.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. <template name="coupon">
  2. <view class="tui-modal-content">
  3. <!-- 弹窗提示 -->
  4. <tui-modal :show="show" @cancel="handleClick" :custom="true" fadeIn >
  5. <view class="tui-modal-custom">
  6. <input v-if="modalType==1" placeholder="请输入新的姓名" class="tui-modal-input" v-model="inputData" maxlength="10"/>
  7. <input v-if="modalType==2" placeholder="请输入添加的咨询人姓名" class="tui-modal-input" v-model="inputData" maxlength="10"/>
  8. <view class="tui-modal-flex">
  9. <view class="tui-modal-button cancel" @click="handleClick">取消</view>
  10. <view class="tui-modal-button confirm" @click="handleconfirm">确定</view>
  11. </view>
  12. </view>
  13. </tui-modal>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. name: 'coupon',
  19. props: {
  20. show: {
  21. type: Boolean,
  22. default: false
  23. },
  24. modalType:{
  25. type: Number,
  26. default:2
  27. }
  28. },
  29. data() {
  30. return {
  31. inputData:''
  32. }
  33. },
  34. created() {
  35. },
  36. methods: {
  37. handleClick(){
  38. this.$parent.isClubModalShow = false
  39. },
  40. handleconfirm() {
  41. let msgText =''
  42. if(this.modalType == 1){
  43. msgText = '请输入新的姓名'
  44. }else{
  45. msgText = '请输入咨询人姓名'
  46. }
  47. if(this.inputData == ''){
  48. this.$util.msg(msgText, 2000)
  49. return
  50. }
  51. this.$emit('handleChoiceaText', this.inputData)
  52. this.$parent.isClubModalShow = false
  53. }
  54. }
  55. }
  56. </script>
  57. <style lang="scss">
  58. .coupon-template {
  59. width: 100%;
  60. height: auto;
  61. background: #ffffff;
  62. float: left;
  63. margin-top: 24rpx;
  64. .coupon-title {
  65. width: 702rpx;
  66. padding: 0 24rpx;
  67. height: 88rpx;
  68. line-height: 88rpx;
  69. position: relative;
  70. .text {
  71. font-size: $font-size-28;
  72. color: $text-color;
  73. }
  74. .text-coupon {
  75. display: inline-block;
  76. float: right;
  77. padding-right: 30rpx;
  78. line-height: 88rpx;
  79. font-size: 28rpx;
  80. color: #f94b4b;
  81. }
  82. .iconfont {
  83. width: 50rpx;
  84. height: 88rpx;
  85. line-height: 88rpx;
  86. color: #999999;
  87. display: block;
  88. position: absolute;
  89. right: 0;
  90. top: 0;
  91. }
  92. }
  93. }
  94. .tui-popup-box {
  95. position: relative;
  96. box-sizing: border-box;
  97. min-height: 220rpx;
  98. padding: 24rpx 32rpx 0 32rpx;
  99. .title {
  100. font-size: $font-size-32;
  101. color: $text-color;
  102. line-height: 68rpx;
  103. text-align: center;
  104. float: left;
  105. width: 100%;
  106. height: 68rpx;
  107. box-sizing: border-box;
  108. padding: 0 24rpx;
  109. }
  110. .title-search {
  111. width: 100%;
  112. height: 66rpx;
  113. background: #ffffff;
  114. box-sizing: border-box;
  115. float: left;
  116. .search-from {
  117. width: 100%;
  118. height: 100%;
  119. background: #f7f7f7;
  120. border-radius: 32rpx;
  121. float: left;
  122. position: relative;
  123. .input {
  124. width: 500rpx;
  125. height: 64rpx;
  126. float: left;
  127. line-height: 64rpx;
  128. color: $text-color;
  129. font-size: $font-size-24;
  130. }
  131. .icon-iconfonticonfontsousuo1 {
  132. width: 64rpx;
  133. height: 64rpx;
  134. line-height: 64rpx;
  135. text-align: center;
  136. display: block;
  137. font-size: $font-size-38;
  138. float: left;
  139. color: #999999;
  140. }
  141. .icon-shanchu1 {
  142. font-size: $font-size-32;
  143. color: #999999;
  144. position: absolute;
  145. width: 64rpx;
  146. height: 64rpx;
  147. line-height: 64rpx;
  148. text-align: center;
  149. top: 0;
  150. right: 0;
  151. z-index: 10;
  152. }
  153. }
  154. }
  155. .tui-popup-main {
  156. width: 100%;
  157. float: left;
  158. padding-top: 10rpx;
  159. .tui-popup-scroll {
  160. width: 100%;
  161. height: 600rpx;
  162. .list {
  163. width: 100%;
  164. height: 176rpx;
  165. box-sizing: border-box;
  166. padding: 24rpx 0;
  167. background-size: cover;
  168. .list-cell-le {
  169. width: 128rpx;
  170. height: 100%;
  171. box-sizing: border-box;
  172. float: left;
  173. border: 1px dashed #e1e1e1;
  174. .logo {
  175. width: 126rpx;
  176. height: 126rpx;
  177. border-radius: 8rpx;
  178. }
  179. }
  180. .list-cell-ri {
  181. width: 470rpx;
  182. height: 100%;
  183. box-sizing: border-box;
  184. float: left;
  185. margin-left: 24rpx;
  186. .list-name {
  187. width: 100%;
  188. height: 40rpx;
  189. float: left;
  190. line-height: 40rpx;
  191. text-align: left;
  192. font-size: $font-size-26;
  193. color: #333333;
  194. margin-bottom: 24rpx;
  195. .tags {
  196. display: inline-block;
  197. width: 60rpx;
  198. height: 32rpx;
  199. border-radius: 8rpx;
  200. background: #f0cb72;
  201. font-size: $font-size-22;
  202. color: #4e4539;
  203. text-align: center;
  204. line-height: 32rpx;
  205. margin-left: 20rpx;
  206. &.sv {
  207. background: #333333;
  208. color: #f0cb72;
  209. }
  210. }
  211. }
  212. .list-ntel {
  213. width: 100%;
  214. height: 50rpx;
  215. float: left;
  216. line-height: 50rpx;
  217. text-align: left;
  218. font-size: $font-size-24;
  219. color: #666666;
  220. .list-link {
  221. display: inline-block;
  222. float: left;
  223. margin-right: 40rpx;
  224. }
  225. .list-texl {
  226. display: inline-block;
  227. float: left;
  228. }
  229. }
  230. }
  231. .list-cell-btn {
  232. width: 40rpx;
  233. height: 100%;
  234. float: right;
  235. .checkbox {
  236. width: 40rpx;
  237. line-height: 128rpx;
  238. float: right;
  239. box-sizing: border-box;
  240. text-align: center;
  241. text-decoration: none;
  242. -webkit-tap-highlight-color: transparent;
  243. overflow: hidden;
  244. &.icon-weixuanze {
  245. color: #b2b2b2;
  246. }
  247. &.icon-yixuanze {
  248. color: #FF5B00;
  249. }
  250. }
  251. }
  252. }
  253. }
  254. .tui-popup-coupon {
  255. width: 100%;
  256. height: 500rpx;
  257. box-sizing: border-box;
  258. padding: 30rpx 20rpx;
  259. .tui-popup-h1 {
  260. width: 100%;
  261. height: 66rpx;
  262. display: flex;
  263. align-items: center;
  264. .tui-popup-text {
  265. flex: 1;
  266. height: 66rpx;
  267. line-height: 66rpx;
  268. font-size: $font-size-30;
  269. color: #333333;
  270. &.red {
  271. color: #f94b4b;
  272. }
  273. &.bold {
  274. font-weight: bold;
  275. }
  276. &.left {
  277. text-align: left;
  278. }
  279. &.right {
  280. text-align: right;
  281. }
  282. }
  283. }
  284. }
  285. }
  286. }
  287. .tui-modal-custom{
  288. .tui-modal-input{
  289. width: 480rpx;
  290. height: 90rpx;
  291. border-radius: 8rpx;
  292. border: 1px solid #B2B2B2;
  293. line-height: 90rpx;
  294. padding: 0 20rpx;
  295. color: #333333;
  296. font-size: $font-size-30;
  297. }
  298. .tui-modal-flex{
  299. width: 100%;
  300. height: 72rpx;
  301. margin-top: 40rpx;
  302. display: flex;
  303. .tui-modal-button{
  304. flex: 1;
  305. line-height: 72rpx;
  306. font-size: $font-size-28;
  307. text-align: center;
  308. border-radius: 38rpx;
  309. padding: 0;
  310. margin: 0 15rpx;
  311. box-sizing: border-box;
  312. border: 1px solid #B2B2B2;
  313. &.cancel{
  314. background: #FFFFFF;
  315. color: #333333;
  316. }
  317. &.confirm{
  318. border-color: #FF5B00;
  319. background: $btn-confirm;
  320. color: #FFFFFF;
  321. }
  322. }
  323. }
  324. }
  325. </style>