payCenter.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735
  1. <template>
  2. <div class="mobile-pay-center vendor-pay mobile-fix-content mobile-centerfix-content" :class="{'vendor-pay-record': switchType === 'record' && recordList.length}" id="mobileFixContent" @click="setShowSelect('all', false)">
  3. <div class="mp-head">
  4. <span class="inline-block" :class="{'active': switchType === 'record'}" @click="setSwitchType('record')">交易记录</span>
  5. <span class="inline-block" :class="{'active': switchType === 'account'}" @click="setSwitchType('account')">收款账户</span>
  6. </div>
  7. <!-- 账户信息start -->
  8. <div class="mp-content" v-if="switchType == 'account'">
  9. <p class="mp-content-header">已设置的账户信息<span class="fr" @click="openAddAccount"><i class="iconfont icon-xinzeng"></i>新增账户</span></p>
  10. <ul class="mp-list">
  11. <li v-for="account in accountList">
  12. <div class="content-line">
  13. <span class="inline-block title">开户银行:</span>
  14. <span class="inline-block content text-ellipse">{{account.bankname}}</span>
  15. </div>
  16. <div class="content-line">
  17. <span class="inline-block title">开户支行:</span>
  18. <span class="inline-block content text-ellipse">{{account.branchname}}</span>
  19. </div>
  20. <div class="content-line">
  21. <span class="inline-block title">银行账户:</span>
  22. <span class="inline-block content text-ellipse">{{account.number}}</span>
  23. </div>
  24. <div class="content-line">
  25. <span class="inline-block title">开户名称:</span>
  26. <span class="inline-block content text-ellipse">{{account.accountname}}</span>
  27. </div>
  28. <div class="content-line">
  29. <span class="inline-block title">状态:</span>
  30. <span class="inline-block content text-ellipse">
  31. {{account.status | bankStatusFilter}}
  32. <i v-if="account.status == 101" class="iconfont icon-tixing"></i>
  33. </span>
  34. </div>
  35. <div class="content-line clearfix">
  36. <span class="inline-block title">操作:</span>
  37. <a class="fr inline-block set-default-icon" @click="reuseAccount(account)" v-if="account.status == 105">重新使用</a>
  38. <a class="fr inline-block" @click="deleteAccount(account)">删除</a>
  39. </div>
  40. </li>
  41. </ul>
  42. </div>
  43. <!-- 账户信息end -->
  44. <!-- 交易记录start -->
  45. <div class="mp-record" v-if="switchType == 'record'">
  46. <div class="search-content">
  47. <input type="text" placeholder="买家名称/订单号" v-model="filterParams.keyword" @keyup.13="filterRecord">
  48. <span @click="filterRecord"><i class="iconfont icon-sousuo"></i></span>
  49. </div>
  50. <div class="filters-wrap">
  51. <div class="date-wrap">
  52. <label>
  53. <i class="iconfont icon-ico-date"></i>
  54. <input type="date" v-model="dateObj.fromDate" @change="setDate('fromDate')">
  55. <p v-if="filterParams.fromDate">{{filterParams.fromDate | date}}</p>
  56. </label>
  57. <span>—</span>
  58. <label>
  59. <i class="iconfont icon-ico-date"></i>
  60. <input type="date" v-model="dateObj.toDate" @change="setDate('toDate')">
  61. <p v-if="filterParams.toDate">{{filterParams.toDate | date}}</p>
  62. </label>
  63. </div>
  64. <ul class="select-wrap clearfix">
  65. <li class="inline-block fl">
  66. <div @click.stop="setShowSelect('method', !showSelectMethod)">{{filterParams.method ? filterParams.method == 1103 ? '线下支付' : '线上支付' : '交易方式'}}</div>
  67. <ul class="select-list" v-show="showSelectMethod">
  68. <li @click.stop="setSelect('method', null)">交易方式</li>
  69. <li @click.stop="setSelect('method', 1103)">线下支付</li>
  70. </ul>
  71. </li>
  72. <li class="inline-block fr">
  73. <div @click.stop="setShowSelect('status', !showSelectStatus)">{{filterParams.status || '状态'}}</div>
  74. <ul class="select-list" v-show="showSelectStatus">
  75. <li @click.stop="setSelect('status', null)">状态</li>
  76. <li @click.stop="setSelect('status', '收款成功')">收款成功</li>
  77. </ul>
  78. </li>
  79. </ul>
  80. </div>
  81. <ul class="mp-list record-list" v-if="recordList.length">
  82. <li v-for="record in recordList">
  83. <div class="content-line">
  84. <span class="inline-block title">时间:</span>
  85. <span class="inline-block content text-ellipse">{{record.transferTime | time}}</span>
  86. </div>
  87. <div class="content-line">
  88. <span class="inline-block title">订单号:</span>
  89. <span class="inline-block content text-ellipse">{{record.orderid}}</span>
  90. </div>
  91. <div class="content-line">
  92. <span class="inline-block title">买家名称:</span>
  93. <span class="inline-block content text-ellipse">{{record.buyerentername || record.buyername}}</span>
  94. </div>
  95. <div class="content-line">
  96. <span class="inline-block title">币种:</span>
  97. <span class="inline-block content text-ellipse">{{record.currencyName}}</span>
  98. </div>
  99. <div class="content-line">
  100. <span class="inline-block title">金额:</span>
  101. <span class="inline-block content text-ellipse"><i class="fa fa-plus" style="color: #f51c24;"></i>{{record.total}}</span>
  102. </div>
  103. <div class="content-line">
  104. <span class="inline-block title">交易方式:</span>
  105. <span class="inline-block content text-ellipse">线下付款</span>
  106. </div>
  107. <div class="content-line">
  108. <span class="inline-block title">状态:</span>
  109. <span class="inline-block content text-ellipse">收款成功</span>
  110. </div>
  111. </li>
  112. </ul>
  113. </div>
  114. <!-- 交易记录end -->
  115. <div class="fix-count-wrap" v-if="recordList.length">
  116. <span class="content">收入总计:<span>{{currencySymbol | currencyFilter}}&nbsp;{{totalRecordPrice}}</span></span>
  117. <span class="content">支出总计:<span>{{currencySymbol | currencyFilter}}&nbsp;0</span></span>
  118. <p>结余:{{currencySymbol | currencyFilter}}&nbsp;{{totalRecordPrice}} (共计{{recordList.length || 0}}笔交易)</p>
  119. </div>
  120. <!-- 新增账户弹框start -->
  121. <modal-wrapper :noHeader="true" :showModal="showModal" @closeAction="showModal = false">
  122. <div class="add-account-modal in-wrapper">
  123. <div class="account-modal">
  124. <p class="title">新增账户</p>
  125. <div class="modal-content-line">
  126. <span class="inline-block"><i>*</i>开户银行:</span>
  127. <input type="text" readonly placeholder="例如:中国银行" v-model="bankAccountObj.bankname" @click.stop="showSimilar = !showSimilar">
  128. <ul v-if="showSimilar" class="similar">
  129. <li class="text-ellipse" v-for="bank in bankList" @click.stop="setBankName(bank)">{{bank}}</li>
  130. </ul>
  131. </div>
  132. <div class="modal-content-line">
  133. <span class="inline-block"><i>*</i>开户支行:</span>
  134. <input type="text" placeholder="例如:乔香支行" v-model="bankAccountObj.branchname" @blur="checkBranchname">
  135. </div>
  136. <div class="modal-content-line">
  137. <span class="inline-block"><i>*</i>银行账号:</span>
  138. <input type="text" placeholder="请填写银行账号" v-model="bankAccountObj.number" @blur="checkNumber">
  139. </div>
  140. <div class="modal-content-line">
  141. <span class="inline-block"><i>*</i>开户名称:</span>
  142. <input type="text" placeholder="请填写开户人姓名或企业名称" v-model="bankAccountObj.accountname" @blur="checkAccountname">
  143. </div>
  144. <div class="modal-content-line upload">
  145. <span class="inline-block"><i>*</i>上传开户许可证:</span>
  146. <input type="text" v-model="file.name" disabled>
  147. <label class="upload-btn">选择文件
  148. <input type="file" @change="onUpload($event)" accept="image/jpeg,image/jpg,image/png,.pdf">
  149. </label>
  150. </div>
  151. <div class="am-btn-wrap">
  152. <button @click="showModal = false">取消</button>
  153. <button @click="addAccount">确认</button>
  154. </div>
  155. <p class="am-remind-text clearfix">
  156. <i class="fl">*声明:</i>
  157. <span class="fr">
  158. 1. 此账户为卖家收款账户,请仔细核对信息内容,若由信息错误造成的损失,优软商城不承担赔偿责任。
  159. <br/>
  160. 2. 卖家只能有唯一一个“使用中”的收款账户,新增账户审核通过后,原账户将自动失效。
  161. <br/>
  162. 3. 如您的企业名称、开户银行及账号变更,您须在优软商城开展资金结算前进行更正,否则发生转账错误优软商城不承担赔偿责任。
  163. <br/>
  164. 4. 更多的条款请阅读《优软商城代收代付协议》 。
  165. <br/>
  166. 5. 附件仅支持JPG、PNG、PDF格式,大小超过3M。
  167. </span>
  168. </p>
  169. </div>
  170. </div>
  171. </modal-wrapper>
  172. <!-- 新增账户弹框end -->
  173. <!-- 重新使用账户提示框start -->
  174. <div class="mobile-modal reuse-account-modal" v-show="showReuseModal">
  175. <div class="ra-remind">
  176. <div class="header"><i class="iconfont icon-guanbi1" @click="showReuseModal = false"></i></div>
  177. <div class="content"><i class="fa fa-exclamation-circle"></i>
  178. <span>此操作会让使用中的收款账户失效,是否确定重新使用?</span>
  179. </div>
  180. <div class="footer">
  181. <button @click="showReuseModal = false">取消</button>
  182. <button @click="setDefaultAccount()">确认</button>
  183. </div>
  184. </div>
  185. </div>
  186. <!-- 重新使用账户提示框end -->
  187. <remind-box :title="remindText" :timeoutCount="timeoutCount"></remind-box>
  188. <pull-up :fixId="'mobileFixContent'" :searchMore="fetching" :allPage="allPage" :page="page" @pullUpAction="onPullUpAction"></pull-up>
  189. <empty-status v-if="isEmpty" :text="switchType == 'record' ? '暂无交易记录' : '暂无账户信息'" :showLink="true"></empty-status>
  190. </div>
  191. </template>
  192. <script>
  193. import { RemindBox, PullUp, EmptyStatus } from '~components/mobile/common'
  194. import { ModalWrapper } from '~components/mobile/base'
  195. export default {
  196. layout: 'mobile',
  197. middleware: 'authenticated',
  198. data () {
  199. return {
  200. remindText: '',
  201. timeoutCount: '',
  202. page: 1,
  203. count: 10,
  204. accountList: [],
  205. recordList: [],
  206. switchType: 'record',
  207. // 分页重置标志
  208. isChange: false,
  209. showModal: false,
  210. bankList: [],
  211. showSimilar: false,
  212. bankAccountObj: {
  213. bankname: '',
  214. branchname: '',
  215. number: '',
  216. accountname: ''
  217. },
  218. validBankAccountObj: {
  219. bankname: false,
  220. branchname: false,
  221. number: false,
  222. accountname: false
  223. },
  224. filterParams: {
  225. keyword: '',
  226. fromDate: '',
  227. toDate: '',
  228. method: '',
  229. status: ''
  230. },
  231. showSelectMethod: false,
  232. showSelectStatus: false,
  233. currentId: '',
  234. showReuseModal: false,
  235. totalRecordPrice: 0,
  236. file: '',
  237. dateObj: {
  238. fromDate: '',
  239. toDate: ''
  240. }
  241. }
  242. },
  243. components: {
  244. RemindBox,
  245. PullUp,
  246. ModalWrapper,
  247. EmptyStatus
  248. },
  249. fetch ({store}) {
  250. return Promise.all([
  251. store.dispatch('payCenter/loadVendorRecord', {count: 10, page: 1, sorting: {'transferTime': 'DESC'}, type: 'sup'})
  252. ])
  253. },
  254. watch: {
  255. 'vendorAccount': {
  256. handler: function (val) {
  257. if (val && val.content) {
  258. if (this.isChange) {
  259. this.accountList = []
  260. this.isChange = false
  261. }
  262. this.accountList = [...this.accountList, ...val.content]
  263. }
  264. }
  265. },
  266. 'vendorRecord': {
  267. handler: function (val) {
  268. if (val && val.content) {
  269. if (this.isChange) {
  270. this.recordList = []
  271. this.isChange = false
  272. this.totalRecordPrice = 0
  273. }
  274. this.totalRecordPrice = this.baseUtils.priceFixed(this.totalRecordPrice + this.recordData.data.data.total)
  275. this.recordList = [...this.recordList, ...val.content]
  276. }
  277. },
  278. immediate: true
  279. }
  280. },
  281. filters: {
  282. bankStatusFilter: function (status) {
  283. let result = '未知状态'
  284. switch (status) {
  285. case 101 :
  286. result = '待审核'
  287. break
  288. case 104:
  289. result = '使用中'
  290. break
  291. case 103:
  292. result = '未通过'
  293. break
  294. case 105:
  295. result = '已失效'
  296. break
  297. case 112:
  298. result = '已删除'
  299. break
  300. }
  301. return result
  302. }
  303. },
  304. computed: {
  305. accountData () {
  306. return this.$store.state.payCenter.data.vendorAccount
  307. },
  308. recordData () {
  309. return this.$store.state.payCenter.data.vendorRecord
  310. },
  311. vendorAccount () {
  312. return this.accountData.data
  313. },
  314. vendorRecord () {
  315. return this.recordData.data.data.data
  316. },
  317. fetching () {
  318. return this.switchType === 'account' ? this.accountData.fetching : this.recordData.fetching
  319. },
  320. allPage () {
  321. return this.switchType === 'account' ? this.vendorAccount.totalPages : this.vendorRecord.totalPages
  322. },
  323. isEmpty () {
  324. return (this.switchType === 'record' && this.recordList.length === 0) || (this.switchType === 'account' && this.accountList.length === 0)
  325. },
  326. currencySymbol () {
  327. return this.recordList[0] ? this.recordList[0].currencyName : 'RMB'
  328. }
  329. },
  330. methods: {
  331. setRemindText: function (str) {
  332. this.remindText = str
  333. this.timeoutCount++
  334. },
  335. reloadList () {
  336. if (this.switchType === 'account') {
  337. this.$store.dispatch('payCenter/loadVendorAccount', {
  338. count: this.count,
  339. page: this.page,
  340. sorting: {num: 'ASC'},
  341. type: 'sup'
  342. })
  343. } else {
  344. this.$store.dispatch('payCenter/loadVendorRecord', {
  345. count: this.count,
  346. page: this.page,
  347. sorting: {'transferTime': 'DESC'},
  348. type: 'sup',
  349. fromDate: this.filterParams.fromDate || null,
  350. toDate: this.filterParams.toDate || null,
  351. keyword: this.filterParams.keyword || null
  352. })
  353. }
  354. },
  355. initList () {
  356. this.isChange = true
  357. this.page = 1
  358. this.reloadList()
  359. },
  360. onPullUpAction () {
  361. this.page++
  362. this.reloadList()
  363. },
  364. setSwitchType (type) {
  365. this.switchType = type
  366. if (type === 'record') {
  367. this.initFilterParams()
  368. }
  369. this.initList()
  370. },
  371. initFilterParams () {
  372. this.filterParams = {
  373. keyword: '',
  374. fromDate: '',
  375. toDate: '',
  376. currencyName: '',
  377. method: ''
  378. }
  379. },
  380. filterRecord () {
  381. this.isChange = true
  382. this.reloadList()
  383. },
  384. setShowSelect (type, flag) {
  385. if (type === 'all') {
  386. this.showSelectMethod = flag
  387. this.showSelectStatus = flag
  388. } else if (type === 'method') {
  389. this.showSelectMethod = flag
  390. this.showSelectStatus = false
  391. } else if (type === 'status') {
  392. this.showSelectStatus = flag
  393. this.showSelectMethod = false
  394. }
  395. },
  396. setSelect (type, val) {
  397. if (type === 'method') {
  398. this.filterParams.method = val
  399. this.setShowSelect('method', false)
  400. } else if (type === 'status') {
  401. this.filterParams.status = val
  402. this.setShowSelect('status', false)
  403. }
  404. this.filterRecord()
  405. },
  406. setDate (type) {
  407. if (this.dateObj[type]) {
  408. this.filterParams[type] = new Date(this.dateObj[type]).getTime() - 8 * 60 * 60 * 1000
  409. if (this.filterParams.fromDate && this.filterParams.toDate && this.filterParams.fromDate > this.filterParams.toDate) {
  410. if (type === 'fromDate') {
  411. this.setRemindText('起始时间不能大于结束时间')
  412. } else {
  413. this.setRemindText('结束时间不能小于起始时间')
  414. }
  415. this.filterParams[type] = null
  416. this.dateObj[type] = null
  417. } else {
  418. if (this.filterParams.fromDate && this.filterParams.toDate && this.filterParams.fromDate === this.filterParams.toDate) {
  419. // 23:59:59
  420. this.filterParams.toDate += 23 * 60 * 60 * 1000 + 59 * 60 * 1000 + 59 * 1000
  421. }
  422. this.filterRecord()
  423. }
  424. } else {
  425. this.filterParams[type] = null
  426. this.filterRecord()
  427. }
  428. },
  429. reuseAccount (account) {
  430. this.currentId = account.id
  431. this.showReuseModal = true
  432. },
  433. setDefaultAccount () {
  434. this.$http.get(`/trade/bankInfo/setDefaultAccount/${this.currentId}`).then(() => {
  435. this.setRemindText('重新使用完成')
  436. this.initList()
  437. this.showReuseModal = false
  438. })
  439. },
  440. deleteAccount (account) {
  441. this.$http.delete(`/trade/bankInfo/delete/${account.id}`).then(res => {
  442. if (res.data === 'success') {
  443. this.setRemindText('删除成功')
  444. this.initList()
  445. }
  446. })
  447. },
  448. initAccount () {
  449. this.bankAccountObj = {
  450. bankname: '',
  451. branchname: '',
  452. number: '',
  453. accountname: ''
  454. }
  455. this.validBankAccountObj = {
  456. bankname: false,
  457. branchname: false,
  458. number: false,
  459. accountname: false
  460. }
  461. this.file = ''
  462. },
  463. openAddAccount () {
  464. if (!this.bankList || !this.bankList.length) {
  465. this.$http.get('/data/bank.json').then(res => {
  466. this.bankList = res.data.list
  467. this.initAccount()
  468. this.showModal = true
  469. })
  470. } else {
  471. this.initAccount()
  472. this.showModal = true
  473. }
  474. },
  475. setBankName (name) {
  476. this.bankAccountObj.bankname = name
  477. this.showSimilar = false
  478. this.validBankAccountObj.bankname = true
  479. },
  480. checkBranchname () {
  481. this.validBankAccountObj.branchname = true
  482. if (!(this.bankAccountObj.branchname && this.bankAccountObj.branchname.length)) {
  483. this.setRemindText('开户支行不能为空')
  484. this.validBankAccountObj.branchname = false
  485. } else if (this.baseUtils.getRealLen(this.bankAccountObj.branchname) > 40) {
  486. this.setRemindText('开户支行不能大于40字符')
  487. this.validBankAccountObj.branchname = false
  488. } else if (!/^[\u2E80-\u9FFF]+$/.test(this.bankAccountObj.branchname)) {
  489. this.setRemindText('请输入正确的开户支行')
  490. this.validBankAccountObj.branchname = false
  491. }
  492. },
  493. checkNumber () {
  494. this.validBankAccountObj.number = true
  495. if (!(this.bankAccountObj.number && this.bankAccountObj.number.length)) {
  496. this.validBankAccountObj.number = false
  497. this.setRemindText('银行账号不能为空')
  498. } else if (this.baseUtils.getRealLen(this.bankAccountObj.number) > 30) {
  499. this.setRemindText('银行账号不能大于30字符')
  500. this.validBankAccountObj.number = false
  501. } else if (!/^[0-9]+$/.test(this.bankAccountObj.number)) {
  502. this.setRemindText('请输入正确的银行账号')
  503. this.validBankAccountObj.number = false
  504. }
  505. if (this.validBankAccountObj.number) {
  506. this.$http.get('/trade/bankInfo/number/count', {params: {type: 1061, number: this.bankAccountObj.number}}).then(res => {
  507. if (res.data.success) {
  508. if (res.data.data === 0) {
  509. this.validBankAccountObj.number = true
  510. } else {
  511. this.validBankAccountObj.number = false
  512. this.setRemindText('银行账号校验失败')
  513. }
  514. } else {
  515. this.validBankAccountObj.number = false
  516. this.setRemindText(res.data.message || '银行账号校验失败')
  517. }
  518. }, err => {
  519. this.validBankAccountObj.number = false
  520. this.setRemindText(err.response.data || '银行账号校验失败')
  521. console.log(err)
  522. })
  523. }
  524. },
  525. checkAccountname () {
  526. this.validBankAccountObj.accountname = true
  527. if (!(this.bankAccountObj.accountname && this.bankAccountObj.accountname.length)) {
  528. this.validBankAccountObj.accountname = false
  529. this.setRemindText('账户名称不能为空')
  530. } else if (this.baseUtils.getRealLen(this.bankAccountObj.accountname) > 100) {
  531. this.setRemindText('账户名称不能大于100个字符')
  532. this.validBankAccountObj.accountname = false
  533. }
  534. },
  535. addAccount () {
  536. if (!this.validBankAccountObj.bankname) {
  537. this.setRemindText('请选择开户银行')
  538. } else if (!this.validBankAccountObj.branchname) {
  539. this.setRemindText('请填写正确的开户支行')
  540. } else if (!this.validBankAccountObj.number) {
  541. this.setRemindText('请填写正确的银行账号')
  542. } else if (!this.validBankAccountObj.accountname) {
  543. this.setRemindText('请填写正确的开户名称')
  544. } else if (!this.file) {
  545. this.setRemindText('请上传开户许可证')
  546. } else {
  547. let param = new FormData()
  548. param.append('file', this.file, this.file.name)
  549. param.append('bankInfo', JSON.stringify(this.bankAccountObj))
  550. let config = {
  551. headers: {'Content-Type': 'multipart/form-data'}
  552. }
  553. this.$http.post('/trade/bankInfo/save/enterprise?type=sup', param, config).then(res => {
  554. if (res.data.id) {
  555. this.setRemindText('新增账户成功')
  556. this.initList()
  557. this.showModal = false
  558. } else {
  559. this.setRemindText('新增账户失败')
  560. }
  561. }, err => {
  562. this.setRemindText(err.response.data || '新增账户失败')
  563. console.log(err)
  564. })
  565. }
  566. },
  567. onUpload (e) {
  568. let file = e.target.files[0]
  569. let arr = file.name.split('.')
  570. let type = arr[arr.length - 1]
  571. if ('pdf/png/jpg/jpeg'.indexOf(type.toLowerCase()) === -1) {
  572. this.setRemindText('仅支持jpg/jpeg/png/pdf格式的文件')
  573. } else if (file.size > 1024 * 1024 * 3) {
  574. this.setRemindText('请勿大于3M')
  575. } else {
  576. this.file = file
  577. }
  578. }
  579. }
  580. }
  581. </script>
  582. <style lang="scss">
  583. @import '~assets/scss/mobilePayCenter';
  584. .reuse-account-modal {
  585. .ra-remind {
  586. width: 6.3rem;
  587. height: 3.5rem;
  588. position: absolute;
  589. top: 50%;
  590. left: 50%;
  591. margin-top: -1.75rem;
  592. margin-left: -3.15rem;
  593. border-radius: .15rem;
  594. .header {
  595. height: .6rem;
  596. line-height: .6rem;
  597. background: #3976f4;
  598. border-top-left-radius: .15rem;
  599. border-top-right-radius: .15rem;
  600. i {
  601. font-size: .32rem;
  602. color: #fff;
  603. float: right;
  604. margin-right: .28rem;
  605. }
  606. }
  607. .content {
  608. background: #fff;
  609. padding: .53rem .77rem;
  610. span {
  611. font-size: .32rem;
  612. }
  613. i {
  614. font-size: .44rem;
  615. color: #3976f4;
  616. float: left;
  617. margin-right: .2rem;
  618. }
  619. }
  620. .footer {
  621. background: #fff;
  622. padding-bottom: .37rem;
  623. text-align: center;
  624. border-bottom-left-radius: .15rem;
  625. border-bottom-right-radius: .15rem;
  626. margin-top: -0.05rem;
  627. button {
  628. width: 2.22rem;
  629. height: .77rem;
  630. line-height: .77rem;
  631. color: #fff;
  632. font-size: .32rem;
  633. border-radius: .08rem;
  634. background: #bfbfbf;
  635. &:last-child {
  636. background: $base-color;
  637. margin-left: .3rem;
  638. }
  639. }
  640. }
  641. }
  642. }
  643. .record-list {
  644. margin-bottom: 1.26rem
  645. }
  646. .upload {
  647. input[disabled] {
  648. background: #eee;
  649. width: 2.88rem !important;
  650. }
  651. .upload-btn {
  652. display: inline-block;
  653. vertical-align: middle;
  654. width: 1.2rem;
  655. height: .56rem;
  656. line-height: .56rem;
  657. text-align: center;
  658. color: #fff;
  659. background: #fe9d03;
  660. position: relative;
  661. left: .2rem;
  662. border-radius: .04rem;
  663. font-size: .24rem;
  664. font-weight: normal;
  665. margin: 0;
  666. input {
  667. opacity: 0;
  668. width: 1.2rem;
  669. height: .56rem;
  670. position: absolute;
  671. top: 0;
  672. }
  673. }
  674. }
  675. .fix-count-wrap {
  676. position: fixed;
  677. bottom: .98rem;
  678. height: 1.25rem;
  679. text-align: right;
  680. background: #fff;
  681. border-radius: .02rem;
  682. border-top: 1px solid #bfbfbf;
  683. line-height: .63rem;
  684. font-size: .28rem;
  685. width: 100%;
  686. padding-right: .3rem;
  687. .content {
  688. margin-left: .39rem;
  689. &:first-child {
  690. span {
  691. color: #fd0303;
  692. }
  693. }
  694. &:nth-of-type(2) {
  695. span {
  696. color: #15b262;
  697. }
  698. }
  699. }
  700. }
  701. .mp-list .content-line .icon-tixing {
  702. font-size: .32rem;
  703. color: $base-color;
  704. margin-left: .05rem;
  705. }
  706. .am-remind-text {
  707. font-size: .26rem;
  708. color: #999;
  709. margin-top: .29rem;
  710. padding: .45rem 0;
  711. border-top: 1px solid #d2d2d2;
  712. i {
  713. color: #fd0303;
  714. width: 12%;
  715. }
  716. .fr {
  717. width: 88%;
  718. }
  719. }
  720. .vendor-pay {
  721. .mobile-modal .mobile-modal-wrapper {
  722. left: .2rem !important;
  723. right: .2rem !important;
  724. }
  725. }
  726. .vendor-pay-record {
  727. /*bottom: 2.23rem !important;*/
  728. padding-bottom: 1.25rem;
  729. }
  730. </style>