index.vue 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. <template>
  2. <view class="container">
  3. <view class="Search-box flex" @click="seacher()">
  4. <view class="Search-box flex">
  5. <image class="box-img" src="../../static/img/shousuo.png"></image>
  6. <font class="box-word">请输入关键字</font>
  7. </view>
  8. <view class="Search-word"><text class="word">搜索</text></view>
  9. </view>
  10. <scroll-view scroll-y class="second-part">
  11. <view v-for="(item, index) in bastList" :key="index" class="template flex">
  12. <view class="flex">
  13. <view class="left-img"><image src="/static/img/28.png" mode="aspectFit" style="width: 140rpx;height: 140rpx;border-radius: 50%;"></image></view>
  14. <view class="center-word">
  15. <text class="one">{{ item.name }}</text>
  16. <text class="two">{{ item.Company }}</text>
  17. </view>
  18. </view>
  19. <view class="right-label flex" @click="open">
  20. <image src="../../static/img/img014.png"></image>
  21. 咨询问诊
  22. </view>
  23. </view>
  24. </scroll-view>
  25. <!-- 资讯医生弹出层 -->
  26. <uni-popup ref="popup" type="center">
  27. <view class="popup">
  28. <image class="img" mode="widthFix" src="../../static/img/img24.png"></image>
  29. <view class="row">
  30. <view class="row-1">确认咨询该医生?</view>
  31. <view class="row-2">
  32. <text>咨询费用:</text>
  33. <text style="color: #DE504C;">¥100</text>
  34. </view>
  35. <button class="row-3 flex" @click="twoopen">马上咨询</button>
  36. </view>
  37. </view>
  38. <view class="close_icon" @click="close"><image src="../../static/img/img016.png"></image></view>
  39. </uni-popup>
  40. <uni-popup ref="popup1" type="bottom">
  41. <view class="payment">
  42. <view class="first flex1 ">
  43. <text class="word1">选择支付方式</text>
  44. <image style="width: 20rpx;height: 20rpx;" src="../../static/img/img25.png"></image>
  45. </view>
  46. <view class="second flex1">
  47. <view class="flex">
  48. <image mode="widthFix" style="width: 40rpx;margin-right: 20rpx;" src="../../static/img/img26.png"></image>
  49. <text class="weixin">微信支付</text>
  50. </view>
  51. <view class="radio-active"></view>
  52. </view>
  53. <view class="second flex1">
  54. <view class="flex">
  55. <image mode="widthFix" style="width: 40rpx;margin-right: 20rpx;" src="../../static/img/img017.png"></image>
  56. <text class="weixin">余额支付</text>
  57. </view>
  58. <view class="radio-active"></view>
  59. </view>
  60. <view class="Third">
  61. <view class="one"></view>
  62. <view class="two flex1">
  63. <view class="two1">
  64. <text class="two1-1 ">合计:</text>
  65. <text class="two1-2">¥</text>
  66. <text class="two1-2 size">200.0</text>
  67. </view>
  68. <view class="two2 flex"><text>立即支付</text></view>
  69. </view>
  70. </view>
  71. </view>
  72. </uni-popup>
  73. </view>
  74. </template>
  75. <script>
  76. import uniPopup from '@/components/uni-popup/uni-popup.vue';
  77. export default {
  78. components: {
  79. uniPopup
  80. },
  81. data() {
  82. return {
  83. bastList: [
  84. {
  85. name: '李淡淡',
  86. Company: '浙江六牛科技有限公司',
  87. direction: 'UI设计',
  88. time: 5
  89. },
  90. {
  91. name: '李淡淡',
  92. Company: '浙江六牛科技有限公司',
  93. direction: 'UI设计',
  94. time: 5
  95. },
  96. {
  97. name: '李淡淡',
  98. Company: '浙江六牛科技有限公司',
  99. direction: 'UI设计',
  100. time: 4
  101. },
  102. {
  103. name: '李淡淡',
  104. Company: '浙江六牛科技有限公司',
  105. direction: 'UI设计',
  106. time: 5
  107. }
  108. ] //最新商品
  109. };
  110. },
  111. methods: {
  112. //咨询问诊
  113. open() {
  114. this.$refs.popup.open();
  115. },
  116. //关闭咨询
  117. close() {
  118. this.$refs.popup.close();
  119. },
  120. //马上咨询
  121. twoopen() {
  122. this.$refs.popup.onTap();
  123. this.$refs.popup1.open();
  124. }
  125. }
  126. };
  127. </script>
  128. <style lang="scss">
  129. .container {
  130. .flex {
  131. display: flex;
  132. align-items: center;
  133. }
  134. .Search-box {
  135. overflow: hidden;
  136. width: 100%;
  137. padding: 20rpx;
  138. background-color: #ffffff;
  139. justify-content: space-around;
  140. .Search-box {
  141. width: 89%;
  142. height: 72rpx;
  143. border-radius: 36rpx;
  144. background-color: #f8f6f6;
  145. justify-content: flex-start;
  146. padding-left: 54rpx;
  147. .box-img {
  148. height: 30rpx;
  149. width: 30rpx;
  150. margin-right: 20rpx;
  151. }
  152. .box-word {
  153. font-size: $uni-font-size-base - 2rpx;
  154. font-weight: 500;
  155. color: #666666;
  156. }
  157. }
  158. .Search-word {
  159. width: 11%;
  160. font-size: $uni-font-size-lg - 2rpx;
  161. font-weight: 500;
  162. color: #666666;
  163. .word {
  164. float: right;
  165. }
  166. }
  167. }
  168. .second-part {
  169. padding: 20rpx;
  170. .template {
  171. width: 100%;
  172. background: #ffffff;
  173. overflow: hidden;
  174. padding: 20rpx;
  175. box-shadow: 0px 5px 5px 0px rgba(35, 24, 21, 0.06);
  176. margin-bottom: 18rpx;
  177. border-radius: 12rpx;
  178. position: relative;
  179. .left-img {
  180. width: 140rpx;
  181. float: left;
  182. overflow: hidden;
  183. margin-right: 30rpx;
  184. }
  185. .center-word {
  186. .one {
  187. font-size: $uni-font-size-lg - 2rpx;
  188. font-weight: 500;
  189. color: $uni-text-color;
  190. line-height: 36rpx;
  191. display: block;
  192. margin-bottom: 10rpx;
  193. }
  194. .two {
  195. font-size: $uni-font-size-sm;
  196. font-weight: 500;
  197. color: #666666;
  198. line-height: 36rpx;
  199. display: block;
  200. }
  201. }
  202. .right-label {
  203. padding: 16rpx;
  204. border: 1px solid $base-color;
  205. border-radius: 7rpx;
  206. font-size: $font-sm - 1rpx;
  207. font-weight: 500;
  208. color: $base-color;
  209. align-items: center;
  210. image {
  211. width: 30rpx;
  212. height: 26rpx;
  213. margin-right: 8rpx;
  214. }
  215. }
  216. }
  217. }
  218. }
  219. .popup {
  220. width: 536rpx;
  221. .img {
  222. width: 100%;
  223. }
  224. .row {
  225. background: #ffffff;
  226. overflow: hidden;
  227. border-radius: 0 0 10rpx 10rpx;
  228. padding: 45rpx 45rpx;
  229. margin-top: -15rpx;
  230. .row-1 {
  231. font-size: $font-lg + 4rpx;
  232. font-weight: 500;
  233. color: rgba(51, 51, 51, 1);
  234. line-height: 53rpx;
  235. text-align: center;
  236. }
  237. .row-2 {
  238. font-size: $uni-font-size-lg;
  239. font-weight: 500;
  240. color: $font-color-dark;
  241. line-height: 44rpx;
  242. text-align: center;
  243. margin-top: 35rpx;
  244. }
  245. .row-3 {
  246. width: 80%;
  247. height: 70rpx;
  248. margin: 0 auto;
  249. margin-top: 40rpx;
  250. background: linear-gradient(0deg, rgba(126, 153, 254, 1), rgba(151, 143, 250, 1));
  251. border-radius: 34rpx;
  252. justify-content: center;
  253. font-size: $uni-font-size-lg + 4rpx;
  254. font-weight: 500;
  255. color: #f8f9f9;
  256. }
  257. }
  258. }
  259. .close_icon {
  260. width: 52rpx;
  261. height: 52rpx;
  262. margin: 88rpx auto 0;
  263. image {
  264. width: 100%;
  265. height: 100%;
  266. }
  267. }
  268. .payment {
  269. overflow: hidden;
  270. background-color: #f6f6f6;
  271. border-radius: 10rpx 10rpx 0rpx 0rpx;
  272. .first {
  273. height: 90rpx;
  274. overflow: hidden;
  275. border-bottom: 2rpx solid $border-color-light;
  276. padding: 0 25rpx;
  277. background-color: #ffffff;
  278. .word1 {
  279. font-size: $uni-font-size-base;
  280. font-weight: bold;
  281. color: $font-color-dark;
  282. }
  283. }
  284. .second {
  285. padding: 0 25rpx;
  286. background-color: #ffffff;
  287. .weixin {
  288. font-size: $uni-font-size-base;
  289. font-weight: 400;
  290. color: $font-color-dark;
  291. line-height: 100rpx;
  292. }
  293. .radio {
  294. width: 35rpx;
  295. height: 35rpx;
  296. border-radius: 50%;
  297. background-size: 35rpx;
  298. background-position: center;
  299. background-image: url('http://lxscimg.liuniu946.com/2019-11-29_5de0badfc57f7.png');
  300. }
  301. .radio-active {
  302. width: 35rpx;
  303. height: 35rpx;
  304. border-radius: 50%;
  305. background-size: 35rpx;
  306. background-position: center;
  307. background-image: url(../../static/icon/img10.png);
  308. }
  309. }
  310. .Third {
  311. .one {
  312. height: 20rpx;
  313. background-color: #f6f6f6;
  314. }
  315. .two {
  316. .two1 {
  317. width: 55%;
  318. height: 90rpx;
  319. background-color: #ffffff;
  320. padding-left: 25rpx;
  321. .two1-1 {
  322. font-size: $uni-font-size-base;
  323. font-weight: 400;
  324. color: $font-color-dark;
  325. line-height: 100rpx;
  326. }
  327. .two1-2 {
  328. font-size: $uni-font-size-sm;
  329. font-weight: bold;
  330. color: $color-red1;
  331. line-height: 55rpx;
  332. }
  333. .size {
  334. font-size: $uni-font-size-lg + 4rpx;
  335. }
  336. }
  337. .two2 {
  338. height: 90rpx;
  339. width: 45%;
  340. background: $color-red1;
  341. color: #ffffff;
  342. font-size: $uni-font-size-lg;
  343. font-weight: 550;
  344. justify-content: center;
  345. }
  346. }
  347. }
  348. }
  349. .flex {
  350. display: flex;
  351. align-items: center;
  352. }
  353. .flex1 {
  354. display: flex;
  355. justify-content: space-between;
  356. align-items: center;
  357. }
  358. </style>