signContract.vue 21 KB

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