contract.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932
  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:20 ~ 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. uni.navigateTo({
  228. url: `/pageB/contract/enclosures?id=${item.id}`
  229. })
  230. },
  231. commit1(item) {
  232. uni.navigateTo({
  233. url: `/pageB/contract/look?id=${item.id}&contractNo=${item.contractNo}&contracter=${item.contracter}&goodsName=${item.goodsName}`
  234. })
  235. },
  236. commit2(item) {
  237. uni.navigateTo({
  238. url: `/pageB/contract/collectLook?id=${item.id}&contractNo=${item.contractNo}&customer=${item.customer}&goodsName=${item.goodsName}&contracter=${item.contracter}`
  239. })
  240. },
  241. getList() {
  242. this.goods.commonId = this.userInfo.id
  243. // this.goods.pcFlag = 0
  244. this.$api.doRequest('get', '/purchaseOrder/selectPurchaseOrderApp', this.goods).then(res => {
  245. if (res.data.code == 200) {
  246. this.lists = res.data.data.records
  247. } else {
  248. uni.showToast({
  249. title: res.data.message,
  250. icon: 'none',
  251. duration: 2000
  252. })
  253. }
  254. })
  255. .catch(res => {
  256. uni.showToast({
  257. title: res.errmsg,
  258. icon: 'none',
  259. duration: 2000
  260. })
  261. });
  262. },
  263. ChooseImageCar() {
  264. uni.chooseImage({
  265. count: 1, //默认9
  266. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  267. sourceType: ['album', 'camera'], //从相册选择
  268. success: (res) => {
  269. //上传图片
  270. //图片路径可自行修改
  271. uploadImage(res.tempFilePaths[0], 'carNoImg/',
  272. result => {
  273. if (this.carNoImg.length != 0) {
  274. this.carNoImg1 = result
  275. } else {
  276. this.carNoImg = result
  277. }
  278. uni.hideLoading();
  279. }
  280. )
  281. }
  282. });
  283. },
  284. ViewImage(e) {
  285. var img = [];
  286. img = e.currentTarget.dataset.url.split(' ')
  287. uni.previewImage({
  288. current: 0,
  289. urls: img
  290. });
  291. },
  292. // DelImg(e) {
  293. // uni.showModal({
  294. // title: '提示',
  295. // content: '确定要删除该照片吗?',
  296. // cancelText: '取消',
  297. // confirmText: '确定',
  298. // success: res => {
  299. // if (res.confirm) {
  300. // if (e.currentTarget.dataset.index == 0) {
  301. // this.personNoImg = "";
  302. // } else if (e.currentTarget.dataset.index == 1) {
  303. // this.personNoImg1 = "";
  304. // } else if (e.currentTarget.dataset.index == 2) {
  305. // this.driverNoImg = "";
  306. // } else if (e.currentTarget.dataset.index == 3) {
  307. // this.driverNoImg1 = "";
  308. // } else if (e.currentTarget.dataset.index == 4) {
  309. // this.carNoImg = "";
  310. // } else if (e.currentTarget.dataset.index == 5) {
  311. // this.carNoImg1 = "";
  312. // }
  313. // }
  314. // }
  315. // })
  316. // },
  317. commit11() {
  318. if (this.hasLogin) {
  319. uni.showModal({
  320. title: '登录提示',
  321. content: '您尚未登录,是否立即登录?',
  322. showCancel: true,
  323. confirmText: '登录',
  324. success: (e) => {
  325. if (e.confirm) {
  326. uni.navigateTo({
  327. url: '/pagesB/contract/look'
  328. })
  329. }
  330. },
  331. fail: () => {},
  332. complete: () => {}
  333. })
  334. } else {
  335. const that = this
  336. if (this.TabCur == 0) {
  337. // if (!that.seller) {
  338. // this.$api.msg('请填写卖方');
  339. // return;
  340. // }
  341. // if (!that.sellerPhone) {
  342. // this.$api.msg('请填写手机号码');
  343. // return;
  344. // }
  345. // if (!that.exsitCount) {
  346. // this.$api.msg('请填写库存量');
  347. // return;
  348. // }
  349. // if (!that.minSale) {
  350. // this.$api.msg('请填写最小成交量');
  351. // return;
  352. // }
  353. // if (!that.goodsName) {
  354. // this.$api.msg('请填写货名');
  355. // return;
  356. // }
  357. // if (!that.verifyCode) {
  358. // this.$api.msg('请填写验证码');
  359. // return;
  360. // }
  361. // if (!that.price) {
  362. // that.$api.msg('请选择价格类型')
  363. // return
  364. // }
  365. // if (!that.unitPrice) {
  366. // that.$api.msg('请填写协议价格(元/吨)');
  367. // return
  368. // }
  369. // if (!that.origin) {
  370. // this.$api.msg('请填写产地');
  371. // return;
  372. // }
  373. // if (!that.stock) {
  374. // this.$api.msg('请填写库存地');
  375. // return;
  376. // }
  377. // if (!that.level) {
  378. // this.$api.msg('请填写国标等级');
  379. // return;
  380. // }
  381. // that.saleInfo.seller = that.seller
  382. // that.saleInfo.sellerPhone = that.sellerPhone
  383. // that.saleInfo.priceType = that.price
  384. // that.saleInfo.unitPrice = that.unitPrice
  385. // that.saleInfo.minSale = that.minSale
  386. // that.saleInfo.exsitCount = that.exsitCount
  387. // that.saleInfo.origin = that.origin
  388. // that.saleInfo.stock = that.stock
  389. // that.saleInfo.verifyCode = that.verifyCode
  390. // that.saleInfo.goodsName = that.goodsName
  391. // that.saleInfo.buyer = that.buyer
  392. // that.saleInfo.buyerPhone = that.buyerPhone
  393. // that.saleInfo.level = that.level
  394. } else if (this.TabCur == 1) {
  395. if (!that.buyer) {
  396. this.$api.msg('请填写买方');
  397. return;
  398. }
  399. if (!that.buyerPhone) {
  400. this.$api.msg('请填写手机号码');
  401. return;
  402. }
  403. if (!that.goodsName) {
  404. this.$api.msg('请填写货名');
  405. return;
  406. }
  407. if (!that.verifyCode) {
  408. this.$api.msg('请填写验证码');
  409. return;
  410. }
  411. if (!that.price) {
  412. that.$api.msg('请选择价格类型')
  413. return
  414. }
  415. if (!that.unitPrice) {
  416. that.$api.msg('请填写协议价格(元/吨)');
  417. return
  418. }
  419. if (!that.origin) {
  420. this.$api.msg('请填写产地');
  421. return;
  422. }
  423. if (!that.stock) {
  424. this.$api.msg('请填写库存地');
  425. return;
  426. }
  427. if (!that.level) {
  428. this.$api.msg('请填写国标等级');
  429. return;
  430. }
  431. that.saleInfo.seller = that.seller
  432. that.saleInfo.sellerPhone = that.sellerPhone
  433. that.saleInfo.priceType = that.price
  434. that.saleInfo.unitPrice = that.unitPrice
  435. that.saleInfo.minSale = that.minSale
  436. that.saleInfo.exsitCount = that.exsitCount
  437. that.saleInfo.origin = that.origin
  438. that.saleInfo.stock = that.stock
  439. that.saleInfo.verifyCode = that.verifyCode
  440. that.saleInfo.goodsName = that.goodsName
  441. that.saleInfo.buyer = that.buyer
  442. that.saleInfo.buyerPhone = that.buyerPhone
  443. that.saleInfo.level = that.level
  444. } else if (this.TabCur == 2) {
  445. if (!that.sender) {
  446. this.$api.msg('请填写发货方');
  447. return;
  448. }
  449. if (!that.senderPhone) {
  450. this.$api.msg('请填写发货方手机号码');
  451. return;
  452. }
  453. if (!that.receiver) {
  454. this.$api.msg('请填写收货方');
  455. return;
  456. }
  457. if (!that.receiverPhone) {
  458. this.$api.msg('请填写收货方手机号码');
  459. return;
  460. }
  461. if (!that.goodsName) {
  462. this.$api.msg('请填写货名');
  463. return;
  464. }
  465. if (!that.verifyCode) {
  466. this.$api.msg('请填写验证码');
  467. return;
  468. }
  469. that.tran.sender = that.sender
  470. that.tran.senderPhone = that.senderPhone
  471. that.tran.receiver = that.receiver
  472. that.tran.receiverPhone = that.receiverPhone
  473. that.tran.verifyCode = that.verifyCode
  474. that.tran.goodsName = that.goodsName
  475. that.tran.total = that.total
  476. that.tran.price = that.price
  477. that.tran.startPlace = that.startPlace
  478. that.tran.endPlace = that.endPlace
  479. } else if (this.TabCur == 3) {
  480. if (!that.startPlace) {
  481. this.$api.msg('请填写起始地');
  482. return;
  483. }
  484. if (!that.endPlace) {
  485. this.$api.msg('请填写目的地');
  486. return;
  487. }
  488. if (!that.driver) {
  489. this.$api.msg('请填写承运人');
  490. return;
  491. }
  492. if (!that.driverPhone) {
  493. this.$api.msg('请填写承运人手机号码');
  494. return;
  495. }
  496. if (!/(^1[3|4|5|7|8][0-9]{9}$)/.test(that.driverPhone)) {
  497. that.$api.msg('请输入正确的承运人手机号码');
  498. return
  499. }
  500. if (!that.carNo) {
  501. this.$api.msg('请填写车牌号');
  502. return;
  503. }
  504. if (!that.verifyCode) {
  505. this.$api.msg('请填写验证码');
  506. return;
  507. }
  508. if (!that.personNoImg || !that.personNoImg1) {
  509. that.$api.msg('请上传身份证正、反面照片');
  510. return
  511. }
  512. if (!that.driverNoImg || !that.driverNoImg1) {
  513. that.$api.msg('请上传驾驶证主、副页照片');
  514. return
  515. }
  516. if (!that.carNoImg || !that.carNoImg1) {
  517. that.$api.msg('请上传行车证主、副页照片');
  518. return
  519. }
  520. that.tran.driver = that.driver
  521. that.tran.driverPhone = that.driverPhone
  522. that.tran.verifyCode = that.verifyCode
  523. that.tran.price = that.price
  524. that.tran.startPlace = that.startPlace
  525. that.tran.endPlace = that.endPlace
  526. that.tran.carNo = that.carNo
  527. that.tran.personNoImg = that.personNoImg
  528. that.tran.personNoImg1 = that.personNoImg1
  529. that.tran.driverNoImg = that.driverNoImg
  530. that.tran.driverNoImg1 = that.driverNoImg1
  531. that.tran.carNoImg = that.carNoImg
  532. that.tran.carNoImg1 = that.carNoImg1
  533. }
  534. // 获取用户的当前设置,判断是否点击了“总是保持以上,不在询问”
  535. wx.getSetting({
  536. // withSubscriptions: true,//是否获取用户订阅消息的订阅状态,默认false不返回
  537. success(res) {
  538. if (res.authSetting['scope.subscribeMessage']) {
  539. uni.openSetting({ // 打开设置页
  540. success(res) {
  541. console.log(res.authSetting)
  542. }
  543. });
  544. } else { // 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息
  545. uni.requestSubscribeMessage({
  546. tmplIds: ['8cVkckXi_8zfHeScXRHhjN6cgZFYYCWIMPDTiPWagXY'], //
  547. success(res) {
  548. if (res['8cVkckXi_8zfHeScXRHhjN6cgZFYYCWIMPDTiPWagXY'] ==
  549. "accept") { // 字段就是tmplIds模板id
  550. uni.showLoading({
  551. title: '正在提交',
  552. mask: true
  553. })
  554. if (that.TabCur == 0) {
  555. that.$api.request('sale', 'addSale', that.saleInfo,
  556. failres => {
  557. uni.hideLoading()
  558. that.$api.msg(failres.errmsg);
  559. }).then(res => {
  560. uni.hideLoading()
  561. uni.showModal({
  562. title: '提示',
  563. content: "发布提交成功,工作人员会尽快联系该号码:" +
  564. that.sellerPhone,
  565. showCancel: false,
  566. confirmText: '确定',
  567. success: () => {
  568. uni.navigateBack()
  569. }
  570. })
  571. // that.$api.prePage().refreshList(data, that.manageType);
  572. })
  573. } else if (that.TabCur == 1) {
  574. that.$api.request('sale', 'addBuy', that.saleInfo,
  575. failres => {
  576. uni.hideLoading()
  577. that.$api.msg(failres.errmsg);
  578. }).then(res => {
  579. uni.hideLoading()
  580. uni.showModal({
  581. title: '提示',
  582. showCancel: false,
  583. content: "发布提交成功,工作人员会尽快联系该号码:" +
  584. that.buyerPhone,
  585. confirmText: '确定',
  586. success: () => {
  587. uni.navigateBack()
  588. }
  589. })
  590. // that.$api.prePage().refreshList(data, that.manageType);
  591. })
  592. } else if (that.TabCur == 2) {
  593. that.$api.request('tran', 'addTran', that.tran,
  594. failres => {
  595. uni.hideLoading()
  596. that.$api.msg(failres.errmsg);
  597. }).then(res => {
  598. uni.hideLoading()
  599. uni.showModal({
  600. title: '提示',
  601. showCancel: false,
  602. content: "发布提交成功,工作人员会尽快联系该号码:" +
  603. that.senderPhone,
  604. confirmText: '确定',
  605. success: () => {
  606. uni.navigateBack()
  607. }
  608. })
  609. // that.$api.prePage().refreshList(data, that.manageType);
  610. })
  611. } else if (that.TabCur == 3) {
  612. that.$api.request('tran', 'addCarDriver', that.tran,
  613. failres => {
  614. uni.hideLoading()
  615. that.$api.msg(failres.errmsg);
  616. }).then(res => {
  617. uni.hideLoading()
  618. uni.showModal({
  619. title: '提示',
  620. showCancel: false,
  621. content: "发布提交成功,工作人员会尽快联系该号码:" +
  622. that.driverPhone,
  623. confirmText: '确定',
  624. success: () => {
  625. uni.navigateBack()
  626. }
  627. })
  628. // that.$api.prePage().refreshList(data, that.manageType);
  629. })
  630. }
  631. }
  632. }
  633. })
  634. }
  635. }
  636. })
  637. }
  638. }
  639. },
  640. }
  641. </script>
  642. <style scoped>
  643. .center {
  644. padding: 10px 20px;
  645. background-color: #F5F6FA;
  646. }
  647. .region {
  648. background-color: #FFFFFF;
  649. border-radius: 20px;
  650. margin-top: 10px;
  651. }
  652. .zan-dialog__mask {
  653. position: fixed;
  654. top: 0;
  655. left: 0;
  656. right: 0;
  657. bottom: 0;
  658. z-index: 10;
  659. background: rgba(0, 0, 0, 0);
  660. /*设置阴影半透明背景如: background: rgba(0, 0, 0, 0.4);*/
  661. display: none;
  662. }
  663. .zan-dialog__container {
  664. position: fixed;
  665. bottom: 400rpx;
  666. width: 650rpx;
  667. /*弹窗布局宽*/
  668. height: 350rpx;
  669. /*弹窗布局高,与下面弹出距离transform有关*/
  670. margin-left: 50rpx;
  671. background: #f8f8f8;
  672. transform: translateY(300%);
  673. /*弹框弹出距离,与弹框布局高度有关,如300%表示弹起距离为3倍弹窗高度 */
  674. transition: all 0.4s ease;
  675. z-index: 12;
  676. border-radius: 20rpx;
  677. box-shadow: 0px 3px 3px 2px gainsboro;
  678. /*弹框的悬浮阴影效果,如不需要可注释该行*/
  679. }
  680. .zan-dialog--show .zan-dialog__container {
  681. transform: translateY(0);
  682. }
  683. .zan-dialog--show .zan-dialog__mask {
  684. display: block;
  685. }
  686. .container {
  687. padding-bottom: 160rpx;
  688. }
  689. .cu-form-group input {
  690. text-align: right;
  691. }
  692. .text-white text {
  693. background: linear-gradient(45deg, #3DC146, #B2D612);
  694. padding: 5px 10px;
  695. border-radius: 38rpx;
  696. }
  697. .cu-form-group textarea {
  698. text-align: right;
  699. }
  700. .commit {
  701. background: linear-gradient(45deg, #DF331C, #DA611A);
  702. color: #fff;
  703. }
  704. .shade {
  705. position: fixed;
  706. top: 0;
  707. left: 0;
  708. width: 100%;
  709. background: rgba(0, 0, 0, 0.5);
  710. height: 100%;
  711. z-index: 999999;
  712. }
  713. .shade-content {
  714. background: #fff;
  715. position: absolute;
  716. top: 50%;
  717. left: 50%;
  718. border-radius: 20px;
  719. transform: translateX(-50%) translateY(-50%);
  720. z-index: 999999;
  721. text-align: center;
  722. }
  723. .shade-content-item {
  724. width: 277px;
  725. text-align: center;
  726. height: 121px;
  727. padding: 35px 10px;
  728. }
  729. .c-row {
  730. display: -webkit-box;
  731. display: -webkit-flex;
  732. display: flex;
  733. -webkit-box-align: center;
  734. -webkit-align-items: center;
  735. align-items: center;
  736. padding: 20rpx 30rpx;
  737. position: relative;
  738. }
  739. .con-list {
  740. -webkit-box-flex: 1;
  741. -webkit-flex: 1;
  742. flex: 1;
  743. display: -webkit-box;
  744. display: -webkit-flex;
  745. display: flex;
  746. -webkit-box-orient: vertical;
  747. -webkit-box-direction: normal;
  748. -webkit-flex-direction: column;
  749. flex-direction: column;
  750. color: #303133;
  751. line-height: 40rpx;
  752. text-align: right;
  753. padding-right: 20rpx;
  754. font-size: 14px;
  755. }
  756. .forList {
  757. width: 90%;
  758. height: 30px;
  759. margin: 0 auto;
  760. background-color: #F9F9FA;
  761. border-radius: 10px;
  762. }
  763. .forList .title {
  764. line-height: 30px;
  765. margin-left: 25px;
  766. color: #9698A2;
  767. }
  768. .tit {
  769. width: 34px;
  770. height: 24px;
  771. background-color: #E9F8F0;
  772. color: #22C572;
  773. padding: 2px 3px;
  774. border-radius: 5px;
  775. }
  776. .tit1 {
  777. width: 34px;
  778. height: 24px;
  779. background-color: #FEECE6;
  780. color: #FE6430;
  781. padding: 2px 3px;
  782. border-radius: 5px;
  783. }
  784. .tit2 {
  785. width: 34px;
  786. height: 24px;
  787. background-color: #EBEEFA;
  788. color: #5C76DF;
  789. padding: 2px 3px;
  790. border-radius: 5px;
  791. }
  792. .enterprise {
  793. font-size: 16px;
  794. font-weight: 600;
  795. margin-left: 20px;
  796. }
  797. .annius {
  798. width: 70%;
  799. margin-left: 110px;
  800. justify-content: flex-end;
  801. }
  802. .anniu {
  803. width: 50px;
  804. font-size: 16px;
  805. border: 1px solid #CDCDCD;
  806. border-radius: 12px;
  807. position: relative;
  808. margin-right: 10px;
  809. text-align: center;
  810. line-height: 30px;
  811. }
  812. .anniu1 {
  813. width: 50px;
  814. font-size: 16px;
  815. border: 1px solid #22C572;
  816. border-radius: 15px;
  817. color: #22C572;
  818. position: relative;
  819. margin-right: 10px;
  820. text-align: center;
  821. line-height: 30px;
  822. }
  823. .titles {
  824. color: #333333;
  825. font-size: 16px;
  826. font-weight: 600;
  827. margin-top: -16px;
  828. margin-bottom: 10px;
  829. }
  830. .timeslot {
  831. font-size: 14px;
  832. color: #333333;
  833. height: 20px;
  834. }
  835. .cancel {
  836. text-align: center;
  837. width: 100%;
  838. color: #22C572;
  839. border-top: 1px solid #EEEEEE;
  840. margin-bottom: 6px;
  841. font-size: 18px;
  842. line-height: 40px;
  843. display: inline-block;
  844. }
  845. .pointprice {
  846. border-bottom: 1px solid #EEEEEE;
  847. text-align: left;
  848. padding-left: 10px;
  849. width: 70%;
  850. margin: 0 auto;
  851. }
  852. .titles1 {
  853. color: #333333;
  854. font-size: 16px;
  855. font-weight: 600;
  856. margin-top: 10px;
  857. }
  858. .btns {
  859. width: 50%;
  860. line-height: 50px;
  861. font-size: 18px;
  862. border-top: 1px solid #EEEEEE;
  863. margin-top: -20px;
  864. }
  865. .btn1 {
  866. color: #AFB3BF;
  867. border-right: 1px solid #EEEEEE;
  868. }
  869. .btn2 {
  870. color: #22C572;
  871. }
  872. .status {
  873. right: 20px;
  874. position: absolute;
  875. }
  876. .status1 {
  877. color: #FE6430;
  878. }
  879. .status2 {
  880. color: #22C572;
  881. }
  882. .status3 {
  883. color: #AFB3BF;
  884. }
  885. </style>