代币优化

This commit is contained in:
Dev
2026-10-27 18:30:40 +08:00
parent f53c142a56
commit 25804d500e
11 changed files with 66 additions and 27 deletions
@@ -4,6 +4,17 @@ import { fetchConfig } from '../../../services/home/home';
// 联系方式:仅允许英文、数字、下划线、中划线(不含中文与特殊字符)
const CONTACT_REG = /^[A-Za-z0-9_-]+$/;
// 客户发布需求时的手机系统。iOS 单独记,其余按安卓
function currentPayPlatform() {
let platform = '';
try {
platform = String((wx.getSystemInfoSync() || {}).platform || '').toLowerCase();
} catch (err) {
platform = '';
}
return platform === 'ios' ? 'ios' : 'android';
}
Page({
/**
@@ -170,6 +181,7 @@ Page({
budget_amount: budgetAmount,
limit_time: limitTime,
contact: contact,
pay_platform: currentPayPlatform(),
}, 'POST').then(res => {
if (res.code === 1) {
wx.requestSubscribeMessage({