payCenter.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728
  1. <template>
  2. <div class="mobile-pay-center vendor-pay mobile-fix-content mobile-centerfix-content" :class="{'vendor-pay-record': switchType === 'record'}" 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="filterParams.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="filterParams.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 class="fix-count-wrap" v-if="recordList.length">
  114. <span class="content">收入总计:<span>{{currencySymbol | currencyFilter}}&nbsp;{{totalRecordPrice}}</span></span>
  115. <span class="content">支出总计:<span>{{currencySymbol | currencyFilter}}&nbsp;0</span></span>
  116. <p>结余:{{currencySymbol | currencyFilter}}&nbsp;{{totalRecordPrice}} (共计{{recordList.length || 0}}笔交易)</p>
  117. </div>
  118. </div>
  119. <!-- 交易记录end -->
  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. }
  238. },
  239. components: {
  240. RemindBox,
  241. PullUp,
  242. ModalWrapper,
  243. EmptyStatus
  244. },
  245. fetch ({store}) {
  246. return Promise.all([
  247. store.dispatch('payCenter/loadVendorRecord', {count: 10, page: 1, sorting: {'transferTime': 'DESC'}, type: 'sup'})
  248. ])
  249. },
  250. watch: {
  251. 'vendorAccount': {
  252. handler: function (val) {
  253. if (val && val.content) {
  254. if (this.isChange) {
  255. this.accountList = []
  256. this.isChange = false
  257. }
  258. this.accountList = [...this.accountList, ...val.content]
  259. }
  260. }
  261. },
  262. 'vendorRecord': {
  263. handler: function (val) {
  264. if (val && val.content) {
  265. if (this.isChange) {
  266. this.recordList = []
  267. this.isChange = false
  268. this.totalRecordPrice = 0
  269. }
  270. this.totalRecordPrice = this.baseUtils.priceFixed(this.totalRecordPrice + this.recordData.data.data.total)
  271. this.recordList = [...this.recordList, ...val.content]
  272. }
  273. },
  274. immediate: true
  275. }
  276. },
  277. filters: {
  278. bankStatusFilter: function (status) {
  279. let result = '未知状态'
  280. switch (status) {
  281. case 101 :
  282. result = '待审核'
  283. break
  284. case 104:
  285. result = '使用中'
  286. break
  287. case 103:
  288. result = '未通过'
  289. break
  290. case 105:
  291. result = '已失效'
  292. break
  293. case 112:
  294. result = '已删除'
  295. break
  296. }
  297. return result
  298. }
  299. },
  300. computed: {
  301. accountData () {
  302. return this.$store.state.payCenter.data.vendorAccount
  303. },
  304. recordData () {
  305. return this.$store.state.payCenter.data.vendorRecord
  306. },
  307. vendorAccount () {
  308. return this.accountData.data
  309. },
  310. vendorRecord () {
  311. return this.recordData.data.data.data
  312. },
  313. fetching () {
  314. return this.switchType === 'account' ? this.accountData.fetching : this.recordData.fetching
  315. },
  316. allPage () {
  317. return this.switchType === 'account' ? this.vendorAccount.totalPages : this.vendorRecord.totalPages
  318. },
  319. isEmpty () {
  320. return (this.switchType === 'record' && this.recordList.length === 0) || (this.switchType === 'account' && this.accountList.length === 0)
  321. },
  322. currencySymbol () {
  323. return this.recordList[0] ? this.recordList[0].currencyName : 'RMB'
  324. }
  325. },
  326. methods: {
  327. setRemindText: function (str) {
  328. this.remindText = str
  329. this.timeoutCount++
  330. },
  331. reloadList () {
  332. if (this.switchType === 'account') {
  333. this.$store.dispatch('payCenter/loadVendorAccount', {
  334. count: this.count,
  335. page: this.page,
  336. sorting: {num: 'ASC'},
  337. type: 'sup'
  338. })
  339. } else {
  340. this.$store.dispatch('payCenter/loadVendorRecord', {
  341. count: this.count,
  342. page: this.page,
  343. sorting: {'transferTime': 'DESC'},
  344. type: 'sup',
  345. fromDate: this.filterParams.fromDate || null,
  346. toDate: this.filterParams.toDate || null,
  347. keyword: this.filterParams.keyword || null
  348. })
  349. }
  350. },
  351. initList () {
  352. this.isChange = true
  353. this.page = 1
  354. this.reloadList()
  355. },
  356. onPullUpAction () {
  357. this.page++
  358. this.reloadList()
  359. },
  360. setSwitchType (type) {
  361. this.switchType = type
  362. if (type === 'record') {
  363. this.initFilterParams()
  364. }
  365. this.initList()
  366. },
  367. initFilterParams () {
  368. this.filterParams = {
  369. keyword: '',
  370. fromDate: '',
  371. toDate: '',
  372. currencyName: '',
  373. method: ''
  374. }
  375. },
  376. filterRecord () {
  377. this.isChange = true
  378. this.reloadList()
  379. },
  380. setShowSelect (type, flag) {
  381. if (type === 'all') {
  382. this.showSelectMethod = flag
  383. this.showSelectStatus = flag
  384. } else if (type === 'method') {
  385. this.showSelectMethod = flag
  386. this.showSelectStatus = false
  387. } else if (type === 'status') {
  388. this.showSelectStatus = flag
  389. this.showSelectMethod = false
  390. }
  391. },
  392. setSelect (type, val) {
  393. if (type === 'method') {
  394. this.filterParams.method = val
  395. this.setShowSelect('method', false)
  396. } else if (type === 'status') {
  397. this.filterParams.status = val
  398. this.setShowSelect('status', false)
  399. }
  400. this.filterRecord()
  401. },
  402. setDate (type) {
  403. if (this.filterParams[type]) {
  404. this.filterParams[type] = new Date(this.filterParams[type]).getTime() - 8 * 60 * 60 * 1000
  405. if (this.filterParams.fromDate && this.filterParams.toDate && this.filterParams.fromDate > this.filterParams.toDate) {
  406. if (type === 'fromDate') {
  407. this.setRemindText('起始时间不能大于结束时间')
  408. } else {
  409. this.setRemindText('结束时间不能小于起始时间')
  410. }
  411. this.filterParams[type] = null
  412. } else {
  413. if (this.filterParams.fromDate && this.filterParams.toDate && this.filterParams.fromDate === this.filterParams.toDate) {
  414. // 23:59:59
  415. this.filterParams.toDate += 23 * 60 * 60 * 1000 + 59 * 60 * 1000 + 59 * 1000
  416. }
  417. this.filterRecord()
  418. }
  419. } else {
  420. this.filterRecord()
  421. }
  422. },
  423. reuseAccount (account) {
  424. this.currentId = account.id
  425. this.showReuseModal = true
  426. },
  427. setDefaultAccount () {
  428. this.$http.get(`/trade/bankInfo/setDefaultAccount/${this.currentId}`).then(() => {
  429. this.setRemindText('重新使用完成')
  430. this.initList()
  431. this.showReuseModal = false
  432. })
  433. },
  434. deleteAccount (account) {
  435. this.$http.delete(`/trade/bankInfo/delete/${account.id}`).then(res => {
  436. if (res.data === 'success') {
  437. this.setRemindText('删除成功')
  438. this.initList()
  439. }
  440. })
  441. },
  442. initAccount () {
  443. this.bankAccountObj = {
  444. bankname: '',
  445. branchname: '',
  446. number: '',
  447. accountname: ''
  448. }
  449. this.validBankAccountObj = {
  450. bankname: false,
  451. branchname: false,
  452. number: false,
  453. accountname: false
  454. }
  455. this.file = ''
  456. },
  457. openAddAccount () {
  458. if (!this.bankList || !this.bankList.length) {
  459. this.$http.get('/data/bank.json').then(res => {
  460. this.bankList = res.data.list
  461. this.initAccount()
  462. this.showModal = true
  463. })
  464. } else {
  465. this.initAccount()
  466. this.showModal = true
  467. }
  468. },
  469. setBankName (name) {
  470. this.bankAccountObj.bankname = name
  471. this.showSimilar = false
  472. this.validBankAccountObj.bankname = true
  473. },
  474. checkBranchname () {
  475. this.validBankAccountObj.branchname = true
  476. if (!(this.bankAccountObj.branchname && this.bankAccountObj.branchname.length)) {
  477. this.setRemindText('开户支行不能为空')
  478. this.validBankAccountObj.branchname = false
  479. } else if (this.baseUtils.getRealLen(this.bankAccountObj.branchname) > 40) {
  480. this.setRemindText('开户支行不能大于40字符')
  481. this.validBankAccountObj.branchname = false
  482. } else if (!/^[\u2E80-\u9FFF]+$/.test(this.bankAccountObj.branchname)) {
  483. this.setRemindText('请输入正确的开户支行')
  484. this.validBankAccountObj.branchname = false
  485. }
  486. },
  487. checkNumber () {
  488. this.validBankAccountObj.number = true
  489. if (!(this.bankAccountObj.number && this.bankAccountObj.number.length)) {
  490. this.validBankAccountObj.number = false
  491. this.setRemindText('银行账号不能为空')
  492. } else if (this.baseUtils.getRealLen(this.bankAccountObj.number) > 30) {
  493. this.setRemindText('银行账号不能大于30字符')
  494. this.validBankAccountObj.number = false
  495. } else if (!/^[0-9]+$/.test(this.bankAccountObj.number)) {
  496. this.setRemindText('请输入正确的银行账号')
  497. this.validBankAccountObj.number = false
  498. }
  499. if (this.validBankAccountObj.number) {
  500. this.$http.get('/trade/bankInfo/number/count', {params: {type: 1061, number: this.bankAccountObj.number}}).then(res => {
  501. if (res.data.success) {
  502. if (res.data.data === 0) {
  503. this.validBankAccountObj.number = true
  504. } else {
  505. this.validBankAccountObj.number = false
  506. this.setRemindText('银行账号校验失败')
  507. }
  508. } else {
  509. this.validBankAccountObj.number = false
  510. this.setRemindText(res.data.message || '银行账号校验失败')
  511. }
  512. }, err => {
  513. this.validBankAccountObj.number = false
  514. this.setRemindText(err.response.data || '银行账号校验失败')
  515. console.log(err)
  516. })
  517. }
  518. },
  519. checkAccountname () {
  520. this.validBankAccountObj.accountname = true
  521. if (!(this.bankAccountObj.accountname && this.bankAccountObj.accountname.length)) {
  522. this.validBankAccountObj.accountname = false
  523. this.setRemindText('账户名称不能为空')
  524. } else if (this.baseUtils.getRealLen(this.bankAccountObj.accountname) > 100) {
  525. this.setRemindText('账户名称不能大于100个字符')
  526. this.validBankAccountObj.accountname = false
  527. }
  528. },
  529. addAccount () {
  530. if (!this.validBankAccountObj.bankname) {
  531. this.setRemindText('请选择开户银行')
  532. } else if (!this.validBankAccountObj.branchname) {
  533. this.setRemindText('请填写正确的开户支行')
  534. } else if (!this.validBankAccountObj.number) {
  535. this.setRemindText('请填写正确的银行账号')
  536. } else if (!this.validBankAccountObj.accountname) {
  537. this.setRemindText('请填写正确的开户名称')
  538. } else if (!this.file) {
  539. this.setRemindText('请上传开户许可证')
  540. } else {
  541. let param = new FormData()
  542. param.append('file', this.file, this.file.name)
  543. param.append('bankInfo', JSON.stringify(this.bankAccountObj))
  544. let config = {
  545. headers: {'Content-Type': 'multipart/form-data'}
  546. }
  547. this.$http.post('/trade/bankInfo/save/enterprise?type=sup', param, config).then(res => {
  548. if (res.data.id) {
  549. this.setRemindText('新增账户成功')
  550. this.initList()
  551. this.showModal = false
  552. } else {
  553. this.setRemindText('新增账户失败')
  554. }
  555. }, err => {
  556. this.setRemindText(err.response.data || '新增账户失败')
  557. console.log(err)
  558. })
  559. }
  560. },
  561. onUpload (e) {
  562. let file = e.target.files[0]
  563. let arr = file.name.split('.')
  564. let type = arr[arr.length - 1]
  565. if ('pdf/png/jpg/jpeg'.indexOf(type.toLowerCase()) === -1) {
  566. this.setRemindText('仅支持jpg/jpeg/png/pdf格式的文件')
  567. } else if (file.size > 1024 * 1024 * 3) {
  568. this.setRemindText('请勿大于3M')
  569. } else {
  570. this.file = file
  571. }
  572. }
  573. }
  574. }
  575. </script>
  576. <style lang="scss">
  577. @import '~assets/scss/mobilePayCenter';
  578. .reuse-account-modal {
  579. .ra-remind {
  580. width: 6.3rem;
  581. height: 3.5rem;
  582. position: absolute;
  583. top: 50%;
  584. left: 50%;
  585. margin-top: -1.75rem;
  586. margin-left: -3.15rem;
  587. border-radius: .15rem;
  588. .header {
  589. height: .6rem;
  590. line-height: .6rem;
  591. background: #3976f4;
  592. border-top-left-radius: .15rem;
  593. border-top-right-radius: .15rem;
  594. i {
  595. font-size: .32rem;
  596. color: #fff;
  597. float: right;
  598. margin-right: .28rem;
  599. }
  600. }
  601. .content {
  602. background: #fff;
  603. padding: .53rem .77rem;
  604. span {
  605. font-size: .32rem;
  606. }
  607. i {
  608. font-size: .44rem;
  609. color: #3976f4;
  610. float: left;
  611. margin-right: .2rem;
  612. }
  613. }
  614. .footer {
  615. background: #fff;
  616. padding-bottom: .37rem;
  617. text-align: center;
  618. border-bottom-left-radius: .15rem;
  619. border-bottom-right-radius: .15rem;
  620. margin-top: -0.05rem;
  621. button {
  622. width: 2.22rem;
  623. height: .77rem;
  624. line-height: .77rem;
  625. color: #fff;
  626. font-size: .32rem;
  627. border-radius: .08rem;
  628. background: #bfbfbf;
  629. &:last-child {
  630. background: $base-color;
  631. margin-left: .3rem;
  632. }
  633. }
  634. }
  635. }
  636. }
  637. .record-list {
  638. margin-bottom: 1.26rem
  639. }
  640. .upload {
  641. input[disabled] {
  642. background: #eee;
  643. width: 2.88rem !important;
  644. }
  645. .upload-btn {
  646. display: inline-block;
  647. vertical-align: middle;
  648. width: 1.2rem;
  649. height: .56rem;
  650. line-height: .56rem;
  651. text-align: center;
  652. color: #fff;
  653. background: #fe9d03;
  654. position: relative;
  655. left: .2rem;
  656. border-radius: .04rem;
  657. font-size: .24rem;
  658. font-weight: normal;
  659. margin: 0;
  660. input {
  661. opacity: 0;
  662. width: 1.2rem;
  663. height: .56rem;
  664. position: absolute;
  665. top: 0;
  666. }
  667. }
  668. }
  669. .fix-count-wrap {
  670. position: fixed;
  671. bottom: .98rem;
  672. height: 1.25rem;
  673. text-align: right;
  674. background: #fff;
  675. border-radius: .02rem;
  676. border-top: 1px solid #bfbfbf;
  677. line-height: .63rem;
  678. font-size: .28rem;
  679. width: 100%;
  680. padding-right: .3rem;
  681. .content {
  682. margin-left: .39rem;
  683. &:first-child {
  684. span {
  685. color: #fd0303;
  686. }
  687. }
  688. &:nth-of-type(2) {
  689. span {
  690. color: #15b262;
  691. }
  692. }
  693. }
  694. }
  695. .mp-list .content-line .icon-tixing {
  696. font-size: .32rem;
  697. color: $base-color;
  698. margin-left: .05rem;
  699. }
  700. .am-remind-text {
  701. font-size: .26rem;
  702. color: #999;
  703. margin-top: .29rem;
  704. padding: .45rem 0;
  705. border-top: 1px solid #d2d2d2;
  706. i {
  707. color: #fd0303;
  708. width: 12%;
  709. }
  710. .fr {
  711. width: 88%;
  712. }
  713. }
  714. .vendor-pay {
  715. .mobile-modal .mobile-modal-wrapper {
  716. left: .2rem !important;
  717. right: .2rem !important;
  718. }
  719. }
  720. .vendor-pay-record {
  721. bottom: 2.23rem !important;
  722. }
  723. </style>