payCenter.vue 25 KB

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