@@ -23,6 +23,7 @@ export const getWxSign = (url = location.href) => request({
method: 'GET',
url: '/wechat/signature',
params: {
- url: url
+ url: url,
+ wechatAccount: 'default'
}
})
@@ -198,7 +198,11 @@
getChinaArea().then(res => {
if (res.status) {
this.columns = res.data
+ } else {
+ Toast(res.msg)
+ }).catch(err => {
+ Toast(err)
},
funGetProductDetail () {
@@ -316,14 +320,28 @@
return
+ const myToast = Toast.loading({
+ message: '提交中...',
+ duration: 1000 * 100,
+ forbidClick: true
+ })
createOrder(postData).then(res => {
+ myToast.clear()
const { id } = res.data
- this.$router.replace({ path: '/loan/detail/' + id })
+ Toast({
+ type: 'success',
+ message: '提交成功',
+ forbidClick: true,
+ onClose: () => {
+ this.$router.replace({ path: '/loan/detail/' + id })
+ }
Toast(res.msg)
}).catch(err => {
Toast(err)
@@ -92,13 +92,27 @@
submitData(postData).then(res => {
- this.$router.replace({ path: `/loan/detail/${this.id}` })
+ this.$router.replace({ path: `/loan/detail/${this.id}` })
Toast(err.msg)
@@ -146,7 +146,11 @@
getBankList(this.id).then(res => {
this.columnsOfStore = res.data.map(item => item.bankName)
funSubmit () {
@@ -163,13 +167,27 @@
Toast('请选择办理网点')
postBespeak(postData).then(res => {
- this.$router.push({ path: `/loan/detail/${postData.id}` })
+ this.$router.push({ path: `/loan/detail/${postData.id}` })
@@ -254,7 +254,11 @@
children: province.children.filter(city => city.text === '杭州')
handleTextarea (el, auto) {
@@ -385,13 +389,27 @@
register(postData).then(res => {
- this.$router.replace({ path: '/loan/mine' })
+ this.$router.replace({ path: '/loan/mine' })