signContract.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850
  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. }else{
  458. uni.$u.toast(res.message);
  459. uni.hideLoading()
  460. }
  461. })
  462. .catch(res => {
  463. uni.$u.toast(res.message);
  464. });
  465. }
  466. )
  467. }
  468. });
  469. },
  470. // change(e){
  471. // if(this.value){
  472. // this.$set(this.dataDetails,'advanceFreightService',1)
  473. // }else{
  474. // this.$set(this.dataDetails,'advanceFreightService',0)
  475. // }
  476. // },
  477. // 笔迹开始
  478. uploadScaleStart(e) {
  479. this.isScaleStart = true
  480. this.startX = e.changedTouches[0].x
  481. this.startY = e.changedTouches[0].y
  482. //设置画笔参数
  483. //画笔颜色
  484. this.ctx.setStrokeStyle(this.lineColor)
  485. //设置线条粗细
  486. this.ctx.setLineWidth(this.lineSize)
  487. //设置线条的结束端点样式
  488. this.ctx.setLineCap("round") //'butt'、'round'、'square'
  489. //开始画笔
  490. this.ctx.beginPath()
  491. },
  492. // 笔迹移动
  493. uploadScaleMove(e) {
  494. //取点
  495. let temX = e.changedTouches[0].x
  496. let temY = e.changedTouches[0].y
  497. //画线条
  498. this.ctx.moveTo(this.startX, this.startY)
  499. this.ctx.lineTo(temX, temY)
  500. this.ctx.stroke()
  501. this.startX = temX
  502. this.startY = temY
  503. this.ctx.draw(true)
  504. },
  505. /**
  506. * 重写
  507. */
  508. retDraw() {
  509. this.ctx.clearRect(0, 0, 700, 730);
  510. this.ctx.draw();
  511. //设置canvas背景
  512. this.setCanvasBg('#fff');
  513. },
  514. /**
  515. * @param {Object} str
  516. * @param {Object} color
  517. * 选择颜色
  518. */
  519. selectColorEvent(str, color) {
  520. this.selectColor = str;
  521. this.lineColor = color;
  522. },
  523. //完成
  524. subCanvas() {
  525. uni.canvasToTempFilePath({
  526. canvasId: 'handWriting',
  527. fileType: 'png',
  528. quality: 1, //图片质量
  529. success(res) {
  530. // console.log(res.tempFilePath, 'canvas生成图片地址');
  531. uni.showToast({
  532. title: '以保存'
  533. });
  534. //保存到系统相册
  535. uni.saveImageToPhotosAlbum({
  536. filePath: res.tempFilePath,
  537. success(res) {
  538. uni.showToast({
  539. title: '已成功保存到相册',
  540. duration: 2000
  541. });
  542. }
  543. });
  544. }
  545. });
  546. },
  547. //保存到相册
  548. saveCanvasAsImg() {
  549. uni.canvasToTempFilePath({
  550. canvasId: 'handWriting',
  551. fileType: 'png',
  552. quality: 1, //图片质量
  553. success(res) {
  554. console.log(res.tempFilePath, 'canvas生成图片地址');
  555. uni.saveImageToPhotosAlbum({
  556. filePath: res.tempFilePath,
  557. success(res) {
  558. uni.showToast({
  559. title: '已保存到相册',
  560. duration: 2000
  561. });
  562. }
  563. });
  564. }
  565. });
  566. },
  567. //预览
  568. previewCanvasImg() {
  569. uni.canvasToTempFilePath({
  570. canvasId: 'handWriting',
  571. fileType: 'jpg',
  572. quality: 1, //图片质量
  573. success(res) {
  574. uni.previewImage({
  575. urls: [res.tempFilePath] //预览图片 数组
  576. });
  577. }
  578. });
  579. },
  580. //设置canvas背景色 不设置 导出的canvas的背景为透明
  581. //@params:字符串 color
  582. setCanvasBg(color) {
  583. /* 将canvas背景设置为 白底,不设置 导出的canvas的背景为透明 */
  584. //rect() 参数说明 矩形路径左上角的横坐标,左上角的纵坐标, 矩形路径的宽度, 矩形路径的高度
  585. //这里是 canvasHeight - 4 是因为下边盖住边框了,所以手动减了写
  586. this.ctx.rect(0, 0, this.canvasWidth, this.canvasHeight - 4);
  587. // ctx.setFillStyle('red')
  588. this.ctx.setFillStyle(color);
  589. this.ctx.fill(); //设置填充
  590. this.ctx.draw(); //开画
  591. }
  592. }
  593. };
  594. </script>
  595. <style lang="scss" scoped>
  596. page {
  597. background: #fbfbfb;
  598. height: auto;
  599. }
  600. .content1 {
  601. background: white;
  602. border-radius: 20rpx;
  603. margin: 20rpx;
  604. padding: 30rpx 20rpx;
  605. display: flex;
  606. justify-content: space-between;
  607. .right {
  608. display: flex;
  609. }
  610. }
  611. .content2 {
  612. background: white;
  613. border-radius: 20rpx;
  614. margin: 20rpx;
  615. padding: 30rpx 20rpx;
  616. .title {
  617. font-size: 36rpx;
  618. font-weight: 700;
  619. margin-bottom: 20rpx;
  620. width: 50%;
  621. }
  622. .preview{
  623. width: 50%;
  624. text-align: right;
  625. color: #2772FB;
  626. font-size: 26rpx;
  627. }
  628. .row-between {
  629. margin-bottom: 20rpx;
  630. }
  631. .left-text {
  632. margin-right: 20rpx;
  633. }
  634. .yf-input {
  635. padding-right: 10rpx;
  636. }
  637. }
  638. .content3 {
  639. background: white;
  640. border-radius: 20rpx;
  641. margin: 20rpx;
  642. padding: 30rpx 20rpx;
  643. }
  644. .place {
  645. width: 80%;
  646. text-align: right;
  647. }
  648. .handCenter {
  649. border: 4rpx dashed #e9e9e9;
  650. overflow: hidden;
  651. box-sizing: border-box;
  652. height: 500rpx;
  653. }
  654. .handWriting {
  655. background: #F9F9FB;
  656. width: 100%;
  657. height: 100%;
  658. }
  659. .handRight {
  660. display: inline-flex;
  661. align-items: center;
  662. }
  663. .handCenter {
  664. border: 4rpx dashed #e9e9e9;
  665. flex: 5;
  666. overflow: hidden;
  667. box-sizing: border-box;
  668. }
  669. .handTitle {
  670. font-size: 36rpx;
  671. color: #666;
  672. font-weight: 700;
  673. color: #333333;
  674. margin-bottom: 20rpx;
  675. }
  676. .retDraw-image {
  677. width: 50rpx;
  678. }
  679. .qm-row {
  680. display: flex;
  681. justify-content: space-between;
  682. }
  683. .saveBtn {
  684. width: 80%;
  685. background: #2772FB;
  686. color: white;
  687. text-align: center;
  688. border-radius: 50rpx;
  689. padding: 20rpx;
  690. }
  691. .handBtn {
  692. display: flex;
  693. justify-content: center;
  694. }
  695. /*
  696. .wrapper {
  697. width: 100%;
  698. height: 95vh;
  699. margin: 30rpx 0;
  700. overflow: hidden;
  701. display: flex;
  702. align-content: center;
  703. flex-direction: row;
  704. justify-content: center;
  705. font-size: 28rpx;
  706. }
  707. .handBtn button {
  708. font-size: 28rpx;
  709. }
  710. .handBtn {
  711. height: 95vh;
  712. display: inline-flex;
  713. flex-direction: column;
  714. justify-content: space-between;
  715. align-content: space-between;
  716. flex: 1;
  717. }
  718. .delBtn {
  719. position: absolute;
  720. top: 250rpx;
  721. left: 0rpx;
  722. transform: rotate(90deg);
  723. color: #666;
  724. }
  725. .delBtn image {
  726. position: absolute;
  727. top: 13rpx;
  728. left: 25rpx;
  729. }
  730. .subBtn {
  731. position: absolute;
  732. bottom: 52rpx;
  733. left: -3rpx;
  734. display: inline-flex;
  735. transform: rotate(90deg);
  736. background: #008ef6;
  737. color: #fff;
  738. margin-bottom: 30rpx;
  739. text-align: center;
  740. justify-content: center;
  741. }
  742. .saveBtn {
  743. position: absolute;
  744. top: 375rpx;
  745. left: 0rpx;
  746. transform: rotate(90deg);
  747. color: #666;
  748. }
  749. .previewBtn {
  750. position: absolute;
  751. top: 500rpx;
  752. left: 0rpx;
  753. transform: rotate(90deg);
  754. color: #666;
  755. }
  756. .uploadBtn {
  757. position: absolute;
  758. top: 625rpx;
  759. left: 0rpx;
  760. transform: rotate(90deg);
  761. color: #666;
  762. }
  763. .black-select {
  764. width: 60rpx;
  765. height: 60rpx;
  766. position: absolute;
  767. top: 30rpx;
  768. left: 25rpx;
  769. }
  770. .black-select.color_select {
  771. width: 90rpx;
  772. height: 90rpx;
  773. top: 100rpx;
  774. left: 10rpx;
  775. }
  776. .red-select {
  777. width: 60rpx;
  778. height: 60rpx;
  779. position: absolute;
  780. top: 140rpx;
  781. left: 25rpx;
  782. }
  783. .red-select.color_select {
  784. width: 90rpx;
  785. height: 90rpx;
  786. top: 120rpx;
  787. left: 10rpx;
  788. } */
  789. </style>