路径调整
This commit is contained in:
parent
a7ea70534f
commit
53d909a4ba
@ -24,3 +24,12 @@ export function gzhLogin(data) {
|
|||||||
'data': data
|
'data': data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 提现接口
|
||||||
|
export function entPay(orderNo) {
|
||||||
|
return request({
|
||||||
|
'url': '/payApi/entPay?orderNo=' + orderNo,
|
||||||
|
'method': 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -64,9 +64,20 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import navigationBarVue from '@/components/navigation/navigationBar.vue';
|
import navigationBarVue from '@/components/navigation/navigationBar.vue';
|
||||||
import {formatNumberWithCommas} from '@/utils/common.js'
|
import {
|
||||||
import {pointList,payout} from '@/api/business/member.js'
|
formatNumberWithCommas
|
||||||
import {toast} from '@/utils/common.js'
|
} from '@/utils/common.js'
|
||||||
|
import {
|
||||||
|
pointList,
|
||||||
|
payout
|
||||||
|
} from '@/api/business/member.js'
|
||||||
|
import {
|
||||||
|
toast
|
||||||
|
} from '@/utils/common.js'
|
||||||
|
import {
|
||||||
|
entPay
|
||||||
|
} from '@/api/wxApi.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
navigationBarVue,
|
navigationBarVue,
|
||||||
@ -142,12 +153,36 @@
|
|||||||
outData() {
|
outData() {
|
||||||
this.$refs.inputDialog.open()
|
this.$refs.inputDialog.open()
|
||||||
},
|
},
|
||||||
|
|
||||||
dialogInputConfirm(val) {
|
dialogInputConfirm(val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
payout({points:val}).then(res => {
|
payout({
|
||||||
|
points: val
|
||||||
|
}).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
toast("已生成提现订单,请耐心等待")
|
|
||||||
// 关闭窗口后,恢复默认内容
|
// 关闭窗口后,恢复默认内容
|
||||||
|
entPay(res.data.orderNo).then(payS => {
|
||||||
|
if (wx.canIUse('requestMerchantTransfer')) {
|
||||||
|
wx.requestMerchantTransfer({
|
||||||
|
mchId: payS.config.mchId,
|
||||||
|
appId: payS.config.appId,
|
||||||
|
package: payS.runData.packageInfo,
|
||||||
|
success: (res) => {
|
||||||
|
// res.err_msg将在页面展示成功后返回应用时返回ok,并不代表付款成功
|
||||||
|
console.log('success:', res);
|
||||||
|
},
|
||||||
|
fail: (res) => {
|
||||||
|
console.log('fail:', res);
|
||||||
|
},
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
wx.showModal({
|
||||||
|
content: '你的微信版本过低,请更新至最新版本。',
|
||||||
|
showCancel: false,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
this.$refs.inputDialog.close()
|
this.$refs.inputDialog.close()
|
||||||
}
|
}
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user