commission--yt-commit

This commit is contained in:
2025-06-09 19:33:21 +08:00
parent a576bacae2
commit 179f70b65d
9 changed files with 24 additions and 9 deletions

View File

@ -60,6 +60,7 @@
placeholder="请输入持卡人银行卡号" placeholder="请输入持卡人银行卡号"
data-field="bankCardNumber" data-field="bankCardNumber"
bindinput="handleInputChange" bindinput="handleInputChange"
type="number"
value="{{ bankCardNumber }}" value="{{ bankCardNumber }}"
/> />
</view> </view>
@ -73,7 +74,6 @@
placeholder="请输入开户银行" placeholder="请输入开户银行"
data-field="bankName" data-field="bankName"
bindinput="handleInputChange" bindinput="handleInputChange"
type="number"
value="{{ bankName }}" value="{{ bankName }}"
/> />
</view> </view>

View File

@ -52,6 +52,16 @@ Page({
wx.showToast({ title: '手机号格式不正确', icon: 'none' }); wx.showToast({ title: '手机号格式不正确', icon: 'none' });
return; return;
} }
// 正则表达式,匹配非汉字字符
const reg = /[^\u4e00-\u9fa5]/;
// 判断输入的值是否含有非汉字字符
if (reg.test(salespersonName)) {
wx.showToast({
title: '姓名必须为汉字',
icon: 'none',
});
return false;
}
wx.showLoading({ wx.showLoading({
title: '申请中', title: '申请中',

View File

@ -13,6 +13,8 @@
placeholder="请输入" placeholder="请输入"
value="{{salespersonPhone}}" value="{{salespersonPhone}}"
bindinput="onPhoneInput" bindinput="onPhoneInput"
type="number"
maxlength="16"
disabled="{{mode === 'view'}}" /> disabled="{{mode === 'view'}}" />
<view class="self-stretch divider"></view> <view class="self-stretch divider"></view>
</view> </view>

View File

@ -1,4 +1,4 @@
const { baseUrl } = require('../../../request'); const { baseUrl, globalImgUrl } = require('../../../request');
Page({ Page({
data: { data: {
@ -10,7 +10,8 @@ Page({
id: null, id: null,
showPromoPop: false, showPromoPop: false,
currentQrcode: '', currentQrcode: '',
currentPromoLink: '' currentPromoLink: '',
globalImgUrl,
}, },
onLoad(options) { onLoad(options) {

View File

@ -3,7 +3,7 @@
<view class="flex-row items-center"> <view class="flex-row items-center">
<image <image
class="shrink-0 image" class="shrink-0 image"
src="{{projectDetail.projectImage}}" src="{{ globalImgUrl + projectDetail.projectImage}}"
/> />
<view class="flex-col flex-1 group_1 ml-20"> <view class="flex-col flex-1 group_1 ml-20">
<text class="self-start font text">{{projectDetail.projectName}}</text> <text class="self-start font text">{{projectDetail.projectName}}</text>

View File

@ -1,4 +1,4 @@
const { baseUrl } = require('../../../request'); const { baseUrl, globalImgUrl } = require('../../../request');
Page({ Page({
/** /**
@ -13,7 +13,8 @@ Page({
'./images/banner.png' './images/banner.png'
], ],
// 后端返回的项目列表 // 后端返回的项目列表
items: [] items: [],
globalImgUrl
}, },
/** /**

View File

@ -28,7 +28,7 @@
<!-- 项目图片 --> <!-- 项目图片 -->
<image <image
class="image_2" class="image_2"
src="{{item.projectImage}}" src="{{globalImgUrl + item.projectImage}}"
mode="aspectFill" mode="aspectFill"
/> />
<view class="ml-14 flex-row items-end"> <view class="ml-14 flex-row items-end">

View File

@ -1,4 +1,4 @@
import { baseUrl } from "../../../request" import { baseUrl, globalImgUrl } from "../../../request"
// pages/projectModule/userProject/userProject.js // pages/projectModule/userProject/userProject.js
Page({ Page({
@ -9,6 +9,7 @@ Page({
data: { data: {
userProjectList: [], userProjectList: [],
globalImgUrl,
}, },
/** /**

View File

@ -5,7 +5,7 @@
<view class="flex-row items-center"> <view class="flex-row items-center">
<image <image
class="shrink-0 image" class="shrink-0 image"
src="{{ item.projectImage }}" src="{{ globalImgUrl + item.projectImage }}"
/> />
<view class="ml-18 flex-col shrink-0 group"> <view class="ml-18 flex-col shrink-0 group">
<text class="font">{{ item.projectName }}</text> <text class="font">{{ item.projectName }}</text>