Compare commits
4 Commits
277be2968d
...
11148a7f3b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
11148a7f3b | ||
|
|
ee709cabd1 | ||
|
|
d4e039ed81 | ||
|
|
c431e05c33 |
@ -209,6 +209,14 @@ export function getMemberCoupon() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//查询在途提现订单
|
||||||
|
export function getOnWayOrder() {
|
||||||
|
return request({
|
||||||
|
url: '/member/points/getOnWayOrder',
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
//积分提现
|
//积分提现
|
||||||
export function payout(data) {
|
export function payout(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
// 应用全局配置
|
// 应用全局配置
|
||||||
module.exports = {
|
module.exports = {
|
||||||
// baseUrl: 'https://www.ddtg.site/noticeApi',
|
// baseUrl: 'https://www.ddtg.site/noticeApi',
|
||||||
baseUrl: 'https://www.ddtg.site/noticeApi',
|
// baseUrl: 'https://www.ddtg.site/noticeApi',
|
||||||
// baseUrl: 'http://192.168.1.4:8099',
|
baseUrl: 'http://192.168.1.4:8099',
|
||||||
// 应用信息
|
// 应用信息
|
||||||
appInfo: {
|
appInfo: {
|
||||||
// 应用名称
|
// 应用名称
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
<view class="right-dom" @click="outData()">提现</view>
|
<view class="right-dom" @click="outData()">提现</view>
|
||||||
<view class="tips">
|
<view class="tips">
|
||||||
<uni-icons type="info" size="12"></uni-icons>
|
<uni-icons type="info" size="12"></uni-icons>
|
||||||
1积分=1元
|
1积分=0.1元
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -31,8 +31,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="ifHasWaiting" class="daiban-box">
|
<view v-if="wayOrder!=null" class="daiban-box">
|
||||||
您有一笔金额为<text>10</text>元的提现订单,请及时处理
|
您有一笔<text>{{ wayOrder.points }}</text>积分的提现订单,请及时处理
|
||||||
</view>
|
</view>
|
||||||
<view class="data-list-box">
|
<view class="data-list-box">
|
||||||
<view class="content-box">
|
<view class="content-box">
|
||||||
@ -68,7 +68,7 @@
|
|||||||
<!-- 输入框示例 -->
|
<!-- 输入框示例 -->
|
||||||
<uni-popup ref="inputDialog" type="dialog">
|
<uni-popup ref="inputDialog" type="dialog">
|
||||||
<uni-popup-dialog tixian="true" inputType="number" :money="money" ref="inputClose" mode="input" title="积分提现"
|
<uni-popup-dialog tixian="true" inputType="number" :money="money" ref="inputClose" mode="input" title="积分提现"
|
||||||
placeholder="请输入提现金额" @confirm="dialogInputConfirm" @getEndMoney="getEndMoney"></uni-popup-dialog>
|
placeholder="请输入提现积分" @confirm="dialogInputConfirm" @getEndMoney="getEndMoney"></uni-popup-dialog>
|
||||||
</uni-popup>
|
</uni-popup>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@ -80,7 +80,8 @@
|
|||||||
} from '@/utils/common.js'
|
} from '@/utils/common.js'
|
||||||
import {
|
import {
|
||||||
pointList,
|
pointList,
|
||||||
payout
|
payout,
|
||||||
|
getOnWayOrder
|
||||||
} from '@/api/business/member.js'
|
} from '@/api/business/member.js'
|
||||||
import {
|
import {
|
||||||
toast
|
toast
|
||||||
@ -101,6 +102,7 @@
|
|||||||
ifHasWaiting: false,
|
ifHasWaiting: false,
|
||||||
menus: ['积分收支明细'],
|
menus: ['积分收支明细'],
|
||||||
menuIndex: 0,
|
menuIndex: 0,
|
||||||
|
wayOrder:{},
|
||||||
//积分明细
|
//积分明细
|
||||||
dataList: [{
|
dataList: [{
|
||||||
fromCode: "",
|
fromCode: "",
|
||||||
@ -137,8 +139,24 @@
|
|||||||
this.pointsBalance = option.pointsBalance
|
this.pointsBalance = option.pointsBalance
|
||||||
this.initData()
|
this.initData()
|
||||||
},
|
},
|
||||||
|
onShow(){
|
||||||
|
this.initWayOrder()
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
initWayOrder(){
|
||||||
|
getOnWayOrder().then(res=>{
|
||||||
|
if(res.code == 200) {
|
||||||
|
console.log(res,'res')
|
||||||
|
if (res.data){
|
||||||
|
this.wayOrder = res.data
|
||||||
|
} else {
|
||||||
|
this.wayOrder = null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 格式化数字
|
* 格式化数字
|
||||||
* @param {Object} number
|
* @param {Object} number
|
||||||
@ -188,7 +206,6 @@
|
|||||||
points: val
|
points: val
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
|
||||||
// 关闭窗口后,恢复默认内容
|
// 关闭窗口后,恢复默认内容
|
||||||
entPay(res.data.orderNo).then(payS => {
|
entPay(res.data.orderNo).then(payS => {
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user