切换导航条
此项目
正在载入...
登录
朱兆平
/
vue_cli
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
shenhailong
5 years ago
提交
5cf4134cb0dd03d86885e5c8d31bb66052b0a5f2
1 个父辈
a40a0f72
完善 页面 loading设置
显示空白字符变更
内嵌
并排对比
正在显示
5 个修改的文件
包含
260 行增加
和
32 行删除
package-lock.json
package.json
src/api/empt/userPayOrder.js
src/views/empt/QueryOrder.vue
src/views/empt/userPayOrder.vue
package-lock.json
查看文件 @
5cf4134
...
...
@@ -1613,8 +1613,7 @@
"base64-js"
:
{
"version"
:
"1.3.1"
,
"resolved"
:
"https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz"
,
"integrity"
:
"sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g=="
,
"dev"
:
true
"integrity"
:
"sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g=="
},
"bcrypt-pbkdf"
:
{
"version"
:
"1.0.2"
,
...
...
@@ -1830,11 +1829,29 @@
"isarray"
:
"^1.0.0"
}
},
"buffer-alloc"
:
{
"version"
:
"1.2.0"
,
"resolved"
:
"https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz"
,
"integrity"
:
"sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow=="
,
"requires"
:
{
"buffer-alloc-unsafe"
:
"^1.1.0"
,
"buffer-fill"
:
"^1.0.0"
}
},
"buffer-alloc-unsafe"
:
{
"version"
:
"1.1.0"
,
"resolved"
:
"https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz"
,
"integrity"
:
"sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg=="
},
"buffer-fill"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz"
,
"integrity"
:
"sha1-+PeLdniYiO858gXNY39o5wISKyw="
},
"buffer-from"
:
{
"version"
:
"1.1.1"
,
"resolved"
:
"https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz"
,
"integrity"
:
"sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A=="
,
"dev"
:
true
"integrity"
:
"sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A=="
},
"buffer-xor"
:
{
"version"
:
"1.0.3"
,
...
...
@@ -2954,8 +2971,7 @@
"decamelize"
:
{
"version"
:
"1.2.0"
,
"resolved"
:
"https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz"
,
"integrity"
:
"sha1-9lNNFRSCabIDUue+4m9QH5oZEpA="
,
"dev"
:
true
"integrity"
:
"sha1-9lNNFRSCabIDUue+4m9QH5oZEpA="
},
"decode-uri-component"
:
{
"version"
:
"0.2.0"
,
...
...
@@ -3092,6 +3108,11 @@
"randombytes"
:
"^2.0.0"
}
},
"dijkstrajs"
:
{
"version"
:
"1.0.1"
,
"resolved"
:
"https://registry.npmjs.org/dijkstrajs/-/dijkstrajs-1.0.1.tgz"
,
"integrity"
:
"sha1-082BIh4+pAdCz83lVtTpnpjdxxs="
},
"dir-glob"
:
{
"version"
:
"2.2.2"
,
"resolved"
:
"https://registry.npmjs.org/dir-glob/-/dir-glob-2.2.2.tgz"
,
...
...
@@ -5128,8 +5149,7 @@
"ieee754"
:
{
"version"
:
"1.1.13"
,
"resolved"
:
"https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz"
,
"integrity"
:
"sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg=="
,
"dev"
:
true
"integrity"
:
"sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg=="
},
"iferr"
:
{
"version"
:
"0.1.5"
,
...
...
@@ -9837,6 +9857,11 @@
"find-up"
:
"^1.0.0"
}
},
"pngjs"
:
{
"version"
:
"3.4.0"
,
"resolved"
:
"https://registry.npmjs.org/pngjs/-/pngjs-3.4.0.tgz"
,
"integrity"
:
"sha512-NCrCHhWmnQklfH4MtJMRjZ2a8c80qXeMlQMv2uVp9ISJMTt562SbGd6n2oq0PaPgKm7Z6pL9E2UlLIhC+SHL3w=="
},
"posix-character-classes"
:
{
"version"
:
"0.1.1"
,
"resolved"
:
"https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz"
,
...
...
@@ -10480,6 +10505,173 @@
"integrity"
:
"sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc="
,
"dev"
:
true
},
"qrcode"
:
{
"version"
:
"1.4.4"
,
"resolved"
:
"https://registry.npmjs.org/qrcode/-/qrcode-1.4.4.tgz"
,
"integrity"
:
"sha512-oLzEC5+NKFou9P0bMj5+v6Z40evexeE29Z9cummZXZ9QXyMr3lphkURzxjXgPJC5azpxcshoDWV1xE46z+/c3Q=="
,
"requires"
:
{
"buffer"
:
"^5.4.3"
,
"buffer-alloc"
:
"^1.2.0"
,
"buffer-from"
:
"^1.1.1"
,
"dijkstrajs"
:
"^1.0.1"
,
"isarray"
:
"^2.0.1"
,
"pngjs"
:
"^3.3.0"
,
"yargs"
:
"^13.2.4"
},
"dependencies"
:
{
"buffer"
:
{
"version"
:
"5.5.0"
,
"resolved"
:
"https://registry.npmjs.org/buffer/-/buffer-5.5.0.tgz"
,
"integrity"
:
"sha512-9FTEDjLjwoAkEwyMGDjYJQN2gfRgOKBKRfiglhvibGbpeeU/pQn1bJxQqm32OD/AIeEuHxU9roxXxg34Byp/Ww=="
,
"requires"
:
{
"base64-js"
:
"^1.0.2"
,
"ieee754"
:
"^1.1.4"
}
},
"camelcase"
:
{
"version"
:
"5.3.1"
,
"resolved"
:
"https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz"
,
"integrity"
:
"sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg=="
},
"cliui"
:
{
"version"
:
"5.0.0"
,
"resolved"
:
"https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz"
,
"integrity"
:
"sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA=="
,
"requires"
:
{
"string-width"
:
"^3.1.0"
,
"strip-ansi"
:
"^5.2.0"
,
"wrap-ansi"
:
"^5.1.0"
}
},
"emoji-regex"
:
{
"version"
:
"7.0.3"
,
"resolved"
:
"https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz"
,
"integrity"
:
"sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA=="
},
"find-up"
:
{
"version"
:
"3.0.0"
,
"resolved"
:
"https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz"
,
"integrity"
:
"sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg=="
,
"requires"
:
{
"locate-path"
:
"^3.0.0"
}
},
"get-caller-file"
:
{
"version"
:
"2.0.5"
,
"resolved"
:
"https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz"
,
"integrity"
:
"sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="
},
"is-fullwidth-code-point"
:
{
"version"
:
"2.0.0"
,
"resolved"
:
"https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz"
,
"integrity"
:
"sha1-o7MKXE8ZkYMWeqq5O+764937ZU8="
},
"isarray"
:
{
"version"
:
"2.0.5"
,
"resolved"
:
"https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz"
,
"integrity"
:
"sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw=="
},
"locate-path"
:
{
"version"
:
"3.0.0"
,
"resolved"
:
"https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz"
,
"integrity"
:
"sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A=="
,
"requires"
:
{
"p-locate"
:
"^3.0.0"
,
"path-exists"
:
"^3.0.0"
}
},
"p-limit"
:
{
"version"
:
"2.2.2"
,
"resolved"
:
"https://registry.npmjs.org/p-limit/-/p-limit-2.2.2.tgz"
,
"integrity"
:
"sha512-WGR+xHecKTr7EbUEhyLSh5Dube9JtdiG78ufaeLxTgpudf/20KqyMioIUZJAezlTIi6evxuoUs9YXc11cU+yzQ=="
,
"requires"
:
{
"p-try"
:
"^2.0.0"
}
},
"p-locate"
:
{
"version"
:
"3.0.0"
,
"resolved"
:
"https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz"
,
"integrity"
:
"sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ=="
,
"requires"
:
{
"p-limit"
:
"^2.0.0"
}
},
"p-try"
:
{
"version"
:
"2.2.0"
,
"resolved"
:
"https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz"
,
"integrity"
:
"sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ=="
},
"path-exists"
:
{
"version"
:
"3.0.0"
,
"resolved"
:
"https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz"
,
"integrity"
:
"sha1-zg6+ql94yxiSXqfYENe1mwEP1RU="
},
"require-main-filename"
:
{
"version"
:
"2.0.0"
,
"resolved"
:
"https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz"
,
"integrity"
:
"sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg=="
},
"string-width"
:
{
"version"
:
"3.1.0"
,
"resolved"
:
"https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz"
,
"integrity"
:
"sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w=="
,
"requires"
:
{
"emoji-regex"
:
"^7.0.1"
,
"is-fullwidth-code-point"
:
"^2.0.0"
,
"strip-ansi"
:
"^5.1.0"
}
},
"strip-ansi"
:
{
"version"
:
"5.2.0"
,
"resolved"
:
"https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz"
,
"integrity"
:
"sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA=="
,
"requires"
:
{
"ansi-regex"
:
"^4.1.0"
}
},
"which-module"
:
{
"version"
:
"2.0.0"
,
"resolved"
:
"https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz"
,
"integrity"
:
"sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho="
},
"wrap-ansi"
:
{
"version"
:
"5.1.0"
,
"resolved"
:
"https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz"
,
"integrity"
:
"sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q=="
,
"requires"
:
{
"ansi-styles"
:
"^3.2.0"
,
"string-width"
:
"^3.0.0"
,
"strip-ansi"
:
"^5.0.0"
}
},
"yargs"
:
{
"version"
:
"13.3.2"
,
"resolved"
:
"https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz"
,
"integrity"
:
"sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw=="
,
"requires"
:
{
"cliui"
:
"^5.0.0"
,
"find-up"
:
"^3.0.0"
,
"get-caller-file"
:
"^2.0.1"
,
"require-directory"
:
"^2.1.1"
,
"require-main-filename"
:
"^2.0.0"
,
"set-blocking"
:
"^2.0.0"
,
"string-width"
:
"^3.0.0"
,
"which-module"
:
"^2.0.0"
,
"y18n"
:
"^4.0.0"
,
"yargs-parser"
:
"^13.1.2"
}
},
"yargs-parser"
:
{
"version"
:
"13.1.2"
,
"resolved"
:
"https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz"
,
"integrity"
:
"sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg=="
,
"requires"
:
{
"camelcase"
:
"^5.0.0"
,
"decamelize"
:
"^1.2.0"
}
}
}
},
"qs"
:
{
"version"
:
"6.7.0"
,
"resolved"
:
"https://registry.npmjs.org/qs/-/qs-6.7.0.tgz"
,
...
...
@@ -11119,8 +11311,7 @@
"require-directory"
:
{
"version"
:
"2.1.1"
,
"resolved"
:
"https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz"
,
"integrity"
:
"sha1-jGStX9MNqxyXbiNE/+f3kqam30I="
,
"dev"
:
true
"integrity"
:
"sha1-jGStX9MNqxyXbiNE/+f3kqam30I="
},
"require-from-string"
:
{
"version"
:
"1.2.1"
,
...
...
@@ -11435,8 +11626,7 @@
"set-blocking"
:
{
"version"
:
"2.0.0"
,
"resolved"
:
"https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz"
,
"integrity"
:
"sha1-BF+XgtARrppoA93TgrJDkrPYkPc="
,
"dev"
:
true
"integrity"
:
"sha1-BF+XgtARrppoA93TgrJDkrPYkPc="
},
"set-immediate-shim"
:
{
"version"
:
"1.0.1"
,
...
...
@@ -12648,6 +12838,11 @@
}
}
},
"vue-qriously"
:
{
"version"
:
"1.1.1"
,
"resolved"
:
"https://registry.npmjs.org/vue-qriously/-/vue-qriously-1.1.1.tgz"
,
"integrity"
:
"sha512-AlP8A7LpXWF5lyJsQYxtPE3+qlRqIBX9CP3cn0Oiov9QFNovp+3z7VJLqHRQh6poXO5K2RbZwAiY3hsVVlQbRg=="
},
"vue-router"
:
{
"version"
:
"2.8.1"
,
"resolved"
:
"https://registry.npmjs.org/vue-router/-/vue-router-2.8.1.tgz"
,
...
...
@@ -13202,8 +13397,7 @@
"y18n"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz"
,
"integrity"
:
"sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w=="
,
"dev"
:
true
"integrity"
:
"sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w=="
},
"yallist"
:
{
"version"
:
"2.1.2"
,
...
...
package.json
查看文件 @
5cf4134
...
...
@@ -22,9 +22,12 @@
"moment"
:
"^2.24.0"
,
"npm"
:
"^6.8.0"
,
"nprogress"
:
"^0.2.0"
,
"qrcode"
:
"^1.4.4"
,
"qrcodejs2"
:
"^0.0.2"
,
"script-loader"
:
"^0.7.2"
,
"vue"
:
"^2.2.2"
,
"vue-i18n"
:
"^8.14.0"
,
"vue-qriously"
:
"^1.1.1"
,
"vue-router"
:
"^2.3.0"
,
"vuex"
:
"^2.0.0-rc.6"
,
"xlsx"
:
"^0.15.1"
...
...
src/api/empt/userPayOrder.js
查看文件 @
5cf4134
...
...
@@ -36,6 +36,15 @@ export const add = params => { return axios({
}
})};
export
const
qrCode
=
params
=>
{
return
axios
({
method
:
'POST'
,
url
:
`
$
{
base
}
/qrCode`
,
params
:
params
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
}
})};
export
const
update
=
params
=>
{
return
axios
({
method
:
'PUT'
,
url
:
`
$
{
base
}
/update`
,
...
...
src/views/empt/QueryOrder.vue
查看文件 @
5cf4134
...
...
@@ -25,6 +25,7 @@
</el-form>
</el-col>
<el-table
v-loading="listLoading"
:data="tableData"
stripe
style="width: 100%">
...
...
@@ -58,8 +59,8 @@
<el-table-column prop="paystatus" label="支付状态" width="100">
<template slot-scope="scope">
<div v-if="scope.row.payfesstype === false" style="color:#ff4d51">未完成</div>
<div v-else="scope.row.payfesstype === true" style="color: #42d885">已完成</div>
<div v-if="scope.row.paystatus === false" style="color:#ff4d51">未完成</div>
<div v-else="scope.row.paystatus === true" style="color: #42d885">已完成</div>
</template>
</el-table-column>
<el-table-column
...
...
@@ -95,7 +96,7 @@
total: 0,
pageNum: 1,
pageSize: 5,
listLoading: false,
pickerOptions: {
shortcuts: [{
text: '最近一周',
...
...
@@ -137,6 +138,7 @@
handleCurrentChange(val) {
this.pageNum = val;
this.QueryOrder();
},
QueryOrder(){
...
...
@@ -152,16 +154,20 @@
payTime: payTimes,
};
this.listLoading = true;
getOrder(params).then(res=>{
let resData = res.data;
this.total = resData.total;
this.tableData = resData.list;
this.listLoading = false;
}).catch((error) => {
if(null!= error.response && error.response!==undefined){
let status= error.response.status;
let msg = error.response.statusText;
this.listLoading = false;
alert(status+msg);
}else {
this.listLoading = false;
alert(error);
}
})
...
...
src/views/empt/userPayOrder.vue
查看文件 @
5cf4134
<template>
<el-container>
<el-main >
<el-row type="flex" class="row-bg" justify="center">
<el-row type="flex" class="row-bg" justify="center"
v-loading="loading"
>
<el-col :span="20">
<div>
<h2 style="width: 150px" type="primary"> 查询房间号</h2>
...
...
@@ -74,9 +74,18 @@
<el-button style="margin-left:885px" type="primary" v-on:click="topUpWater()">充值水费</el-button>
</el-col>
</el-row>
<el-dialog
title="扫码支付"
:visible.sync="dialogVisible"
width="15%"
>
<template>
<div>
<qriously :value="Qrcode" :size="200" />
</div>
</template>
</el-dialog>
</el-main>
</el-container>
</template>
...
...
@@ -85,16 +94,20 @@
</style>
<script>
import loginUserInfo from '@/api/base'
import {getList, add} from '../../api/empt/userPayOrder';
import ElCol from "element-ui/packages/col/src/col";
import {getList, add, qrCode} from '../../api/empt/userPayOrder';
import ElCol from "element-ui/packages/col/src/col"
// import QRCode from 'qrcodejs2'
import Vue from 'vue'
import VueQriously from 'vue-qriously'
Vue.use(VueQriously)
export default {
components: {ElCol},
data() {
return{
loading:false,
filters:{
roomNumber:''
},
electricityForm:{
overdraftthreshold:'',
payTime:'',
...
...
@@ -122,7 +135,9 @@
labelPosition:'left',
Edistatus:'',
shuibiao:'',
dianbiao:''
dianbiao:'',
dialogVisible:false,
Qrcode: ''
}
},
methods:{
...
...
@@ -133,7 +148,7 @@
roomNumber: this.filters.roomNumber
};
this.loading=true;
getList(para).then((res) => {
let resData = res.data;
if (resData.length > 0) {
...
...
@@ -149,6 +164,7 @@
this.waterForm.userId = JSON.parse(sessionStorage.getItem('user')).userId;
}
}
this.loading=false;
} else {
this.$alert('请输入正确的房间号', '提示', {
confirmButtonText: '确定',
...
...
@@ -158,10 +174,10 @@
}
this.l
istL
oading = false;
this.loading = false;
//NProgress.done();
}).catch((error) => {
this.l
istL
oading = false;
this.loading = false;
if (null != error.response && error.response !== undefined) {
let status = error.response.status;
let msg = error.response.statusText;
...
...
@@ -184,13 +200,13 @@
if (valid) {
this.$confirm('确认充值吗?', '提示', {}).then(() => {
let para = Object.assign({}, this.waterForm);
add(para).then((res) => {
this.loading=true;
qrCode(para).then((res) => {
this.addLoading = false;
if (res.data.code == 200) {
this.$message({
message: '充值成功',
type: 'success'
});
this.dialogVisible=true;
this.Qrcode = res.data.data;
this.loading=false;
}else {
this.$message({
message: '网络异常',
...
...
请
注册
或
登录
后发表评论