payCenter.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
  1. <template>
  2. <div class="mobile-pay-center mobile-fix-content mobile-centerfix-content" :style="switchType === 'account' ? 'padding-bottom: 1rem;' : ''" id="mobileFixContent" @click="setShowSelect('all', false)">
  3. <div class="mp-head" v-if="!fromUserPage">
  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. <div class="mp-content" v-if="switchType == 'account'">
  8. <!--<p class="mp-content-header">已设置的账户信息<span class="fr" @click="openAddAccount"><i class="iconfont icon-xinzeng"></i>新增账户</span></p>-->
  9. <ul class="mp-list">
  10. <li v-for="account in accountList">
  11. <div class="content-line">
  12. <span class="inline-block title">开户银行:</span>
  13. <span class="inline-block content text-ellipse">{{account.bankname}}</span>
  14. </div>
  15. <div class="content-line">
  16. <span class="inline-block title">开户支行:</span>
  17. <span class="inline-block content text-ellipse">{{account.branchname}}</span>
  18. </div>
  19. <div class="content-line">
  20. <span class="inline-block title">银行账户:</span>
  21. <span class="inline-block content text-ellipse">{{account.number}}</span>
  22. </div>
  23. <div class="content-line">
  24. <span class="inline-block title">开户名称:</span>
  25. <span class="inline-block content text-ellipse">{{account.accountname}}</span>
  26. </div>
  27. <!-- <div class="content-line clearfix">
  28. <span class="inline-block title">操作:</span>
  29. <a class="fr inline-block default-icon" v-if="account.num == 1">默认账户</a>
  30. <a class="fr inline-block set-default-icon" v-if="account.num != 1" @click="setDefaultAccount(account)">设为默认</a>
  31. <a class="fr inline-block" @click="deleteAccount(account)">删除</a>
  32. </div>-->
  33. <div class="btn-wrap">
  34. <a class="inline-block default-icon" v-if="account.num == 1"><i class="iconfont icon-gouxuan1"></i>默认账户</a>
  35. <a class="inline-block set-default-icon" v-if="account.num != 1" @click="setDefaultAccount(account)"><i class="iconfont icon-gouxuan1"></i>设为默认</a>
  36. <a class="inline-block" @click="deleteAccount(account)"><i class="iconfont icon-lajitong"></i>删除</a>
  37. </div>
  38. </li>
  39. </ul>
  40. <div class="com-btn-wrap mp-btn-wrap">
  41. <button @click.stop="openAddAccount"><i class="iconfont icon-add"></i>新增账户</button>
  42. </div>
  43. </div>
  44. <div class="mp-record" v-if="switchType == 'record'">
  45. <div class="search-content">
  46. <input type="text" placeholder="卖家名称/订单号" v-model="filterParams.keyword" @keyup.13="filterRecord">
  47. <span @click="filterRecord"><i class="iconfont icon-sousuo"></i></span>
  48. </div>
  49. <!--<div class="filters-wrap">
  50. <div class="date-wrap">
  51. <label>
  52. <i class="iconfont icon-ico-date"></i>
  53. <input type="date" v-model="dateObj.fromDate" @change="setDate('fromDate')">
  54. <p v-if="filterParams.fromDate">{{filterParams.fromDate | date}}</p>
  55. </label>
  56. <span>—</span>
  57. <label>
  58. <i class="iconfont icon-ico-date"></i>
  59. <input type="date" v-model="dateObj.toDate" @change="setDate('toDate')">
  60. <p v-if="filterParams.toDate">{{filterParams.toDate | date}}</p>
  61. </label>
  62. </div>
  63. <ul class="select-wrap">
  64. <li class="inline-block">
  65. <div @click.stop="setShowSelect('method', !showSelectMethod)">{{filterParams.method ? filterParams.method == 1103 ? '线下支付' : '线上支付' : '交易方式'}}</div>
  66. <ul class="select-list" v-show="showSelectMethod">
  67. <li @click.stop="setSelect('method', null)">交易方式</li>
  68. <li @click.stop="setSelect('method', 1103)">线下支付</li>
  69. <li @click.stop="setSelect('method', 1102)">线上支付</li>
  70. </ul>
  71. </li>
  72. <li class="inline-block">
  73. <div @click.stop="setShowSelect('currencyName', !showSelectCurrency)">{{filterParams.currencyName || '币种'}}</div>
  74. <ul class="select-list" v-show="showSelectCurrency">
  75. <li @click.stop="setSelect('currencyName', null)">币种</li>
  76. <li @click.stop="setSelect('currencyName', 'RMB')">RMB</li>
  77. <li @click.stop="setSelect('currencyName', 'USD')">USD</li>
  78. </ul>
  79. </li>
  80. <li class="inline-block">
  81. <div @click.stop="setShowSelect('status', !showSelectStatus)">{{filterParams.status || '状态'}}</div>
  82. <ul class="select-list" v-show="showSelectStatus">
  83. <li @click.stop="setSelect('status', null)">状态</li>
  84. <li @click.stop="setSelect('status', '支付成功')">支付成功</li>
  85. </ul>
  86. </li>
  87. </ul>
  88. </div>-->
  89. <div class="filters-wrap">
  90. <base-filter
  91. v-for="filterOption in filterOptions"
  92. :key="filterOption.selectOption"
  93. :selectItems="filterOption.selectItems"
  94. :defaultVal="filterOption.defaultVal"
  95. :selectOption="filterOption.selectOption"
  96. @selectAction="onSelectAction"
  97. :title="filterOption.title"></base-filter>
  98. </div>
  99. <ul class="mp-list record-list mp-list-record">
  100. <li v-for="record in recordList">
  101. <div class="content-line">
  102. <span class="inline-block title">订单号:</span>
  103. <nuxt-link :to="`/mobile/order/details?uuid=${baseUtils.enidfilter(record.orderid)}&type=buyer`" class="inline-block content link">{{record.orderid}}</nuxt-link>
  104. </div>
  105. <div class="content-line">
  106. <span class="inline-block title">金额:</span>
  107. <span class="inline-block content">{{record.currencyName | currencyFilter}}{{record.ensurePrice}}</span>
  108. </div>
  109. <div class="content-line">
  110. <span class="inline-block title">卖家:</span>
  111. <span class="inline-block content">{{record.sellername}}</span>
  112. </div>
  113. <!--<div class="content-line">
  114. <span class="inline-block title">交易方式:</span>
  115. <span class="inline-block content text-ellipse">{{record.paytype == 1103 ? '线下支付' : '线上支付'}}</span>
  116. </div>-->
  117. <div class="content-line">
  118. <span class="inline-block title">收款方式:</span>
  119. <span class="inline-block content">卖家收款</span>
  120. </div>
  121. <div class="content-line">
  122. <span class="inline-block title">时间:</span>
  123. <span class="inline-block content">{{record.paytime | time}}</span>
  124. </div>
  125. <div class="content-line">
  126. <span class="inline-block title">状态:</span>
  127. <span class="inline-block content">支付成功</span>
  128. </div>
  129. </li>
  130. </ul>
  131. </div>
  132. <remind-box :title="remindText" :timeoutCount="timeoutCount"></remind-box>
  133. <pull-up :fixId="'mobileFixContent'" :searchMore="fetching" :allPage="allPage" :page="page" @pullUpAction="onPullUpAction"></pull-up>
  134. <!-- 新增账户弹框start -->
  135. <div class="mobile-modal account-modal" @click="showSimilar = false" v-if="showModal">
  136. <div class="account-modal-wrap add-account-modal">
  137. <div class="account-modal">
  138. <p class="title">新增账户</p>
  139. <div class="modal-content-line">
  140. <span class="inline-block"><i>*</i>开户银行:</span>
  141. <input type="text" readonly placeholder="例如:中国银行" v-model="bankAccountObj.bankname" @click.stop="showSimilar = !showSimilar">
  142. <ul v-if="showSimilar" class="similar">
  143. <li class="text-ellipse" v-for="bank in bankList" @click.stop="setBankName(bank)">{{bank}}</li>
  144. </ul>
  145. </div>
  146. <div class="modal-content-line">
  147. <span class="inline-block"><i>*</i>开户支行:</span>
  148. <input type="text" placeholder="例如:乔香支行" v-model="bankAccountObj.branchname" @blur="checkBranchname">
  149. </div>
  150. <div class="modal-content-line">
  151. <span class="inline-block"><i>*</i>银行账号:</span>
  152. <input type="text" placeholder="请填写银行账号" v-model="bankAccountObj.number" @blur="checkNumber">
  153. </div>
  154. <div class="modal-content-line">
  155. <span class="inline-block"><i>*</i>开户名称:</span>
  156. <input type="text" placeholder="请填写开户人姓名或企业名称" v-model="bankAccountObj.accountname" @blur="checkAccountname">
  157. </div>
  158. <div class="modal-content-line clearfix">
  159. <p class="remind"><i>*</i>为保障您的资金安全,账户信息加密显示且不可修改,只能删除后重新提交。</p>
  160. </div>
  161. <div class="am-btn-wrap">
  162. <button @click="showModal = false">取消</button>
  163. <button @click="addAccount">确认</button>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. <empty-status v-if="isEmpty" :text="switchType == 'record' ? '暂无支付记录,请下单购买商品吧!' : '暂无账户信息'" :showLink="true"></empty-status>
  169. <!-- 新增账户弹框end -->
  170. </div>
  171. </template>
  172. <script>
  173. import { RemindBox, PullUp, EmptyStatus } from '~components/mobile/common'
  174. import { ModalWrapper, BaseFilter } from '~components/mobile/base'
  175. export default {
  176. layout: 'mobile',
  177. middleware: 'authenticated',
  178. data () {
  179. return {
  180. fromUserPage: false,
  181. remindText: '',
  182. timeoutCount: '',
  183. page: 1,
  184. count: 10,
  185. accountList: [],
  186. recordList: [],
  187. switchType: 'record',
  188. // 分页重置标志
  189. isChange: false,
  190. showModal: false,
  191. bankList: [],
  192. showSimilar: false,
  193. bankAccountObj: {
  194. bankname: '',
  195. branchname: '',
  196. number: '',
  197. accountname: ''
  198. },
  199. validBankAccountObj: {
  200. bankname: false,
  201. branchname: false,
  202. number: false,
  203. accountname: false
  204. },
  205. filterParams: {
  206. keyword: '',
  207. fromDate: '',
  208. toDate: '',
  209. currencyName: '',
  210. // 交易方式
  211. method: ''
  212. },
  213. showSelectMethod: false,
  214. showSelectCurrency: false,
  215. showSelectStatus: false,
  216. dateObj: {
  217. fromDate: '',
  218. toDate: ''
  219. },
  220. filterOptions: [
  221. // {
  222. // title: '交易方式',
  223. // selectOption: 'method',
  224. // selectItems: [{key: '全部',
  225. // val: 0
  226. // }, {
  227. // key: '卖家收款',
  228. // val: 1
  229. // }, {
  230. // key: '平台代收',
  231. // val: 2
  232. // }],
  233. // defaultVal: 0
  234. // },
  235. {
  236. title: '交易币种',
  237. selectOption: 'currencyName',
  238. selectItems: [{key: '全部',
  239. val: 0
  240. }, {
  241. key: 'RMB',
  242. val: 'RMB'
  243. }, {
  244. key: 'USD',
  245. val: 'USD'
  246. }],
  247. defaultVal: 0
  248. },
  249. // {
  250. // title: '交易状态',
  251. // selectOption: 'status',
  252. // selectItems: [{key: '全部',
  253. // val: 0
  254. // }, {
  255. // key: '已付款',
  256. // val: 1
  257. // }, {
  258. // key: '待付款',
  259. // val: 2
  260. // }],
  261. // defaultVal: 0
  262. // },
  263. {
  264. title: '交易时间',
  265. selectOption: 'date',
  266. selectItems: [{key: '全部',
  267. val: 0
  268. }, {
  269. key: '一个月',
  270. val: 1
  271. }, {
  272. key: '三个月',
  273. val: 2
  274. }, {
  275. key: '六个月',
  276. val: 3
  277. }, {
  278. key: '自定义',
  279. val: 4
  280. }],
  281. defaultVal: 0
  282. }
  283. ]
  284. }
  285. },
  286. components: {
  287. RemindBox,
  288. PullUp,
  289. ModalWrapper,
  290. EmptyStatus,
  291. BaseFilter
  292. },
  293. fetch ({store, route}) {
  294. return route.query.type ? Promise.all([
  295. store.dispatch('payCenter/loadBuyerAccount', {count: 10, page: 1, sorting: {num: 'ASC'}, type: 'buyer'})
  296. ]) : Promise.all([
  297. // store.dispatch('payCenter/loadBuyerAccount', {count: 10, page: 1, sorting: {num: 'ASC'}, type: 'buyer'})
  298. store.dispatch('payCenter/loadBuyerRecord', {count: 10, page: 1, sorting: {'paytime': 'DESC'}})
  299. ])
  300. },
  301. asyncData({route}) {
  302. return {
  303. fromUserPage: route.query.type ? true : false,
  304. switchType: route.query.switchType || 'record'
  305. }
  306. },
  307. watch: {
  308. 'buyerAccount': {
  309. handler: function (val) {
  310. if (val && val.content) {
  311. if (this.isChange) {
  312. this.accountList = []
  313. this.isChange = false
  314. }
  315. this.accountList = [...this.accountList, ...val.content]
  316. }
  317. },
  318. immediate: true
  319. },
  320. 'buyerRecord': {
  321. handler: function (val) {
  322. if (val && val.content) {
  323. if (this.isChange) {
  324. this.recordList = []
  325. this.isChange = false
  326. }
  327. this.recordList = [...this.recordList, ...val.content]
  328. }
  329. },
  330. immediate: true
  331. }
  332. },
  333. computed: {
  334. accountData () {
  335. return this.$store.state.payCenter.data.buyerAccount
  336. },
  337. recordData () {
  338. return this.$store.state.payCenter.data.buyerRecord
  339. },
  340. buyerAccount () {
  341. return this.accountData.data
  342. },
  343. buyerRecord () {
  344. return this.recordData.data
  345. },
  346. fetching () {
  347. return this.switchType === 'account' ? this.accountData.fetching : this.recordData.fetching
  348. },
  349. allPage () {
  350. return this.switchType === 'account' ? this.buyerAccount.totalPages : this.buyerRecord.totalPages
  351. },
  352. isEmpty () {
  353. return (this.switchType === 'record' && this.recordList.length === 0) || (this.switchType === 'account' && this.accountList.length === 0)
  354. }
  355. },
  356. methods: {
  357. setRemindText: function (str) {
  358. this.remindText = str
  359. this.timeoutCount++
  360. },
  361. reloadList () {
  362. if (this.switchType === 'account') {
  363. this.$store.dispatch('payCenter/loadBuyerAccount', {
  364. count: this.count,
  365. page: this.page,
  366. sorting: {num: 'ASC'},
  367. type: 'buyer'
  368. })
  369. } else {
  370. this.$store.dispatch('payCenter/loadBuyerRecord', {
  371. count: this.count,
  372. page: this.page,
  373. sorting: {'paytime': 'DESC'},
  374. currencyName: this.filterParams.currencyName || null,
  375. fromDate: this.filterParams.fromDate || null,
  376. toDate: this.filterParams.toDate || null,
  377. method: this.filterParams.method || null,
  378. keyword: this.filterParams.keyword || null
  379. })
  380. }
  381. },
  382. initList () {
  383. this.isChange = true
  384. this.page = 1
  385. this.reloadList()
  386. },
  387. onPullUpAction () {
  388. this.page++
  389. this.reloadList()
  390. },
  391. setSwitchType (type) {
  392. this.switchType = type
  393. if (type === 'record') {
  394. this.initFilterParams()
  395. }
  396. this.initList()
  397. },
  398. initFilterParams () {
  399. this.filterParams = {
  400. keyword: '',
  401. fromDate: '',
  402. toDate: '',
  403. currencyName: '',
  404. method: ''
  405. }
  406. },
  407. filterRecord () {
  408. this.isChange = true
  409. this.reloadList()
  410. },
  411. setShowSelect (type, flag) {
  412. if (type === 'all') {
  413. this.showSelectMethod = flag
  414. this.showSelectCurrency = flag
  415. this.showSelectStatus = flag
  416. } else if (type === 'method') {
  417. this.showSelectMethod = flag
  418. this.showSelectCurrency = false
  419. this.showSelectStatus = false
  420. } else if (type === 'currencyName') {
  421. this.showSelectCurrency = flag
  422. this.showSelectStatus = false
  423. this.showSelectMethod = false
  424. } else if (type === 'status') {
  425. this.showSelectStatus = flag
  426. this.showSelectMethod = false
  427. this.showSelectCurrency = false
  428. }
  429. },
  430. setSelect (type, val) {
  431. // if (type === 'method') {
  432. // this.filterParams.method = val
  433. // this.setShowSelect('method', false)
  434. // } else if (type === 'currencyName') {
  435. // this.filterParams.currencyName = val
  436. // this.setShowSelect('currencyName', false)
  437. // } else if (type === 'status') {
  438. // this.filterParams.status = val
  439. // this.setShowSelect('status', false)
  440. // }
  441. if (type === 'date') {
  442. if (val) {
  443. this.filterParams.fromDate = val.fromDate
  444. this.filterParams.toDate = val.toDate
  445. } else {
  446. this.filterParams.fromDate = null
  447. this.filterParams.toDate = null
  448. }
  449. } else {
  450. this.filterParams[type] = val
  451. }
  452. this.filterRecord()
  453. },
  454. onSelectAction (selectObj) {
  455. this.setSelect(selectObj.key, selectObj.value)
  456. },
  457. setDate (type) {
  458. if (this.dateObj[type]) {
  459. this.filterParams[type] = new Date(this.dateObj[type]).getTime() - 8 * 60 * 60 * 1000
  460. if (this.filterParams.fromDate && this.filterParams.toDate && this.filterParams.fromDate > this.filterParams.toDate) {
  461. if (type === 'fromDate') {
  462. this.setRemindText('起始时间不能大于结束时间')
  463. } else {
  464. this.setRemindText('结束时间不能小于起始时间')
  465. }
  466. this.filterParams[type] = null
  467. this.dateObj[type] = null
  468. } else {
  469. if (this.filterParams.fromDate && this.filterParams.toDate && this.filterParams.fromDate === this.filterParams.toDate) {
  470. // 23:59:59
  471. this.filterParams.toDate += 23 * 60 * 60 * 1000 + 59 * 60 * 1000 + 59 * 1000
  472. }
  473. this.filterRecord()
  474. }
  475. } else {
  476. this.filterParams[type] = null
  477. this.filterRecord()
  478. }
  479. },
  480. setDefaultAccount (account) {
  481. this.$http.get(`/trade/bankInfo/setDefaultAccount/${account.id}`).then(() => {
  482. this.setRemindText('设置完成')
  483. this.initList()
  484. })
  485. },
  486. deleteAccount (account) {
  487. this.$http.delete(`/trade/bankInfo/delete/${account.id}`).then(res => {
  488. if (res.data === 'success') {
  489. this.setRemindText('删除成功')
  490. this.initList()
  491. }
  492. })
  493. },
  494. initAccount () {
  495. this.bankAccountObj = {
  496. bankname: '',
  497. branchname: '',
  498. number: '',
  499. accountname: ''
  500. }
  501. this.validBankAccountObj = {
  502. bankname: false,
  503. branchname: false,
  504. number: false,
  505. accountname: false
  506. }
  507. },
  508. openAddAccount () {
  509. if (!this.bankList || !this.bankList.length) {
  510. this.$http.get('/data/bank.json').then(res => {
  511. this.bankList = res.data.list
  512. this.initAccount()
  513. this.showModal = true
  514. })
  515. } else {
  516. this.initAccount()
  517. this.showModal = true
  518. }
  519. },
  520. setBankName (name) {
  521. this.bankAccountObj.bankname = name
  522. this.showSimilar = false
  523. this.validBankAccountObj.bankname = true
  524. },
  525. checkBranchname () {
  526. this.validBankAccountObj.branchname = true
  527. if (!(this.bankAccountObj.branchname && this.bankAccountObj.branchname.length)) {
  528. this.setRemindText('开户支行不能为空')
  529. this.validBankAccountObj.branchname = false
  530. } else if (this.baseUtils.getRealLen(this.bankAccountObj.branchname) > 40) {
  531. this.setRemindText('开户支行不能大于40字符')
  532. this.validBankAccountObj.branchname = false
  533. } else if (!/^[\u2E80-\u9FFF]+$/.test(this.bankAccountObj.branchname)) {
  534. this.setRemindText('请输入正确的开户支行')
  535. this.validBankAccountObj.branchname = false
  536. }
  537. },
  538. checkNumber () {
  539. this.validBankAccountObj.number = true
  540. if (!(this.bankAccountObj.number && this.bankAccountObj.number.length)) {
  541. this.validBankAccountObj.number = false
  542. this.setRemindText('银行账号不能为空')
  543. } else if (this.baseUtils.getRealLen(this.bankAccountObj.number) > 30) {
  544. this.setRemindText('银行账号不能大于30字符')
  545. this.validBankAccountObj.number = false
  546. } else if (!/^[0-9]+$/.test(this.bankAccountObj.number)) {
  547. this.setRemindText('请输入正确的银行账号')
  548. this.validBankAccountObj.number = false
  549. }
  550. if (this.validBankAccountObj.number) {
  551. this.$http.get('/trade/bankInfo/number/count', {params: {type: 1061, number: this.bankAccountObj.number}}).then(res => {
  552. if (res.data.success) {
  553. this.validBankAccountObj.number = res.data.data === 0
  554. } else {
  555. this.validBankAccountObj.number = false
  556. this.setRemindText(res.data.message || '银行账号校验失败')
  557. }
  558. }, err => {
  559. this.validBankAccountObj.number = false
  560. this.setRemindText(err.response.data || '银行账号校验失败')
  561. console.log(err)
  562. })
  563. }
  564. },
  565. checkAccountname () {
  566. this.validBankAccountObj.accountname = true
  567. if (!(this.bankAccountObj.accountname && this.bankAccountObj.accountname.length)) {
  568. this.validBankAccountObj.accountname = false
  569. this.setRemindText('账户名称不能为空')
  570. } else if (this.baseUtils.getRealLen(this.bankAccountObj.accountname) > 100) {
  571. this.setRemindText('账户名称不能大于100个字符')
  572. this.validBankAccountObj.accountname = false
  573. }
  574. },
  575. addAccount () {
  576. if (!this.validBankAccountObj.bankname) {
  577. this.setRemindText('请选择开户银行')
  578. } else if (!this.validBankAccountObj.branchname) {
  579. this.setRemindText('请填写正确的开户支行')
  580. } else if (!this.validBankAccountObj.number) {
  581. this.setRemindText('请填写正确的银行账号')
  582. } else if (!this.validBankAccountObj.accountname) {
  583. this.setRemindText('请填写正确的开户名称')
  584. } else {
  585. this.$http.post('/trade/bankInfo/save/personal?type=buyer', this.bankAccountObj).then(res => {
  586. if (res.data.id) {
  587. this.setRemindText('新增账户成功')
  588. this.initList()
  589. this.showModal = false
  590. } else {
  591. this.setRemindText('新增账户失败')
  592. }
  593. }, err => {
  594. this.setRemindText(err.response.data || '新增账户失败')
  595. console.log(err)
  596. })
  597. }
  598. }
  599. }
  600. }
  601. </script>
  602. <style lang="scss" scoped>
  603. @import '~assets/scss/mobilePayCenter';
  604. </style>