valetbuy.vue 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. <template>
  2. <view class="content">
  3. <view class="" style="background-color: #4076d6;height: 100rpx;">
  4. </view>
  5. <view class="good-info-wrap">
  6. <view class="good-list">
  7. <view class="empty" v-if="xmlist.length == 0" @click="chooseGoods">
  8. 选择项目
  9. </view>
  10. <!-- 商品详情 -->
  11. <view class="good-wrap" v-else>
  12. <view class="good" v-for="goodsitem in xmlist">
  13. <image src="" mode="" class="good-img"></image>
  14. <view class="good-info">
  15. <view class="good-name clamp2">
  16. {{goodsitem.name}}
  17. </view>
  18. <view class="good-price">
  19. {{goodsitem.price}}
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="mjly">
  26. <view class="ly-left">
  27. 买家留言
  28. </view>
  29. <input type="text" placeholder="请输入留言内容" class="ly-right" v-model="mjly">
  30. </view>
  31. </view>
  32. <view class="mj-info" @click="goPage('/pagesT/customer/selCustomer')">
  33. <view class="mjly" style="border-bottom: 1rpx solid #f7f8fa;">
  34. <view class="ly-left">
  35. 客户姓名
  36. </view>
  37. <input type="text" placeholder="请输入留言内容" class="ly-right" v-model="customerData.name" v-if="customerData.name" disabled>
  38. <image src="../../static/img/downright.png" mode="" v-else></image>
  39. </view>
  40. <view class="mjly" >
  41. <view class="ly-left">
  42. 联系方式
  43. </view>
  44. <input type="number" placeholder="请填写联系方式" class="ly-right" v-model="customerData.mobile" @click.stop="">
  45. </view>
  46. </view>
  47. <!-- 指派 -->
  48. <scroll-view scroll-x="true" class="zp-wrap">
  49. <view class="zp-item" v-for="item in 10">
  50. <image src="" mode="" class="zp-logo"></image>
  51. <view class="zp-name">随机指派</view>
  52. </view>
  53. </scroll-view>
  54. <!-- 预约 -->
  55. <its-calendar :sta_num="8" :end_num="23" :int_num="30" @getTime="getTime"></its-calendar>
  56. <!-- 结算 -->
  57. <!-- 填充 -->
  58. <view class="" style="height: 110rpx;"></view>
  59. <view class="tj-dd">
  60. <view class="">
  61. <text style="font-size: 26rpx;color: #999;">提交</text>
  62. <text style="color: #CE372E;font-size: 44rpx;font-weight: bold;padding-left: 10rpx;" class="rmb">1000</text>
  63. <text style="font-size: 22rpx;color: #333333;font-weight: bold;">(包含预约费¥3元)</text>
  64. </view>
  65. <view class="tj-btn">
  66. 提交
  67. </view>
  68. </view>
  69. </view>
  70. </template>
  71. <script>
  72. import its from '@/components/its-calendar/its-calendar.vue'
  73. export default {
  74. components: {
  75. its
  76. },
  77. data() {
  78. return {
  79. xmlist: [],
  80. mjly: '',
  81. customerData: {}
  82. }
  83. },
  84. onLoad() {
  85. },
  86. onShow() {
  87. console.log(this.customerData)
  88. },
  89. onReachBottom() {
  90. },
  91. onReady() {
  92. },
  93. methods: {
  94. chooseGoods() {
  95. uni.navigateTo({
  96. url: '/pagesS/goods/yygoods'
  97. })
  98. this.xmlist = [{
  99. name: '线雕提拉术',
  100. id: 1,
  101. price: '1100'
  102. },
  103. {
  104. name: '减肥大计划',
  105. id: 1,
  106. price: '1200'
  107. }]
  108. },
  109. getTime(e) {
  110. console.log(e);
  111. }
  112. }
  113. }
  114. </script>
  115. <style lang="scss">
  116. .good-info-wrap {
  117. margin:-50rpx auto 20rpx;
  118. width: 712rpx;
  119. min-height: 285rpx;
  120. background: #FFFFFF;
  121. border-radius: 10rpx;
  122. padding:10rpx 20rpx;
  123. .good-list {
  124. min-height: 177rpx;
  125. width: 100%;
  126. .good-wrap {
  127. min-height: 177rpx;
  128. .good {
  129. height: 177rpx;
  130. border-bottom: 1px solid #f7f8fa;
  131. display: flex;
  132. justify-content: flex-start;
  133. align-items: center;
  134. .good-info {
  135. height: 177rpx;
  136. width: 365rpx;
  137. padding:25rpx 0 25rpx 20rpx;
  138. display: flex;
  139. flex-direction: column;
  140. justify-content: space-between;
  141. align-items: flex-start;
  142. .good-name {
  143. font-size: 26rpx;
  144. font-weight: 500;
  145. color: #333333;
  146. }
  147. .good-price {
  148. margin-top: 20rpx;
  149. font-size: 34rpx;
  150. font-weight: bold;
  151. color: #CE372E;
  152. &::before {
  153. content: '¥';
  154. font-size: 24rpx;
  155. color: #CE372E;
  156. }
  157. }
  158. }
  159. .good-img {
  160. width: 133rpx;
  161. height: 133rpx;
  162. border-radius: 10rpx;
  163. background-color: #eee;
  164. }
  165. }
  166. }
  167. .empty {
  168. // display: ;
  169. font-size: 28rpx;
  170. height: 177rpx;
  171. background-color: #ecf1f7;
  172. text-align: center;
  173. line-height: 177rpx;
  174. color: #4472bd;
  175. border-radius: 10rpx;
  176. }
  177. }
  178. }
  179. .mj-info {
  180. width: 712rpx;
  181. height: 200rpx;
  182. background: #FFFFFF;
  183. border-radius: 10px;
  184. margin: 20rpx auto;
  185. padding:0 20rpx;
  186. }
  187. .mjly {
  188. height: 100rpx;
  189. display: flex;
  190. justify-content: space-between;
  191. align-items: center;
  192. font-size: 26rpx;
  193. .ly-left {
  194. font-weight: 500;
  195. color: #000;
  196. }
  197. .ly-right {
  198. width: 400rpx;
  199. text-align: right;
  200. }
  201. image {
  202. width: 15rpx;
  203. height: 28rpx;
  204. }
  205. }
  206. //指派
  207. .zp-wrap {
  208. margin-top: 20rpx;
  209. width: 750rpx;
  210. height: 216rpx;
  211. white-space: nowrap;
  212. .zp-item {
  213. display: inline-block;
  214. margin-right: 15rpx;
  215. padding-top: 34rpx;
  216. width: 172rpx;
  217. height: 216rpx;
  218. // background: #E02020;
  219. background-color: #fff;
  220. border-radius: 10rpx;
  221. .zp-logo {
  222. display: block;
  223. width: 106rpx;
  224. height: 106rpx;
  225. margin: auto;
  226. border-radius: 50%;
  227. background-color: #999999;
  228. }
  229. .zp-name {
  230. width: 100%;
  231. text-align: center;
  232. font-size: 30rpx;
  233. font-weight: bold;
  234. color: #333333;
  235. }
  236. }
  237. }
  238. .tj-dd {
  239. width: 750rpx;
  240. height: 100rpx;
  241. position: fixed;
  242. bottom: 0;
  243. display: flex;
  244. justify-content: space-between;
  245. align-items: center;
  246. background-color: #fff;
  247. padding: 0 20rpx;
  248. .tj-btn {
  249. width: 200rpx;
  250. height: 75rpx;
  251. line-height: 75rpx;
  252. color: #fff;
  253. background-color: #d84840;
  254. border-radius: 10rpx;
  255. text-align: center;
  256. font-size: 28rpx;
  257. font-weight: 500;
  258. }
  259. }
  260. .rmb {
  261. &::before {
  262. content: '¥';
  263. color: #CE372E;
  264. font-size: 30rpx;
  265. }
  266. }
  267. </style>