contract.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933
  1. <template>
  2. <view class="center">
  3. <view v-for="(item , index) in lists" :Key="index" class="region">
  4. <view>
  5. <view class="c-row ">
  6. <text class="tit" v-if="item.orderType == '采购'">{{item.orderType}}</text>
  7. <text class="tit2" v-if="item.orderType == '销售'">{{item.orderType}}</text>
  8. <view class="enterprise">
  9. 编号{{item.contractNo}}({{item.procurementPlanType}})
  10. </view>
  11. <!-- <text class="status status1" v-if="item.status == '已挂单'">{{item.status}}</text>
  12. <text class="status status2" v-if="item.status == '已成交'">{{item.status}}</text>
  13. <text class="status status3" v-if="item.status == '已完成'">{{item.status}}</text>
  14. <text class="status status1" v-if="item.status == '审核中'">{{item.status}}</text>
  15. <text class="status status1" v-if="item.status == '执行中'">{{item.status}}</text> -->
  16. <text class="status status1">{{item.status}}</text>
  17. </view>
  18. </view>
  19. <view>
  20. <view class="c-row ">
  21. <text class="tit1" v-if="item.orderType == '采购'">买方</text>
  22. <text class="tit1" v-if="item.orderType == '销售'">卖方</text>
  23. <view class="enterprise">
  24. {{item.contracter}}
  25. </view>
  26. </view>
  27. </view>
  28. <view class="forList flex">
  29. <view class="title">{{item.goodsName}}:<text>{{item.transactionsNumber}}</text></view>
  30. <view class="title">单价:¥<text>{{item.unitPrice}}</text></view>
  31. <view class="title">基差:¥<text>{{item.basis}}</text></view>
  32. </view>
  33. <view class="c-row flex annius">
  34. <text class="anniu" @click="commit(item)"> 附件</text>
  35. <text class="anniu" @click="someprice(item)"
  36. v-if="item.procurementPlanType == '期货' && (item.status == '已成交' || item.status == '已挂单')"> 点价</text>
  37. <text class="anniu1" @click="commit1(item)" v-if="item.orderType == '采购'"> 发货</text>
  38. <!-- <text class="anniu" @click="commit"> 附件</text>
  39. <text class="anniu" @click="someprice(item)" v-if="item.procurementPlanType == '期货' && (item.status == '已成交' || item.status == '已挂单')"> 点价</text>
  40. <text class="anniu1" @click="commit1(item)" v-if="item.orderType == '采购'&&item.status != '待审核'"> 发货</text> -->
  41. <text class="anniu1" @click="commit2(item)" v-if="item.orderType == '销售'"> 收货</text>
  42. </view>
  43. </view>
  44. <view v-if='pricestatus' class='shade'>
  45. <view class='shade-content'>
  46. <view class="titles1">点价</view>
  47. <view class='shade-content-item flex'>
  48. <input v-model='price' placeholder="请输入点价价格" type="number" class="pointprice">
  49. <text style="font-size: 16px; color: #AFB3BF;margin-top: -3px;">元/吨</text>
  50. </view>
  51. <view class="flex">
  52. <view class="btns btn1" @click='pricestatus=false'>取消</view>
  53. <view class="btns btn2" @click='amendprice'>确定</view>
  54. </view>
  55. </view>
  56. </view>
  57. <view v-if='shadestatus' class='shade'>
  58. <view class='shade-content'>
  59. <view class='shade-content-item'>
  60. <view class="titles">请于以下时间段进行点价操作:</view>
  61. <view class="timeslot">11:30 ~ 12:30</view>
  62. <view class="timeslot">15:30 ~ 20:00</view>
  63. <view class="timeslot">23:00 ~ 08:00</view>
  64. </view>
  65. <view class="cancel" @click='shadestatus=false'>知道了</view>
  66. </view>
  67. </view>
  68. <view class="padding flex flex-direction">
  69. <!-- <button class="cu-btn commit margin-tb-sm lg" @click="commit">提交</button> -->
  70. </view>
  71. <!-- </block> -->
  72. </view>
  73. </template>
  74. <script>
  75. import uploadImage from '@/components/ossutil/uploadFile.js';
  76. import {
  77. mapState
  78. } from 'vuex';
  79. export default {
  80. name: "trust",
  81. data() {
  82. return {
  83. lists: [],
  84. shadestatus: false,
  85. pricestatus: false,
  86. goods: {
  87. pageSize: 10,
  88. currentPage: 1,
  89. // pcFlag : 0,
  90. },
  91. procurementPlanInfo: {
  92. pageSize: 10,
  93. currentPage: 1
  94. },
  95. price: "",
  96. tran: {
  97. total: 0,
  98. price: 0,
  99. startPlace: undefined,
  100. endPlace: undefined,
  101. goodsName: undefined,
  102. sender: '',
  103. senderPhone: '',
  104. status: 0,
  105. receiver: '',
  106. receiverPhone: '',
  107. verifyCode: '',
  108. driver: '',
  109. driverPhone: '',
  110. carNo: '',
  111. personNoImg: '',
  112. personNoImg1: '',
  113. driverNoImg: '',
  114. driverNoImg1: '',
  115. carNoImg: '',
  116. carNoImg1: ''
  117. },
  118. id: 0,
  119. PageCur: "trust",
  120. TabCur: 0,
  121. priceTypeIndex: -1,
  122. priceType: ['库内价', '到库价', '到港价'],
  123. unitPrice: 0,
  124. seller: '',
  125. sellerPhone: '',
  126. minSale: '',
  127. exsitCount: 0,
  128. origin: '',
  129. stock: '',
  130. goodsName: '',
  131. verifyCode: '',
  132. sendText0: '获取验证码',
  133. sendText1: '获取验证码',
  134. sendText2: '获取验证码',
  135. sendText3: '获取验证码',
  136. sendDisabled0: false,
  137. sendDisabled1: false,
  138. sendDisabled2: false,
  139. sendDisabled3: false,
  140. buyer: '',
  141. buyerPhone: '',
  142. level: '',
  143. sender: '',
  144. senderPhone: '',
  145. receiver: '',
  146. receiverPhone: '',
  147. total: 0,
  148. startPlace: '',
  149. endPlace: '',
  150. driver: '',
  151. driverPhone: '',
  152. carNo: '',
  153. personNoImg: '',
  154. personNoImg1: '',
  155. driverNoImg: '',
  156. driverNoImg1: '',
  157. carNoImg: '',
  158. carNoImg1: '',
  159. showTran: true
  160. };
  161. },
  162. computed: {
  163. ...mapState(['hasLogin', 'userInfo'])
  164. },
  165. // onShow() {
  166. // this.loadData()
  167. // },
  168. onLoad() {
  169. this.getList()
  170. },
  171. methods: {
  172. amendprice() {
  173. this.$api.doRequest('post', '/purchaseOrder/api/pointPrice', {
  174. id: this.id,
  175. unitPrice: Number(this.price)
  176. }).then(res => {
  177. if (res.data.code == 200) {
  178. this.pricestatus = false
  179. } else {
  180. uni.showToast({
  181. title: res.data.message,
  182. icon: 'none',
  183. duration: 2000
  184. })
  185. }
  186. })
  187. .catch(res => {
  188. uni.showToast({
  189. title: res.errmsg,
  190. icon: 'none',
  191. duration: 2000
  192. })
  193. });
  194. },
  195. someprice(item) {
  196. var time = new Date().getTime()
  197. var time1 = new Date(new Date(new Date().toLocaleDateString()).getTime() - (1 * 60 * 60 * 1000))
  198. var time2 = new Date()
  199. time2.setHours(8);
  200. time2.setMinutes(0);
  201. time2.setSeconds(0);
  202. var time3 = new Date()
  203. time3.setHours(11);
  204. time3.setMinutes(30);
  205. time3.setSeconds(0);
  206. var time4 = new Date()
  207. time4.setHours(12);
  208. time4.setMinutes(30);
  209. time4.setSeconds(0);
  210. var time5 = new Date()
  211. time5.setHours(15);
  212. time5.setMinutes(30);
  213. time5.setSeconds(0);
  214. var time6 = new Date()
  215. time6.setHours(20);
  216. time6.setMinutes(0);
  217. time6.setSeconds(0);
  218. if (time < time2.getTime() && time > time1 || time < time4.getTime() && time > time3.getTime() || time <
  219. time6.getTime() && time > time5.getTime()) {
  220. this.id = item.id
  221. this.pricestatus = true
  222. } else {
  223. this.shadestatus = true
  224. }
  225. },
  226. commit(item) {
  227. debugger
  228. uni.navigateTo({
  229. url: `/pageB/contract/enclosures?id=${item.id}`
  230. })
  231. },
  232. commit1(item) {
  233. uni.navigateTo({
  234. url: `/pageB/contract/look?id=${item.id}&contractNo=${item.contractNo}&contracter=${item.contracter}&goodsName=${item.goodsName}`
  235. })
  236. },
  237. commit2(item) {
  238. uni.navigateTo({
  239. url: `/pageB/contract/collectLook?id=${item.id}&contractNo=${item.contractNo}&customer=${item.customer}&goodsName=${item.goodsName}&contracter=${item.contracter}`
  240. })
  241. },
  242. getList() {
  243. this.goods.commonId = this.userInfo.id
  244. // this.goods.pcFlag = 0
  245. this.$api.doRequest('get', '/purchaseOrder/selectPurchaseOrderApp', this.goods).then(res => {
  246. if (res.data.code == 200) {
  247. this.lists = res.data.data.records
  248. } else {
  249. uni.showToast({
  250. title: res.data.message,
  251. icon: 'none',
  252. duration: 2000
  253. })
  254. }
  255. })
  256. .catch(res => {
  257. uni.showToast({
  258. title: res.errmsg,
  259. icon: 'none',
  260. duration: 2000
  261. })
  262. });
  263. },
  264. ChooseImageCar() {
  265. uni.chooseImage({
  266. count: 1, //默认9
  267. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  268. sourceType: ['album', 'camera'], //从相册选择
  269. success: (res) => {
  270. //上传图片
  271. //图片路径可自行修改
  272. uploadImage(res.tempFilePaths[0], 'carNoImg/',
  273. result => {
  274. if (this.carNoImg.length != 0) {
  275. this.carNoImg1 = result
  276. } else {
  277. this.carNoImg = result
  278. }
  279. uni.hideLoading();
  280. }
  281. )
  282. }
  283. });
  284. },
  285. ViewImage(e) {
  286. var img = [];
  287. img = e.currentTarget.dataset.url.split(' ')
  288. uni.previewImage({
  289. current: 0,
  290. urls: img
  291. });
  292. },
  293. // DelImg(e) {
  294. // uni.showModal({
  295. // title: '提示',
  296. // content: '确定要删除该照片吗?',
  297. // cancelText: '取消',
  298. // confirmText: '确定',
  299. // success: res => {
  300. // if (res.confirm) {
  301. // if (e.currentTarget.dataset.index == 0) {
  302. // this.personNoImg = "";
  303. // } else if (e.currentTarget.dataset.index == 1) {
  304. // this.personNoImg1 = "";
  305. // } else if (e.currentTarget.dataset.index == 2) {
  306. // this.driverNoImg = "";
  307. // } else if (e.currentTarget.dataset.index == 3) {
  308. // this.driverNoImg1 = "";
  309. // } else if (e.currentTarget.dataset.index == 4) {
  310. // this.carNoImg = "";
  311. // } else if (e.currentTarget.dataset.index == 5) {
  312. // this.carNoImg1 = "";
  313. // }
  314. // }
  315. // }
  316. // })
  317. // },
  318. commit11() {
  319. if (this.hasLogin) {
  320. uni.showModal({
  321. title: '登录提示',
  322. content: '您尚未登录,是否立即登录?',
  323. showCancel: true,
  324. confirmText: '登录',
  325. success: (e) => {
  326. if (e.confirm) {
  327. uni.navigateTo({
  328. url: '/pagesB/contract/look'
  329. })
  330. }
  331. },
  332. fail: () => {},
  333. complete: () => {}
  334. })
  335. } else {
  336. const that = this
  337. if (this.TabCur == 0) {
  338. // if (!that.seller) {
  339. // this.$api.msg('请填写卖方');
  340. // return;
  341. // }
  342. // if (!that.sellerPhone) {
  343. // this.$api.msg('请填写手机号码');
  344. // return;
  345. // }
  346. // if (!that.exsitCount) {
  347. // this.$api.msg('请填写库存量');
  348. // return;
  349. // }
  350. // if (!that.minSale) {
  351. // this.$api.msg('请填写最小成交量');
  352. // return;
  353. // }
  354. // if (!that.goodsName) {
  355. // this.$api.msg('请填写货名');
  356. // return;
  357. // }
  358. // if (!that.verifyCode) {
  359. // this.$api.msg('请填写验证码');
  360. // return;
  361. // }
  362. // if (!that.price) {
  363. // that.$api.msg('请选择价格类型')
  364. // return
  365. // }
  366. // if (!that.unitPrice) {
  367. // that.$api.msg('请填写协议价格(元/吨)');
  368. // return
  369. // }
  370. // if (!that.origin) {
  371. // this.$api.msg('请填写产地');
  372. // return;
  373. // }
  374. // if (!that.stock) {
  375. // this.$api.msg('请填写库存地');
  376. // return;
  377. // }
  378. // if (!that.level) {
  379. // this.$api.msg('请填写国标等级');
  380. // return;
  381. // }
  382. // that.saleInfo.seller = that.seller
  383. // that.saleInfo.sellerPhone = that.sellerPhone
  384. // that.saleInfo.priceType = that.price
  385. // that.saleInfo.unitPrice = that.unitPrice
  386. // that.saleInfo.minSale = that.minSale
  387. // that.saleInfo.exsitCount = that.exsitCount
  388. // that.saleInfo.origin = that.origin
  389. // that.saleInfo.stock = that.stock
  390. // that.saleInfo.verifyCode = that.verifyCode
  391. // that.saleInfo.goodsName = that.goodsName
  392. // that.saleInfo.buyer = that.buyer
  393. // that.saleInfo.buyerPhone = that.buyerPhone
  394. // that.saleInfo.level = that.level
  395. } else if (this.TabCur == 1) {
  396. if (!that.buyer) {
  397. this.$api.msg('请填写买方');
  398. return;
  399. }
  400. if (!that.buyerPhone) {
  401. this.$api.msg('请填写手机号码');
  402. return;
  403. }
  404. if (!that.goodsName) {
  405. this.$api.msg('请填写货名');
  406. return;
  407. }
  408. if (!that.verifyCode) {
  409. this.$api.msg('请填写验证码');
  410. return;
  411. }
  412. if (!that.price) {
  413. that.$api.msg('请选择价格类型')
  414. return
  415. }
  416. if (!that.unitPrice) {
  417. that.$api.msg('请填写协议价格(元/吨)');
  418. return
  419. }
  420. if (!that.origin) {
  421. this.$api.msg('请填写产地');
  422. return;
  423. }
  424. if (!that.stock) {
  425. this.$api.msg('请填写库存地');
  426. return;
  427. }
  428. if (!that.level) {
  429. this.$api.msg('请填写国标等级');
  430. return;
  431. }
  432. that.saleInfo.seller = that.seller
  433. that.saleInfo.sellerPhone = that.sellerPhone
  434. that.saleInfo.priceType = that.price
  435. that.saleInfo.unitPrice = that.unitPrice
  436. that.saleInfo.minSale = that.minSale
  437. that.saleInfo.exsitCount = that.exsitCount
  438. that.saleInfo.origin = that.origin
  439. that.saleInfo.stock = that.stock
  440. that.saleInfo.verifyCode = that.verifyCode
  441. that.saleInfo.goodsName = that.goodsName
  442. that.saleInfo.buyer = that.buyer
  443. that.saleInfo.buyerPhone = that.buyerPhone
  444. that.saleInfo.level = that.level
  445. } else if (this.TabCur == 2) {
  446. if (!that.sender) {
  447. this.$api.msg('请填写发货方');
  448. return;
  449. }
  450. if (!that.senderPhone) {
  451. this.$api.msg('请填写发货方手机号码');
  452. return;
  453. }
  454. if (!that.receiver) {
  455. this.$api.msg('请填写收货方');
  456. return;
  457. }
  458. if (!that.receiverPhone) {
  459. this.$api.msg('请填写收货方手机号码');
  460. return;
  461. }
  462. if (!that.goodsName) {
  463. this.$api.msg('请填写货名');
  464. return;
  465. }
  466. if (!that.verifyCode) {
  467. this.$api.msg('请填写验证码');
  468. return;
  469. }
  470. that.tran.sender = that.sender
  471. that.tran.senderPhone = that.senderPhone
  472. that.tran.receiver = that.receiver
  473. that.tran.receiverPhone = that.receiverPhone
  474. that.tran.verifyCode = that.verifyCode
  475. that.tran.goodsName = that.goodsName
  476. that.tran.total = that.total
  477. that.tran.price = that.price
  478. that.tran.startPlace = that.startPlace
  479. that.tran.endPlace = that.endPlace
  480. } else if (this.TabCur == 3) {
  481. if (!that.startPlace) {
  482. this.$api.msg('请填写起始地');
  483. return;
  484. }
  485. if (!that.endPlace) {
  486. this.$api.msg('请填写目的地');
  487. return;
  488. }
  489. if (!that.driver) {
  490. this.$api.msg('请填写承运人');
  491. return;
  492. }
  493. if (!that.driverPhone) {
  494. this.$api.msg('请填写承运人手机号码');
  495. return;
  496. }
  497. if (!/(^1[3|4|5|7|8][0-9]{9}$)/.test(that.driverPhone)) {
  498. that.$api.msg('请输入正确的承运人手机号码');
  499. return
  500. }
  501. if (!that.carNo) {
  502. this.$api.msg('请填写车牌号');
  503. return;
  504. }
  505. if (!that.verifyCode) {
  506. this.$api.msg('请填写验证码');
  507. return;
  508. }
  509. if (!that.personNoImg || !that.personNoImg1) {
  510. that.$api.msg('请上传身份证正、反面照片');
  511. return
  512. }
  513. if (!that.driverNoImg || !that.driverNoImg1) {
  514. that.$api.msg('请上传驾驶证主、副页照片');
  515. return
  516. }
  517. if (!that.carNoImg || !that.carNoImg1) {
  518. that.$api.msg('请上传行车证主、副页照片');
  519. return
  520. }
  521. that.tran.driver = that.driver
  522. that.tran.driverPhone = that.driverPhone
  523. that.tran.verifyCode = that.verifyCode
  524. that.tran.price = that.price
  525. that.tran.startPlace = that.startPlace
  526. that.tran.endPlace = that.endPlace
  527. that.tran.carNo = that.carNo
  528. that.tran.personNoImg = that.personNoImg
  529. that.tran.personNoImg1 = that.personNoImg1
  530. that.tran.driverNoImg = that.driverNoImg
  531. that.tran.driverNoImg1 = that.driverNoImg1
  532. that.tran.carNoImg = that.carNoImg
  533. that.tran.carNoImg1 = that.carNoImg1
  534. }
  535. // 获取用户的当前设置,判断是否点击了“总是保持以上,不在询问”
  536. wx.getSetting({
  537. // withSubscriptions: true,//是否获取用户订阅消息的订阅状态,默认false不返回
  538. success(res) {
  539. if (res.authSetting['scope.subscribeMessage']) {
  540. uni.openSetting({ // 打开设置页
  541. success(res) {
  542. console.log(res.authSetting)
  543. }
  544. });
  545. } else { // 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息
  546. uni.requestSubscribeMessage({
  547. tmplIds: ['8cVkckXi_8zfHeScXRHhjN6cgZFYYCWIMPDTiPWagXY'], //
  548. success(res) {
  549. if (res['8cVkckXi_8zfHeScXRHhjN6cgZFYYCWIMPDTiPWagXY'] ==
  550. "accept") { // 字段就是tmplIds模板id
  551. uni.showLoading({
  552. title: '正在提交',
  553. mask: true
  554. })
  555. if (that.TabCur == 0) {
  556. that.$api.request('sale', 'addSale', that.saleInfo,
  557. failres => {
  558. uni.hideLoading()
  559. that.$api.msg(failres.errmsg);
  560. }).then(res => {
  561. uni.hideLoading()
  562. uni.showModal({
  563. title: '提示',
  564. content: "发布提交成功,工作人员会尽快联系该号码:" +
  565. that.sellerPhone,
  566. showCancel: false,
  567. confirmText: '确定',
  568. success: () => {
  569. uni.navigateBack()
  570. }
  571. })
  572. // that.$api.prePage().refreshList(data, that.manageType);
  573. })
  574. } else if (that.TabCur == 1) {
  575. that.$api.request('sale', 'addBuy', that.saleInfo,
  576. failres => {
  577. uni.hideLoading()
  578. that.$api.msg(failres.errmsg);
  579. }).then(res => {
  580. uni.hideLoading()
  581. uni.showModal({
  582. title: '提示',
  583. showCancel: false,
  584. content: "发布提交成功,工作人员会尽快联系该号码:" +
  585. that.buyerPhone,
  586. confirmText: '确定',
  587. success: () => {
  588. uni.navigateBack()
  589. }
  590. })
  591. // that.$api.prePage().refreshList(data, that.manageType);
  592. })
  593. } else if (that.TabCur == 2) {
  594. that.$api.request('tran', 'addTran', that.tran,
  595. failres => {
  596. uni.hideLoading()
  597. that.$api.msg(failres.errmsg);
  598. }).then(res => {
  599. uni.hideLoading()
  600. uni.showModal({
  601. title: '提示',
  602. showCancel: false,
  603. content: "发布提交成功,工作人员会尽快联系该号码:" +
  604. that.senderPhone,
  605. confirmText: '确定',
  606. success: () => {
  607. uni.navigateBack()
  608. }
  609. })
  610. // that.$api.prePage().refreshList(data, that.manageType);
  611. })
  612. } else if (that.TabCur == 3) {
  613. that.$api.request('tran', 'addCarDriver', that.tran,
  614. failres => {
  615. uni.hideLoading()
  616. that.$api.msg(failres.errmsg);
  617. }).then(res => {
  618. uni.hideLoading()
  619. uni.showModal({
  620. title: '提示',
  621. showCancel: false,
  622. content: "发布提交成功,工作人员会尽快联系该号码:" +
  623. that.driverPhone,
  624. confirmText: '确定',
  625. success: () => {
  626. uni.navigateBack()
  627. }
  628. })
  629. // that.$api.prePage().refreshList(data, that.manageType);
  630. })
  631. }
  632. }
  633. }
  634. })
  635. }
  636. }
  637. })
  638. }
  639. }
  640. },
  641. }
  642. </script>
  643. <style scoped>
  644. .center {
  645. padding: 10px 20px;
  646. background-color: #F5F6FA;
  647. }
  648. .region {
  649. background-color: #FFFFFF;
  650. border-radius: 20px;
  651. margin-top: 10px;
  652. }
  653. .zan-dialog__mask {
  654. position: fixed;
  655. top: 0;
  656. left: 0;
  657. right: 0;
  658. bottom: 0;
  659. z-index: 10;
  660. background: rgba(0, 0, 0, 0);
  661. /*设置阴影半透明背景如: background: rgba(0, 0, 0, 0.4);*/
  662. display: none;
  663. }
  664. .zan-dialog__container {
  665. position: fixed;
  666. bottom: 400rpx;
  667. width: 650rpx;
  668. /*弹窗布局宽*/
  669. height: 350rpx;
  670. /*弹窗布局高,与下面弹出距离transform有关*/
  671. margin-left: 50rpx;
  672. background: #f8f8f8;
  673. transform: translateY(300%);
  674. /*弹框弹出距离,与弹框布局高度有关,如300%表示弹起距离为3倍弹窗高度 */
  675. transition: all 0.4s ease;
  676. z-index: 12;
  677. border-radius: 20rpx;
  678. box-shadow: 0px 3px 3px 2px gainsboro;
  679. /*弹框的悬浮阴影效果,如不需要可注释该行*/
  680. }
  681. .zan-dialog--show .zan-dialog__container {
  682. transform: translateY(0);
  683. }
  684. .zan-dialog--show .zan-dialog__mask {
  685. display: block;
  686. }
  687. .container {
  688. padding-bottom: 160rpx;
  689. }
  690. .cu-form-group input {
  691. text-align: right;
  692. }
  693. .text-white text {
  694. background: linear-gradient(45deg, #3DC146, #B2D612);
  695. padding: 5px 10px;
  696. border-radius: 38rpx;
  697. }
  698. .cu-form-group textarea {
  699. text-align: right;
  700. }
  701. .commit {
  702. background: linear-gradient(45deg, #DF331C, #DA611A);
  703. color: #fff;
  704. }
  705. .shade {
  706. position: fixed;
  707. top: 0;
  708. left: 0;
  709. width: 100%;
  710. background: rgba(0, 0, 0, 0.5);
  711. height: 100%;
  712. z-index: 999999;
  713. }
  714. .shade-content {
  715. background: #fff;
  716. position: absolute;
  717. top: 50%;
  718. left: 50%;
  719. border-radius: 20px;
  720. transform: translateX(-50%) translateY(-50%);
  721. z-index: 999999;
  722. text-align: center;
  723. }
  724. .shade-content-item {
  725. width: 277px;
  726. text-align: center;
  727. height: 121px;
  728. padding: 35px 10px;
  729. }
  730. .c-row {
  731. display: -webkit-box;
  732. display: -webkit-flex;
  733. display: flex;
  734. -webkit-box-align: center;
  735. -webkit-align-items: center;
  736. align-items: center;
  737. padding: 20rpx 30rpx;
  738. position: relative;
  739. }
  740. .con-list {
  741. -webkit-box-flex: 1;
  742. -webkit-flex: 1;
  743. flex: 1;
  744. display: -webkit-box;
  745. display: -webkit-flex;
  746. display: flex;
  747. -webkit-box-orient: vertical;
  748. -webkit-box-direction: normal;
  749. -webkit-flex-direction: column;
  750. flex-direction: column;
  751. color: #303133;
  752. line-height: 40rpx;
  753. text-align: right;
  754. padding-right: 20rpx;
  755. font-size: 14px;
  756. }
  757. .forList {
  758. width: 90%;
  759. height: 30px;
  760. margin: 0 auto;
  761. background-color: #F9F9FA;
  762. border-radius: 10px;
  763. }
  764. .forList .title {
  765. line-height: 30px;
  766. margin-left: 25px;
  767. color: #9698A2;
  768. }
  769. .tit {
  770. width: 34px;
  771. height: 24px;
  772. background-color: #E9F8F0;
  773. color: #22C572;
  774. padding: 2px 3px;
  775. border-radius: 5px;
  776. }
  777. .tit1 {
  778. width: 34px;
  779. height: 24px;
  780. background-color: #FEECE6;
  781. color: #FE6430;
  782. padding: 2px 3px;
  783. border-radius: 5px;
  784. }
  785. .tit2 {
  786. width: 34px;
  787. height: 24px;
  788. background-color: #EBEEFA;
  789. color: #5C76DF;
  790. padding: 2px 3px;
  791. border-radius: 5px;
  792. }
  793. .enterprise {
  794. font-size: 16px;
  795. font-weight: 600;
  796. margin-left: 20px;
  797. }
  798. .annius {
  799. width: 70%;
  800. margin-left: 110px;
  801. justify-content: flex-end;
  802. }
  803. .anniu {
  804. width: 50px;
  805. font-size: 16px;
  806. border: 1px solid #CDCDCD;
  807. border-radius: 12px;
  808. position: relative;
  809. margin-right: 10px;
  810. text-align: center;
  811. line-height: 30px;
  812. }
  813. .anniu1 {
  814. width: 50px;
  815. font-size: 16px;
  816. border: 1px solid #22C572;
  817. border-radius: 15px;
  818. color: #22C572;
  819. position: relative;
  820. margin-right: 10px;
  821. text-align: center;
  822. line-height: 30px;
  823. }
  824. .titles {
  825. color: #333333;
  826. font-size: 16px;
  827. font-weight: 600;
  828. margin-top: -16px;
  829. margin-bottom: 10px;
  830. }
  831. .timeslot {
  832. font-size: 14px;
  833. color: #333333;
  834. height: 20px;
  835. }
  836. .cancel {
  837. text-align: center;
  838. width: 100%;
  839. color: #22C572;
  840. border-top: 1px solid #EEEEEE;
  841. margin-bottom: 6px;
  842. font-size: 18px;
  843. line-height: 40px;
  844. display: inline-block;
  845. }
  846. .pointprice {
  847. border-bottom: 1px solid #EEEEEE;
  848. text-align: left;
  849. padding-left: 10px;
  850. width: 70%;
  851. margin: 0 auto;
  852. }
  853. .titles1 {
  854. color: #333333;
  855. font-size: 16px;
  856. font-weight: 600;
  857. margin-top: 10px;
  858. }
  859. .btns {
  860. width: 50%;
  861. line-height: 50px;
  862. font-size: 18px;
  863. border-top: 1px solid #EEEEEE;
  864. margin-top: -20px;
  865. }
  866. .btn1 {
  867. color: #AFB3BF;
  868. border-right: 1px solid #EEEEEE;
  869. }
  870. .btn2 {
  871. color: #22C572;
  872. }
  873. .status {
  874. right: 20px;
  875. position: absolute;
  876. }
  877. .status1 {
  878. color: #FE6430;
  879. }
  880. .status2 {
  881. color: #22C572;
  882. }
  883. .status3 {
  884. color: #AFB3BF;
  885. }
  886. </style>