fix mobile task rules and feature availability
This commit is contained in:
@@ -22,21 +22,22 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div v-if="halls.length && !eligibleHalls.length && eligibility?.eligible === false" class="m-claim2-warning">
|
||||
<div v-if="balanceInsufficient" class="m-claim2-warning">
|
||||
<n-icon :component="AlertCircleOutline" />
|
||||
<span>{{ eligibility.message || '暂不满足领取条件' }}</span>
|
||||
<button v-if="eligibility.pending_order_id" type="button" @click="openPendingOrder">查看任务</button>
|
||||
<span>可用余额不足299元</span>
|
||||
</div>
|
||||
|
||||
<section class="m-claim2-rules">
|
||||
<h2><span></span>活动规则<span></span></h2>
|
||||
<ol>
|
||||
<li>平台运营时间每天 {{ businessHours }}。</li>
|
||||
<li>每一次储入请先咨询客服获取商家卡号,如有疑问请联系在线客服。</li>
|
||||
<li>领取后系统将自动分配任务,请按订单要求完成任务内容。</li>
|
||||
<li>领取时间根据会员等级不同,系统随机匹配订单。</li>
|
||||
<li>账户可用余额需达到 {{ money(eligibility?.minimum_amount) }} 才可领取。</li>
|
||||
<li>订单需要在规定时间内完成,请勿超时提交。</li>
|
||||
<li>平台运营时间每天上午9:00-晚上21:00点!</li>
|
||||
<li>每一次储入必须咨询客户获取商家卡号!如有不理解可联系在线客服!</li>
|
||||
<li>领取后系统将自动分配任务,请按订单要求完成任务内容!</li>
|
||||
<li>领取订单的时间是根据会员等级的不同!系统随机匹配订单!</li>
|
||||
<li>会员账户必须要拥有299启动资金才可进行领取!</li>
|
||||
<li>订单需要在规定时间内完成!请勿超时完成商品!</li>
|
||||
<li>平台硬性条件提现必须信用分值满足100分,请广大会员珍惜账户信用分值!信用分下降必须联系客服处理恢复100分才可正常提现,信用分提升金额具体根据会员等级规定,详细咨询平台客服。</li>
|
||||
<li>非本人充值资金需要提供支付人身份证信息验证充值资金,避免出现非必要的资金纠纷。</li>
|
||||
</ol>
|
||||
</section>
|
||||
</div>
|
||||
@@ -132,11 +133,12 @@
|
||||
const eligibleHalls = computed(() =>
|
||||
halls.value.filter((hall) => eligibilityByHall.value[hall.id]?.eligible)
|
||||
);
|
||||
const businessHours = computed(() => {
|
||||
const start = String(eligibility.value?.business_start_at || '09:00').slice(0, 5);
|
||||
const end = String(eligibility.value?.business_end_at || '21:00').slice(0, 5);
|
||||
return `${start}-${end}`;
|
||||
});
|
||||
const balanceInsufficient = computed(() =>
|
||||
Object.values(eligibilityByHall.value).some((item: any) =>
|
||||
Number(item?.minimum_amount || 0) > 0 &&
|
||||
Number(item?.available_amount || 0) < Number(item.minimum_amount)
|
||||
)
|
||||
);
|
||||
const isAutoMatching = computed(() => order.value?.dispatch_mode !== 'manual');
|
||||
const matchingHint = computed(() => {
|
||||
if (order.value?.dispatch_mode === 'manual') return '订单已领取,正在等待后台匹配...';
|
||||
@@ -348,10 +350,6 @@
|
||||
closeResult();
|
||||
router.push('/app/orders');
|
||||
}
|
||||
function openPendingOrder() {
|
||||
const orderID = Number(eligibility.value?.pending_order_id || 0);
|
||||
router.push(orderID > 0 ? `/app/orders/${orderID}` : '/app/orders');
|
||||
}
|
||||
function retryClaim() {
|
||||
closeResult();
|
||||
void claim();
|
||||
|
||||
Reference in New Issue
Block a user