task_arrive.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849
  1. <template>
  2. <view class="container">
  3. <view class="detail-desc">
  4. <view class="d-header">
  5. <text>派车单</text>
  6. </view>
  7. <view class="c-list">
  8. <view class="c-row b-b">
  9. <text class="tit">出发地</text>
  10. <view class="con-list">
  11. <text>{{carInfo.startPlace}}</text>
  12. </view>
  13. </view>
  14. <view class="c-row b-b">
  15. <text class="tit">目的地</text>
  16. <view class="con-list">
  17. <text>{{carInfo.endPlace}}</text>
  18. </view>
  19. </view>
  20. <view class="c-row b-b">
  21. <text class="tit">任务量</text>
  22. <view class="con-list">
  23. <text>{{numFilter(carInfo.num)}}</text>
  24. </view>
  25. </view>
  26. <view class="c-row b-b">
  27. <text class="tit">已发运量</text>
  28. <view class="con-list">
  29. <text>{{numFilter(carInfo.tranCount)}}</text>
  30. </view>
  31. </view>
  32. <view class="c-row b-b">
  33. <text class="tit">货名</text>
  34. <view class="con-list">
  35. <text>{{carInfo.goodsName}}</text>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="d-header">
  40. <text>发运数据</text>
  41. </view>
  42. <view class="c-list">
  43. <view class="c-row b-b">
  44. <text class="tit">下线费(元/吨)</text>
  45. <view class="con-list">
  46. <input placeholder="请填写下线费" name="input" v-model="offFee" @input="priceInput"></input>
  47. </view>
  48. </view>
  49. <view class="c-row b-b">
  50. <text class="tit">下线杂费(元/吨)</text>
  51. <view class="con-list">
  52. <input placeholder="请填写下线杂费" name="input" v-model="offOtherFee" @input="otherPriceInput"></input>
  53. </view>
  54. </view>
  55. <view class="c-row b-b">
  56. <text class="tit">车皮号</text>
  57. <view class="con-list">
  58. <input placeholder="请填写车皮号" name="input" v-model="carSkinNo" @input="carNoInput"></input>
  59. </view>
  60. </view>
  61. <view class="c-row b-b">
  62. <text class="tit">箱号</text>
  63. <view class="con-list">
  64. <input placeholder="请填写箱号" name="input" v-model="boxNo" @input="boxNoInput"></input>
  65. </view>
  66. </view>
  67. <view class="c-row b-b">
  68. <text class="tit">汽车号</text>
  69. <view class="con-list">
  70. <text>{{inPersonName}}</text>
  71. </view>
  72. <button class='cu-btn bg-green shadow' @click="selectPerson">选择汽车号</button>
  73. </view>
  74. <view>
  75. <view class='carwrap' v-for='(item,index) in carlist'>
  76. <text>{{item.carNo}}</text>
  77. <input class='trancount' type="text" v-model="item.count" name="input" @input="carInput(item,$event)">
  78. </view>
  79. </view>
  80. <view class="c-row b-b">
  81. <text class="tit">净重</text>
  82. <view class="con-list">
  83. <text>{{numFilter(suttleWeight)}}</text>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="cu-modal" :class="modalName=='workModal'?'show':''" @tap="hideModal">
  89. <scroll-view scroll-y class="cu-dialog" :style="userStyle" @tap.stop="">
  90. <view class="cu-list menu text-center" >
  91. <view class="cu-item" v-for="(item,index) in userList" :key="index" @click="nextPerson(item.id)">
  92. <label class="flex justify-between align-center flex-sub">
  93. <view class="flex-sub">{{item.userName}}</view>
  94. </label>
  95. </view>
  96. </view>
  97. </scroll-view>
  98. </view>
  99. <view class="cu-modal" :class="modalfieldName=='workModal'?'show':''" @tap="hideModal">
  100. <scroll-view scroll-y class="cu-dialog" :style="userStyle" @tap.stop="">
  101. <view class="cu-list menu text-center" >
  102. <view class="cu-item" v-for="(item,index) in fieldList" :key="index" @click="nextPerson2(item.id)">
  103. <label class="flex justify-between align-center flex-sub">
  104. <view class="flex-sub">{{item.userName}}</view>
  105. </label>
  106. </view>
  107. </view>
  108. </scroll-view>
  109. </view>
  110. <view class="cu-modal" :class="modalName=='userModal'?'show':''" @tap="hideModal">
  111. <scroll-view scroll-y class="cu-dialog" :style="userStyle" @tap.stop="">
  112. <view class="cu-list menu text-center" >
  113. <view class="cu-item" v-for="(item,index) in userList" :key="index" @click="mygaipai(item.id)">
  114. <label class="flex justify-between align-center flex-sub">
  115. <view class="flex-sub">{{item.userName}}</view>
  116. </label>
  117. </view>
  118. </view>
  119. </scroll-view>
  120. </view>
  121. <view class="page-bottom">
  122. <view class="action-btn-group">
  123. <button type="primary" class=" action-btn no-border buy-now-btn" @click="save">保存</button>
  124. <button type="primary" v-if="taskStatus == 1" class=" action-btn no-border add-cart-btn" @click="finish">完成</button>
  125. <button type="primary" v-if="taskStatus == 1" class=" action-btn no-border add-cart-btn" @click="gaipai">改派</button>
  126. </view>
  127. </view>
  128. <view class="cu-modal" :class="modalName=='inModal'?'show':''" @tap="hideModal">
  129. <scroll-view scroll-y class="cu-dialog" :style="userStyle" @tap.stop="">
  130. <view class="cu-list menu text-center" >
  131. <view class="cu-item" v-for="(item,index) in userList" :key="index" @click="selectInPerson(item)">
  132. <label class="flex justify-between align-center flex-sub">
  133. <view class="flex-sub">{{item.carNo}}<text v-if="paiCarType=='到站派车' "> ———— {{item.tranCount}}</text></view>
  134. </label>
  135. </view>
  136. </view>
  137. </scroll-view>
  138. </view>
  139. </view>
  140. </template>
  141. <script>
  142. import uploadImage from '@/components/ossutil/uploadFile.js';
  143. import Handwriting from '@/components/ossutil/signature.js';
  144. import {
  145. mapState
  146. } from 'vuex';
  147. export default {
  148. data() {
  149. return {
  150. carInfo:[],
  151. grossWeight:'',
  152. skinWeight:'',
  153. offFee:'',
  154. offOtherFee:'',
  155. carNo:'',
  156. carSkinNo:'',
  157. boxNo:'',
  158. taskStatus:'',
  159. userStyle:'',
  160. fieldList:[],
  161. modalName:'',
  162. modalfieldName:'',
  163. taskType:'',
  164. taskId:'',
  165. goodsValue:'',
  166. addNumStatus:false,
  167. wechatNo:'',
  168. lineColor:'black',
  169. slideValue:50,
  170. handwriting:'',
  171. selectColor:'black',
  172. color:'',
  173. userList:[],
  174. inPersonName:'',
  175. carlist:[],
  176. suttleWeight2:''
  177. };
  178. },
  179. computed: {
  180. ...mapState(['hasLogin','userInfo']),
  181. suttleWeight(){
  182. let num=0
  183. if(this.carlist.length>0){
  184. for(var i=0;i<this.carlist.length;i++){
  185. num=Number(num+Number(this.carlist[i].count))
  186. }
  187. }else{
  188. num=this.suttleWeight2
  189. }
  190. return num
  191. }
  192. },
  193. onShow() {
  194. },
  195. onLoad(options) {
  196. const that = this
  197. this.taskId = options.taskId
  198. this.taskType = options.taskType
  199. this.taskStatus = options.taskStatus
  200. uni.showLoading({
  201. title: '正在加载'
  202. })
  203. that.$api.request('tran', 'getTrainDetailInfo', {
  204. id: options.taskId
  205. }, failres => {
  206. that.$api.msg(failres.errmsg)
  207. uni.hideLoading()
  208. }).then(res => {
  209. that.carInfo = res.data
  210. console.log(that.carInfo)
  211. // that.inPersonName = res.data.receiver
  212. that.fee = that.carInfo.fee
  213. that.trainImg = that.carInfo.trainImg
  214. that.carNo = that.carInfo.carNos
  215. that.otherfee = that.carInfo.otherFee
  216. that.offFee = that.carInfo.offFee
  217. that.offOtherFee = that.carInfo.offOtherFee
  218. that.suttleWeight2=that.carInfo.netWeight
  219. that.insuranceFee= that.carInfo.insuranceFee
  220. that.rentboxFee= that.carInfo.rentBoxFee
  221. that.loadingFee= that.carInfo.loadingFee
  222. that.carSkinNo= that.carInfo.carSkinNo
  223. that.boxNo= that.carInfo.boxNo
  224. that.otherImg = that.carInfo.otherImg
  225. uni.hideLoading()
  226. })
  227. },
  228. onReady(){
  229. },
  230. methods: {
  231. priceInput(e){
  232. this.offFee = e.detail.value
  233. },
  234. otherPriceInput(e){
  235. this.offOtherFee = e.detail.value
  236. },
  237. insuranceFeeInput(e){
  238. console.log(this.insuranceFee)
  239. this.insuranceFee = e.detail.value
  240. },
  241. netWeightInput(e){
  242. this.netWeight = e.detail.value
  243. },
  244. carNoInput(e){
  245. this.carNo = e.detail.value
  246. },
  247. rentboxFeeInput(e){
  248. this.rentboxFee = e.detail.value
  249. },
  250. loadingFeeInput(e){
  251. this.loadingFee = e.detail.value
  252. },
  253. boxNoInput(e){
  254. this.boxNo = e.detail.value
  255. },
  256. numFilter (value) {
  257. if(!value){
  258. return 0
  259. }
  260. // 截取当前数据到小数点后两位
  261. let realVal = parseFloat(value).toFixed(2)
  262. return realVal
  263. },
  264. carInput(item,e){
  265. if(item.count>item.tranCount){
  266. uni.showToast({
  267. title: `当前车辆可载吨数为${item.tranCount},请不要超过`,
  268. icon:'none',
  269. duration: 2000
  270. })
  271. item.count = 0
  272. }else{
  273. item.count = e.detail.value
  274. }
  275. },
  276. selectInPerson(item){
  277. if(JSON.stringify(this.carlist).indexOf(JSON.stringify(item))==-1){
  278. this.carlist.push(item)
  279. }else{
  280. uni.showLoading({
  281. title: '正在加载'
  282. })
  283. }
  284. this.modalName = null
  285. },
  286. ChooseSignImage() {
  287. this.handwriting = new Handwriting({
  288. lineColor: this.lineColor,
  289. slideValue: this.slideValue, // 0, 25, 50, 75, 100
  290. canvasName: 'handWriting',
  291. })
  292. this.showAutograph = true
  293. },
  294. uploadScaleStart(event){
  295. this.handwriting.uploadScaleStart(event)
  296. },
  297. uploadScaleMove(event){
  298. this.handwriting.uploadScaleMove(event)
  299. },
  300. uploadScaleEnd(event){
  301. this.handwriting.uploadScaleEnd(event)
  302. },
  303. retDraw() {
  304. this.handwriting.retDraw()
  305. },
  306. hideModal(e) {
  307. this.modalName = null
  308. },
  309. ViewImage(e) {
  310. var img = [];
  311. img = e.currentTarget.dataset.url.split(' ')
  312. uni.previewImage({
  313. current:0,
  314. urls: img
  315. });
  316. },
  317. selectPerson(){
  318. const that = this
  319. uni.showLoading({
  320. title: '正在加载'
  321. })
  322. that.$api.request('tran', 'getCarList', {
  323. tranNo:that.carInfo.tranNo,
  324. taskId:that.taskId
  325. }, failres => {
  326. that.$api.msg(failres.errmsg)
  327. uni.hideLoading()
  328. }).then(res => {
  329. for(var i=0;i<res.data.length;i++){
  330. console.log(res.data[i].tranCount)
  331. res.data[i].count = res.data[i].tranCount
  332. }
  333. that.userList = res.data
  334. if(that.userList.length == 0){
  335. that.$api.msg('暂无汽车号')
  336. }
  337. else{
  338. var height = that.userList.length * 100
  339. var width = 500
  340. that.userStyle = "height:"+height+"rpx;width:" + width+"rpx"
  341. that.modalName = 'inModal'
  342. }
  343. uni.hideLoading()
  344. })
  345. },
  346. DelImg(e) {
  347. uni.showModal({
  348. title: '提示',
  349. content: '确定要删除该照片吗?',
  350. cancelText: '取消',
  351. confirmText: '确定',
  352. success: res => {
  353. if (res.confirm) {
  354. if(e.currentTarget.dataset.index == 0){
  355. this.poundImg = "";
  356. }
  357. else if(e.currentTarget.dataset.index == 1){
  358. this.otherImg = "";
  359. }
  360. }
  361. }
  362. })
  363. },
  364. ChooseImage() {
  365. uni.chooseImage({
  366. count: 1, //默认9
  367. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  368. sourceType: ['album','camera'], //从相册选择
  369. success: (res) => {
  370. //上传图片
  371. //图片路径可自行修改
  372. uploadImage(res.tempFilePaths[0], 'poundImg/',
  373. result => {
  374. this.trainImg = result
  375. uni.hideLoading();
  376. }
  377. )
  378. }
  379. });
  380. },
  381. ChooseImageOther() {
  382. uni.chooseImage({
  383. count: 1, //默认9
  384. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  385. sourceType: ['album','camera'], //从相册选择
  386. success: (res) => {
  387. //上传图片
  388. //图片路径可自行修改
  389. uploadImage(res.tempFilePaths[0], 'otherImg/',
  390. result => {
  391. this.otherImg = result
  392. uni.hideLoading();
  393. }
  394. )
  395. }
  396. });
  397. },
  398. goodsValueInput(e){
  399. this.goodsValue = e.detail.value
  400. },
  401. numInput(e){
  402. this.addNum = e.detail.value
  403. },
  404. wechatNoInput(e) {
  405. this.wechatNo = e.detail.value
  406. },
  407. save(){
  408. const that = this
  409. uni.showLoading({
  410. title: '正在加载'
  411. })
  412. var param = {};
  413. param.carSkinNo = that.carSkinNo
  414. param.boxNo = that.boxNo
  415. param.offFee = that.offFee
  416. param.offOtherFee = that.offOtherFee
  417. param.taskId = that.taskId
  418. param.netWeight = that.suttleWeight
  419. param.list = that.carlist
  420. that.$api.request('tran', 'saveOffTrainInfo', {
  421. trainDTO:JSON.stringify(param)
  422. }, failres => {
  423. that.$api.msg(failres.errmsg)
  424. uni.hideLoading()
  425. }).then(res => {
  426. that.$api.msg('保存成功')
  427. uni.hideLoading()
  428. })
  429. },
  430. finish(){
  431. var that =this
  432. var param = {};
  433. param.carSkinNo = that.carSkinNo
  434. param.boxNo = that.boxNo
  435. param.offFee = that.offFee
  436. param.boxNo = that.boxNo
  437. param.offOtherFee = that.offOtherFee
  438. param.taskId = that.taskId
  439. param.netWeight = that.suttleWeight
  440. param.list = that.carlist
  441. that.$api.request('tran', 'finishOffTrainInfo', {
  442. trainDTO:JSON.stringify(param),
  443. nextUserId: -1
  444. }, failres => {
  445. that.$api.msg(failres.errmsg)
  446. uni.hideLoading()
  447. }).then(res => {
  448. uni.hideLoading()
  449. that.$api.msg('完成成功')
  450. setTimeout(()=>{uni.navigateBack({})},1000);
  451. })
  452. },
  453. gaipai(){
  454. const that = this
  455. uni.showLoading({
  456. title: '正在加载'
  457. })
  458. that.$api.request('user', 'getUserList', {
  459. role:'外勤'
  460. }, failres => {
  461. that.$api.msg(failres.errmsg)
  462. uni.hideLoading()
  463. }).then(res => {
  464. that.userList = res.data
  465. if(that.userList.length == 0){
  466. that.$api.msg('暂无外勤信息')
  467. }
  468. else{
  469. var height = that.userList.length * 100
  470. var width = 500
  471. that.userStyle = "height:"+height+"rpx;width:" + width+"rpx"
  472. that.modalName = 'userModal'
  473. }
  474. uni.hideLoading()
  475. })
  476. },
  477. mygaipai(id){
  478. var that = this
  479. that.$api.request('tran', 'gaipai',{
  480. taskId: that.taskId,
  481. outPersonId:id,
  482. taskType:that.taskType
  483. },failres => {
  484. that.$api.msg(failres.errmsg)
  485. that.modalName = null
  486. uni.hideLoading()
  487. }).then(res => {
  488. that.modalName = null
  489. uni.navigateBack({
  490. delta: 2
  491. })
  492. uni.hideLoading()
  493. })
  494. },
  495. nextPerson(id){
  496. var that = this
  497. uni.showLoading({
  498. title: '正在加载'
  499. })
  500. that.$api.request('tran', 'finishTrainInfo', {
  501. taskId: that.taskId,
  502. price:!that.price?'':that.price,
  503. netWeight:that.netWeight,
  504. poundImg:!that.poundImg?'':that.poundImg,
  505. carNo:!that.carNo?'':that.carNo,
  506. otherPrice:!that.otherPrice?'':that.otherPrice,
  507. otherImg:!that.otherImg?'':that.otherImg,
  508. userId: id
  509. }, failres => {
  510. that.$api.msg(failres.errmsg)
  511. uni.hideLoading()
  512. }).then(res => {
  513. uni.hideLoading()
  514. that.$api.msg('完成成功')
  515. setTimeout(()=>{uni.navigateBack()},1000);
  516. })
  517. },
  518. nextPerson2(id){
  519. var that = this
  520. var param = {};
  521. param.carSkinNo = this.carSkinNo
  522. param.boxNo = this.boxNo
  523. param.fee = this.fee
  524. param.fee = this.fee
  525. param.boxNo = this.boxNo
  526. param.otherFee = this.otherFee
  527. param.otherFee = this.otherFee
  528. param.insuranceFee = this.insuranceFee
  529. param.rentboxFee = this.rentboxFee
  530. param.loadingFee = this.loadingFee
  531. param.taskId = this.taskId
  532. param.trainImg = this.trainImg
  533. param.otherImg = this.otherImg
  534. param.netWeight = this.suttleWeight
  535. param.list = this.carlist
  536. that.$api.request('tran', 'finishTrainInfo', {
  537. trainDTO:JSON.stringify(param),
  538. nextUserId: id
  539. }, failres => {
  540. that.$api.msg(failres.errmsg)
  541. uni.hideLoading()
  542. }).then(res => {
  543. uni.hideLoading()
  544. that.$api.msg('完成成功')
  545. setTimeout(()=>{uni.navigateBack({})},1000);
  546. })
  547. },
  548. },
  549. }
  550. </script>
  551. <style lang='scss' scoped="true">
  552. .container{
  553. padding-bottom: 160upx;
  554. }
  555. .detail-desc {
  556. background: #fff;
  557. margin-top: 16upx;
  558. width: 750upx;
  559. .d-header {
  560. display: flex;
  561. justify-content: center;
  562. align-items: center;
  563. height: 80upx;
  564. font-size: $font-base + 2upx;
  565. color: $font-color-dark;
  566. position: relative;
  567. text {
  568. padding: 0 20upx;
  569. background: #fff;
  570. position: relative;
  571. z-index: 1;
  572. }
  573. &:after {
  574. position: absolute;
  575. left: 50%;
  576. top: 50%;
  577. transform: translateX(-50%);
  578. width: 300upx;
  579. height: 0;
  580. content: '';
  581. border-bottom: 1px solid #ccc;
  582. }
  583. }
  584. }
  585. .carwrap{
  586. display: flex;
  587. justify-content: space-between;
  588. padding: 10px 26px 10px 15px;
  589. border-bottom:1px solid #f0f0f0;
  590. }
  591. .trancount{
  592. display: inline-block;
  593. vertical-align: middle;
  594. text-align: right;
  595. width: 100rpx;
  596. }
  597. .c-list {
  598. font-size: $font-sm + 2upx;
  599. color: $font-color-base;
  600. background: #fff;
  601. .c-row {
  602. display: flex;
  603. align-items: center;
  604. padding: 20upx 30upx;
  605. position: relative;
  606. }
  607. .tit {
  608. width: 220upx;
  609. }
  610. .con {
  611. flex: 1;
  612. color: $font-color-dark;
  613. .selected-text {
  614. margin-right: 10upx;
  615. }
  616. }
  617. .bz-list {
  618. height: 40upx;
  619. font-size: $font-sm+2upx;
  620. color: $font-color-dark;
  621. text {
  622. display: inline-block;
  623. margin-right: 30upx;
  624. }
  625. }
  626. .con-list {
  627. flex: 1;
  628. display: flex;
  629. flex-direction: column;
  630. color: $font-color-dark;
  631. line-height: 40upx;
  632. text-align: right;
  633. padding-right: 20upx;
  634. }
  635. .red {
  636. color: $uni-color-primary;
  637. }
  638. }
  639. /* 底部操作菜单 */
  640. .page-bottom {
  641. .action-btn-group {
  642. .action-btn {
  643. width: 33.3333%;
  644. }
  645. }
  646. }
  647. @mixin playcenter {
  648. display: flex;
  649. align-items: center;
  650. justify-content: center;
  651. }
  652. .xsh-start {
  653. width: 105rpx;
  654. height: 105rpx;
  655. background: #FFFFFF;
  656. border-radius: 50%;
  657. font-size: 29rpx;
  658. color: #4135EB;
  659. @include playcenter;
  660. flex-wrap: wrap;
  661. }
  662. .x-modal {
  663. width: 100%;
  664. .x-m-title {
  665. width: 100%;
  666. height: 90rpx;
  667. padding: 0 38rpx 0 31rpx;
  668. box-sizing: border-box;
  669. font-size: 29rpx;
  670. color: #333333;
  671. border-bottom: 1px dashed #999;
  672. @include playcenter;
  673. justify-content: space-between;
  674. .xm-t-clear {
  675. font-size: 25rpx;
  676. color: #341DB7;
  677. @include playcenter;
  678. >image {
  679. width: 28rpx;
  680. height: 28rpx;
  681. display: block;
  682. margin-right: 8rpx;
  683. }
  684. }
  685. }
  686. .x-m-con {
  687. width: 100%;
  688. padding: 0 31rpx 18rpx;
  689. margin-top: 5rpx;
  690. box-sizing: border-box;
  691. }
  692. }
  693. .wrapper {
  694. width: 100%;
  695. height: 100%;
  696. margin: 30upx 0;
  697. overflow: hidden;
  698. display: flex;
  699. align-content: center;
  700. flex-direction: column;
  701. justify-content: center;
  702. font-size: 28upx;
  703. }
  704. .handWriting {
  705. background: #fff;
  706. width: 100%;
  707. height: 350upx;
  708. }
  709. .handRight {
  710. align-items: center;
  711. }
  712. .handCenter {
  713. border: 4upx dashed #e9e9e9;
  714. flex: 5;
  715. overflow: hidden;
  716. box-sizing: border-box;
  717. width: 90%;
  718. margin: 0 auto;
  719. }
  720. .handTitle {
  721. flex: 1;
  722. color: #666;
  723. justify-content: center;
  724. font-size: 30upx;
  725. }
  726. .handBtn {
  727. flex-direction: column;
  728. padding: 40upx 20upx;
  729. }
  730. .buttons{
  731. width: 100%;
  732. margin-top: 20upx;
  733. justify-content: space-between;
  734. }
  735. .buttons>button{
  736. font-size: 30upx;
  737. height: 80upx;
  738. }
  739. .delBtn {
  740. background: #23df02;
  741. color: #fff;
  742. }
  743. .color{
  744. align-items: center;
  745. }
  746. .color>text{
  747. margin-right: 20upx;
  748. }
  749. .subBtn {
  750. background: #008ef6;
  751. color: #fff;
  752. text-align: center;
  753. justify-content: center;
  754. }
  755. .black-select {
  756. width: 60upx;
  757. height: 60upx;
  758. }
  759. .black-select.color_select {
  760. width: 90upx;
  761. height: 90upx;
  762. }
  763. .red-select {
  764. width: 60upx;
  765. height: 60upx;
  766. }
  767. .red-select.color_select {
  768. width: 90upx;
  769. height: 90upx;
  770. }
  771. .slide-wrapper {
  772. align-items: center;
  773. margin-bottom: 20upx;
  774. }
  775. .slider{
  776. width: 400upx;
  777. padding-left: 20upx;
  778. }
  779. .drop {
  780. width: 50upx;
  781. height: 50upx;
  782. border-radius: 50%;
  783. background: #FFF;
  784. position: absolute;
  785. left: 0upx;
  786. top: -10upx;
  787. box-shadow: 0px 1px 5px #888888;
  788. }
  789. .slide {
  790. width: 250upx;
  791. height: 30upx;
  792. }
  793. .showimg{
  794. border: 4upx solid #e9e9e9;
  795. overflow: hidden;
  796. width: 90%;
  797. margin: 0 auto;
  798. background: #eee;
  799. height: 350upx;
  800. margin-top: 40upx;
  801. align-items: center;
  802. justify-content: center;
  803. }
  804. .showimg>image{
  805. width: 100%;
  806. height: 100%;
  807. }
  808. .showimg>text{
  809. font-size: 40upx;
  810. color: #888;
  811. }
  812. .indexFixed{
  813. position: fixed;
  814. left:0;
  815. bottom:0;
  816. right:0;
  817. }
  818. </style>