index.vue 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724
  1. <template>
  2. <div class="mine">
  3. <div class="left">
  4. <div class="user-info">
  5. <div class="user-img">
  6. <img :src="userInfo.image"
  7. alt />
  8. </div>
  9. <div class="user-span">
  10. <div class="name">
  11. 昵称:
  12. <span>{{userInfo.nickname}}</span>
  13. </div>
  14. <div class="sex">
  15. 性别:
  16. <span>{{userInfo.sex}}</span>
  17. </div>
  18. <div class="age">
  19. 肤龄:
  20. <span>{{userInfo.age==1?'男':userInfo.age==2?'女':'保密'}}</span>
  21. </div>
  22. <div class="skin-type">
  23. 肤质:
  24. <span>{{userInfo.skin}}</span>
  25. </div>
  26. </div>
  27. </div>
  28. <div class="user-record">
  29. <div class="fraction"
  30. @click="isPore=true">
  31. <div class="title">肌肤得分</div>
  32. <div class="num">{{userInfo.score}}分</div>
  33. </div>
  34. <div class="status">
  35. <div class="title">皮肤状态</div>
  36. <div class="tips">{{userInfo.skin_status}}</div>
  37. </div>
  38. <div class="times">
  39. <div class="title">上传检测时间</div>
  40. <div class="ts">{{userInfo.check_time}}</div>
  41. </div>
  42. </div>
  43. <div class="lable">
  44. <div class="lable-title">面诊标签</div>
  45. <div class="lable-list">
  46. <div v-for="(item,index) in lableList"
  47. :key="index"
  48. class="lable-info">{{item}}</div>
  49. </div>
  50. </div>
  51. <div class="ps">
  52. <div class="ps-title">备注</div>
  53. <div class="ps-text">{{remarks | ellipsis(20)}}</div>
  54. </div>
  55. <div class="programme">
  56. <div class="tab">
  57. <div class="tab-title">执行方案</div>
  58. </div>
  59. <div class="programme-list">
  60. <div :class="['programme-info',item.onSelect?'programme-active':'']"
  61. v-for="(item,index) in programmeList"
  62. :key="index"
  63. @click="onOperation(index)">
  64. <div class="programme-left">
  65. <div class="programme-img">
  66. <img :src="item.cover_url"
  67. alt />
  68. </div>
  69. <div class="programme-tips">
  70. <div class="tips-title">{{item.name|ellipsis(9)}}</div>
  71. <div class="tips-title">{{item.desc|ellipsis(9)}}</div>
  72. <div class="tips-title">
  73. 仪器:
  74. <span>{{item.device_name|ellipsis(9)}}</span>
  75. </div>
  76. </div>
  77. </div>
  78. <div class="programme-right">
  79. <div class="frequency">
  80. 执行频率:
  81. <span>{{item.rate}}</span>
  82. </div>
  83. <div class="duration">
  84. 持续时长:
  85. <span>{{item.duration}}</span>
  86. </div>
  87. </div>
  88. <div class="operation"
  89. v-if="item.onSelect">
  90. <div class="edit">编辑</div>
  91. <div class="delete">删除</div>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. <div class="right">
  98. <div class="shop-info">
  99. <div class="shpo-name">
  100. 预约店铺:
  101. <span>{{userInfos.store_name}}</span>
  102. </div>
  103. <div class="shpo-address">
  104. 门店地址:
  105. <span>{{order_data.address}}</span>
  106. </div>
  107. <!-- <div class="shpo-ts">
  108. 美容时间:
  109. <span>{{order_data.order_time}}</span>
  110. </div>-->
  111. </div>
  112. <div class="project">
  113. <div class="project-title">
  114. <div>
  115. <span>{{order_data.project_list?order_data.project_list.length:0}}个</span>项目
  116. </div>
  117. <div v-if="order_data.type!='one'"
  118. class="add-project"
  119. @click="addProject">添加</div>
  120. </div>
  121. <div class="project-list">
  122. <div class="project-info"
  123. v-for="(item,index) in order_data.project_list"
  124. :key="index">
  125. <div class="project-image">
  126. <img :src="item.cover_url" />
  127. </div>
  128. <div class="project-content">
  129. <div class="title-price">
  130. <div class="project-tit">{{item.name}}</div>
  131. <div class="project-price">
  132. <span class="min-size">¥</span>
  133. {{Number(item.price).toFixed(2)}}
  134. </div>
  135. </div>
  136. <div class="project-tips">{{item.product_names}}</div>
  137. <div class="project-zoom">
  138. <div>
  139. <span v-if="item.device_name">{{item.device_name}}({{item.room}}){{item.use_time}}分钟</span>
  140. </div>
  141. <div v-if="order_data.type!='one'">
  142. <img @click="eidt(item)"
  143. src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/coupon/eidt.png" />
  144. <img @click="deleteProject(item)"
  145. class="delete"
  146. src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/coupon/delete.png"
  147. alt />
  148. </div>
  149. </div>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. <div class="cost"
  155. v-if="!isChange || order_data.project_list.length>0">
  156. <div class="over-price">
  157. 合计:
  158. <span class="price-num">
  159. <span class="min-size">¥</span>
  160. {{reservationPrice}}
  161. <span class="min-size"></span>
  162. </span>
  163. </div>
  164. </div>
  165. <div class="payment"
  166. @click="determine">确定订单</div>
  167. </div>
  168. <!-- 选择优惠券 -->
  169. <mine-pupop :show="isCoupun">
  170. <div class="coupon-block">
  171. <div class="delete-pupop"
  172. @click="isCoupun=false">
  173. <img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/delete.png"
  174. alt />
  175. </div>
  176. <div class="coupon-pupop-title">选择优惠券</div>
  177. <ul class="coupon-lists">
  178. <li class="coupon-info"
  179. v-for="item,index in couponList"
  180. :key="index">
  181. <!-- 1: '抵扣券',
  182. 2: '满减券',
  183. 3: '全额减免券',
  184. 4: '项目卡券'-->
  185. <div class="coupon-tips-text">{{item.type==1?'抵扣券':item.type==2?'满减券':item.type==3?'全额减免券':'项目卡券'}}</div>
  186. <div class="top">
  187. <div v-if="item.type==3"
  188. class="discount-over">全免</div>
  189. <div v-else
  190. class="discount">
  191. <div class="price-num">
  192. <span class="size">¥</span>
  193. {{item.price}}
  194. </div>
  195. <div class="price-tips">{{item.full_price}}</div>
  196. </div>
  197. <div class="coupon-tip">
  198. <div class="tips-title">{{item.coupon_name}}</div>
  199. <div class="tips-ts">有效期至{{item.ex_time}}</div>
  200. </div>
  201. <div class="choice-icon"
  202. @click="selectPupop(item,index)">
  203. <img :src="item.isSelect?select:unSelect" />
  204. </div>
  205. </div>
  206. <div class="bottom">
  207. <div class="coupon-notes"
  208. @click="isOver=!isOver">
  209. <div class="notes-text min-size">
  210. <span v-if="!isOver">{{item.coupon_desc |ellipsis(20)}}</span>
  211. <span v-else>{{item.coupon_desc}}</span>
  212. </div>
  213. <div class="notes-icon">
  214. <img :src="isOver?open:unOpen"
  215. alt />
  216. </div>
  217. </div>
  218. </div>
  219. </li>
  220. </ul>
  221. </div>
  222. </mine-pupop>
  223. <!-- 选择项目 -->
  224. <mine-pupop :show="isProject">
  225. <div class="project-block">
  226. <div class="delete-pupop"
  227. @click="isProject=false">
  228. <img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/delete.png"
  229. alt />
  230. </div>
  231. <div class="project-pupop-title">选择项目</div>
  232. <div class="project-select">
  233. <el-select v-model="classifyInfo"
  234. placeholder="请选择分类"
  235. style="width: 295px;"
  236. :disabled="isEdit?true:false"
  237. @change="getClassify"
  238. size="mini">
  239. <el-option v-for="item in classifyList"
  240. :key="item.id"
  241. style=" display: flex;justify-content: space-between ;align-items: center;line-height: inherit;"
  242. :label="item.name"
  243. :value="item.id">
  244. <span style="float: left">{{ item.name }}</span>
  245. <span v-if="item.recommend==1"
  246. style="float: right;color: #fa7d22ff;font-size: 13px;background: #ffefeb;border-radius: 4px;border: 1px solid #fa7d22;height: 18px;padding: 2px 6px;">推荐</span>
  247. </el-option>
  248. </el-select>
  249. </div>
  250. <div class="project-select">
  251. <el-select v-model="projectInfo"
  252. placeholder="请选择项目"
  253. style="width: 295px;"
  254. :disabled="classifyInfo.length==0||isEdit?true:false"
  255. @change="getProducts"
  256. size="mini">
  257. <el-option v-for="item in projectList"
  258. :key="item.id"
  259. style=" display: flex;justify-content: space-between ;align-items: center;line-height: inherit; padding: 0 12px;"
  260. :label="item.name"
  261. :value="item.id">
  262. <span style="float: left">{{ item.name |ellipsis(14) }}</span>
  263. <span v-if="item.recommend==1"
  264. style="float: right;color: #fa7d22ff;font-size: 13px;background: #ffefeb;border-radius: 4px;border: 1px solid #fa7d22;height: 18px;padding: 2px 6px;">推荐</span>
  265. </el-option>
  266. </el-select>
  267. </div>
  268. <div class="products-select">
  269. <el-select v-model="productsInfo"
  270. placeholder="请选择升级产品包"
  271. style="width: 295px;"
  272. :disabled="projectInfo.length==0?true:false"
  273. size="mini">
  274. <el-option v-for="item in productsList"
  275. :key="item.id"
  276. :label="item.name"
  277. :value="item.id"></el-option>
  278. </el-select>
  279. </div>
  280. <div class="products-button"
  281. @click="orderUpdate">确定</div>
  282. </div>
  283. </mine-pupop>
  284. <!-- 选择时间 -->
  285. <mine-pupop :show="isTs">
  286. <div class="ts-block">
  287. <div class="delete-pupop"
  288. @click="isTs=false">
  289. <img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/delete.png"
  290. alt />
  291. </div>
  292. <div class="ts-pupop-title">选择时间</div>
  293. <div class="ts-content">
  294. <ul class="ts-table">
  295. <li v-for="item,index in tsTableList"
  296. :key="index"
  297. @click="changetsTable(index)"
  298. :class="tsTableIndex==index?'ts-table-active':''">
  299. <div>{{item.text}}</div>
  300. <div>{{item.ts}}</div>
  301. </li>
  302. </ul>
  303. <div v-if="tsBodyList.day">
  304. <div class="time-slot">
  305. <div class="day"
  306. @click="changeActive(1)"
  307. :style="active==1?'color: #333333;font-weight: 600;':''">{{ tsBodyList.day.name}}</div>
  308. <div class="night"
  309. @click="changeActive(0)"
  310. :style="active==0?'color: #333333;font-weight: 600;':''">{{tsBodyList.night.name}}</div>
  311. </div>
  312. <ul class="ts-boty"
  313. v-if="active==1">
  314. <li v-for="item,index in tsBodyList.day.list"
  315. :key="index">
  316. <div :style="item.status==0?'color: #D3D3D3;':''"
  317. @click="selectTime(item)"
  318. :class="timeIndexText==item.order_time?'time-active':''">{{item.order_time}}</div>
  319. </li>
  320. </ul>
  321. <ul class="ts-boty"
  322. v-else>
  323. <li v-for="item,index in tsBodyList.night.list"
  324. :key="index">
  325. <div :style="item.status==0?'color: #D3D3D3;':''"
  326. @click="selectTime(item)"
  327. :class="timeIndexText==item.order_time?'time-active':''">{{item.order_time}}</div>
  328. </li>
  329. </ul>
  330. </div>
  331. </div>
  332. <el-button class="ts-button"
  333. :style="this.timeIndexText.length == 0?'background: rgb(211, 211, 211);':''"
  334. @click="comfigTs">确认</el-button>
  335. </div>
  336. </mine-pupop>
  337. <!-- 皮肤状态 -->
  338. <mine-pupop :show="isPore">
  339. <div class="pore-block">
  340. <div class="delete-pupop"
  341. @click="isPore=false">
  342. <img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/delete.png"
  343. alt />
  344. </div>
  345. <div class="pore-content">
  346. <ul>
  347. <li class="pore-info"
  348. v-for="item,index in poreList"
  349. :key="index">
  350. <div class="pore-top">
  351. <div class="pore-title">
  352. <div>{{item.name}}</div>
  353. <div class="pore-medium"
  354. v-if="item.main_item">{{item.main_item.name}}{{item.main_item.num}}</div>
  355. </div>
  356. <div class="pore-over">
  357. <div class="min-size"
  358. v-for="value,index in item.items"
  359. :key="index">{{value.name}}{{value.num}}个</div>
  360. </div>
  361. </div>
  362. <div class="pore-bottom min-size">{{item.suggest | ellipsis(85)}}</div>
  363. </li>
  364. </ul>
  365. </div>
  366. </div>
  367. </mine-pupop>
  368. </div>
  369. </template>
  370. <script>
  371. import minePupop from "../../../components/minePupop/index.vue";
  372. import QRCode from "qrcodejs2";
  373. import api from "../../../server/home";
  374. export default {
  375. components: { minePupop },
  376. data () {
  377. return {
  378. open:
  379. "https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/coupon/openNotes.png",
  380. unOpen:
  381. "https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/coupon/upDate.png",
  382. select:
  383. "https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/coupon/select.png",
  384. unSelect:
  385. "https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/coupon/unSelect.png",
  386. userInfo: {},
  387. //面部标签
  388. lableList: [],
  389. //执行方案
  390. programmeList: [],
  391. order_data: {
  392. project_list: []
  393. }, //门店
  394. //项目列表
  395. projectList: [],
  396. //项目分类列表
  397. classifyList: [],
  398. isEdit: false,
  399. //升级包列表
  400. productsList: [],
  401. //时间列表(头部)
  402. tsTableList: [],
  403. tsTableIndex: 0,
  404. active: 1,
  405. //时间列表(body)
  406. tsBodyList: {},
  407. //皮肤状态列表
  408. poreList: [],
  409. //优惠券列表
  410. couponList: [],
  411. //已选择的优惠券
  412. selectCouponList: [],
  413. //已选择优惠券的id(同一个id只能选择一张优惠券)
  414. selectCouponListId: [],
  415. //支付方式
  416. timesInfo: "",
  417. reservationPrice: 0, //预约费用
  418. projectInfo: "",
  419. productsInfo: "",
  420. timeIndexText: "", //当前选择的时间
  421. weekInfo: "",
  422. programmeIndex: "",
  423. classifyInfo: '',
  424. remarks: "",
  425. isCoupun: false, //是否展示优惠券弹窗
  426. isOver: false, //优惠券注释
  427. isProject: false, //是否展示选择项目弹窗
  428. isTs: false, //是否展示选择时间弹窗
  429. isPore: false, //皮肤状态弹窗
  430. choicePayType: false, //支付弹窗
  431. PayStatus: false, //支付状态弹窗
  432. isPayCode: true, //是否展示支付二维码
  433. id: 0, //订单id
  434. lastProjectPrice: "", //项目已选择的升级包
  435. isChange: false, //项目是否有改变
  436. isEditProject: false, //是否编辑项目
  437. payStatusInterval: null, //轮循拉支付状态
  438. page: 1,
  439. limit: 200,
  440. needSelect: false,
  441. coupSelectType: "",
  442. productDiscount: "",
  443. isSelectCoup: [], // 选择的优惠券
  444. // 下面是支付的数据
  445. showMoney: 0, // 价值总额
  446. discountPrice: 0, //活动后金额
  447. discount: 0, //折扣类型
  448. userInfos: {}
  449. // showRuleText: 10086,
  450. };
  451. },
  452. computed: {},
  453. watch: {},
  454. methods: {
  455. toHome () {
  456. this.$router.replace("/home");
  457. },
  458. getProjectClassify () {
  459. api.projectClassify().then(res => {
  460. this.classifyList = res.data.list
  461. })
  462. },
  463. getProjectList (e) {
  464. api.getProjectList({ id: e }).then(res => {
  465. this.projectList = res.data.list;
  466. });
  467. },
  468. getClassify (e) {
  469. this.projectInfo = ''
  470. console.log(e);
  471. this.getProjectList(e)
  472. },
  473. getProducts (e) {
  474. // this.productsInfo = ''
  475. api.getProducts({ id: e }).then(res => {
  476. this.productsList = res.data.list;
  477. this.productsList.forEach(item => {
  478. if (this.productsInfo == item.id) {
  479. this.lastProjectPrice = Number(item.price);
  480. }
  481. });
  482. });
  483. },
  484. eidt (item) {
  485. console.log(item, '==========');
  486. this.projectInfo = item.id;
  487. // this.productsInfo =
  488. // item.product_ids == "" ? "" : Number(item.product_ids);
  489. this.getProducts(item.id);
  490. this.isEditProject = true;
  491. this.isProject = true;
  492. },
  493. deleteProject (item) {
  494. this.order_data.project_list.forEach((res, index) => {
  495. if (item.id == res.id) {
  496. this.order_data.project_list.splice(index, 1);
  497. this.calculationPrice()
  498. this.$message({
  499. message: "删除成功",
  500. type: "success"
  501. });
  502. }
  503. });
  504. },
  505. addProject () {
  506. this.classifyInfo = ""
  507. this.projectInfo = "";
  508. this.productsInfo = "";
  509. this.isEditProject = false;
  510. this.isProject = true;
  511. },
  512. //新增
  513. orderUpdate () {
  514. // 编辑
  515. if (this.isEditProject) {
  516. this.isEdit = true
  517. if (this.productsInfo != "") {
  518. this.order_data.project_list.forEach(e => {
  519. console.log(this.projectInfo)
  520. console.log(this.projectInfo == e.id)
  521. if (this.projectInfo == e.id) {
  522. this.productsList.forEach(item => {
  523. e.product_ids = this.productsInfo;
  524. if (item.id == e.product_ids) {
  525. if (e.product_ids != "") {
  526. e.price = Number(e.price) - Number(this.lastProjectPrice);
  527. }
  528. this.isChange = true;
  529. e.product_names = item.name;
  530. console.log(
  531. Number(e.price),
  532. Number(item.price),
  533. "Number(e.price) + Number(item.price)"
  534. );
  535. e.price = Number(e.price) + Number(item.price);
  536. this.isProject = false;
  537. this.isEdit = false
  538. this.isEditProject = false;
  539. this.calculationPrice();
  540. }
  541. });
  542. }
  543. });
  544. } else {
  545. this.isProject = false;
  546. this.isEdit = false
  547. return;
  548. }
  549. } else {
  550. //新增
  551. let isIndexOf = false;
  552. if (this.projectInfo.length == 0) return;
  553. this.order_data.project_list.forEach(res => {
  554. if (this.projectInfo == res.id) {
  555. isIndexOf = true;
  556. this.$message.error("该项目已存在");
  557. }
  558. });
  559. if (isIndexOf) return;
  560. //项目包重组
  561. let projectInfo = {},
  562. nowProjectInfo = {},
  563. productsInfo = {};
  564. this.projectList.forEach(item => {
  565. if (this.projectInfo == item.id) {
  566. nowProjectInfo = item;
  567. }
  568. });
  569. if (this.productsInfo.length != 0) {
  570. this.productsList.forEach(item => {
  571. if (item.id == this.productsInfo) {
  572. productsInfo = item;
  573. }
  574. });
  575. }
  576. projectInfo["name"] = nowProjectInfo.name;
  577. projectInfo["id"] = nowProjectInfo.id;
  578. projectInfo["cover_url"] = nowProjectInfo.cover_url;
  579. projectInfo["device_name"] = "";
  580. projectInfo["room"] = "";
  581. projectInfo["use_time"] = "";
  582. projectInfo["price"] = nowProjectInfo.price;
  583. projectInfo["product_names"] = "";
  584. if (Object.keys(productsInfo).length > 0) {
  585. projectInfo["product_ids"] = productsInfo.id;
  586. projectInfo.product_names = productsInfo.name;
  587. projectInfo.price += Number(productsInfo.price);
  588. }
  589. this.order_data.project_list.push(projectInfo);
  590. this.isChange = true;
  591. this.isProject = false;
  592. this.calculationPrice();
  593. }
  594. },
  595. //获取最近七天的时间
  596. getWeekDate () {
  597. //获取系统当前时间
  598. let now = new Date();
  599. let nowTime = now.getTime();
  600. let oneDayTime = 24 * 60 * 60 * 1000;
  601. let tsTableList = [];
  602. for (let i = 0; i < 7; i++) {
  603. //显示周一
  604. let ShowTime = nowTime + i * oneDayTime;
  605. //初始化日期时间
  606. let myDate = new Date(ShowTime);
  607. let year = myDate.getFullYear();
  608. let month = myDate.getMonth() + 1;
  609. let date = myDate.getDate();
  610. let str = "周" + "日一二三四五六".charAt(myDate.getDay());
  611. let tsTableInfo = {};
  612. tsTableInfo["text"] = i == 0 ? "今天" : i == 1 ? "明天" : str;
  613. tsTableInfo["ts"] = month + "-" + date;
  614. tsTableInfo["order_day"] = year + "-" + month + "-" + date;
  615. tsTableList.push(tsTableInfo);
  616. }
  617. this.tsTableList = tsTableList;
  618. },
  619. //确定订单&支付
  620. determine () {
  621. if (this.order_data.project_list == 0) {
  622. this.$message.error(
  623. "项目选择不能为空!"
  624. );
  625. return;
  626. }
  627. let that = this;
  628. let order_data = [];
  629. this.order_data.project_list.forEach(item => {
  630. let order_data_info = {};
  631. order_data_info["id"] = item.id;
  632. if (item.product_ids != "") {
  633. order_data_info["product_id"] = item.product_ids;
  634. }
  635. order_data.push(order_data_info);
  636. });
  637. let params = {
  638. user_id: this.userInfo.user_id,
  639. order_data: JSON.stringify(order_data),
  640. // order_day: this.tsTableList[this.tsTableIndex].order_day,
  641. // order_time: this.timeIndexText
  642. };
  643. this.$loading({
  644. lock: true,
  645. text: '加载中',
  646. spinner: 'el-icon-loading',
  647. background: 'rgba(0, 0, 0, 0.7)'
  648. })
  649. api.padOrderAdd(params).then(res => {
  650. this.$loading().close()
  651. if (res.code == 200) {
  652. // 关闭当前页面并且跳转
  653. that.$router.push({
  654. path: "/confirmOrder/details",
  655. query: {
  656. id: res.data.order_id
  657. }
  658. });
  659. }
  660. });
  661. // this.getWeekDate();
  662. // this.getOrderTime();
  663. // this.order_time = "";
  664. // this.tsTableIndex = 0;
  665. // this.isTs = true;
  666. },
  667. //确定时间选择
  668. comfigTs () {
  669. let that = this;
  670. if (this.timeIndexText.length == 0) return;
  671. let order_data = [];
  672. this.order_data.project_list.forEach(item => {
  673. let order_data_info = {};
  674. order_data_info["id"] = item.id;
  675. if (item.product_ids != "") {
  676. order_data_info["product_id"] = item.product_ids;
  677. }
  678. order_data.push(order_data_info);
  679. });
  680. let params = {
  681. user_id: this.userInfo.user_id,
  682. order_data: JSON.stringify(order_data),
  683. order_day: this.tsTableList[this.tsTableIndex].order_day,
  684. order_time: this.timeIndexText
  685. };
  686. this.$loading({
  687. lock: true,
  688. text: '加载中',
  689. spinner: 'el-icon-loading',
  690. background: 'rgba(0, 0, 0, 0.7)'
  691. })
  692. api.padOrderAdd(params).then(res => {
  693. if (res.code == 200) {
  694. this.$loading().close()
  695. // 关闭当前页面并且跳转
  696. that.$router.push({
  697. path: "/confirmOrder/details",
  698. query: {
  699. id: res.data.order_id
  700. }
  701. });
  702. }
  703. });
  704. },
  705. //计算预约费用
  706. calculationPrice () {
  707. console.log(this.reservationPrice);
  708. this.reservationPrice = 0;
  709. this.order_data.project_list.forEach(res => {
  710. console.log(this.reservationPrice);
  711. this.reservationPrice += Number(res.price);
  712. });
  713. },
  714. changePayStatus () {
  715. this.PayStatus = false;
  716. if (this.payStatusInterval) {
  717. //如果定时器在运行则关闭
  718. clearInterval(this.payStatusInterval);
  719. }
  720. },
  721. payStatus () {
  722. api.payStatus({ id: this.id }).then(res => {
  723. if (res.data.pay_status == 1) {
  724. clearInterval(this.payStatusInterval);
  725. this.isPayCode = false;
  726. }
  727. });
  728. },
  729. //数组包含关系
  730. includes (arr1, arr2) {
  731. return arr2.every(val => arr1.includes(val));
  732. },
  733. //选中优惠券
  734. // selectPupop (item, index) {
  735. // this.couponList[index].Select = !this.couponList[index].Select
  736. // this.selectCouponList = this.couponList.filter(res => {
  737. // return res.Select == true
  738. // })
  739. // this.selectCouponList.forEach(res => {
  740. // })
  741. // },
  742. // 不可以用的不显示,如果同时有项目劵、抵扣劵、满减劵,只能用一种类型,其他劵不显示
  743. // 1、针对单个项目,项目劵可以多选
  744. // 2、抵扣劵、满减劵针对的是整个订单,当用户已使用了单个项目劵时,抵扣劵、满减劵就不能使用
  745. // 3、优惠劵可以给多个项目抵扣,
  746. // 4、默认抵扣金额最高的
  747. // 5、优惠劵排序,到期时间倒叙
  748. changeActive (e) {
  749. this.active = e;
  750. },
  751. selectTime (item) {
  752. if (item.status == 0) return;
  753. this.timeIndexText = item.order_time;
  754. },
  755. changetsTable (index) {
  756. this.tsTableIndex = index;
  757. this.getOrderTime();
  758. },
  759. getOrderTime () {
  760. let ids = "",
  761. idsList = [];
  762. this.order_data.project_list.forEach(res => {
  763. idsList.push(res.id);
  764. });
  765. ids = idsList.toString();
  766. let params = {
  767. ids: ids,
  768. order_day: this.tsTableList[this.tsTableIndex].order_day
  769. };
  770. api.getOrderTime(params).then(res => {
  771. this.tsBodyList = res.data;
  772. });
  773. },
  774. onOperation (index) {
  775. if (this.programmeList[index].onSelect) {
  776. this.$set(
  777. this.programmeList[index],
  778. "onSelect",
  779. !this.programmeList[index].onSelect
  780. );
  781. } else {
  782. this.$set(this.programmeList[index], "onSelect", true);
  783. }
  784. },
  785. //获取订单折扣类型
  786. getOrderDiscount () {
  787. api.getOrderDiscount({ id: this.id }).then(res => {
  788. this.discount = res.data.discount;
  789. this.getOrderInfo();
  790. });
  791. },
  792. getUserInfo () {
  793. let that = this;
  794. api.getUserInfo().then(res => {
  795. if (res.code == 200) {
  796. this.userInfos = res.data;
  797. }
  798. });
  799. }
  800. },
  801. created () {
  802. this.getUserInfo();
  803. let data = this.$route.query.data;
  804. console.log(data);
  805. if (data) {
  806. this.data = JSON.parse(data);
  807. }
  808. this.userInfo = this.data.user;
  809. this.lableList = this.data.tags;
  810. this.remarks = this.data.remark;
  811. this.programmeList = this.data.scheme_list;
  812. // this.order_data = this.data.order_data;
  813. this.reservationPrice = 0;
  814. this.poreList = this.data.detail_list;
  815. this.getProjectClassify()
  816. // this.getProjectList();
  817. // this.getOrderDiscount()
  818. },
  819. mounted () { },
  820. destroyed () {
  821. if (this.payStatusInterval) {
  822. //如果定时器在运行则关闭
  823. clearInterval(this.payStatusInterval);
  824. }
  825. }
  826. };
  827. </script>
  828. <style lang='less' scoped>
  829. .mine {
  830. height: 100%;
  831. display: flex;
  832. .left {
  833. width: 318px;
  834. padding: 12px 12px 0 12px;
  835. background: #ffffff;
  836. box-shadow: 0px 2px 4px 0px rgba(184, 191, 198, 0.2);
  837. border-radius: 8px;
  838. font-size: 13px;
  839. font-family: PingFangSC-Regular, PingFang SC;
  840. font-weight: 400;
  841. color: #999999;
  842. line-height: 18px;
  843. overflow: scroll;
  844. height: 100%;
  845. .user-info {
  846. display: flex;
  847. align-items: center;
  848. .user-img {
  849. width: 96px;
  850. img {
  851. width: 100%;
  852. display: block;
  853. }
  854. }
  855. .user-span {
  856. margin-left: 12px;
  857. span {
  858. color: #333333;
  859. }
  860. }
  861. }
  862. .user-record {
  863. margin-top: 16px;
  864. display: flex;
  865. justify-content: space-between;
  866. .num {
  867. font-size: 18px;
  868. font-family: OPPOSans-B, OPPOSans;
  869. font-weight: normal;
  870. color: #fa7d22;
  871. line-height: 29px;
  872. }
  873. .tips {
  874. font-size: 13px;
  875. font-family: PingFangSC-Regular, PingFang SC;
  876. font-weight: 400;
  877. color: #333333;
  878. line-height: 30px;
  879. }
  880. .ts {
  881. font-size: 13px;
  882. font-family: PingFangSC-Regular, PingFang SC;
  883. font-weight: 400;
  884. color: #333333;
  885. line-height: 30px;
  886. }
  887. }
  888. .lable {
  889. margin-top: 23px;
  890. width: 100%;
  891. overflow: scroll;
  892. background: #ffffff;
  893. .lable-title {
  894. font-size: 14px;
  895. font-family: PingFangSC-Medium, PingFang SC;
  896. font-weight: 500;
  897. color: #333333;
  898. line-height: 20px;
  899. margin-bottom: 14px;
  900. }
  901. .lable-list {
  902. width: 100%;
  903. min-height: 105rpx;
  904. .lable-info {
  905. display: inline-block;
  906. padding: 0 12px;
  907. margin-left: 10px;
  908. height: 24px;
  909. line-height: 24px;
  910. border-radius: 2px;
  911. border: 1px solid #d6d6d6;
  912. margin-bottom: 10px;
  913. }
  914. .add-lable {
  915. display: inline-block;
  916. width: 27px;
  917. height: 24px;
  918. line-height: 24px;
  919. font-size: 12px;
  920. font-family: PingFang-SC-Regular, PingFang-SC;
  921. font-weight: 400;
  922. color: #333333;
  923. text-align: center;
  924. margin-left: 10px;
  925. border-radius: 2px;
  926. border: 1px solid #d6d6d6;
  927. }
  928. }
  929. .remarks {
  930. /deep/ .el-textarea__inner:focus {
  931. border-color: #fa852f;
  932. }
  933. }
  934. }
  935. .ps {
  936. font-size: 14px;
  937. font-family: PingFangSC-Medium, PingFang SC;
  938. font-weight: 500;
  939. color: #333333;
  940. line-height: 20px;
  941. .ps-text {
  942. margin-top: 10px;
  943. font-size: 12px;
  944. font-weight: 400;
  945. color: #666666;
  946. line-height: 17px;
  947. }
  948. }
  949. .programme {
  950. margin-top: 20px;
  951. width: 100%;
  952. background: #ffffff;
  953. border-radius: 8px;
  954. .tab {
  955. display: flex;
  956. align-items: center;
  957. justify-content: space-between;
  958. .tab-title {
  959. font-size: 14px;
  960. font-family: PingFangSC-Medium, PingFang SC;
  961. font-weight: 500;
  962. color: #333333;
  963. line-height: 20px;
  964. }
  965. }
  966. .programme-list {
  967. margin-top: 10px;
  968. position: relative;
  969. z-index: 1;
  970. .programme-info {
  971. position: relative;
  972. margin-bottom: 10px;
  973. border-radius: 4px;
  974. border: 1px solid #f5f5f5;
  975. display: flex;
  976. justify-content: space-between;
  977. padding: 8px 8px 8px 10px;
  978. align-items: center;
  979. .programme-left {
  980. display: flex;
  981. align-items: center;
  982. .programme-img {
  983. width: 48px;
  984. display: inline-block;
  985. img {
  986. width: 100%;
  987. display: block;
  988. }
  989. }
  990. .programme-tips {
  991. display: inline-block;
  992. margin-left: 10px;
  993. font-size: 10px;
  994. font-family: PingFangSC-Regular, PingFang SC;
  995. font-weight: 400;
  996. color: #999999;
  997. line-height: 14px;
  998. zoom: 0.83;
  999. }
  1000. }
  1001. .programme-right {
  1002. font-size: 12px;
  1003. font-family: PingFangSC-Regular, PingFang SC;
  1004. font-weight: 400;
  1005. color: #333333;
  1006. line-height: 17px;
  1007. .duration {
  1008. margin-top: 14px;
  1009. }
  1010. }
  1011. .operation {
  1012. position: absolute;
  1013. left: 50%;
  1014. transform: translateX(-50%);
  1015. top: 10px;
  1016. z-index: 10;
  1017. width: 44px;
  1018. background: #ffffff;
  1019. box-shadow: 0px 9px 28px 8px rgba(0, 0, 0, 0.05),
  1020. 0px 6px 16px 0px rgba(0, 0, 0, 0.08),
  1021. 0px 3px 6px -4px rgba(0, 0, 0, 0.12);
  1022. border-radius: 2px;
  1023. padding: 10px;
  1024. font-size: 12px;
  1025. font-family: PingFangSC-Regular, PingFang SC;
  1026. font-weight: 400;
  1027. color: #333333;
  1028. line-height: 17px;
  1029. .delete {
  1030. margin-top: 20px;
  1031. }
  1032. }
  1033. }
  1034. .programme-active {
  1035. border: 1px solid #fa852f;
  1036. }
  1037. }
  1038. }
  1039. }
  1040. .right {
  1041. margin-left: 18px;
  1042. position: relative;
  1043. flex: 1;
  1044. .shop-info {
  1045. background: #ffffff;
  1046. box-shadow: 0px 2px 4px 0px rgba(184, 191, 198, 0.2);
  1047. border-radius: 8px;
  1048. padding: 12px;
  1049. font-size: 13px;
  1050. font-family: PingFangSC-Regular, PingFang SC;
  1051. font-weight: 400;
  1052. color: #999999;
  1053. line-height: 24px;
  1054. span {
  1055. font-weight: 500;
  1056. color: #333333;
  1057. }
  1058. }
  1059. .project {
  1060. margin-top: 18px;
  1061. background: #ffffff;
  1062. box-shadow: 0px 2px 4px 0px rgba(184, 191, 198, 0.2);
  1063. border-radius: 8px;
  1064. padding: 16px 12px 12px 12px;
  1065. .project-title {
  1066. padding-bottom: 7px;
  1067. font-size: 14px;
  1068. font-family: PingFangSC-Medium, PingFang SC;
  1069. font-weight: 500;
  1070. color: #333333;
  1071. line-height: 20px;
  1072. display: flex;
  1073. justify-content: space-between;
  1074. align-items: center;
  1075. span {
  1076. color: #fa7d22;
  1077. }
  1078. .add-project {
  1079. width: 60px;
  1080. height: 28px;
  1081. background: #fa7d22;
  1082. border-radius: 8px;
  1083. font-size: 14px;
  1084. font-family: PingFangSC-Medium, PingFang SC;
  1085. font-weight: 500;
  1086. color: #ffffff;
  1087. line-height: 28px;
  1088. text-align: center;
  1089. }
  1090. }
  1091. .project-list {
  1092. padding-top: 10px;
  1093. height: 220px;
  1094. overflow: scroll;
  1095. .project-info {
  1096. margin-bottom: 10px;
  1097. display: flex;
  1098. .project-image {
  1099. width: 60px;
  1100. height: 60px;
  1101. img {
  1102. width: 100%;
  1103. display: block;
  1104. }
  1105. }
  1106. .project-content {
  1107. flex: 1;
  1108. margin-left: 10px;
  1109. .title-price {
  1110. display: flex;
  1111. justify-content: space-between;
  1112. font-size: 14px;
  1113. font-family: PingFangSC-Medium, PingFang SC;
  1114. font-weight: 500;
  1115. color: #292929;
  1116. line-height: 22px;
  1117. }
  1118. .project-tips {
  1119. font-size: 12px;
  1120. font-family: PingFangSC-Regular, PingFang SC;
  1121. font-weight: 400;
  1122. color: #999999;
  1123. line-height: 18px;
  1124. }
  1125. .project-zoom {
  1126. font-size: 14px;
  1127. font-family: PingFangSC-Regular, PingFang SC;
  1128. font-weight: 400;
  1129. color: #fa7d22;
  1130. line-height: 18px;
  1131. display: flex;
  1132. align-items: center;
  1133. justify-content: space-between;
  1134. img {
  1135. width: 20px;
  1136. }
  1137. .delete {
  1138. margin-left: 10px;
  1139. }
  1140. }
  1141. }
  1142. }
  1143. }
  1144. }
  1145. .cost {
  1146. overflow: scroll;
  1147. background: #ffffff;
  1148. border-radius: 8px;
  1149. margin-top: 18px;
  1150. padding: 10px 19px 11px 12px;
  1151. font-size: 14px;
  1152. font-family: PingFangSC-Regular, PingFang SC;
  1153. font-weight: 400;
  1154. color: #333333;
  1155. line-height: 20px;
  1156. .cost-coupon-list {
  1157. border-bottom: 1px solid #f9f9f9;
  1158. }
  1159. .cost-title {
  1160. display: flex;
  1161. justify-content: space-between;
  1162. }
  1163. .coupon {
  1164. margin-top: 10px;
  1165. display: flex;
  1166. justify-content: space-between;
  1167. .coupon-tips {
  1168. display: flex;
  1169. align-items: center;
  1170. .coupon-icon {
  1171. width: 16px;
  1172. img {
  1173. width: 100%;
  1174. display: block;
  1175. }
  1176. }
  1177. .coupon-title {
  1178. margin-left: 3px;
  1179. }
  1180. .coupon-tip {
  1181. margin-left: 10px;
  1182. background: #ffefeb;
  1183. border-radius: 4px;
  1184. border: 1px solid #ff3007;
  1185. font-size: 10px;
  1186. font-family: PingFangSC-Regular, PingFang SC;
  1187. font-weight: 400;
  1188. color: #ff3007;
  1189. line-height: 14px;
  1190. padding: 2px 6px;
  1191. zoom: 0.83;
  1192. }
  1193. }
  1194. }
  1195. .coupon-ps {
  1196. margin-left: -6px;
  1197. margin-top: 11px;
  1198. display: flex;
  1199. justify-content: space-between;
  1200. font-size: 12px;
  1201. font-family: PingFangSC-Regular, PingFang SC;
  1202. font-weight: 400;
  1203. color: #333333;
  1204. line-height: 17px;
  1205. .cou-price {
  1206. font-weight: 500;
  1207. color: #ff3007;
  1208. }
  1209. }
  1210. .over-price {
  1211. margin-top: 14px;
  1212. text-align: right;
  1213. .price-num {
  1214. font-size: 18px;
  1215. font-family: PingFangSC-Medium, PingFang SC;
  1216. font-weight: 500;
  1217. color: #ff3007;
  1218. line-height: 25px;
  1219. }
  1220. }
  1221. }
  1222. .payment {
  1223. position: absolute;
  1224. bottom: 0;
  1225. margin-top: 18px;
  1226. left: 50%;
  1227. transform: translateX(-50%);
  1228. width: 176px;
  1229. height: 28px;
  1230. background: #fa7d22;
  1231. border-radius: 14px;
  1232. font-size: 14px;
  1233. font-family: PingFangSC-Medium, PingFang SC;
  1234. font-weight: 500;
  1235. color: #ffffff;
  1236. line-height: 28px;
  1237. text-align: center;
  1238. }
  1239. }
  1240. .coupon-block {
  1241. width: 540px;
  1242. height: 400px;
  1243. background: #ffffff;
  1244. border-radius: 8px;
  1245. position: relative;
  1246. padding: 42px;
  1247. .delete-pupop {
  1248. width: 32px;
  1249. position: absolute;
  1250. right: 5px;
  1251. top: 5px;
  1252. img {
  1253. width: 100%;
  1254. }
  1255. }
  1256. .coupon-pupop-title {
  1257. font-size: 14px;
  1258. font-family: PingFangSC-Medium, PingFang SC;
  1259. font-weight: 500;
  1260. color: #333333;
  1261. line-height: 20px;
  1262. text-align: center;
  1263. }
  1264. .coupon-lists {
  1265. display: inline-block;
  1266. position: relative;
  1267. left: 50%;
  1268. transform: translateX(-50%);
  1269. margin-top: 20px;
  1270. height: 228px;
  1271. overflow: scroll;
  1272. .coupon-info {
  1273. width: 345px;
  1274. height: fit-content;
  1275. margin-bottom: 20px;
  1276. padding: 20px 14px 10px 14px;
  1277. position: relative;
  1278. background: #fff4e6;
  1279. border-radius: 12px;
  1280. .coupon-tips-text {
  1281. position: absolute;
  1282. left: 0;
  1283. top: 0;
  1284. padding: 0 8px;
  1285. height: 18px;
  1286. background: #875617;
  1287. border-radius: 12px 0px 12px 0px;
  1288. font-size: 12px;
  1289. font-family: PingFangSC-Medium, PingFang SC;
  1290. font-weight: 500;
  1291. color: #ffffff;
  1292. line-height: 18px;
  1293. zoom: 0.83;
  1294. text-align: center;
  1295. }
  1296. .top {
  1297. display: flex;
  1298. justify-content: space-between;
  1299. align-items: center;
  1300. padding-bottom: 10px;
  1301. border-bottom: 1px dashed #ffdfb6;
  1302. .all-free {
  1303. font-size: 22px;
  1304. font-family: PingFangSC-Medium, PingFang SC;
  1305. font-weight: 500;
  1306. color: #ff3007;
  1307. line-height: 30px;
  1308. }
  1309. .discount {
  1310. .price-num {
  1311. font-size: 28px;
  1312. font-family: PingFangSC-Medium, PingFang SC;
  1313. font-weight: 500;
  1314. color: #ff3007;
  1315. line-height: 40px;
  1316. .size {
  1317. font-size: 14px;
  1318. line-height: 20px;
  1319. }
  1320. }
  1321. .price-tips {
  1322. font-size: 12px;
  1323. font-family: PingFangSC-Regular, PingFang SC;
  1324. font-weight: 400;
  1325. color: #ff3007;
  1326. line-height: 17px;
  1327. }
  1328. }
  1329. .discount-over {
  1330. font-size: 22px;
  1331. font-family: PingFangSC-Medium, PingFang SC;
  1332. font-weight: 500;
  1333. color: #ff3007;
  1334. line-height: 30px;
  1335. }
  1336. .coupon-tip {
  1337. .tips-title {
  1338. font-size: 16px;
  1339. font-family: PingFangSC-Medium, PingFang SC;
  1340. font-weight: 500;
  1341. color: #875617;
  1342. line-height: 22px;
  1343. }
  1344. .tips-ts {
  1345. margin-top: 4px;
  1346. font-size: 12px;
  1347. font-family: PingFangSC-Regular, PingFang SC;
  1348. font-weight: 400;
  1349. color: #875617;
  1350. line-height: 17px;
  1351. }
  1352. }
  1353. .choice-icon {
  1354. width: 20px;
  1355. img {
  1356. width: 100%;
  1357. }
  1358. }
  1359. }
  1360. .bottom {
  1361. padding-top: 9px;
  1362. .coupon-notes {
  1363. display: flex;
  1364. justify-content: space-between;
  1365. .notes-text {
  1366. width: 314px;
  1367. font-size: 12px;
  1368. font-family: PingFangSC-Regular, PingFang SC;
  1369. font-weight: 400;
  1370. color: #c38029;
  1371. line-height: 18px;
  1372. }
  1373. .notes-icon {
  1374. width: 24px;
  1375. img {
  1376. width: 100%;
  1377. }
  1378. }
  1379. }
  1380. }
  1381. }
  1382. }
  1383. }
  1384. .project-block {
  1385. width: 540px;
  1386. height: 400px;
  1387. background: #ffffff;
  1388. border-radius: 8px;
  1389. position: relative;
  1390. padding: 42px;
  1391. .delete-pupop {
  1392. width: 32px;
  1393. position: absolute;
  1394. right: 5px;
  1395. top: 5px;
  1396. img {
  1397. width: 100%;
  1398. }
  1399. }
  1400. .project-pupop-title {
  1401. font-size: 14px;
  1402. font-family: PingFangSC-Medium, PingFang SC;
  1403. font-weight: 500;
  1404. color: #333333;
  1405. line-height: 20px;
  1406. text-align: center;
  1407. }
  1408. .project-select {
  1409. text-align: center;
  1410. margin-top: 26px;
  1411. }
  1412. .products-select {
  1413. text-align: center;
  1414. margin-top: 20px;
  1415. }
  1416. .products-button {
  1417. position: absolute;
  1418. bottom: 42px;
  1419. left: 50%;
  1420. transform: translateX(-50%);
  1421. width: 176px;
  1422. height: 28px;
  1423. background: #fa7d22;
  1424. border-radius: 14px;
  1425. font-size: 14px;
  1426. font-family: PingFangSC-Medium, PingFang SC;
  1427. font-weight: 500;
  1428. color: #ffffff;
  1429. line-height: 28px;
  1430. text-align: center;
  1431. }
  1432. }
  1433. .ts-block {
  1434. width: 540px;
  1435. height: 420px;
  1436. background: #ffffff;
  1437. border-radius: 8px;
  1438. position: relative;
  1439. padding: 42px 105px;
  1440. .delete-pupop {
  1441. width: 32px;
  1442. position: absolute;
  1443. right: 5px;
  1444. top: 5px;
  1445. img {
  1446. width: 100%;
  1447. }
  1448. }
  1449. .ts-pupop-title {
  1450. font-size: 14px;
  1451. font-family: PingFangSC-Medium, PingFang SC;
  1452. font-weight: 500;
  1453. color: #333333;
  1454. line-height: 20px;
  1455. text-align: center;
  1456. }
  1457. .ts-content {
  1458. .ts-table {
  1459. font-size: 14px;
  1460. font-family: PingFangSC-Medium, PingFang SC;
  1461. font-weight: 500;
  1462. color: #999999;
  1463. line-height: 20px;
  1464. padding: 9px 0;
  1465. display: flex;
  1466. justify-content: space-between;
  1467. li {
  1468. text-align: center;
  1469. }
  1470. .ts-table-active {
  1471. color: #fa7d22;
  1472. border-bottom: 4px solid #fa4622;
  1473. }
  1474. }
  1475. .time-slot {
  1476. margin-top: 20px;
  1477. display: flex;
  1478. justify-content: space-between;
  1479. font-size: 16px;
  1480. font-family: PingFangSC-Regular, PingFang SC;
  1481. font-weight: 400;
  1482. color: #999999;
  1483. line-height: 22px;
  1484. }
  1485. .ts-boty {
  1486. margin-top: 10px;
  1487. margin-left: -19px;
  1488. display: flex;
  1489. justify-content: unset;
  1490. flex-wrap: wrap;
  1491. li {
  1492. margin-top: 10px;
  1493. width: 68px;
  1494. margin-left: 19px;
  1495. height: 30px;
  1496. line-height: 30px;
  1497. text-align: center;
  1498. background: #f9f9f9;
  1499. border-radius: 8px;
  1500. font-size: 16px;
  1501. font-family: PingFangSC-Regular, PingFang SC;
  1502. font-weight: 400;
  1503. color: #333333;
  1504. }
  1505. .time-active {
  1506. background: #fff0e6;
  1507. border: 1px solid #fa7d22;
  1508. font-weight: 500;
  1509. color: #fa7d22;
  1510. }
  1511. }
  1512. }
  1513. .ts-button {
  1514. position: absolute;
  1515. bottom: 42px;
  1516. padding: 0;
  1517. left: 50%;
  1518. transform: translateX(-50%);
  1519. width: 176px;
  1520. height: 28px;
  1521. background: #fa7d22;
  1522. border-radius: 14px;
  1523. font-size: 14px;
  1524. font-family: PingFangSC-Medium, PingFang SC;
  1525. font-weight: 500;
  1526. color: #ffffff;
  1527. line-height: 28px;
  1528. text-align: center;
  1529. }
  1530. }
  1531. .pore-block {
  1532. width: 540px;
  1533. height: 400px;
  1534. background: #ffffff;
  1535. border-radius: 8px;
  1536. position: relative;
  1537. padding: 42px;
  1538. .delete-pupop {
  1539. width: 32px;
  1540. position: absolute;
  1541. right: 5px;
  1542. top: 5px;
  1543. img {
  1544. width: 100%;
  1545. }
  1546. }
  1547. .pore-content {
  1548. overflow: scroll;
  1549. height: 310px;
  1550. .pore-info {
  1551. margin-top: 10px;
  1552. border-radius: 4px;
  1553. border: 1px solid #f5f5f5;
  1554. .pore-top {
  1555. display: flex;
  1556. justify-content: space-between;
  1557. align-items: center;
  1558. font-size: 14px;
  1559. font-family: PingFangSC-Regular, PingFang SC;
  1560. font-weight: 400;
  1561. color: #666666;
  1562. line-height: 20px;
  1563. padding: 10px;
  1564. .pore-title {
  1565. .pore-medium {
  1566. font-size: 18px;
  1567. color: #fa7d22;
  1568. line-height: 25px;
  1569. }
  1570. }
  1571. .pore-over {
  1572. font-size: 12px;
  1573. }
  1574. }
  1575. .pore-bottom {
  1576. padding: 6px 8px;
  1577. background: #f5f5f5;
  1578. border-radius: 4px;
  1579. font-size: 12px;
  1580. font-family: PingFang-SC-Regular, PingFang-SC;
  1581. font-weight: 400;
  1582. color: #333333;
  1583. line-height: 14px;
  1584. }
  1585. }
  1586. }
  1587. }
  1588. .pay-block {
  1589. width: 540px;
  1590. height: 400px;
  1591. background: #ffffff;
  1592. border-radius: 8px;
  1593. position: relative;
  1594. padding: 42px;
  1595. .delete-pupop {
  1596. width: 32px;
  1597. position: absolute;
  1598. right: 5px;
  1599. top: 5px;
  1600. img {
  1601. width: 100%;
  1602. }
  1603. }
  1604. .pay-title {
  1605. font-size: 14px;
  1606. font-family: PingFangSC-Medium, PingFang SC;
  1607. font-weight: 500;
  1608. color: #333333;
  1609. line-height: 20px;
  1610. text-align: center;
  1611. }
  1612. .pay-suc {
  1613. margin-top: 40px;
  1614. margin-bottom: 80px;
  1615. text-align: center;
  1616. img {
  1617. width: 140px;
  1618. }
  1619. }
  1620. .pay-price {
  1621. margin-top: 10px;
  1622. font-size: 14px;
  1623. font-family: OPPOSans-B, OPPOSans;
  1624. font-weight: normal;
  1625. color: #fa4622;
  1626. text-align: center;
  1627. line-height: 31px;
  1628. span {
  1629. font-size: 20px;
  1630. }
  1631. }
  1632. .banner {
  1633. margin-top: 24px;
  1634. .qrCode {
  1635. text-align: center;
  1636. }
  1637. }
  1638. .pay-list {
  1639. width: 338px;
  1640. margin-top: 8px;
  1641. position: relative;
  1642. left: 50%;
  1643. transform: translateX(-50%);
  1644. .pay-info {
  1645. margin-top: 16px;
  1646. display: flex;
  1647. justify-content: space-between;
  1648. align-items: center;
  1649. height: 44px;
  1650. border-radius: 35px;
  1651. border: 1px solid #d0d0d0;
  1652. padding: 0 20px;
  1653. .pay-left {
  1654. margin-left: 8px;
  1655. font-size: 16px;
  1656. font-family: PingFangSC-Regular, PingFang SC;
  1657. font-weight: 400;
  1658. color: #333333;
  1659. line-height: 22px;
  1660. display: flex;
  1661. align-items: center;
  1662. img {
  1663. width: 24px;
  1664. }
  1665. span {
  1666. margin-left: 20px;
  1667. }
  1668. }
  1669. .pay-right {
  1670. img {
  1671. width: 24px;
  1672. }
  1673. }
  1674. }
  1675. }
  1676. .pay-button {
  1677. margin-top: 28px;
  1678. width: 176px;
  1679. height: 28px;
  1680. background: #fa7d22;
  1681. border-radius: 14px;
  1682. font-size: 14px;
  1683. font-family: PingFangSC-Medium, PingFang SC;
  1684. font-weight: 500;
  1685. color: #ffffff;
  1686. line-height: 28px;
  1687. text-align: center;
  1688. position: relative;
  1689. left: 50%;
  1690. transform: translateX(-50%);
  1691. }
  1692. }
  1693. }
  1694. </style>