提交 ab9c9a7a 作者: e

feat: 优化一些小问题

上级 d85bbbd0
......@@ -25,14 +25,14 @@
function onApplyClick() {
consultRecord.consultTime = getCurrentDateTime();
HomeAPI.postConsultRecordAdd(consultRecord).then((res) => {
if(res.success){
if(res.code == 200){
pageData.showLogoutDialog = true;
}else{
}/* else{
Message.alert(res.message, '温馨提示');
}
}).catch(error => {
} */
})/* .catch(error => {
Message.alert(error.message, '温馨提示');
});
}); */
}
// 提交申请
function handleConfirmLogout(){
......
......@@ -50,11 +50,13 @@
name: 'name',
rule: ['required'],
msg: ['请输入商品名称'],
},{
},
/* {
name: "mobile",
rule: ["required", "isMobile"],
msg: ["请输入联系电话", "请输入正确的联系电话"]
},{
}, */
{
name: 'category',
rule: ['required'],
msg: ['请选择商品分类'],
......@@ -82,7 +84,7 @@
let productInfo = reactive({
id:"",
name:"",// 商品名称
mobile:"", // 联系方式
// mobile:"", // 联系方式
category:"", // 分类
minSellPrice:"", // 最小销售价
maxSellPrice: "", // 最大销售价
......@@ -230,7 +232,7 @@
function handlePublish() {
productInfo.id = "";
productInfo.name = "";
productInfo.mobile = "";
// productInfo.mobile = "";
productInfo.category = "";
productInfo.minSellPrice = "";
productInfo.maxSellPrice = "";
......@@ -300,23 +302,23 @@
<view class="fui-custom__wrap yr_person_popup">
<view class="popup_top">
<uni-icons type="left" size="24" color="#333333" @click="pageData.isPopupShow = false"></uni-icons>
<view class="add_person_text">产品信息</view>
<view class="add_person_text" style="font-size:36rpx;">产品信息</view>
<view class="del_person_btn"></view>
</view>
<view class="popup_content">
<fui-form label-weight="auto" ref="formRef" top="0">
<fui-input required label="商品名称" borderTop placeholder="请输入商品名称" v-model="productInfo.name" label-width="180" size="28"></fui-input>
<fui-form label-weight="auto" ref="formRef" top="10">
<fui-input required label="商品名称" placeholder="请输入商品名称" v-model="productInfo.name" label-width="212" size="28"></fui-input>
<fui-input @click="handleSelectCategory" required label="商品分类" placeholder="请选择商品分类" disabled :value="productInfo.category" label-width="180" size="28"></fui-input>
<fui-input @click="handleSelectCategory" required label="商品分类" placeholder="请选择商品分类" disabled :value="productInfo.category" label-width="212" size="28"></fui-input>
<fui-input required maxlength="11" label="联系电话" placeholder="请输入联系方式" v-model="productInfo.mobile" label-width="180" size="28"></fui-input>
<fui-form-item asterisk label="价格(元)" labelSize="28" label-width="180" size="28">
<fui-input v-model="productInfo.minSellPrice" style="width: 120rpx !important" :borderBottom="false" :padding="[0]" placeholder="最低价"></fui-input>
<!-- <fui-input required maxlength="11" label="联系电话" placeholder="请输入联系电话" v-model="productInfo.mobile" label-width="212" size="28"></fui-input> -->
<fui-form-item asterisk label="价格(元)" label-width="212" size="28">
<fui-input type="number" v-model="productInfo.minSellPrice" style="width: 120rpx !important" :borderBottom="false" :padding="[0]" placeholder="最低价" size="28"></fui-input>
<template v-slot:right>
<view style="color: #CCCCCC;margin-right: 40rpx;"></view>
<fui-input v-model="productInfo.maxSellPrice" style="width: 120rpx !important;" :borderBottom="false" :padding="[0]" placeholder="最高价"></fui-input>
<fui-text v-if="productInfo.unit==''" text="单位" color="#cccccc" @click="handleSelectUnit()"></fui-text>
<fui-text v-else :text="productInfo.unit" @click="handleSelectUnit()"></fui-text>
<fui-input v-model="productInfo.maxSellPrice" type="number" style="width: 120rpx !important;" :borderBottom="false" :padding="[0]" placeholder="最高价" size="28"></fui-input>
<fui-text v-if="productInfo.unit==''" size="28" text="单位" color="#cccccc" @click="handleSelectUnit()"></fui-text>
<fui-text v-else :text="productInfo.unit" size="28" @click="handleSelectUnit()"></fui-text>
</template>
</fui-form-item>
......@@ -327,7 +329,7 @@
</fui-form-item>
</fui-form>
</view>
<fui-button text="保存" bold radius="96rpx" @click="addData" height="80rpx"/>
<fui-button style="margin-top:36rpx;" text="保存" bold radius="96rpx" @click="addData" height="80rpx"/>
</view>
</fui-bottom-popup>
......@@ -341,7 +343,7 @@
</view>
</fui-bottom-popup>
<fui-picker :options="pageData.categoryText" layer="1" :show="pageData.categoryPopup" @change="changeCategory" @cancel="pageData.categoryPopup = false"></fui-picker>
<fui-picker :options="pageData.categoryText" layer="1" :show="pageData.categoryPopup" @change="changeCategory" @cancel="pageData.categoryPopup = false" zIndex="9999"></fui-picker>
<fui-toast ref="toastRef" />
......
......@@ -297,7 +297,7 @@
<fui-input required label="地区" placeholder="请选择地区" v-model="form.areaText" labelSize="28" label-width="180" @click="show.area = true" size="28" disabled/>
<fui-input required label="详细地址" placeholder="请输入详细地址" v-model="form.addr" labelSize="28" label-width="180" size="28"/>
<fui-input required label="联系人" placeholder="请输入联系人" v-model="form.contactPerson" labelSize="28" label-width="180" size="28"/>
<fui-input required label="联系电话" placeholder="请输入联系电话" v-model="form.contactMobile" labelSize="28" label-width="180" size="28"></fui-input>
<fui-input type="tel" required label="联系电话" placeholder="请输入联系电话" v-model="form.contactMobile" labelSize="28" label-width="180" size="28"></fui-input>
</view>
<view class="bg-white mt20" style="padding: 0.875rem 1rem">
<view class="mb-1 flex justify-start" style="font-size: 28rpx;"><span style="color: red;">*&nbsp;</span> 公司logo </view>
......
......@@ -808,7 +808,7 @@
<fui-input :borderBottom="false" v-model="tempWorkersParam.name" :padding="[0]" placeholder="请输入姓名"></fui-input>
</fui-form-item>
<fui-form-item label="手机号">
<fui-input :borderBottom="false" v-model="tempWorkersParam.mobile" :padding="[0]" placeholder="请输入手机号"></fui-input>
<fui-input type="tel" :borderBottom="false" v-model="tempWorkersParam.mobile" :padding="[0]" placeholder="请输入手机号"></fui-input>
</fui-form-item>
<fui-form-item label="性别">
<fui-radio-group v-model="tempWorkersParam.genderZh">
......
......@@ -51,7 +51,7 @@
.then((res) => {
const { records, total } = res
pageData.farmMachineList = [...pageData.farmMachineList, ...records]
pageData.total = total
pageData.total = total;
})
.finally(() => {
pageData.loading = false
......@@ -172,13 +172,13 @@
}}</text>
</view>
</view>
<!-- <view
<view
v-if="!pageData.farmMachineList || pageData.farmMachineList.length == 0"
class="codefun-flex-col codefun-relative section_4"
style="height: 700rpx"
>
<fui-empty marginTop="100" src="/static/images/no-data.png" title="暂无数据" />
</view> -->
</view>
<view class="codefun-flex-col codefun-relative section_4">
<template v-if=" pageData.search.serviceType == 1">
<view class="yr-item" v-for="item in pageData.farmMachineList" :key="item.id">
......
......@@ -297,7 +297,7 @@
<fui-input required label="地区" placeholder="请选择地区" v-model="form.areaText" labelSize="28" label-width="180" @click="show.area = true" size="28" disabled/>
<fui-input required label="详细地址" placeholder="请输入详细地址" v-model="form.addr" labelSize="28" label-width="180" size="28"/>
<fui-input required label="联系人" placeholder="请输入联系人" v-model="form.contactPerson" labelSize="28" label-width="180" size="28"/>
<fui-input required label="联系电话" placeholder="请输入联系电话" v-model="form.contactMobile" labelSize="28" label-width="180" size="28"></fui-input>
<fui-input type="tel" required label="联系电话" placeholder="请输入联系电话" v-model="form.contactMobile" labelSize="28" label-width="180" size="28"></fui-input>
</view>
<view class="bg-white mt20" style="padding: 0.875rem 1rem">
<view class="mb-1 flex justify-start" style="font-size: 28rpx;"><span style="color: red;">*&nbsp;</span> 公司logo </view>
......
......@@ -178,20 +178,28 @@
})
const pageData = reactive({
showLogoutDialog: false,
allpyMessageTitle:"",
applyMessageText:"",
})
// 立即申请
function onApplyClick() {
consultRecord.consultTime = getCurrentDateTime();
HomeAPI.postConsultRecordAdd(consultRecord).then((res) => {
if(res.success){
if(res.code == 200){
pageData.allpyMessageTitle = "申请成功";
pageData.applyMessageText = "平台已收到申请,将尽快与您取得联系!";
pageData.showLogoutDialog = true;
}else{
Message.alert(res.message, '温馨提示');
}
}).catch(error => {
Message.alert(error.message, '温馨提示');
});
}/* else{
pageData.allpyMessageTitle = "温馨提示";
pageData.applyMessageText = res.message;
} */
})/* .catch(error => {
pageData.allpyMessageTitle = "温馨提示";
pageData.applyMessageText = error.message;
pageData.showLogoutDialog = true;
}); */
}
// 提交申请
function handleConfirmLogout(){
......@@ -363,8 +371,8 @@
</view>
<successfulDialog
v-model:show="pageData.showLogoutDialog"
title="申请成功"
content="平台已收到申请,将尽快与您取得联系!"
:title="pageData.allpyMessageTitle"
:content="pageData.applyMessageText"
confirmText="我知道了"
@confirm="handleConfirmLogout"
/>
......
......@@ -150,8 +150,6 @@ declare module 'vue' {
IframeVideo: typeof import('./../src/components/IframeVideo/index.vue')['default']
Legend: typeof import('./../src/components/Map/Widgets/Legend/src/Legend.vue')['default']
Mapbox: typeof import('./../src/components/Map/Mapbox/index.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
Src: typeof import('./../src/components/Echarts/src/index.vue')['default']
SuccessfulDialog: typeof import('./../src/components/ConfirmDialog/successfulDialog.vue')['default']
Switch: typeof import('./../src/components/Map/Widgets/Switch/src/Switch.vue')['default']
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论