signContract.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847
  1. <template>
  2. <view class="content">
  3. <!-- <view class="content1">
  4. <view style='width:70px'>付款方式</view>
  5. <u-radio-group v-model="dataDetails.advanceFreightService" placement="row">
  6. <u-radio :customStyle="radioCustomStyle" v-for="(item, index) in radiolist1" :key="index"
  7. :label="item.name" :name="item.name" @change="radioChange">
  8. </u-radio>
  9. </u-radio-group>
  10. </view> -->
  11. <view class="content2">
  12. <view class="flex">
  13. <view class="title">合同摘要</view>
  14. <view class="preview" @click="submit(1)">预览合同</view>
  15. </view>
  16. <view class='row-between'>
  17. <view class="gray">发货单位</view>
  18. <view class="">{{dataDetails.compName?dataDetails.compName:'个人货主'}}</view>
  19. </view>
  20. <view class='row-between'>
  21. <view class="gray">发货地</view>
  22. <view class="place">
  23. {{dataDetails.sendPrivate}}{{dataDetails.sendCity}}{{dataDetails.sendArea}}{{dataDetails.sendDetailedAddress}}
  24. </view>
  25. </view>
  26. <view class='row-between'>
  27. <view class="gray">卸货地</view>
  28. <view class=" place">
  29. {{dataDetails.unloadPrivate}}{{dataDetails.unloadCity}}{{dataDetails.unloadArea}}{{dataDetails.unloadDetailedAddress}}
  30. </view>
  31. </view>
  32. <view class='row-between'>
  33. <view class="gray">货名</view>
  34. <view class="">{{dataDetails.goodsName}}</view>
  35. </view>
  36. <view class='row-between'>
  37. <view class="gray">距离</view>
  38. <view class="">约{{dataDetails.distance}}公里</view>
  39. </view>
  40. <view class='row-between'>
  41. <!-- 后加 -->
  42. <view class="gray">服务费(元)</view>
  43. <view class="">{{dataDetails.serviceCharge}}</view>
  44. </view>
  45. <view class="title">
  46. 完善信息
  47. </view>
  48. <view class='row-between'>
  49. <view class="gray">运费(元/车)</view>
  50. <!-- <view class="">{{dataDetails.freight}}{{dataDetails.illingMethod==0?'元/吨':'元/车'}}</view> -->
  51. <!-- <view class="flex"><input type="text" placeholder="请输入运费" v-model="dataDetails.freight"
  52. class="text-align-right yf-input">{{dataDetails.freight}}元/车</view> -->
  53. <view class="flex">
  54. <u--input placeholder="请输入运费" border="none" type="number" v-model="dataDetails.freight"
  55. inputAlign='right' clearable></u--input>
  56. <!-- <span> 元/车</span> -->
  57. </view>
  58. </view>
  59. <view class='row-between'>
  60. <view class="gray">车牌号</view>
  61. <view class="" style="color:#BBBBBB;" @click="carClick">
  62. {{dataDetails.carrierInfo.carNo?dataDetails.carrierInfo.carNo:'请选择车牌号'}}
  63. </view>
  64. <!-- <view class="flex">
  65. <input class="" v-model='dataDetails.carrierInfo.carNo' @click.stop="handleShowKeyboard"
  66. :disabled="true" placeholder="输入车牌号" name="input" style="text-align: right;"></input>
  67. </view> -->
  68. </view>
  69. <view class='row-between'>
  70. <view class="gray">挂车号(选填)</view>
  71. <view class="flex">
  72. <u--input placeholder="请输入挂车号" border="none" disabled v-model="dataDetails.trailerNumber"
  73. inputAlign='right' clearable></u--input>
  74. </view>
  75. </view>
  76. <view class='row-between'>
  77. <view class="gray">装车净重</view>
  78. <view class="flex">
  79. <u--input placeholder="请输入装车净重" border="none" v-model="dataDetails.weight" inputAlign='right'
  80. clearable></u--input>
  81. </view>
  82. </view>
  83. <view class='row-between'>
  84. <view class="gray">运输开始日期</view>
  85. <view class="">
  86. <view @click="dateShow">{{dataDetails.startDates?dataDetails.startDates:'请选择运输开始日期'}}
  87. </view>
  88. <u-calendar :show="startShow" mode="single" @confirm="startDate" @close="startShow= false">
  89. </u-calendar>
  90. </view>
  91. </view>
  92. <view class='row-between'>
  93. <view class="gray">运输截止日期</view>
  94. <view class="">
  95. <!-- <u--input placeholder="请输入内容" border="none" v-model="dataDetails.value" inputAlign='right'
  96. clearable></u--input> -->
  97. <view class="" @click="endShow = true">{{dataDetails.endDates?dataDetails.endDates:'请选择运输截止日期'}}
  98. </view>
  99. <u-calendar :show="endShow" mode="single" @confirm="endDate" @close="endShow= false"></u-calendar>
  100. </view>
  101. </view>
  102. <view class='row-between'>
  103. <view class="gray">联络人姓名</view>
  104. <view class="">
  105. <u--input placeholder="请输入联络人姓名" border="none" v-model="dataDetails.driverName" inputAlign='right'
  106. clearable></u--input>
  107. </view>
  108. </view>
  109. <view class='row-between'>
  110. <view class="gray">联络人电话</view>
  111. <view class="">
  112. <u--input placeholder="请输入联络人电话" border="none" type="number" maxlength="11"
  113. v-model="dataDetails.driverPhone" inputAlign='right' clearable></u--input>
  114. </view>
  115. </view>
  116. <view class='row-between'>
  117. <view class="gray">装车后预付款</view>
  118. <view class="">
  119. <u--input placeholder="请输入装车后预付款" v-if="dataDetails.freightAdvance == 1" border="none"
  120. v-model="dataDetails.loadingAdvancePayment" inputAlign='right' clearable disabled></u--input>
  121. <u--input placeholder="请输入装车后预付款" v-else border="none" v-model="dataDetails.loadingAdvancePayment"
  122. inputAlign='right' clearable></u--input>
  123. </view>
  124. </view>
  125. <view class='row-between'>
  126. <view class="gray">收款账户</view>
  127. <view class="" @click="collection">
  128. {{dataDetails.bankDeposit?dataDetails.bankDeposit:"请选择收款账户"}}
  129. {{dataDetails.bankCard?dataDetails.bankCard.substring(dataDetails.bankCard.length - 4):""}}
  130. </view>
  131. </view>
  132. </view>
  133. <view class="wrapper content3">
  134. <view class="qm-row">
  135. <view class="handTitle">手写签名</view>
  136. <image src="@/static/xiangpica@2x.png" mode="widthFix" @click="retDraw" class="retDraw-image"></image>
  137. <!-- <button @click="retDraw" class="delBtn">重写</button> -->
  138. </view>
  139. <view class="handCenter">
  140. <canvas class="handWriting" :disable-scroll="true" @touchstart="uploadScaleStart"
  141. @touchmove="uploadScaleMove" canvas-id="handWriting"></canvas>
  142. </view>
  143. <view class="handRight">
  144. </view>
  145. <view class="handBtn">
  146. <!-- <image @click="selectColorEvent('black','#1A1A1A')"
  147. :src="selectColor === 'black' ? '/static/other/color_black_selected.png' : '/static/other/color_black.png'"
  148. :class="[selectColor === 'black' ? 'color_select' : '', 'black-select']"></image>
  149. <image @click="selectColorEvent('red','#ca262a')"
  150. :src="selectColor === 'red' ? '/static/other/color_red_selected.png' : '/static/other/color_red.png'"
  151. :class="[selectColor === 'red' ? 'color_select' : '', 'black-select']"></image> -->
  152. <!-- <button @click="saveCanvasAsImg" class="saveBtn">保存</button> -->
  153. <view @click="submit" class="saveBtn">提交</view>
  154. <!-- <button @click="previewCanvasImg" class="previewBtn">预览</button> -->
  155. <!-- <button @click="subCanvas" class="subBtn">完成</button> -->
  156. </view>
  157. </view>
  158. <u-picker :show="showCarList" :columns="carList" :closeOnClickOverlay='true' @close='selectTypeClose'
  159. @cancel='selectTypeClose' @confirm='confirmBtn'></u-picker>
  160. <master-keyboard ref="keyboard" keyboardtype="car" :show="keyShow" :randomNumber="true" :newCar="false"
  161. :defaultValue="carNumber" @keyboardClick="handleClick"></master-keyboard>
  162. <u-toast ref="uToast"></u-toast>
  163. <u-toast ref="uToast"></u-toast>
  164. </view>
  165. </template>
  166. <script>
  167. import {
  168. mapState
  169. } from 'vuex';
  170. var that;
  171. import uploadImage from '@/components/ossutil/uploadFile.js';
  172. export default {
  173. data() {
  174. return {
  175. showCarList: false,
  176. carList: [],
  177. carlistCopy: [],
  178. keyShow: false,
  179. carNumber: '',
  180. isScaleStart: false,
  181. radioCustomStyle: {
  182. margin: '0 0 0 10rpx'
  183. },
  184. canvasName: 'handWriting',
  185. ctx: "",
  186. startX: null,
  187. startY: null,
  188. canvasWidth: 0,
  189. canvasHeight: 0,
  190. selectColor: 'black',
  191. lineColor: '#1A1A1A', // 颜色
  192. lineSize: 5, // 笔记倍数
  193. value: true,
  194. dataDetails: {
  195. carrierInfo: {},
  196. serviceCharge:'50'
  197. },
  198. radiolist1: [{
  199. name: '平台垫付运费',
  200. disabled: false
  201. },
  202. {
  203. name: '无需平台垫付运费',
  204. disabled: false
  205. },
  206. ],
  207. startShow: false,
  208. endShow: false,
  209. contractCheck:false,//判断合同是否提交
  210. };
  211. },
  212. computed: {
  213. ...mapState(['hasLogin', 'userInfo', 'firstAuthentication']),
  214. },
  215. onShow() {
  216. let payInfo = uni.getStorageSync("payInfo")
  217. if (payInfo) {
  218. this.dataDetails.bankCard = payInfo.bankCard
  219. this.dataDetails.bankDeposit = payInfo.bankDeposit
  220. this.dataDetails.bankDepositBranch = payInfo.bankDepositBranch
  221. this.dataDetails.payeeName = payInfo.payeeName
  222. } else {
  223. this.$request.baseRequest('get', '/driverPayeeInfo/getDriverPayee', {
  224. commonId: that.firstAuthentication.commonId
  225. }).then(res => {
  226. if(res.data){
  227. this.dataDetails.bankCard = res.data.bankCard
  228. this.dataDetails.bankDeposit = res.data.bankDeposit
  229. this.dataDetails.bankDepositBranch = res.data.bankDepositBranch
  230. this.dataDetails.payeeName = res.data.payeeName
  231. }
  232. })
  233. }
  234. },
  235. onLoad(options) {
  236. this.carList = []
  237. that = this
  238. // this.dataDetails = JSON.parse(options.obj)
  239. this.dataDetails = JSON.parse(decodeURIComponent(options.obj))
  240. // this.dataDetails.advanceFreightService = '平台垫付运费'
  241. this.dataDetails.carrierInfo = {}
  242. this.ctx = uni.createCanvasContext("handWriting");
  243. this.$nextTick(() => {
  244. uni.createSelectorQuery().select('.handCenter').boundingClientRect(rect => {
  245. this.canvasWidth = rect.width;
  246. this.canvasHeight = rect.height;
  247. /* 将canvas背景设置为 白底,不设置 导出的canvas的背景为透明 */
  248. this.setCanvasBg('#fff');
  249. })
  250. .exec();
  251. });
  252. uni.showLoading({
  253. title: '加载中'
  254. })
  255. this.$request.baseRequest('get', '/driverCarInfo/selectDriverCar', {
  256. // driverId: that.userInfo.driverId,
  257. commonId:this.userInfo.id
  258. }).then(res => {
  259. if (res.code == '200') {
  260. uni.hideLoading()
  261. if (res.data.length > 0) {
  262. let _list = []
  263. for (let i = 0; i < res.data.length; i++) {
  264. if (res.data[i].status == '已通过') {
  265. _list.push(res.data[i].carNumber)
  266. }
  267. }
  268. that.carlistCopy = res.data
  269. that.carList = [_list]
  270. }
  271. } else {
  272. uni.$u.toast(res.message);
  273. }
  274. })
  275. .catch(res => {
  276. uni.$u.toast(res.message);
  277. });
  278. },
  279. methods: {
  280. collection() {
  281. uni.$u.route('/pages/order/bankCard');
  282. },
  283. confirmBtn(e) {
  284. this.dataDetails.carrierInfo.carNo = e.value[0]
  285. for (let i = 0; i < this.carlistCopy.length; i++) {
  286. if (e.value[0] == this.carlistCopy[i].carNumber) {
  287. this.dataDetails.trailerNumber = this.carlistCopy[i].guaCarNumber
  288. }
  289. }
  290. this.showCarList = false
  291. },
  292. selectTypeClose() {
  293. this.showCarList = false
  294. },
  295. carClick() {
  296. this.showCarList = true
  297. },
  298. //车牌号弹出键盘
  299. handleShowKeyboard() {
  300. if (!this.dataDetails.carrierInfo.carNo) {
  301. this.carNumber = ''
  302. } else {
  303. this.carNumber = this.dataDetails.carrierInfo.carNo
  304. }
  305. if (this.$refs.keyboard.open) {
  306. this.$refs.keyboard.open(false) //true 键盘显示 false 键盘隐藏
  307. } else {
  308. this.$refs.keyboard[0].open(false)
  309. }
  310. if (this.$refs.keyboard.open) {
  311. this.$refs.keyboard.open(true) //true 键盘显示 false 键盘隐藏
  312. } else {
  313. this.$refs.keyboard[0].open(true)
  314. }
  315. },
  316. //车牌号弹出键盘
  317. handleClick(e) {
  318. this.carNumber = e.value
  319. this.dataDetails.carrierInfo.carNo = e.value //键盘输入值
  320. },
  321. dateShow() {
  322. this.startShow = true
  323. },
  324. removeStart() {
  325. this.startShow = false
  326. },
  327. removeEnd() {
  328. this.endShow = false
  329. },
  330. startDate(e) {
  331. this.startShow = false
  332. this.dataDetails.startDates = e[0]
  333. },
  334. endDate(e) {
  335. this.dataDetails.endDates = e[0]
  336. this.endShow = false
  337. },
  338. submit(num) {
  339. let _obj = {}
  340. if(num == 1){//预览合同
  341. _obj.submitFlag = 1
  342. this.contractCheck = false
  343. }else{//提交合同
  344. this.contractCheck = true
  345. _obj.submitFlag = 2
  346. }
  347. if (!that.isScaleStart) {
  348. that.$refs.uToast.show({
  349. type: 'error',
  350. message: "手写签名不能为空!",
  351. })
  352. return
  353. }
  354. if (uni.$u.test.isEmpty(that.dataDetails.freight)) {
  355. that.$refs.uToast.show({
  356. type: 'error',
  357. message: "运费不能为空!",
  358. })
  359. return
  360. }
  361. if (uni.$u.test.isEmpty(that.dataDetails.startDates)) {
  362. that.$refs.uToast.show({
  363. type: 'error',
  364. message: "运输起始日期不能为空!",
  365. })
  366. return
  367. }
  368. if (uni.$u.test.isEmpty(that.dataDetails.endDates)) {
  369. that.$refs.uToast.show({
  370. type: 'error',
  371. message: "运输截止日期不能为空!",
  372. })
  373. return
  374. }
  375. if (uni.$u.test.isEmpty(that.dataDetails.driverName)) {
  376. that.$refs.uToast.show({
  377. type: 'error',
  378. message: "联络人姓名不能为空!",
  379. })
  380. return
  381. }
  382. if (uni.$u.test.isEmpty(that.dataDetails.driverPhone)) {
  383. that.$refs.uToast.show({
  384. type: 'error',
  385. message: "联络人电话不能为空!",
  386. })
  387. return
  388. }
  389. if (uni.$u.test.isEmpty(that.dataDetails.loadingAdvancePayment)) {
  390. that.$refs.uToast.show({
  391. type: 'error',
  392. message: "装车后预付款不能为空!",
  393. })
  394. return
  395. }
  396. _obj.trailerNumber = that.dataDetails.trailerNumber
  397. _obj.startDates = that.dataDetails.startDates
  398. _obj.endDates = that.dataDetails.endDates
  399. _obj.contactPersonName = that.dataDetails.driverName
  400. _obj.contactPersonPhone = that.dataDetails.driverPhone
  401. _obj.freightCars = that.dataDetails.freight
  402. // _obj.advanceCharge = that.dataDetails.advanceCharge
  403. _obj.id = that.dataDetails.id
  404. _obj.carNumber = that.dataDetails.carrierInfo.carNo
  405. _obj.weight = that.dataDetails.weight
  406. _obj.loadingAdvancePayment = that.dataDetails.loadingAdvancePayment
  407. _obj.typeFlag = 2
  408. uni.canvasToTempFilePath({
  409. canvasId: 'handWriting',
  410. fileType: 'png',
  411. quality: 1, //图片质量
  412. success(res) {
  413. uploadImage('image', res.tempFilePath, 'appData/',
  414. result => {
  415. // 上传成功
  416. that.dataDetails.cargoOwnerAutograph = result
  417. _obj.driverAutograph = result
  418. uni.showLoading({
  419. title: '加载中',
  420. mask: true
  421. })
  422. that.$request.baseRequest('get', '/orderInfo/setPdf', _obj).then(
  423. res => {
  424. if (res.code == 200) {
  425. uni.hideLoading()
  426. that.contractSrc = res.data
  427. uni.downloadFile({
  428. url: res.data,
  429. success: function(res) {
  430. var filePath = res.tempFilePath;
  431. uni.openDocument({
  432. filePath: filePath,
  433. showMenu: true,
  434. success: function(res) {
  435. console.log('打开文档成功');
  436. }
  437. });
  438. }
  439. });
  440. if(that.contractCheck){//提交
  441. that.$refs.uToast.show({
  442. type: 'success',
  443. message: "提交成功",
  444. complete() {
  445. uni.removeStorageSync("payInfo") //如果要有银行卡缓存就删除
  446. uni.$u.route('/pages/order/confirmLoading', {
  447. obj: JSON.stringify(that
  448. .dataDetails),
  449. });
  450. // that.upCallback({
  451. // size: 10,
  452. // num: 1
  453. // })
  454. }
  455. })
  456. }
  457. }
  458. })
  459. .catch(res => {
  460. uni.$u.toast(res.message);
  461. });
  462. }
  463. )
  464. }
  465. });
  466. },
  467. // change(e){
  468. // if(this.value){
  469. // this.$set(this.dataDetails,'advanceFreightService',1)
  470. // }else{
  471. // this.$set(this.dataDetails,'advanceFreightService',0)
  472. // }
  473. // },
  474. // 笔迹开始
  475. uploadScaleStart(e) {
  476. this.isScaleStart = true
  477. this.startX = e.changedTouches[0].x
  478. this.startY = e.changedTouches[0].y
  479. //设置画笔参数
  480. //画笔颜色
  481. this.ctx.setStrokeStyle(this.lineColor)
  482. //设置线条粗细
  483. this.ctx.setLineWidth(this.lineSize)
  484. //设置线条的结束端点样式
  485. this.ctx.setLineCap("round") //'butt'、'round'、'square'
  486. //开始画笔
  487. this.ctx.beginPath()
  488. },
  489. // 笔迹移动
  490. uploadScaleMove(e) {
  491. //取点
  492. let temX = e.changedTouches[0].x
  493. let temY = e.changedTouches[0].y
  494. //画线条
  495. this.ctx.moveTo(this.startX, this.startY)
  496. this.ctx.lineTo(temX, temY)
  497. this.ctx.stroke()
  498. this.startX = temX
  499. this.startY = temY
  500. this.ctx.draw(true)
  501. },
  502. /**
  503. * 重写
  504. */
  505. retDraw() {
  506. this.ctx.clearRect(0, 0, 700, 730);
  507. this.ctx.draw();
  508. //设置canvas背景
  509. this.setCanvasBg('#fff');
  510. },
  511. /**
  512. * @param {Object} str
  513. * @param {Object} color
  514. * 选择颜色
  515. */
  516. selectColorEvent(str, color) {
  517. this.selectColor = str;
  518. this.lineColor = color;
  519. },
  520. //完成
  521. subCanvas() {
  522. uni.canvasToTempFilePath({
  523. canvasId: 'handWriting',
  524. fileType: 'png',
  525. quality: 1, //图片质量
  526. success(res) {
  527. // console.log(res.tempFilePath, 'canvas生成图片地址');
  528. uni.showToast({
  529. title: '以保存'
  530. });
  531. //保存到系统相册
  532. uni.saveImageToPhotosAlbum({
  533. filePath: res.tempFilePath,
  534. success(res) {
  535. uni.showToast({
  536. title: '已成功保存到相册',
  537. duration: 2000
  538. });
  539. }
  540. });
  541. }
  542. });
  543. },
  544. //保存到相册
  545. saveCanvasAsImg() {
  546. uni.canvasToTempFilePath({
  547. canvasId: 'handWriting',
  548. fileType: 'png',
  549. quality: 1, //图片质量
  550. success(res) {
  551. console.log(res.tempFilePath, 'canvas生成图片地址');
  552. uni.saveImageToPhotosAlbum({
  553. filePath: res.tempFilePath,
  554. success(res) {
  555. uni.showToast({
  556. title: '已保存到相册',
  557. duration: 2000
  558. });
  559. }
  560. });
  561. }
  562. });
  563. },
  564. //预览
  565. previewCanvasImg() {
  566. uni.canvasToTempFilePath({
  567. canvasId: 'handWriting',
  568. fileType: 'jpg',
  569. quality: 1, //图片质量
  570. success(res) {
  571. uni.previewImage({
  572. urls: [res.tempFilePath] //预览图片 数组
  573. });
  574. }
  575. });
  576. },
  577. //设置canvas背景色 不设置 导出的canvas的背景为透明
  578. //@params:字符串 color
  579. setCanvasBg(color) {
  580. /* 将canvas背景设置为 白底,不设置 导出的canvas的背景为透明 */
  581. //rect() 参数说明 矩形路径左上角的横坐标,左上角的纵坐标, 矩形路径的宽度, 矩形路径的高度
  582. //这里是 canvasHeight - 4 是因为下边盖住边框了,所以手动减了写
  583. this.ctx.rect(0, 0, this.canvasWidth, this.canvasHeight - 4);
  584. // ctx.setFillStyle('red')
  585. this.ctx.setFillStyle(color);
  586. this.ctx.fill(); //设置填充
  587. this.ctx.draw(); //开画
  588. }
  589. }
  590. };
  591. </script>
  592. <style lang="scss" scoped>
  593. page {
  594. background: #fbfbfb;
  595. height: auto;
  596. }
  597. .content1 {
  598. background: white;
  599. border-radius: 20rpx;
  600. margin: 20rpx;
  601. padding: 30rpx 20rpx;
  602. display: flex;
  603. justify-content: space-between;
  604. .right {
  605. display: flex;
  606. }
  607. }
  608. .content2 {
  609. background: white;
  610. border-radius: 20rpx;
  611. margin: 20rpx;
  612. padding: 30rpx 20rpx;
  613. .title {
  614. font-size: 36rpx;
  615. font-weight: 700;
  616. margin-bottom: 20rpx;
  617. width: 50%;
  618. }
  619. .preview{
  620. width: 50%;
  621. text-align: right;
  622. color: #2772FB;
  623. font-size: 26rpx;
  624. }
  625. .row-between {
  626. margin-bottom: 20rpx;
  627. }
  628. .left-text {
  629. margin-right: 20rpx;
  630. }
  631. .yf-input {
  632. padding-right: 10rpx;
  633. }
  634. }
  635. .content3 {
  636. background: white;
  637. border-radius: 20rpx;
  638. margin: 20rpx;
  639. padding: 30rpx 20rpx;
  640. }
  641. .place {
  642. width: 80%;
  643. text-align: right;
  644. }
  645. .handCenter {
  646. border: 4rpx dashed #e9e9e9;
  647. overflow: hidden;
  648. box-sizing: border-box;
  649. height: 500rpx;
  650. }
  651. .handWriting {
  652. background: #F9F9FB;
  653. width: 100%;
  654. height: 100%;
  655. }
  656. .handRight {
  657. display: inline-flex;
  658. align-items: center;
  659. }
  660. .handCenter {
  661. border: 4rpx dashed #e9e9e9;
  662. flex: 5;
  663. overflow: hidden;
  664. box-sizing: border-box;
  665. }
  666. .handTitle {
  667. font-size: 36rpx;
  668. color: #666;
  669. font-weight: 700;
  670. color: #333333;
  671. margin-bottom: 20rpx;
  672. }
  673. .retDraw-image {
  674. width: 50rpx;
  675. }
  676. .qm-row {
  677. display: flex;
  678. justify-content: space-between;
  679. }
  680. .saveBtn {
  681. width: 80%;
  682. background: #2772FB;
  683. color: white;
  684. text-align: center;
  685. border-radius: 50rpx;
  686. padding: 20rpx;
  687. }
  688. .handBtn {
  689. display: flex;
  690. justify-content: center;
  691. }
  692. /*
  693. .wrapper {
  694. width: 100%;
  695. height: 95vh;
  696. margin: 30rpx 0;
  697. overflow: hidden;
  698. display: flex;
  699. align-content: center;
  700. flex-direction: row;
  701. justify-content: center;
  702. font-size: 28rpx;
  703. }
  704. .handBtn button {
  705. font-size: 28rpx;
  706. }
  707. .handBtn {
  708. height: 95vh;
  709. display: inline-flex;
  710. flex-direction: column;
  711. justify-content: space-between;
  712. align-content: space-between;
  713. flex: 1;
  714. }
  715. .delBtn {
  716. position: absolute;
  717. top: 250rpx;
  718. left: 0rpx;
  719. transform: rotate(90deg);
  720. color: #666;
  721. }
  722. .delBtn image {
  723. position: absolute;
  724. top: 13rpx;
  725. left: 25rpx;
  726. }
  727. .subBtn {
  728. position: absolute;
  729. bottom: 52rpx;
  730. left: -3rpx;
  731. display: inline-flex;
  732. transform: rotate(90deg);
  733. background: #008ef6;
  734. color: #fff;
  735. margin-bottom: 30rpx;
  736. text-align: center;
  737. justify-content: center;
  738. }
  739. .saveBtn {
  740. position: absolute;
  741. top: 375rpx;
  742. left: 0rpx;
  743. transform: rotate(90deg);
  744. color: #666;
  745. }
  746. .previewBtn {
  747. position: absolute;
  748. top: 500rpx;
  749. left: 0rpx;
  750. transform: rotate(90deg);
  751. color: #666;
  752. }
  753. .uploadBtn {
  754. position: absolute;
  755. top: 625rpx;
  756. left: 0rpx;
  757. transform: rotate(90deg);
  758. color: #666;
  759. }
  760. .black-select {
  761. width: 60rpx;
  762. height: 60rpx;
  763. position: absolute;
  764. top: 30rpx;
  765. left: 25rpx;
  766. }
  767. .black-select.color_select {
  768. width: 90rpx;
  769. height: 90rpx;
  770. top: 100rpx;
  771. left: 10rpx;
  772. }
  773. .red-select {
  774. width: 60rpx;
  775. height: 60rpx;
  776. position: absolute;
  777. top: 140rpx;
  778. left: 25rpx;
  779. }
  780. .red-select.color_select {
  781. width: 90rpx;
  782. height: 90rpx;
  783. top: 120rpx;
  784. left: 10rpx;
  785. } */
  786. </style>