account.vue 18 KB

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