signContract.vue 19 KB

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