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

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

View File

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

View File

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

View File

@ -3,7 +3,7 @@
<view class="flex-row items-center">
<image
class="shrink-0 image"
src="{{projectDetail.projectImage}}"
src="{{ globalImgUrl + projectDetail.projectImage}}"
/>
<view class="flex-col flex-1 group_1 ml-20">
<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({
/**
@ -13,7 +13,8 @@ Page({
'./images/banner.png'
],
// 后端返回的项目列表
items: []
items: [],
globalImgUrl
},
/**

View File

@ -28,7 +28,7 @@
<!-- 项目图片 -->
<image
class="image_2"
src="{{item.projectImage}}"
src="{{globalImgUrl + item.projectImage}}"
mode="aspectFill"
/>
<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
Page({
@ -9,6 +9,7 @@ Page({
data: {
userProjectList: [],
globalImgUrl,
},
/**

View File

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