commission--yt-commit
This commit is contained in:
@ -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: '申请中',
|
||||
|
@ -13,6 +13,8 @@
|
||||
placeholder="请输入"
|
||||
value="{{salespersonPhone}}"
|
||||
bindinput="onPhoneInput"
|
||||
type="number"
|
||||
maxlength="16"
|
||||
disabled="{{mode === 'view'}}" />
|
||||
<view class="self-stretch divider"></view>
|
||||
</view>
|
||||
|
@ -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) {
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -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">
|
||||
|
@ -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,
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user