applicationForWithdrawal.vue 23 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090
  1. <template>
  2. <view>
  3. <u-tabs
  4. ref="jputabs"
  5. class="jputabs" name="cate_name" gutter="200" bar-width="100" active-color="#101010"
  6. inactive-color="#A1A1A1" :list="tabList" :is-scroll="false" :current="current" @change="change"></u-tabs>
  7. <ujp-navbar title="提现申请单" style="margin-bottom: 40px;">
  8. </ujp-navbar>
  9. <template v-if="current==0">
  10. <view class="withdraw">
  11. <view class="withdraw-head">
  12. <b class="asterisk"><text>*</text>申请站点</b>
  13. <span>
  14. <picker @change="bindPickerChange1" range-key="name" :range="stationList">
  15. <view class="uni-input">
  16. <view class="input-text">
  17. {{stationObj.name?stationObj.name:'无站点'}}
  18. </view>
  19. <view class="iconfont more">
  20. &#xe600;
  21. </view>
  22. </view>
  23. </picker>
  24. </span>
  25. </view>
  26. <view class="withdraw-head">
  27. <b class="asterisk"><text>*</text>提现事由</b>
  28. <span>
  29. <picker @change="bindPickerChange2" range-key="name" :range="applicationList">
  30. <view class="uni-input">{{info.applicationTypeText}}<text
  31. class="iconfont more">
  32. &#xe600;
  33. </text></view>
  34. </picker>
  35. </span>
  36. </view>
  37. <view class="withdraw-head">
  38. <b class="asterisk"><text>*</text>提现月份</b>
  39. <span>
  40. <picker @change="bindPickerChange3" mode="date" fields="month" :end="nowTime"
  41. :value="queryTime">
  42. <view class="uni-input">{{showTime(queryTime)}}<text class="iconfont more">
  43. &#xe600;
  44. </text></view>
  45. </picker>
  46. </span>
  47. </view>
  48. <view class="withdraw-head ">
  49. <b>充电收入</b><span class="classFFF">{{info.chargingIncome}}元</span>
  50. </view>
  51. <view class="withdraw-head border-n">
  52. <b>分润提现明细表</b><span class="download" @click="ckdownload" >
  53. <u-icon name="download"></u-icon> 下载
  54. </span>
  55. </view>
  56. </view>
  57. <view class="withdraw">
  58. <view class="withdraw-head">
  59. <b class="asterisk"><text>*</text>成本电价</b>
  60. <text class="unit" style="float: right;font-size: 16px;">元/度</text>
  61. <span class="withdraw-input" style="width: 63%;">
  62. <u-input height="20px" v-model="info.electricityPrice"
  63. maxlength="10"
  64. placeholder="请填写电单价" input-align="left"
  65. type="digit">
  66. </u-input>
  67. </span>
  68. </view>
  69. <view class="withdraw-head">
  70. <b class="asterisk">预估电量</b>
  71. <span class="withdraw-input classFFF" style="width: 63%;">
  72. {{info.estimateElectricQuantity}}度
  73. </span>
  74. </view>
  75. <view class="withdraw-head">
  76. <b class="asterisk"><text>*</text>实际电量</b>
  77. <text class="unit" style="float: right;font-size: 16px;">度</text>
  78. <span class="withdraw-input" style="width: 63%;">
  79. <u-input height="20px" placeholder="请填写实际电量"
  80. maxlength="10"
  81. v-model="info.electricQuantity" input-align="left"
  82. type="digit">
  83. </u-input>
  84. </span>
  85. </view>
  86. <view class="withdraw-head border-n">
  87. <b>电费成本</b>
  88. <text class="unit" style="float: right;font-size: 16px;">元</text>
  89. <span class="withdraw-input" style="width: 63%;">
  90. <view class="classFFF" v-show="electricityPriceX">{{electricityPriceX}}</view>
  91. <view class="classFFF" v-show="!electricityPriceX">自动计算出结果</view>
  92. </span>
  93. </view>
  94. </view>
  95. <view class="withdraw">
  96. <view class="withdraw-head">
  97. <b>充电分成比例</b>
  98. <span class="classFFF" >
  99. {{info.chargingPercent}}%
  100. </span>
  101. </view>
  102. <view class="withdraw-head">
  103. <b>充电分成</b>
  104. <span class="classFFF" >
  105. {{info.chargingProfitAmount?info.chargingProfitAmount.toFixed(2):0}}元
  106. </span>
  107. </view>
  108. <view class="withdraw-head border-n">
  109. <b>充电服务收益</b>
  110. <span>
  111. <view class="classFFF" v-show="electricityPriceX">{{(info.chargingProfitAmount-electricityPriceX).toFixed(2)}}元</view>
  112. <view class="classFFF" v-show="!electricityPriceX">自动计算出结果</view>
  113. </span>
  114. </view>
  115. </view>
  116. <view class="withdraw">
  117. <view class="withdraw-head">
  118. <b>月卡分润笔数</b>
  119. <span class="classFFF" >
  120. {{info.monthlyCardTotal}}笔
  121. </span>
  122. </view>
  123. <view class="withdraw-head border-n">
  124. <b>月卡收益</b>
  125. <span class="classFFF" >
  126. {{info.monthlyCardIncome?info.monthlyCardIncome.toFixed(2):0}}元
  127. </span>
  128. </view>
  129. </view>
  130. <view class="withdraw">
  131. <view class="withdraw-head">
  132. <b>合伙人总收入</b>
  133. <span class="classFFF" >
  134. {{info.totalIncome?info.totalIncome.toFixed(2):0}}元
  135. </span>
  136. </view>
  137. <view class="withdraw-head border-n">
  138. <b>合伙人总收益</b>
  139. <span >
  140. <view class="classFFF" v-show="electricityPriceX">{{(info.chargingProfitAmount+info.monthlyCardIncome-electricityPriceX).toFixed(2)}}元</view>
  141. <view class="classFFF" v-show="!electricityPriceX">自动计算出结果</view>
  142. </span>
  143. </view>
  144. </view>
  145. <view class="withdraw">
  146. <view class="withdraw-head">
  147. <b>是否开票</b><span>
  148. <u-radio-group v-model="info.invoiceRequired">
  149. <u-radio v-for="(item, index) in list2" style="margin-right: 16px;" :key="index+'a'"
  150. :name="item.value" active-color="blue">
  151. {{item.name}}
  152. </u-radio>
  153. </u-radio-group>
  154. </span>
  155. </view>
  156. <view class="withdraw-head">
  157. <b v-if="info.invoiceRequired!='1'">发票类型</b>
  158. <b v-else class="asterisk"><text>*</text>发票类型</b>
  159. <span>
  160. <u-radio-group v-model="info.invoiceType" >
  161. <u-radio v-for="(item, index) in list1" :key="index+'a'" :name="item.value"
  162. :disabled="item.disabled" active-color="blue">
  163. {{item.name}}
  164. </u-radio>
  165. </u-radio-group>
  166. </span>
  167. </view>
  168. <view class="withdraw-head border-n">
  169. <b v-if="info.invoiceRequired!='1'">发票税率</b>
  170. <b v-else class="asterisk"><text>*</text>发票税率</b>
  171. <text style="float: right;font-size: 16px;">%</text>
  172. <span class="withdraw-input" style="width: 58%;">
  173. <u-input height="20px" v-model="info.taxRate"
  174. placeholder="请输入开票税率" input-align="left"
  175. maxlength="10"
  176. type="digit">
  177. </u-input>
  178. </span>
  179. </view>
  180. </view>
  181. <view class="withdraw">
  182. <view class="withdraw-head ">
  183. <b class="asterisk"><text>*</text>申请提现金额</b>
  184. <text class="unit" style="float: right;font-size: 16px;">元</text>
  185. <span class="withdraw-input" style="width: 63%;">
  186. <u-input height="20px" v-model="info.applicationAmount" maxlength="10" placeholder="请填写金额" input-align="left"
  187. type="digit">
  188. </u-input>
  189. </span>
  190. </view>
  191. <view class="withdraw-head border-n">
  192. <b>大写金额</b>
  193. <span class="withdraw-input" style="width: 63%;">
  194. <view class="classFFF" v-show="applicationAmountDX">{{applicationAmountDX}}</view>
  195. <view class="classFFF" v-show="!applicationAmountDX">自动转换</view>
  196. </span>
  197. </view>
  198. </view>
  199. <view class="withdraw">
  200. <view class="withdraw-head ">
  201. <b class="asterisk"><text>*</text>提现人收款户名</b>
  202. <u-input class="textarea" type="textarea"
  203. v-model="info.accountName"
  204. placeholder="请填写收款户名" height="96" cursor-spacing="8" />
  205. </view>
  206. <view class="withdraw-head ">
  207. <b class="asterisk"><text>*</text>提现人收款银行</b>
  208. <u-input class="textarea" type="textarea"
  209. v-model="info.bankName"
  210. placeholder="请填写收款银行全称" height="96" cursor-spacing="8" />
  211. </view>
  212. <view class="withdraw-head border-n">
  213. <b class="asterisk"><text>*</text>提现人收款账号</b>
  214. <u-input class="textarea" v-model="info.accountNo"
  215. type="textarea" placeholder="提现人收款账号" height="96" cursor-spacing="8" />
  216. </view>
  217. </view>
  218. </template>
  219. <template v-if="current==1">
  220. <view class="details withdrawHead" v-if="detailList.length&&info.applicationAmount">
  221. 申请提现金额:{{info.applicationAmount}}元<br/>
  222. 明细金额合计:<span :class="{
  223. red:itemApplicationAmountSum>parseFloat(info.applicationAmount)
  224. }">{{itemApplicationAmountSum}}元</span>
  225. </view>
  226. <view class="details" v-for="(item,i) in detailList" :key="i" >
  227. <view class="withdraw">
  228. <view class="withdraw-head">
  229. <b class="asterisk"><text>*</text>项目</b>
  230. <text class="unit" style="float: right;font-size: 16px;z-index: 99;" @click="delItem(i)">
  231. <i class="ri-indeterminate-circle-fill" style="color: red;font-size: 24px;"></i>
  232. </text>
  233. <span class="withdraw-input" style="width: 80%;">
  234. <u-input height="20px"
  235. v-model="item.itemName"
  236. placeholder="请填写项目名称" input-align="left" >
  237. </u-input>
  238. </span>
  239. </view>
  240. <view class="withdraw-head border-n">
  241. <b class="asterisk"><text>*</text>金额</b>
  242. <text class="unit" style="float: right;font-size: 16px;">元</text>
  243. <span class="withdraw-input" style="width: 80%;">
  244. <u-input height="20px"
  245. v-model="item.itemAmount"
  246. placeholder="请填写价格"
  247. maxlength="10"
  248. input-align="left" type="digit">
  249. </u-input>
  250. </span>
  251. </view>
  252. <view class="withdraw-head border-n">
  253. <b>备注</b>
  254. <span class="withdraw-input" style="width: 80%;">
  255. <u-input height="20px"
  256. v-model="item.itemRemark"
  257. placeholder="请填写备注信息" input-align="left">
  258. </u-input>
  259. </span>
  260. </view>
  261. </view>
  262. </view>
  263. <view class="add" @click="addItem" ><i class="ri-add-circle-fill"></i><text>增加项目</text></view>
  264. </template>
  265. <view class="applyBtn">
  266. <u-button class="save" @click="submit(-1)">保存草稿</u-button>
  267. <u-button class="submit" @click="submit(0)">提交申请单</u-button>
  268. </view>
  269. </view>
  270. </template>
  271. <script>
  272. import * as API from '@/apis/finance.js'
  273. import * as API_common from '@/apis/common.js'
  274. import {
  275. beforeTimeStamp,
  276. parseUnixTime,
  277. substrMb,
  278. DX
  279. } from '@/utils'
  280. export default {
  281. data() {
  282. return {
  283. id:'',
  284. uuid:'',
  285. isPt: false,
  286. detailList:[],
  287. info: {
  288. electricityPrice: '',
  289. electricQuantity: '',
  290. stationId: "",
  291. applicationType: '1'
  292. },
  293. applicationList: [{
  294. name: '物业结算',
  295. value: "1"
  296. }, {
  297. name: '市场费用',
  298. value: "2"
  299. }, {
  300. name: '利润提现',
  301. value: "3"
  302. }
  303. ],
  304. stationList: [],
  305. queryTime: '',
  306. nowTime: '',
  307. stationObj: {},
  308. current: 0, // tabs组件的current值,表示当前活动的tab选项
  309. params: {
  310. year: true,
  311. month: true,
  312. day: false,
  313. hour: false,
  314. minute: false,
  315. second: false,
  316. timestamp: false,
  317. },
  318. list1: [{
  319. name: '普票',
  320. value: "1"
  321. }, {
  322. name: '专票',
  323. value: "2"
  324. }, {
  325. name: '收据',
  326. value: "3"
  327. }],
  328. list2: [{
  329. name: '是',
  330. value: "1"
  331. }, {
  332. name: '否 ',
  333. value: "0"
  334. }],
  335. tabList: [{
  336. name: '申请单主表'
  337. }, {
  338. name: '提现明细'
  339. }],
  340. startTime:'',
  341. endTime:'',
  342. }
  343. },
  344. onLoad(op){
  345. if(op.id){
  346. this.id=op.id
  347. }
  348. this.uuid=op.uuid;
  349. },
  350. onShow() {
  351. },
  352. onReady() {
  353. var nowTime = parseUnixTime(new Date(), "{y}-{m}-01")
  354. this.queryTime = parseUnixTime(beforeTimeStamp(1, new Date(nowTime)), '{y}-{m}')
  355. this.nowTime = parseUnixTime(beforeTimeStamp(1, new Date(nowTime)), '{y}-{m}')
  356. this.getStationList()
  357. },
  358. computed: {
  359. itemApplicationAmountSum(){
  360. if (this.info.applicationAmount&&this.detailList&&this.detailList.length) {
  361. var applicationAmount=0;
  362. for(var i in this.detailList){
  363. var obj=this.detailList[i]
  364. var itemAmount=obj.itemAmount?obj.itemAmount:0
  365. applicationAmount+=parseFloat(itemAmount)
  366. }
  367. if(applicationAmount){
  368. return parseFloat(applicationAmount).toFixed(2)
  369. }else {
  370. return '0'
  371. }
  372. }else{
  373. return '0'
  374. }
  375. },
  376. applicationAmountDX() {
  377. if (this.info.applicationAmount) {
  378. var c = DX(this.info.applicationAmount)
  379. return c
  380. } else {
  381. return ''
  382. }
  383. },
  384. electricityPriceX() {
  385. if (this.info.electricityPrice != '' && this.info.electricQuantity != '') {
  386. return (this.info.electricityPrice * this.info.electricQuantity).toFixed(2)
  387. }
  388. return ''
  389. }
  390. },
  391. watch:{
  392. detailList(nVal, oVal) {
  393. var obj=[
  394. {
  395. name: '申请单主表'
  396. }, {
  397. name: '提现明细'
  398. }
  399. ]
  400. if(nVal&&nVal.length){
  401. obj[1].count=nVal.length
  402. }
  403. this.tabList=obj
  404. }
  405. },
  406. methods: {
  407. addItem(){
  408. this.detailList.push({})
  409. },
  410. delItem(i){
  411. this.detailList.splice(i,1)
  412. },
  413. submit(status){
  414. if(status==0){
  415. //this.value=this.info.amount
  416. if(!this.stationObj.id){
  417. uni.showToast({
  418. title: "请选择站点"
  419. })
  420. return
  421. }
  422. if(!this.info.electricityPrice){
  423. uni.showToast({
  424. title: "请输入成本电价"
  425. })
  426. return
  427. }
  428. if(!this.info.electricQuantity){
  429. uni.showToast({
  430. title: "请输入实际电量"
  431. })
  432. return
  433. }
  434. if(this.info.invoiceRequired=="1"){
  435. if(!this.info.invoiceType){
  436. uni.showToast({
  437. title: "请选择发票类型"
  438. })
  439. return
  440. }
  441. if(!this.info.taxRate){
  442. uni.showToast({
  443. title: "请选择发票税率"
  444. })
  445. return
  446. }
  447. }
  448. if(!this.info.applicationAmount){
  449. uni.showToast({
  450. title: "请输入申请提现金额"
  451. })
  452. return
  453. }
  454. if(!this.info.accountName){
  455. uni.showToast({
  456. title: "请输入提现人收款户名"
  457. })
  458. return
  459. }
  460. if(!this.info.bankName){
  461. uni.showToast({
  462. title: "请输入提现人收款银行"
  463. })
  464. return
  465. }
  466. if(!this.info.accountNo){
  467. uni.showToast({
  468. title: "请输入提现人收款账号"
  469. })
  470. return
  471. }
  472. for(var i in this.detailList){
  473. var obj=this.detailList[i]
  474. if(!obj.itemName){
  475. uni.showToast({
  476. title: `请填写提现明细中第${parseInt(i)+1}项的项目名称`
  477. })
  478. return
  479. }
  480. if(!obj.itemAmount){
  481. uni.showToast({
  482. title: `请填写提现明细[${obj.itemName}]项目的金额`
  483. })
  484. return
  485. }
  486. }
  487. if(this.detailList&&this.detailList.length){
  488. if(!(this.itemApplicationAmountSum==parseFloat(this.info.applicationAmount))){
  489. uni.showToast({
  490. title: `[申请提现金额]与[明细金额合计]不相等`
  491. })
  492. return
  493. }
  494. }
  495. }
  496. if(this.info.invoiceRequired!=''){
  497. this.info.invoiceRequired=this.info.invoiceRequired=='1'?true:false
  498. }
  499. uni.showLoading({
  500. title: "加载中",
  501. mask: true,
  502. })
  503. if(this.id){
  504. this.info.id=this.id;
  505. }
  506. this.info.status=status;
  507. //var str=JSON.stringify();
  508. API.applyWithdraw({
  509. record:this.info,
  510. detailList:this.detailList
  511. }).then((res) => {
  512. this.carhelp.set("withdrawRecord",{
  513. uuid:this.uuid,
  514. })
  515. this.id=res.data;
  516. uni.hideLoading()
  517. if(status==-1){
  518. uni.showModal({
  519. title:"提示",
  520. content:"保存成功",
  521. showCancel:false
  522. })
  523. }else{
  524. uni.redirectTo({
  525. url:"/pagesFinance/user/withdrawal/applyResult?value="+this.info.applicationAmount
  526. })
  527. }
  528. }).catch(error => {
  529. uni.hideLoading()
  530. uni.showModal({
  531. title:"提示",
  532. content:error,
  533. showCancel:false
  534. })
  535. })
  536. },
  537. ckdownload(){
  538. //this.value=this.info.amount
  539. if(!this.stationObj.id){
  540. uni.showToast({
  541. title: "请选择站点"
  542. })
  543. return
  544. }
  545. uni.showLoading({
  546. title: "加载中",
  547. mask: true,
  548. })
  549. API.profitDetailsExcel({
  550. stationId:this.stationObj.id,
  551. yearMonth:this.queryTime,
  552. }).then((resDown) => {
  553. uni.hideLoading()
  554. if(resDown.data){
  555. window.location.href=resDown.data
  556. }else{
  557. uni.showToast({
  558. title:"无文件下载"
  559. })
  560. }
  561. }).catch(error => {
  562. uni.showToast({
  563. title:error
  564. })
  565. })
  566. },
  567. showTime(name) {
  568. if (!name) {
  569. return ''
  570. }
  571. return name.replace('-', '年') + '月';
  572. },
  573. queryWithdrawInfo() {
  574. uni.showLoading({
  575. title: "加载中",
  576. mask: true,
  577. })
  578. API.queryWithdrawInfo({
  579. stationId: this.stationObj.id,
  580. yearMonth: this.queryTime,
  581. applicationType: this.info.applicationType
  582. }).then((res) => {
  583. this.info = res.data.record;
  584. var detailList = res.data.detailList;
  585. this.detailList=[];
  586. if(detailList==null){
  587. detailList=[];
  588. }
  589. for(var i in detailList){
  590. if(this.id){
  591. this.detailList.push(detailList[i])
  592. }else{
  593. this.detailList.push({
  594. itemName:detailList[i].itemName,
  595. itemRemark:detailList[i].itemRemark,
  596. itemAmount:'',
  597. })
  598. }
  599. }
  600. uni.hideLoading()
  601. }).catch(error => {
  602. uni.showToast({
  603. title: error
  604. })
  605. })
  606. },
  607. getInfo(){
  608. uni.showLoading({
  609. title: "加载中",
  610. mask: true,
  611. })
  612. API.getWithdrawInfo(this.id).then((res) => {
  613. this.info=res.data.record
  614. this.detailList=res.data.detailList
  615. uni.hideLoading()
  616. }).catch(error => {
  617. uni.showToast({
  618. title: error
  619. })
  620. })
  621. },
  622. getStationList() {
  623. uni.showLoading({
  624. title: "加载中",
  625. mask: true,
  626. })
  627. API.stationList().then((res) => {
  628. this.stationList = res.data.stationList;
  629. if (this.stationList.length) {
  630. this.stationObj = this.stationList[0];
  631. if(this.id){
  632. this.getInfo()
  633. }else{
  634. this.queryWithdrawInfo()
  635. }
  636. }
  637. uni.hideLoading()
  638. }).catch(error => {
  639. uni.showToast({
  640. title: error
  641. })
  642. })
  643. API_common.findByCatalogName2({
  644. catalogName:"提现类型"
  645. }).then((res) => {
  646. this.applicationList= res.data.dataDictionaryList;
  647. // this.applicationList =dataDictionaryList.map((item)=>{
  648. // return {
  649. // name:item.name,
  650. // value:item.value
  651. // }
  652. // })
  653. uni.hideLoading()
  654. }).catch(error => {
  655. uni.showToast({
  656. title: error
  657. })
  658. })
  659. },
  660. bindPickerChange1(e) {
  661. if (this.stationList[e.detail.value]) {
  662. this.stationObj = this.stationList[e.detail.value];
  663. this.queryWithdrawInfo()
  664. }
  665. },
  666. bindPickerChange2(e) {
  667. this.info.applicationType = this.applicationList[e.detail.value].value;
  668. this.queryWithdrawInfo()
  669. },
  670. bindPickerChange3(e) {
  671. this.queryTime = e.detail.value;
  672. this.queryWithdrawInfo()
  673. },
  674. change(index) {
  675. this.current = index;
  676. }
  677. }
  678. }
  679. </script>
  680. <style>
  681. page {
  682. background-color: #F7F7F7;
  683. padding-bottom: 65px;
  684. }
  685. </style>
  686. <style lang="scss" scoped>
  687. .jputabs {
  688. //position: absolute;
  689. position: fixed;
  690. background-color: #FFF;
  691. width: 100%;
  692. top: 40px;
  693. z-index: 99;
  694. }
  695. .classFFF {
  696. color: #607d8b !important;
  697. }
  698. .download {
  699. color: #185AC6 !important;
  700. }
  701. /deep/.u-tab-bar {
  702. background-color: #0076FF !important;
  703. }
  704. /deep/.u-tabs-scorll-flex {
  705. width: 56%;
  706. margin: 0 auto;
  707. }
  708. .withdraw-tips {
  709. margin: 24px 16px;
  710. p {
  711. color: #999;
  712. margin-top: 4px;
  713. }
  714. }
  715. .uni-input {
  716. font-size: 16px;
  717. color: #333333;
  718. }
  719. .withdraw {
  720. margin-bottom: 8px;
  721. background-color: #fff;
  722. padding: 0px 16px 0 16px;
  723. .withdraw-head {
  724. padding: 16px 0;
  725. border-bottom: 1px solid #E5E7EA;
  726. align-items: center;
  727. position: relative;
  728. .unit {
  729. position: absolute;
  730. top: 34rpx;
  731. right: 0;
  732. }
  733. .whthdraw-price {
  734. font-size: 18px;
  735. color: #101010;
  736. font-weight: 600;
  737. }
  738. b {
  739. color: rgba(119, 119, 119, 100);
  740. font-size: 16px;
  741. }
  742. span {
  743. width: 60%;
  744. float: right;
  745. text-align: left;
  746. font-size: 16px;
  747. color: #333333;
  748. }
  749. @media screen and (max-width:320px) {
  750. span {
  751. width: 55%;
  752. }
  753. }
  754. }
  755. .withdraw-main {
  756. border-top: 1px solid #f7f7f7;
  757. border-bottom: 1px solid #f7f7f7;
  758. margin: 16px 0;
  759. padding: 16px 0;
  760. .withdraw-input {
  761. margin-top: 32px;
  762. display: flex;
  763. align-items: center;
  764. font-size: 28px;
  765. /deep/.uni-input-input {
  766. font-size: 28rpx;
  767. }
  768. }
  769. }
  770. .withdraw-foot {
  771. display: flex;
  772. align-items: center;
  773. p {
  774. color: #999
  775. }
  776. span {
  777. color: #2979FF;
  778. margin-left: 16px;
  779. }
  780. }
  781. }
  782. .more {
  783. color: #B3B3B3;
  784. font-size: 24px
  785. }
  786. .applyBtn {
  787. padding: 0 16px;
  788. display: flex;
  789. background-color: #FFF;
  790. font-size: 16px;
  791. line-height: 44px;
  792. height: 60px;
  793. position: fixed;
  794. bottom: 0;
  795. left: 0;
  796. right: 0;
  797. .save {
  798. width: 33.6%;
  799. border-radius: 8px 0px 0px 8px;
  800. background-color: rgba(0, 185, 98, 100);
  801. color: rgba(255, 255, 255, 100);
  802. }
  803. .submit {
  804. width: 66.4%;
  805. border-radius: 0px 8px 8px 0px;
  806. background-color: rgba(24, 90, 198, 100);
  807. color: rgba(255, 255, 255, 100);
  808. }
  809. }
  810. /deep/.uni-input-input {
  811. text-align: start !important;
  812. }
  813. .border-n {
  814. border: none !important;
  815. }
  816. .textarea {
  817. background-color: rgba(242, 242, 242, 100);
  818. margin-top: 12px;
  819. line-height: 20px;
  820. border-radius: 4px;
  821. color: rgba(136, 136, 136, 100);
  822. .uni-textarea-placeholder {
  823. padding: 0 16rpx;
  824. }
  825. /deep/.uni-textarea-textarea {
  826. width: 90%;
  827. padding: 0 16rpx;
  828. }
  829. }
  830. .withdrawHead{
  831. padding: 15px;
  832. font-size: 14px;
  833. .red{
  834. color: red;
  835. }
  836. }
  837. .details {
  838. margin: 16px;
  839. border-radius: 8px;
  840. background-color: #fff;
  841. overflow: hidden;
  842. }
  843. .asterisk {
  844. position: relative;
  845. text {
  846. position: absolute;
  847. top: 0px;
  848. left: -14rpx;
  849. color: #EE3138;
  850. }
  851. }
  852. .add {
  853. text-align: center;
  854. font-size: 18px;
  855. color: #101010;
  856. display: flex;
  857. align-items: center;
  858. justify-content: center;
  859. .ri-add-circle-fill {
  860. font-size: 24px;
  861. color: #44B371;
  862. margin: auto 0;
  863. margin-right: 4rpx;
  864. }
  865. }
  866. /deep/.u-input__input {
  867. font-size: 16px !important
  868. }
  869. .uni-input {
  870. display: flex;
  871. justify-content: space-between;
  872. }
  873. .input-text {
  874. white-space: nowrap;
  875. overflow: hidden;
  876. text-overflow: ellipsis;
  877. }
  878. </style>