confirmYuyue.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <template>
  2. <view class="box">
  3. <view class="yuyuCheckTis">
  4. 温馨提示:该报价仅为参考价格,实际以门店为准(不同品牌和车型费用不同)
  5. </view>
  6. <view class="cont">
  7. <view class="contkk">
  8. <view class="kkline">
  9. <view class="kklineLeft">
  10. <span class="stars">*</span> <span>预约门店</span>
  11. </view>
  12. <view class="kklineRight">连锁一号</view>
  13. </view>
  14. <view class="kkline">
  15. <view class="kklineLeft">
  16. <span class="stars">*</span> <span>预约车辆</span>
  17. </view>
  18. <view class="kklineRight">
  19. <span>请选择</span>
  20. <img src="../../static/timg/icon_arrow_right.png" alt="" class="rightJt">
  21. </view>
  22. </view>
  23. <view class="kkline lineborderNo">
  24. <view class="kklineLeft">
  25. <span class="stars">*</span> <span>预约时间</span>
  26. </view>
  27. <view class="kklineRight" @click="cktime">
  28. <span>{{billDate?billDate:'请选择'}}</span>
  29. <img src="../../static/timg/icon_arrow_right.png" alt="" class="rightJt">
  30. </view>
  31. </view>
  32. </view>
  33. <view class="contkk" style="margin-top: 20rpx;">
  34. <view class="kkline2">
  35. <view class="kklineLeft1">预约项目</view>
  36. <view class="kklineRight1">(以实际门店价格为准)</view>
  37. </view>
  38. <view class="kkline2" v-for="(item,index) in yuyueData">
  39. <view class="kklineLeft3">{{item.ItemName}}</view>
  40. <view class="kklineRight3">¥{{item.Price}}</view>
  41. </view>
  42. </view>
  43. <view class="contkk" style="margin-top: 20rpx;">
  44. <view class="bzline">
  45. <view class="beiz">备注</view>
  46. <input type="text" v-model="comment" placeholder="请输入备注(选填)" class="beizInput">
  47. </view>
  48. </view>
  49. </view>
  50. <view style="height: 120rpx;"></view>
  51. <view class="bottom-container">
  52. <view>
  53. <view class="bottom-container-price"><span class="qianhaospan" >¥</span> {{totalPrice}} <span></span></view>
  54. <view class="ckj">参考价格(到店支付)</view>
  55. </view>
  56. <view class="newyyBotbutton" @click="yuyue">立即预约</view>
  57. </view>
  58. <timeSelect ref="timeSelect" :timedata="timedata" @changeTime="changeTime"></timeSelect>
  59. </view>
  60. </template>
  61. <script>
  62. import timeSelect from '@/components/timeSelect/timeSelect.vue'
  63. export default {
  64. components: {
  65. timeSelect
  66. },
  67. data() {
  68. return {
  69. comment:'',
  70. totalPrice:99,
  71. userInfo:'',
  72. timedata:'',
  73. billDate:'',
  74. yuyueData:'',
  75. }
  76. },
  77. onLoad() {
  78. console.log(this.$store.state.yuyueData)
  79. this.yuyueData=this.$store.state.yuyueData
  80. this.userInfo = uni.getStorageSync("userInfo");
  81. //this.getOrderTimes()
  82. },
  83. methods: {
  84. yuyue(){
  85. },
  86. changeTime(data){
  87. console.log(data)
  88. this.billDate=data
  89. },
  90. cktime(){
  91. this.$refs.timeSelect.open();
  92. },
  93. }
  94. }
  95. </script>
  96. <style scoped lang="less">
  97. .box{
  98. background: #F4F5F7;
  99. min-height: 100vh;
  100. }
  101. .yuyuCheckTis{
  102. color: #C8841C;
  103. line-height: 37rpx;
  104. font-size: 26rpx;
  105. background: #FFF7EB;
  106. padding: 18rpx 24rpx;
  107. font-weight: 400;
  108. }
  109. .cont{
  110. padding: 24rpx;
  111. }
  112. .contkk{
  113. background: #ffffff;
  114. border-radius: 10rpx;
  115. padding: 0 20rpx;
  116. }
  117. .kkline{
  118. display: flex;
  119. padding: 30rpx 0;
  120. border-bottom: 1px solid #EEEEEE;
  121. color: #666666;
  122. font-size: 28rpx;
  123. }
  124. .kkline2{
  125. display: flex;
  126. justify-content: space-between;
  127. padding: 30rpx 0;
  128. border-bottom: 1px solid #EEEEEE;
  129. color: #666666;
  130. font-size: 28rpx;
  131. }
  132. .stars{
  133. color: #FF2400;
  134. }
  135. .kklineRight{
  136. color: #999999;
  137. font-size: 28rpx;
  138. display: flex;
  139. justify-content: space-between;
  140. width: 450rpx;
  141. }
  142. .kklineLeft {
  143. width: 200rpx;
  144. }
  145. .rightJt{
  146. width: 12rpx;
  147. height: 20rpx;
  148. margin-top: 6rpx;
  149. }
  150. .lineborderNo{
  151. border-bottom: none;
  152. }
  153. .kklineLeft1{
  154. font-weight: 500;
  155. color: #3C3C3C;
  156. font-size: 28rpx;
  157. }
  158. .kklineRight1{
  159. font-weight: 400;
  160. color: #999999;
  161. font-size: 26rpx;
  162. }
  163. .kklineLeft3{
  164. font-weight: 400;
  165. color: #666666;
  166. font-size: 28rpx;
  167. width: 480rpx;
  168. overflow: hidden;
  169. white-space: nowrap;
  170. text-overflow: ellipsis;
  171. }
  172. .kklineRight3{
  173. font-weight: 400;
  174. color: #3C3C3C;
  175. font-size: 28rpx;
  176. }
  177. .bzline{
  178. display: flex;padding: 30rpx 0;
  179. }
  180. .beizInput{
  181. width: 450rpx;font-size: 28rpx;
  182. }
  183. .beiz{
  184. color: #666666;font-size: 28rpx;
  185. width: 200rpx;
  186. }
  187. .bottom-container{
  188. width: 750rpx;
  189. height: 120rpx;
  190. background: #FFFFFF;
  191. box-shadow: 0px -2px 10px 0px rgba(153,153,153,0.1000);
  192. position: fixed;
  193. left: 0;
  194. bottom: 0;
  195. display: flex;
  196. justify-content: space-between;
  197. }
  198. .newyyBotbutton{
  199. width: 204rpx;
  200. height: 74rpx;
  201. background: #D53533;
  202. border-radius: 37rpx;
  203. font-weight: 500;
  204. color: #FFFFFF;
  205. line-height: 74rpx;
  206. text-align: center;
  207. margin-right: 30rpx;
  208. margin-top: 23rpx;
  209. }
  210. .bottom-container-price{
  211. color: #F03B3B;
  212. padding-top: 30rpx;
  213. padding-left: 30rpx;
  214. font-size: 32rpx;
  215. }
  216. .qianhaospan{
  217. font-size: 22rpx;
  218. }
  219. .ckj{
  220. color: #999999;font-size: 24rpx;
  221. padding-left: 30rpx;
  222. }
  223. </style>