Commit d4bb284f authored by spc's avatar spc

fixed

parent 5fcd2fe2
No preview for this file type
......@@ -106,6 +106,7 @@ const searchClick = (itm)=>{
currentPage.value = 1
loadMoreFlag.value = true
loadMore.value = false
activityList.value =[]
getInfo(searchType.value)
}
const formatActivityTime = (startTime, endTime) => {
......@@ -167,9 +168,9 @@ const formatStatus = (item) => {
const detailClick = (item) => {
md.sensorSignTake({
bannerClick: "true",
page_name: "星妈会活动集合页",
pageName: "星妈会活动集合页",
activity_code: item.activityId || '',
button_name: item.activityId || '',
buttonName: item.activityTitle || '',
crmid: uni.getStorageSync('memberId'),
click_time: new Date().getTime()
});
......@@ -214,16 +215,17 @@ onReachBottom(() => {
onLoad(async(options) => {
md.sensorSignTake({
hdjhPage: "true",
page_name: "星妈会活动集合页",
pageName: "星妈会活动集合页",
page_view_time: new Date().getTime(),
crmid: uni.getStorageSync('memberId'),
});
loadMoreFlag.value = true
searchType.value = options.type ? options.type : ''
isShare.value = options.share ? options.share : ''
getInfo(searchType.value)
})
onShow(async()=> {
console.log(isShare.value,'onShow')
console.log(isShare.value,'onShow---')
if(isShare.value == 'true'){
await userStore.loadUserInfo()
console.log(userStore.userInfo,'userStore.userInfo?.memberId')
......@@ -234,8 +236,9 @@ onShow(async()=> {
})
return
}
getInfo(searchType.value)
}
getInfo(searchType.value)
})
</script>
......
......@@ -37,11 +37,11 @@
</view>
<!-- 手机号类型 -->
<view v-else-if="fieldItem.componentType === 'MOBILE'" class="form-mobile">
<view v-else-if="fieldItem.componentType === 'MOBILE'" :class="isView ? 'form-mobile view-bg' : fieldItem.error ? 'error-border form-mobile' : 'form-mobile'">
<input v-model.trim="fieldItem.fieldValue" type="number" maxlength="11"
:placeholder="fieldItem.placeholder"
@blur="(e) => emit('mobileInput', { subIndex: '', fieldIndex, e })"
:class="isView ? 'form-input view-bg' : fieldItem.error ? 'error-border form-input' : 'form-input'"
class="form-input form-input-short"
:disabled="isView" />
<view v-if="fieldItem.fieldValue && !isView"
@click="emit('updateMobile', { subIndex: '', fieldIndex })" class="btn">更换手机号
......@@ -368,7 +368,14 @@ const hasFilledOutList = (list) => {
.form-mobile {
position: relative;
border-radius: 8rpx;
width: 100%;
height: 68rpx;
border: 1px solid #A8A8A8;
.form-input-short{
border: none;
width: calc(100% - 120rpx);
}
.btn {
position: absolute;
color: #A8A8A8;
......
......@@ -240,9 +240,9 @@ const handleGoBack = () => {
const onClickButtonFooterJoin = (type) => {
md.sensorSignTake({
signClick: "true",
page_name: activityInfo.value.activityTitle || '',
pageName: activityInfo.value.activityTitle || '',
activity_code: activityInfo.value.activityId || '',
button_name: type === 0 ? "立即报名" : `立即报名(报名需消耗${activityInfo.value.costPoint}积分)`,
buttonName: type === 0 ? "立即报名" : `立即报名(报名需消耗${activityInfo.value.costPoint}积分)`,
crmid: uni.getStorageSync('memberId'),
click_time: new Date().getTime(),
});
......@@ -252,9 +252,9 @@ const onClickButtonFooterJoin = (type) => {
const onClickButtonFooterView = (type) => {
md.sensorSignTake({
signClick: "true",
page_name: activityInfo.value.activityTitle || '',
pageName: activityInfo.value.activityTitle || '',
activity_code: activityInfo.value.activityId || '',
button_name: type === 0 ? "查看入选信息" : type === 1 ? "未入选" : "已报名",
buttonName: type === 0 ? "查看入选信息" : type === 1 ? "未入选" : "已报名",
crmid: uni.getStorageSync('memberId'),
click_time: new Date().getTime()
});
......@@ -370,7 +370,7 @@ const init = () => {
onLoad((options) => {
md.sensorSignTake({
bmhdPage: "true",
page_name: activityInfo.value?.activityTitle || '',
pageName: activityInfo.value?.activityTitle || '',
activity_code: options?.activityId || activityInfo.value?.activityId || '',
page_view_time: new Date().getTime(),
crmid: uni.getStorageSync('memberId')
......
......@@ -168,6 +168,20 @@ const validateFormComponent = ({ required, fieldValue, placeholder, componentTyp
}
}
}
if(!required){
let isFormatError = false;
if (componentType === 'MOBILE') {
isFormatError = fieldValue && fieldValue.length != 11;
} else if (componentType === 'ID_CARD') {
isFormatError = fieldValue && fieldValue.length != 18;
}
if (isFormatError) {
getFormComponent(index, subIndex, fieldIndex).error = true
return false;
} else {
getFormComponent(index, subIndex, fieldIndex).error = false
}
}
return true;
};
//处理入参
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment