提交 21513cb2 作者: 方治民

Merge branch 'dev' of https://gitlab.yiring.com/digital-agri/agri-app into dev

......@@ -51,6 +51,9 @@
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
......
......@@ -454,7 +454,7 @@
{
"path": "pages/nongmaojiaoyi/nongmaojiaoyi",
"style": {
"navigationBarTitleText": "农交易",
"navigationBarTitleText": "农交易",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#5DB66F",
"navigationBarTextStyle": "white",
......
<script setup lang="ts">
import successfulDialog from '@/components/ConfirmDialog/successfulDialog.vue';
import { getCurrentDateTime } from '@/utils/date'
import * as HomeAPI from '@/api/model/home'
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore();
const consultRecord = reactive({
id: "",
mobile: '',// 咨询人号码
consultTime:"" ,// 咨询时间
bizType:5, // 业务类型(1代理记账,2农资,3农机,4金融)
enterpriseId:"2004840258270433254", // 意向企业
feedbackRemark:"" // 反馈备注
})
const pageData = reactive({
showLogoutDialog: false,
allpyMessageTitle:"",
applyMessageText:"",
})
onShow(() => {
const { id, realname, phone } = userStore.getUserInfo;
consultRecord.id = id;
consultRecord.mobile = phone;
consultRecord.feedbackRemark = realname;
})
// 洽谈合作
function onCooperationClick() {
Message.alert('洽谈合作功能暂不可用,敬请期待~', '温馨提示')
// Message.alert('洽谈合作功能暂不可用,敬请期待~', '温馨提示')
consultRecord.consultTime = getCurrentDateTime();
HomeAPI.postConsultRecordAdd(consultRecord).then((res) => {
pageData.allpyMessageTitle = "申请成功";
pageData.applyMessageText = "平台已收到申请,将尽快与您取得联系!";
pageData.showLogoutDialog = true;
})
}
</script>
......@@ -75,6 +105,13 @@
</view>
</view>
</view>
<successfulDialog
v-model:show="pageData.showLogoutDialog"
:title="pageData.allpyMessageTitle"
:content="pageData.applyMessageText"
confirmText="我知道了"
@confirm="pageData.showLogoutDialog = false"
/>
</template>
<style scoped lang="scss">
......
<script setup lang="ts">
import successfulDialog from '@/components/ConfirmDialog/successfulDialog.vue';
import { getCurrentDateTime } from '@/utils/date'
import * as HomeAPI from '@/api/model/home'
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore();
const consultRecord = reactive({
id: "",
mobile: '',// 咨询人号码
consultTime:"" ,// 咨询时间
bizType:5, // 业务类型(1代理记账,2农资,3农机,4金融)
enterpriseId:"2004840258270488953", // 意向企业
feedbackRemark:"" // 反馈备注
})
const pageData = reactive({
showLogoutDialog: false,
allpyMessageTitle:"",
applyMessageText:"",
})
onShow(() => {
const { id, realname, phone } = userStore.getUserInfo;
consultRecord.id = id;
consultRecord.mobile = phone;
consultRecord.feedbackRemark = realname;
})
// 洽谈合作
function onCooperationClick() {
Message.alert('洽谈合作功能暂不可用,敬请期待~', '温馨提示')
// Message.alert('洽谈合作功能暂不可用,敬请期待~', '温馨提示')
consultRecord.consultTime = getCurrentDateTime();
HomeAPI.postConsultRecordAdd(consultRecord).then((res) => {
pageData.allpyMessageTitle = "申请成功";
pageData.applyMessageText = "平台已收到申请,将尽快与您取得联系!";
pageData.showLogoutDialog = true;
})
}
</script>
......@@ -93,6 +123,13 @@
</view>
</view>
</view>
<successfulDialog
v-model:show="pageData.showLogoutDialog"
:title="pageData.allpyMessageTitle"
:content="pageData.applyMessageText"
confirmText="我知道了"
@confirm="pageData.showLogoutDialog = false"
/>
</view>
</template>
......
<script setup lang="ts">
import successfulDialog from '@/components/ConfirmDialog/successfulDialog.vue';
import { getCurrentDateTime } from '@/utils/date'
import * as HomeAPI from '@/api/model/home'
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore();
const consultRecord = reactive({
id: "",
mobile: '',// 咨询人号码
consultTime:"" ,// 咨询时间
bizType:5, // 业务类型(1代理记账,2农资,3农机,4金融)
enterpriseId:"2004840258270471548", // 意向企业
feedbackRemark:"" // 反馈备注
})
const pageData = reactive({
showLogoutDialog: false,
allpyMessageTitle:"",
applyMessageText:"",
})
onShow(() => {
const { id, realname, phone } = userStore.getUserInfo;
consultRecord.id = id;
consultRecord.mobile = phone;
consultRecord.feedbackRemark = realname;
})
// 洽谈合作
function onCooperationClick() {
Message.alert('洽谈合作功能暂不可用,敬请期待~', '温馨提示')
// Message.alert('洽谈合作功能暂不可用,敬请期待~', '温馨提示')
consultRecord.consultTime = getCurrentDateTime();
HomeAPI.postConsultRecordAdd(consultRecord).then((res) => {
pageData.allpyMessageTitle = "申请成功";
pageData.applyMessageText = "平台已收到申请,将尽快与您取得联系!";
pageData.showLogoutDialog = true;
})
}
</script>
......@@ -117,6 +147,13 @@
</view>
</view>
</view>
<successfulDialog
v-model:show="pageData.showLogoutDialog"
:title="pageData.allpyMessageTitle"
:content="pageData.applyMessageText"
confirmText="我知道了"
@confirm="pageData.showLogoutDialog = false"
/>
</template>
<style scoped lang="scss">
......
<script setup lang="ts">
import successfulDialog from '@/components/ConfirmDialog/successfulDialog.vue';
import { getCurrentDateTime } from '@/utils/date'
import * as HomeAPI from '@/api/model/home'
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore();
const consultRecord = reactive({
id: "",
mobile: '',// 咨询人号码
consultTime:"" ,// 咨询时间
bizType:5, // 业务类型(1代理记账,2农资,3农机,4金融)
enterpriseId:"2004840258270471581", // 意向企业
feedbackRemark:"" // 反馈备注
})
const pageData = reactive({
showLogoutDialog: false,
allpyMessageTitle:"",
applyMessageText:"",
})
onShow(() => {
const { id, realname, phone } = userStore.getUserInfo;
consultRecord.id = id;
consultRecord.mobile = phone;
consultRecord.feedbackRemark = realname;
})
// 洽谈合作
function onCooperationClick() {
Message.alert('洽谈合作功能暂不可用,敬请期待~', '温馨提示')
// Message.alert('洽谈合作功能暂不可用,敬请期待~', '温馨提示')
consultRecord.consultTime = getCurrentDateTime();
HomeAPI.postConsultRecordAdd(consultRecord).then((res) => {
pageData.allpyMessageTitle = "申请成功";
pageData.applyMessageText = "平台已收到申请,将尽快与您取得联系!";
pageData.showLogoutDialog = true;
})
}
</script>
......@@ -77,6 +107,13 @@
</view>
</view>
</view>
<successfulDialog
v-model:show="pageData.showLogoutDialog"
:title="pageData.allpyMessageTitle"
:content="pageData.applyMessageText"
confirmText="我知道了"
@confirm="pageData.showLogoutDialog = false"
/>
</template>
<style scoped lang="scss">
......
<script>
export default {
components: {},
props: {},
data() {
return {}
},
methods: {},
<script setup lang="ts">
import successfulDialog from '@/components/ConfirmDialog/successfulDialog.vue';
import { getCurrentDateTime } from '@/utils/date'
import * as HomeAPI from '@/api/model/home'
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore();
const consultRecord = reactive({
id: "",
mobile: '',// 咨询人号码
consultTime:"" ,// 咨询时间
bizType:5, // 业务类型(1代理记账,2农资,3农机,4金融)
enterpriseId:"2004840258270437514", // 意向企业
feedbackRemark:"" // 反馈备注
})
const pageData = reactive({
showLogoutDialog: false,
allpyMessageTitle:"",
applyMessageText:"",
})
onShow(() => {
const { id, realname, phone } = userStore.getUserInfo;
consultRecord.id = id;
consultRecord.mobile = phone;
consultRecord.feedbackRemark = realname;
})
// 洽谈合作
function onCooperationClick() {
// Message.alert('洽谈合作功能暂不可用,敬请期待~', '温馨提示')
consultRecord.consultTime = getCurrentDateTime();
HomeAPI.postConsultRecordAdd(consultRecord).then((res) => {
pageData.allpyMessageTitle = "申请成功";
pageData.applyMessageText = "平台已收到申请,将尽快与您取得联系!";
pageData.showLogoutDialog = true;
})
}
</script>
......@@ -79,7 +104,7 @@
src="/static/images/codefun/ca51ef39a15d5c8414c9a427b3c4434b.png"
/>
</view>
<view class="codefun-flex-row codefun-justify-between codefun-relative group_6">
<view class="codefun-flex-row codefun-justify-between codefun-relative group_6" @click="onCooperationClick">
<image class="image_8" src="/static/images/codefun/979b55187f885f1b302dd29760bb516b.png" />
<image class="image_8" src="/static/images/codefun/ecb55b953a8e07a17301bcd12aec591f.png" />
<view class="codefun-flex-row codefun-justify-center codefun-items-center section_6 pos">
......@@ -91,6 +116,13 @@
</view>
</view>
</view>
<successfulDialog
v-model:show="pageData.showLogoutDialog"
:title="pageData.allpyMessageTitle"
:content="pageData.applyMessageText"
confirmText="我知道了"
@confirm="pageData.showLogoutDialog = false"
/>
</template>
<style scoped lang="scss">
......
<script setup lang="ts">
import successfulDialog from '@/components/ConfirmDialog/successfulDialog.vue';
import { getCurrentDateTime } from '@/utils/date'
import * as HomeAPI from '@/api/model/home'
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore();
const consultRecord = reactive({
id: "",
mobile: '',// 咨询人号码
consultTime:"" ,// 咨询时间
bizType:5, // 业务类型(1代理记账,2农资,3农机,4金融)
enterpriseId:"2004840258270474551", // 意向企业
feedbackRemark:"" // 反馈备注
})
const pageData = reactive({
showLogoutDialog: false,
allpyMessageTitle:"",
applyMessageText:"",
})
onShow(() => {
const { id, realname, phone } = userStore.getUserInfo;
consultRecord.id = id;
consultRecord.mobile = phone;
consultRecord.feedbackRemark = realname;
})
// 洽谈合作
function onCooperationClick() {
Message.alert('洽谈合作功能暂不可用,敬请期待~', '温馨提示')
// Message.alert('洽谈合作功能暂不可用,敬请期待~', '温馨提示')
consultRecord.consultTime = getCurrentDateTime();
HomeAPI.postConsultRecordAdd(consultRecord).then((res) => {
pageData.allpyMessageTitle = "申请成功";
pageData.applyMessageText = "平台已收到申请,将尽快与您取得联系!";
pageData.showLogoutDialog = true;
})
}
</script>
<template>
<view class="codefun-flex-col page">
<view class="codefun-flex-col section">
......@@ -84,6 +113,13 @@
</view>
</view>
</view>
<successfulDialog
v-model:show="pageData.showLogoutDialog"
:title="pageData.allpyMessageTitle"
:content="pageData.applyMessageText"
confirmText="我知道了"
@confirm="pageData.showLogoutDialog = false"
/>
</template>
<style scoped lang="scss">
......
......@@ -25,14 +25,8 @@
function onApplyClick() {
consultRecord.consultTime = getCurrentDateTime();
HomeAPI.postConsultRecordAdd(consultRecord).then((res) => {
if(res.success){
pageData.showLogoutDialog = true;
}else{
Message.alert(res.message, '温馨提示');
}
}).catch(error => {
Message.alert(error.message, '温馨提示');
});
pageData.showLogoutDialog = true;
})
}
// 提交申请
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" />
......
......@@ -20,7 +20,8 @@
params: {
pageNo: 1,
pageSize: 10,
bizCategory:2
bizCategory:2,
reviewStatus:1
}, // 分页参数
hasMore: true, // 是否还有更多数据
loading: false, // 是否正在加载
......
......@@ -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>
......
......@@ -81,7 +81,7 @@ onLoad((options) => {
model.search.publishstatu = 1
model.search.createBy = ''
model.employmentList = []
getEmploymentList()
getEmploymentList()
})
// 地图组件
......@@ -143,14 +143,18 @@ function createPopupHTML(employment) {
<div>${getDistanceText2(employment)}</div>
</div>
</div>
<div style="color: #5DB66F;margin-top: 6px;line-height: 20px;font-size: 12px;display: flex;align-items: center;">
<div style="color: #5DB66F;margin-top: 6px;line-height: 18px;font-size: 12px;display: flex;align-items: center;">
<image style="width:12px;height:12px;margin-right:7px;" src="./static/images/linghuoyonggong/avatar.png" />
<div>待工人数${employment.workers}名</div>
</div>
<div style="color: #999999;margin-top: 4px;line-height: 20px;font-size: 12px;display: flex;align-items: center;">
<div style="color: #999999;margin-top: 4px;line-height: 18px;font-size: 12px;display: flex;align-items: center;">
<image style="width:11px;height:13px;margin-right:7px;" src="./static/images/linghuoyonggong/skill.png" />
<div>技能:${employment.skills.length ? employment.skills.join("、") : '未填写'}</div>
</div>
<div style="color: #999999;margin-top: 4px;line-height: 18px;font-size: 12px;display: flex;align-items: center;">
<image style="width:11px;height:13px;margin-right:7px;" src="./static/images/linghuoyonggong/address.png" />
<div>地址:${employment.villageFullName}</div>
</div>
<a href="#" onclick="window.navigateToDetail('${employment.id}'); return false;" style="margin-top:8px;background: #5DB66F;text-decoration: none;border-radius: 200px;padding: 10px;text-align: center;color: #FFFFFF;font-size: 12px;display: flex;justify-content: center;align-items: center;">电话沟通</a>
</div>
`;
......@@ -320,7 +324,7 @@ function onCategoryTabClick(tab: any) {
// 在这里添加具体的分类标签点击逻辑
}
function getEmploymentList() {
async function getEmploymentList() {
// 如果正在加载或没有更多数据,直接返回
if (model.loading || (model.total > 0 && model.employmentList.length >= model.total)) {
return
......@@ -328,7 +332,7 @@ function getEmploymentList() {
model.loading = true
try {
if(model.currentEmploymentId == 2){
LinghuoyonggongAPI.getLaborAppList(model.search).then(async (res) => {
await LinghuoyonggongAPI.getLaborAppList(model.search).then(async (res) => {
const { records, total } = res
// 批量处理数据,避免多次DOM操作
const processedRecords = records.map((item) => {
......@@ -355,12 +359,15 @@ function getEmploymentList() {
model.total = total
// 数据加载完成后渲染地图标记
nextTick(() => {
setTimeout(()=>{
renderEmploymentMarkers();
},600)
/* nextTick(() => {
renderEmploymentMarkers()
})
}) */
})
}else{
LinghuoyonggongAPI.employmentList(model.search).then(async (res) => {
await LinghuoyonggongAPI.employmentList(model.search).then(async (res) => {
const { records, total } = res
// 批量处理数据,避免多次DOM操作
const processedRecords = records.map((item) => {
......@@ -387,9 +394,12 @@ function getEmploymentList() {
model.total = total
// 数据加载完成后渲染地图标记
nextTick(() => {
setTimeout(()=>{
renderEmploymentMarkers();
},600)
/* nextTick(() => {
renderEmploymentMarkers()
})
}) */
})
}
} catch (error) {
......
......@@ -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>
......
......@@ -19,7 +19,7 @@
dataList:[]
})
onLoad((options) => {
if(options && options.category){
if(options && options.category==1){
pageData.params.news.category = options.category;
currentTab.value = 'redian';
}else{
......
......@@ -178,20 +178,18 @@
})
const pageData = reactive({
showLogoutDialog: false,
allpyMessageTitle:"",
applyMessageText:"",
})
// 立即申请
function onApplyClick() {
consultRecord.consultTime = getCurrentDateTime();
HomeAPI.postConsultRecordAdd(consultRecord).then((res) => {
if(res.success){
pageData.showLogoutDialog = true;
}else{
Message.alert(res.message, '温馨提示');
}
}).catch(error => {
Message.alert(error.message, '温馨提示');
});
pageData.allpyMessageTitle = "申请成功";
pageData.applyMessageText = "平台已收到申请,将尽快与您取得联系!";
pageData.showLogoutDialog = true;
})
}
// 提交申请
function handleConfirmLogout(){
......@@ -363,8 +361,8 @@
</view>
<successfulDialog
v-model:show="pageData.showLogoutDialog"
title="申请成功"
content="平台已收到申请,将尽快与您取得联系!"
:title="pageData.allpyMessageTitle"
:content="pageData.applyMessageText"
confirmText="我知道了"
@confirm="handleConfirmLogout"
/>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论