|
|
@@ -13,6 +13,7 @@ onLoad((options: any) => {
|
|
|
const mapUser = ['全部用户', '仅限新用户', '特定用户标签', '指定用户']
|
|
|
const phone = ref(useUserStore().userInfo.mobile)
|
|
|
const selectGoods = ref<Api.PmsDjkGoods>()
|
|
|
+const subLoding = ref(false)
|
|
|
async function getWelfare(id: number) {
|
|
|
const res = await Apis.djk.welfareInfo({ data: { id } })
|
|
|
welfare.value = res.data
|
|
|
@@ -23,6 +24,7 @@ async function handleSelect(item: Api.PmsDjkGoods) {
|
|
|
}
|
|
|
async function handelSubmit() {
|
|
|
uni.showLoading({ mask: true })
|
|
|
+ subLoding.value = true
|
|
|
try {
|
|
|
await Apis.djk.welfareClaimInfo({
|
|
|
data: {
|
|
|
@@ -41,10 +43,12 @@ async function handelSubmit() {
|
|
|
name: 'djk-orderDetaile',
|
|
|
params: { id: data.data },
|
|
|
})
|
|
|
+ subLoding.value = false
|
|
|
}, 1500)
|
|
|
}
|
|
|
catch {
|
|
|
uni.hideLoading()
|
|
|
+ subLoding.value = false
|
|
|
show.value = false
|
|
|
console.log('领取失败')
|
|
|
}
|
|
|
@@ -151,7 +155,7 @@ async function handelSubmit() {
|
|
|
</wd-button>
|
|
|
</view>
|
|
|
<view class="w48%">
|
|
|
- <wd-button block @click="handelSubmit">
|
|
|
+ <wd-button block :loading="subLoding" @click="handelSubmit">
|
|
|
确认领取
|
|
|
</wd-button>
|
|
|
</view>
|