正在显示
100 个修改的文件
包含
1119 行增加
和
345 行删除
不能预览此文件类型
| 1 | -<script> | ||
| 2 | - export default { | ||
| 3 | - onLaunch: function() { | ||
| 4 | - console.log('App Launch') | ||
| 5 | - }, | ||
| 6 | - onShow: function() { | ||
| 7 | - console.log('App Show') | ||
| 8 | - }, | ||
| 9 | - onHide: function() { | ||
| 10 | - console.log('App Hide') | ||
| 11 | - } | ||
| 12 | - } | 1 | +<script setup> |
| 2 | +import { onLaunch } from '@dcloudio/uni-app' | ||
| 3 | +import useUserStore from '@/store/modules/user.js' | ||
| 4 | +const userStore = useUserStore() | ||
| 13 | </script> | 5 | </script> |
| 14 | 6 | ||
| 15 | <style lang="scss"> | 7 | <style lang="scss"> |
api/car.js
0 → 100644
| 1 | +import { http } from '@/uni_modules/uview-plus' | ||
| 2 | + | ||
| 3 | +// 获取号牌种类 | ||
| 4 | +export const getCarNumApi = (data) => http.get(`/system/licenseplat/type/getList`, {params: data, custom: {auth: true}}) | ||
| 5 | + | ||
| 6 | +// 获取车辆类型 | ||
| 7 | +export const getCarTypeApi = (data) => http.get(`/system/vehicle/type/getList`, {params: data, custom: {auth: true}}) | ||
| 8 | + | ||
| 9 | +// 获取车辆使用性质 | ||
| 10 | +export const getCarNatureApi = (data) => http.get(`/system/vehicle/nature/getList`, {params: data, custom: {auth: true}}) | ||
| 11 | + | ||
| 12 | +// 获取中文品牌 | ||
| 13 | +export const getCarBrandApi = (data) => http.get(`/system/vehicle/brand/getList`, {params: data, custom: {auth: true}}) | ||
| 14 | + | ||
| 15 | +// 获取保险需求 | ||
| 16 | +export const getNeedApi = (data) => http.get(`/system/requirements/getList`, {params: data, custom: {auth: true}}) | ||
| 17 | + | ||
| 18 | +// 获取车辆型号 | ||
| 19 | +export const getCarModelApi = (data) => http.get(`/system/vehicle/model/getList`, {params: data, custom: {auth: true}}) | ||
| 20 | + | ||
| 21 | +// 获取承保公司 | ||
| 22 | +export const getListDeptApi = (data) => http.get(`/system/dept/list`, {params: data, custom: {auth: true}}) | ||
| 23 | + | ||
| 24 | +// 根据ID获取车辆信息 | ||
| 25 | +export const getCarDetail = (id) => http.get(`registration/${id}`, {custom: {auth: true}}) | ||
| 26 | + | ||
| 27 | + |
| 1 | import { http } from '@/uni_modules/uview-plus' | 1 | import { http } from '@/uni_modules/uview-plus' |
| 2 | 2 | ||
| 3 | // 用户登录 | 3 | // 用户登录 |
| 4 | -export const userLogin = (data, config = {}) => http.post('/api/users/login', data, config) | 4 | +export const userLogin = (data) => http.post('/login', data) |
| 5 | 5 | ||
| 6 | -// 用户注册 | ||
| 7 | -export const userReg = (data) => http.post('/api/users/register', data) | 6 | +// 用户微信登录 |
| 7 | +export const userWxLogin = (data, config = {}) => http.post('/wechat/login', data, config) | ||
| 8 | + | ||
| 9 | +// 发起登记流程 | ||
| 10 | +export const carInfoAdd = (data) => http.post('/registration/add', data, {custom: {auth: true}}) | ||
| 11 | + | ||
| 12 | +// 办理一个用户任务 | ||
| 13 | +export const disposeUser = (taskId) => http.post(`/registration/completeTask/${taskId}`, {}, {custom: {auth: true}}) | ||
| 14 | + | ||
| 15 | +// 获取广告列表 | ||
| 16 | +export const getAdverList = (data) => http.get(`/system/notice/list`, {params: data, custom: {auth: true}}) | ||
| 17 | + | ||
| 18 | +// 获取广告详情 | ||
| 19 | +export const getNotice = (noticeId) => http.get(`/system/notice/${noticeId}`, {custom: {auth: true}}) | ||
| 20 | + | ||
| 21 | +// 获取本人登记信息 | ||
| 22 | +export const getUserCarInfo = (data) => http.get(`/registration/listRegistration`, {params: data, custom: {auth: true}}) | ||
| 8 | 23 | ||
| 9 | // 获取用户信息 | 24 | // 获取用户信息 |
| 10 | -export const getUserInfo = () => http.get('/update/getInfo', {custom: {auth: true}}) | ||
| 11 | -// 更新用户信息 | ||
| 12 | -export const updateUserInfo = (data) => http.put('/update/editInfo', data, {custom: {auth: true}}) | 25 | +export const getUserInfo = (data) => http.get('/system/user/profile', {custom: {auth: true}}) |
| 26 | + | ||
| 27 | +// 修改用户信息 | ||
| 28 | +export const updateUserInfo = (data) => http.put('/system/user/profile', data, {custom: {auth: true}}) | ||
| 29 | + | ||
| 30 | +// 获取验证码 | ||
| 31 | +export const getCodeImg = (data) => http.get('/captchaImage') | ||
| 32 | + | ||
| 33 | + |
api/work.js
0 → 100644
| 1 | +import { http } from '@/uni_modules/uview-plus' | ||
| 2 | + | ||
| 3 | +// 获取待办任务 | ||
| 4 | +export const queryMyList = (data) => http.get(`/registration/mylist`, {params: data, custom: {auth: true}}) | ||
| 5 | + | ||
| 6 | +// 查询已处理订单 | ||
| 7 | +export const queryProcessedList = (data) => http.get(`/registration/monitor/listProcessed`, {params: data, custom: {auth: true}}) | ||
| 8 | + | ||
| 9 | +// 查询已承接保单 | ||
| 10 | +export const queryContinueList = (data) => http.get(`/registration/monitor/listReports`, {params: data, custom: {auth: true}}) | ||
| 11 | + | ||
| 12 | +// 查询已完结订单 | ||
| 13 | +export const queryEndedList = (data) => http.get(`/registration/monitor/listEnded`, {params: data, custom: {auth: true}}) | ||
| 14 | + | ||
| 15 | +// 办理一个用户任务 | ||
| 16 | +export const disposeUser = (data, taskId) => http.post(`/registration/completeTask/${taskId}`, data, {custom: {auth: true}}) | ||
| 17 | + | ||
| 18 | +// 转办 | ||
| 19 | +export const transfer = (data, taskId) => http.post(`/registratiom/transferTask/${taskId}`, data, {custom: {auth: true}}) | ||
| 20 | + | ||
| 21 | +// 获取人员列表 | ||
| 22 | +export const getUserList = (data) => http.post(`/system/user/otherEmployee`, data, {custom: {auth: true}}) |
| @@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
| 4 | <slot name="center"></slot> | 4 | <slot name="center"></slot> |
| 5 | <view class="rowLine"></view> | 5 | <view class="rowLine"></view> |
| 6 | <slot name="footer"></slot> | 6 | <slot name="footer"></slot> |
| 7 | - <view class="tip" :style="{backgroundColor: bgColor, color: fontColor}">{{ tipContent === '' ? textContent : tipContent }}</view> | 7 | + <view class="tip" :style="{backgroundColor: bgColor, color: fontColor}">{{ carInfo?.status || tipContent }}</view> |
| 8 | </view> | 8 | </view> |
| 9 | </template> | 9 | </template> |
| 10 | 10 | ||
| @@ -22,32 +22,23 @@ const props = defineProps({ | @@ -22,32 +22,23 @@ const props = defineProps({ | ||
| 22 | }) | 22 | }) |
| 23 | const emit = defineEmits(['onSkip']) | 23 | const emit = defineEmits(['onSkip']) |
| 24 | const bgColor = computed(() => { | 24 | const bgColor = computed(() => { |
| 25 | - let index = props.carInfo.status || 99 | 25 | + let index = props.carInfo.status |
| 26 | let objColor = { | 26 | let objColor = { |
| 27 | - 0: '#D5E5FF', | ||
| 28 | - 1: '#DED5FF', | ||
| 29 | - 2: '#FFD5D5' | 27 | + '进行中': '#D5E5FF', |
| 28 | + '已完成': '#dbf1e1', | ||
| 29 | + '已作废': '#FFD5D5' | ||
| 30 | } | 30 | } |
| 31 | return objColor[index] || '#D5E5FF' | 31 | return objColor[index] || '#D5E5FF' |
| 32 | }) | 32 | }) |
| 33 | const fontColor = computed(() => { | 33 | const fontColor = computed(() => { |
| 34 | - let index = props.carInfo.status || 99 | 34 | + let index = props.carInfo.status |
| 35 | let objColor = { | 35 | let objColor = { |
| 36 | - 0: '#3680FE', | ||
| 37 | - 1: '#7F36FE', | ||
| 38 | - 2: '#C81515' | 36 | + '进行中': '#3680FE', |
| 37 | + '已完成': '#19be6b', | ||
| 38 | + '已作废': '#C81515' | ||
| 39 | } | 39 | } |
| 40 | return objColor[index] || '#3680FE' | 40 | return objColor[index] || '#3680FE' |
| 41 | }) | 41 | }) |
| 42 | -const textContent = computed(() => { | ||
| 43 | - let index = props.carInfo.status || 99 | ||
| 44 | - let objColor = { | ||
| 45 | - 0: '已提交', | ||
| 46 | - 1: '等待修改', | ||
| 47 | - 2: '已作废' | ||
| 48 | - } | ||
| 49 | - return objColor[index] || '' | ||
| 50 | -}) | ||
| 51 | 42 | ||
| 52 | const skip = () => { | 43 | const skip = () => { |
| 53 | emit('onSkip', props.carInfo.carId) | 44 | emit('onSkip', props.carInfo.carId) |
| 1 | <template> | 1 | <template> |
| 2 | <view class="centerLine" :style="{color: fontColor}"> | 2 | <view class="centerLine" :style="{color: fontColor}"> |
| 3 | - <text @click="updateCarInfo">{{ leftContent }}</text> | 3 | + <text @click="leftComfirn">{{ leftContent }}</text> |
| 4 | <text class="line" :style="{backgroundColor: fontColor}"></text> | 4 | <text class="line" :style="{backgroundColor: fontColor}"></text> |
| 5 | - <text @click="deleteCar">{{ rightContent }}</text> | 5 | + <text @click="rightComfirn">{{ rightContent }}</text> |
| 6 | </view> | 6 | </view> |
| 7 | </template> | 7 | </template> |
| 8 | 8 | ||
| @@ -18,21 +18,17 @@ const props = defineProps({ | @@ -18,21 +18,17 @@ const props = defineProps({ | ||
| 18 | }, | 18 | }, |
| 19 | rightContent: { | 19 | rightContent: { |
| 20 | type: String, | 20 | type: String, |
| 21 | - default: '删除车辆' | 21 | + default: '' |
| 22 | }, | 22 | }, |
| 23 | }) | 23 | }) |
| 24 | - | 24 | +const emit = defineEmits(['leftComfirn', 'rightComfirn']) |
| 25 | // 修改车辆信息 | 25 | // 修改车辆信息 |
| 26 | -const updateCarInfo = () => { | ||
| 27 | - if(props.leftContent === '修改车辆信息') { | ||
| 28 | - | ||
| 29 | - } | 26 | +const leftComfirnButton = () => { |
| 27 | + emit('leftComfirn') | ||
| 30 | } | 28 | } |
| 31 | // 删除车辆信息 | 29 | // 删除车辆信息 |
| 32 | -const deleteCar = () => { | ||
| 33 | - if(props.rightContent === '删除车辆'){ | ||
| 34 | - | ||
| 35 | - } | 30 | +const rightComfirnButton = () => { |
| 31 | + emit('rightComfirn') | ||
| 36 | } | 32 | } |
| 37 | 33 | ||
| 38 | </script> | 34 | </script> |
| 1 | <template> | 1 | <template> |
| 2 | <view class="ownerInfo"> | 2 | <view class="ownerInfo"> |
| 3 | - <view class="info_item">车主:张三</view> | ||
| 4 | - <view class="info_item">客户来源:客户介绍</view> | ||
| 5 | - <view class="info_item">车辆类型:奔驰C级</view> | ||
| 6 | - <view class="info_item">客户归属:admin</view> | ||
| 7 | - <view class="info_item">下次跟进:2024-09-08</view> | ||
| 8 | - <view class="info_item">创建日期:2024-09-01</view> | 3 | + <view class="info_item">车主:{{ carInfo.name }}</view> |
| 4 | + <view class="info_item">承保公司:{{ carInfo.sysDeptName }}</view> | ||
| 5 | + <view class="info_item">车辆类型:{{ carInfo.vehicleType }}</view> | ||
| 6 | + <view class="info_item">联系电话:{{ carInfo.phone }}</view> | ||
| 7 | + <view class="info_item">办结日期:{{ carInfo.policyTime }}</view> | ||
| 8 | + <view class="info_item">创建日期:{{ carInfo.createTime }}</view> | ||
| 9 | </view> | 9 | </view> |
| 10 | </template> | 10 | </template> |
| 11 | 11 | ||
| 12 | <script setup> | 12 | <script setup> |
| 13 | - | 13 | +defineProps({ |
| 14 | + carInfo: { | ||
| 15 | + type: Object, | ||
| 16 | + require: true | ||
| 17 | + } | ||
| 18 | +}) | ||
| 14 | </script> | 19 | </script> |
| 15 | 20 | ||
| 16 | <style lang="scss" scoped> | 21 | <style lang="scss" scoped> |
| 1 | <template> | 1 | <template> |
| 2 | - <view class="wordInfo"> | ||
| 3 | - <text style="min-width: 160rpx;">车主:{{ userName }}</text> | ||
| 4 | - <text>车辆类型:{{ carType }}</text> | ||
| 5 | - <text class="applyTime">{{ applyTime }}</text> | 2 | + <view class="wordInfo u-line-1"> |
| 3 | + <text style="min-width: 120rpx;">车主:{{ userName }}</text> | ||
| 4 | + <text style="min-width: 160rpx; margin-right: 20rpx;">联系电话:{{ phone }}</text> | ||
| 5 | + <text>上年承保公司:{{ company }}</text> | ||
| 6 | </view> | 6 | </view> |
| 7 | </template> | 7 | </template> |
| 8 | 8 | ||
| 9 | <script setup> | 9 | <script setup> |
| 10 | defineProps({ | 10 | defineProps({ |
| 11 | - carType: { | 11 | + phone: { |
| 12 | type: String, | 12 | type: String, |
| 13 | default: '' | 13 | default: '' |
| 14 | }, | 14 | }, |
| @@ -16,7 +16,7 @@ defineProps({ | @@ -16,7 +16,7 @@ defineProps({ | ||
| 16 | type: String, | 16 | type: String, |
| 17 | default: '' | 17 | default: '' |
| 18 | }, | 18 | }, |
| 19 | - applyTime: { | 19 | + company: { |
| 20 | type: String, | 20 | type: String, |
| 21 | default: '' | 21 | default: '' |
| 22 | } | 22 | } |
| @@ -56,7 +56,10 @@ | @@ -56,7 +56,10 @@ | ||
| 56 | "minified" : true | 56 | "minified" : true |
| 57 | }, | 57 | }, |
| 58 | "usingComponents" : true, | 58 | "usingComponents" : true, |
| 59 | - "lazyCodeLoading" : "requiredComponents" | 59 | + "lazyCodeLoading" : "requiredComponents", |
| 60 | + "unipush" : { | ||
| 61 | + "enable" : true | ||
| 62 | + } | ||
| 60 | }, | 63 | }, |
| 61 | "mp-alipay" : { | 64 | "mp-alipay" : { |
| 62 | "usingComponents" : true | 65 | "usingComponents" : true |
| @@ -85,6 +85,13 @@ | @@ -85,6 +85,13 @@ | ||
| 85 | "navigationBarTitleText" : "协会员工信息", | 85 | "navigationBarTitleText" : "协会员工信息", |
| 86 | "navigationStyle": "custom" | 86 | "navigationStyle": "custom" |
| 87 | } | 87 | } |
| 88 | + }, | ||
| 89 | + { | ||
| 90 | + "path" : "pages/employeeRealName/employeeRealName", | ||
| 91 | + "style" : | ||
| 92 | + { | ||
| 93 | + "navigationBarTitleText" : "" | ||
| 94 | + } | ||
| 88 | } | 95 | } |
| 89 | ], | 96 | ], |
| 90 | // 底部导航管理 | 97 | // 底部导航管理 |
| @@ -122,5 +129,15 @@ | @@ -122,5 +129,15 @@ | ||
| 122 | "navigationBarBackgroundColor": "#F8F8F8", | 129 | "navigationBarBackgroundColor": "#F8F8F8", |
| 123 | "backgroundColor": "#F8F8F8" | 130 | "backgroundColor": "#F8F8F8" |
| 124 | }, | 131 | }, |
| 125 | - "uniIdRouter": {} | 132 | + "uniIdRouter": {}, |
| 133 | + "condition" : { //模式配置,仅开发期间生效 | ||
| 134 | + "current": 0, //当前激活的模式(list 的索引项) | ||
| 135 | + "list": [ | ||
| 136 | + { | ||
| 137 | + "name": "test", //模式名称 | ||
| 138 | + "path": "pages/login/login", //启动页面,必选 | ||
| 139 | + "query": "" //启动参数,在页面的onLoad函数里面得到 | ||
| 140 | + } | ||
| 141 | + ] | ||
| 142 | + } | ||
| 126 | } | 143 | } |
| 1 | <template> | 1 | <template> |
| 2 | - <view class="carDetail" :style="{height:showPicker?'100vh':'',overflow:showPicker?'hidden':''}"> | 2 | + <view class="carDetail"> |
| 3 | <up-form :model="form" ref="uFormRef" label-width="130" :labelStyle="labelStyle"> | 3 | <up-form :model="form" ref="uFormRef" label-width="130" :labelStyle="labelStyle"> |
| 4 | <view class="carInfo"> | 4 | <view class="carInfo"> |
| 5 | - <navTop carNum="桂A·66666" /> | 5 | + <view v-show="isShowHeader"> |
| 6 | + <navTop :carNum="form.licensePlateNumber" /> | ||
| 6 | <view class="centerContent"> | 7 | <view class="centerContent"> |
| 7 | - <view class="carBand">梅赛德斯奔驰</view> | ||
| 8 | - <view class="carModel">2024 1.6L双离合变速器 两厢 双离合 舒适型 国IV 5座</view> | 8 | + <view class="carBand">{{ form.customizeVehicleBrand || form.vehicleBran }}</view> |
| 9 | + <view class="carModel">{{ form.customizeVehicleModel || form.vehicleModel }}</view> | ||
| 9 | </view> | 10 | </view> |
| 10 | <view class="rowLine"></view> | 11 | <view class="rowLine"></view> |
| 11 | - <up-form-item label="上年承保公司" prop="sysDeptName"> | ||
| 12 | - <up-input v-model="form.sysDeptName" fontSize="28rpx" color="#999" placeholder="请输入上年承保公司" border="none" inputAlign="right" /> | 12 | + </view> |
| 13 | + <up-form-item label="上年承保公司" prop="sysDeptId"> | ||
| 14 | + <uni-data-select | ||
| 15 | + v-model="form.sysDeptId" | ||
| 16 | + :localdata="companyOption" | ||
| 17 | + placeholder="请选择上年承保公司" | ||
| 18 | + /> | ||
| 13 | </up-form-item> | 19 | </up-form-item> |
| 14 | </view> | 20 | </view> |
| 15 | <!-- 车主信息 --> | 21 | <!-- 车主信息 --> |
| @@ -29,7 +35,11 @@ | @@ -29,7 +35,11 @@ | ||
| 29 | <up-input v-model="form.licensePlateNumber" fontSize="28rpx" color="#999" placeholder="请输入车牌号码" border="none" inputAlign="right" /> | 35 | <up-input v-model="form.licensePlateNumber" fontSize="28rpx" color="#999" placeholder="请输入车牌号码" border="none" inputAlign="right" /> |
| 30 | </up-form-item> | 36 | </up-form-item> |
| 31 | <up-form-item label="号牌种类" prop="lincensePlateType"> | 37 | <up-form-item label="号牌种类" prop="lincensePlateType"> |
| 32 | - <up-input v-model="form.lincensePlateType" fontSize="28rpx" color="#999" placeholder="请选择号牌种类" :suffixIcon="icon" suffixIconStyle="font-size: 28rpx" border="none" inputAlign="right" @focus="openSelect(['黄色车牌', '绿色车牌', '白色车牌', '蓝色车牌'])" /> | 38 | + <uni-data-select |
| 39 | + v-model="form.lincensePlateTypeId" | ||
| 40 | + :localdata="carNumOption" | ||
| 41 | + placeholder="请选择号牌种类" | ||
| 42 | + /> | ||
| 33 | </up-form-item> | 43 | </up-form-item> |
| 34 | <up-form-item label="车架号" prop="frameNumber"> | 44 | <up-form-item label="车架号" prop="frameNumber"> |
| 35 | <up-input v-model="form.frameNumber" fontSize="28rpx" color="#999" placeholder="请输入车架号" border="none" inputAlign="right" /> | 45 | <up-input v-model="form.frameNumber" fontSize="28rpx" color="#999" placeholder="请输入车架号" border="none" inputAlign="right" /> |
| @@ -38,10 +48,18 @@ | @@ -38,10 +48,18 @@ | ||
| 38 | <up-input v-model="form.engineNumber" fontSize="28rpx" color="#999" placeholder="请输入发动机号" border="none" inputAlign="right" /> | 48 | <up-input v-model="form.engineNumber" fontSize="28rpx" color="#999" placeholder="请输入发动机号" border="none" inputAlign="right" /> |
| 39 | </up-form-item> | 49 | </up-form-item> |
| 40 | <up-form-item label="车辆类型" prop="vehicleType"> | 50 | <up-form-item label="车辆类型" prop="vehicleType"> |
| 41 | - <up-input v-model="form.vehicleType" fontSize="28rpx" color="#999" placeholder="请选择车辆类型" :suffixIcon="icon" suffixIconStyle="font-size: 28rpx" border="none" inputAlign="right" @focus="openSelect(['小轿车', '大货车', '两厢车'])" /> | 51 | + <uni-data-select |
| 52 | + v-model="form.vehicleTypeId" | ||
| 53 | + :localdata="carTypeOption" | ||
| 54 | + placeholder="请选择车辆类型" | ||
| 55 | + /> | ||
| 42 | </up-form-item> | 56 | </up-form-item> |
| 43 | <up-form-item label="车辆使用性质" prop="vehicleNature"> | 57 | <up-form-item label="车辆使用性质" prop="vehicleNature"> |
| 44 | - <up-input v-model="form.vehicleNature" fontSize="28rpx" color="#999" placeholder="请选择车辆使用性质" :suffixIcon="icon" suffixIconStyle="font-size: 28rpx" border="none" inputAlign="right" @focus="openSelect(['运营车辆', '私家车', '公务车'])" /> | 58 | + <uni-data-select |
| 59 | + v-model="form.vehicleNatureId" | ||
| 60 | + :localdata="carNatureOption" | ||
| 61 | + placeholder="请选择车辆使用性质" | ||
| 62 | + /> | ||
| 45 | </up-form-item> | 63 | </up-form-item> |
| 46 | <up-form-item label="核定客载数(人)" prop="passengersNumber"> | 64 | <up-form-item label="核定客载数(人)" prop="passengersNumber"> |
| 47 | <up-input v-model="form.passengersNumber" fontSize="28rpx" color="#999" placeholder="请输入核载人数" border="none" inputAlign="right" /> | 65 | <up-input v-model="form.passengersNumber" fontSize="28rpx" color="#999" placeholder="请输入核载人数" border="none" inputAlign="right" /> |
| @@ -55,34 +73,41 @@ | @@ -55,34 +73,41 @@ | ||
| 55 | <view class="carModelBox"> | 73 | <view class="carModelBox"> |
| 56 | <view class="model_line"> | 74 | <view class="model_line"> |
| 57 | <text class="leftContent">车辆型号</text> | 75 | <text class="leftContent">车辆型号</text> |
| 58 | - <up-input v-model="form.vehicleModel" fontSize="28rpx" color="#999" placeholder="请填写车辆型号" border="none" inputAlign="right" @change="getSearch" /> | 76 | + <up-input v-model="form.customizeVehicleModel" fontSize="28rpx" color="#999" placeholder="请填写车辆型号" border="none" inputAlign="right" @change="getSearch" @blur="showList = false" /> |
| 59 | </view> | 77 | </view> |
| 60 | <up-transition :show="showList"> | 78 | <up-transition :show="showList"> |
| 61 | <view class="searchList"> | 79 | <view class="searchList"> |
| 62 | - <view class="searchItem">123</view> | ||
| 63 | - <view class="searchItem">123</view> | ||
| 64 | - <view class="searchItem">123</view> | ||
| 65 | - <view class="searchItem">123</view> | 80 | + <view class="searchItem" v-for="item in searchList" :key="item" @click="selectModel(item)">{{ item.name }}</view> |
| 81 | + <view v-if="searchList.length == 0">无数据</view> | ||
| 66 | </view> | 82 | </view> |
| 67 | </up-transition> | 83 | </up-transition> |
| 68 | </view> | 84 | </view> |
| 69 | - <up-form-item label="中文品牌" prop="vehicleBrand"> | ||
| 70 | - <up-input v-model="form.vehicleBrand" fontSize="28rpx" color="#999" placeholder="请选择车辆品牌" :suffixIcon="icon" suffixIconStyle="font-size: 28rpx" border="none" inputAlign="right" @focus="openSelect(['宝马', '奔驰', '劳斯莱斯'])" /> | 85 | + <up-form-item v-if="isCustom" label="中文品牌" prop="vehicleBrand"> |
| 86 | + <uni-data-select | ||
| 87 | + v-model="form.vehicleBrandId" | ||
| 88 | + :localdata="carBrandOption" | ||
| 89 | + :placeholder="brandTitle" | ||
| 90 | + /> | ||
| 91 | + </up-form-item> | ||
| 92 | + <up-form-item v-else label="中文品牌" prop="vehicleBrand"> | ||
| 93 | + <up-input v-model="form.customizeVehicleBrand" fontSize="28rpx" color="#999" placeholder="请填写中文品牌" border="none" inputAlign="right" /> | ||
| 71 | </up-form-item> | 94 | </up-form-item> |
| 72 | <up-form-item label="准牵引质量" prop="tractionMass"> | 95 | <up-form-item label="准牵引质量" prop="tractionMass"> |
| 73 | <up-input v-model="form.tractionMass" fontSize="28rpx" color="#999" placeholder="请填写准牵引准质量" border="none" inputAlign="right" /> | 96 | <up-input v-model="form.tractionMass" fontSize="28rpx" color="#999" placeholder="请填写准牵引准质量" border="none" inputAlign="right" /> |
| 74 | </up-form-item> | 97 | </up-form-item> |
| 75 | <up-form-item label="保险需求" prop="requirements"> | 98 | <up-form-item label="保险需求" prop="requirements"> |
| 76 | - <up-input v-model="form.requirements" fontSize="28rpx" color="#999" placeholder="请选择保险需求" :suffixIcon="icon" suffixIconStyle="font-size: 28rpx" border="none" inputAlign="right" @focus="openSelect(['强险', '商险'])" /> | 99 | + <uni-data-select |
| 100 | + v-model="form.requirementsId" | ||
| 101 | + :localdata="needOption" | ||
| 102 | + placeholder="请选择保险需求" | ||
| 103 | + /> | ||
| 77 | </up-form-item> | 104 | </up-form-item> |
| 78 | </view> | 105 | </view> |
| 79 | 106 | ||
| 80 | <view class="tip">请认真核实车辆信息,实际投保车辆信息以保险公司确认为准</view> | 107 | <view class="tip">请认真核实车辆信息,实际投保车辆信息以保险公司确认为准</view> |
| 81 | 108 | ||
| 82 | - <view class="btn delBtn" @click="deleteCar">删除车辆</view> | ||
| 83 | - <view class="btn confirmBtn">确认</view> | 109 | + <view class="btn confirmBtn" @click="submitInfo">确认</view> |
| 84 | </up-form> | 110 | </up-form> |
| 85 | - <up-picker :show="showPicker" :columns="columns" :closeOnClickOverlay="true" @close="onCancel" @cancel="onCancel" @confirm="showPicker = false"></up-picker> | ||
| 86 | <up-popup :show="showTip" mode="center" :safeAreaInsetBottom="false" round="20" @close="showTip = false"> | 111 | <up-popup :show="showTip" mode="center" :safeAreaInsetBottom="false" round="20" @close="showTip = false"> |
| 87 | <view class="notice"> | 112 | <view class="notice"> |
| 88 | <view class="notice_title">温馨提示</view> | 113 | <view class="notice_title">温馨提示</view> |
| @@ -96,69 +121,188 @@ | @@ -96,69 +121,188 @@ | ||
| 96 | </template> | 121 | </template> |
| 97 | 122 | ||
| 98 | <script setup> | 123 | <script setup> |
| 99 | -import { ref } from 'vue'; | 124 | +import { debounce } from '@/uni_modules/uview-plus'; |
| 125 | +import { computed, reactive, ref } from 'vue'; | ||
| 100 | import navTop from '@/components/navTop.vue'; | 126 | import navTop from '@/components/navTop.vue'; |
| 127 | +import { carInfoAdd } from '@/api/user.js' | ||
| 101 | import { onLoad } from '@dcloudio/uni-app' | 128 | import { onLoad } from '@dcloudio/uni-app' |
| 102 | -const showPicker = ref(false) | 129 | +import { getCarNumApi, getCarTypeApi, getCarNatureApi, getCarBrandApi, getCarModelApi, getNeedApi, getListDeptApi, getCarDetail } from '@/api/car.js' |
| 103 | const showTip = ref(true) | 130 | const showTip = ref(true) |
| 104 | -const columns = ref([]) | 131 | +const brandTitle = ref('请选择中文品牌') |
| 132 | +const disable = ref(false) | ||
| 105 | const labelStyle = { | 133 | const labelStyle = { |
| 106 | fontSize: '28rpx', | 134 | fontSize: '28rpx', |
| 107 | lineHeight: '38rpx', | 135 | lineHeight: '38rpx', |
| 108 | color: '#3D3D3D' | 136 | color: '#3D3D3D' |
| 109 | } | 137 | } |
| 138 | +const isShowHeader = ref(false) | ||
| 139 | +const isCustom = ref(false) | ||
| 140 | +const searchList = ref([]) | ||
| 110 | const showList = ref(false) | 141 | const showList = ref(false) |
| 111 | -const icon = ref('arrow-down') | ||
| 112 | const form = ref({ | 142 | const form = ref({ |
| 113 | name: '', | 143 | name: '', |
| 114 | identificationNumber: '', | 144 | identificationNumber: '', |
| 115 | - sysDeptName: '', | 145 | + sysDeptId: '', |
| 146 | + customizeVehicleBrand: '', | ||
| 147 | + customizeVehicleModel: '', | ||
| 116 | licensePlateNumber: '', | 148 | licensePlateNumber: '', |
| 117 | - lincensePlateType: '', | 149 | + lincensePlateTypeId: '', |
| 150 | + isCustomizeBrandAndModel: '1', | ||
| 118 | frameNumber: '', | 151 | frameNumber: '', |
| 119 | engineNumber: '', | 152 | engineNumber: '', |
| 120 | - vehicleType: '', | ||
| 121 | - vehicleNature: '', | 153 | + vehicleTypeId: '', |
| 154 | + vehicleNatureId: '', | ||
| 122 | passengersNumber: '', | 155 | passengersNumber: '', |
| 123 | passengerCapacity: '', | 156 | passengerCapacity: '', |
| 124 | emissions: '', | 157 | emissions: '', |
| 125 | - vehicleModel: '', | ||
| 126 | - vehicleBrand: '', | 158 | + vehicleModelId: '', |
| 159 | + vehicleBrandId: '', | ||
| 127 | tractionMass: '', | 160 | tractionMass: '', |
| 128 | - requirements: '' | 161 | + requirementsId: '' |
| 129 | }) | 162 | }) |
| 130 | -onLoad((options) => { | ||
| 131 | - | 163 | +// 查询参数 |
| 164 | +const queryParams = reactive({ | ||
| 165 | + pageSize: 100, | ||
| 166 | + pageNum: 1 | ||
| 167 | +}) | ||
| 168 | +// 车辆类型查询参数 | ||
| 169 | +const queryModelParams = reactive({ | ||
| 170 | + pageSize: 100, | ||
| 171 | + pageNum: 1, | ||
| 172 | + modelName: undefined | ||
| 173 | +}) | ||
| 174 | +onLoad(async (options) => { | ||
| 175 | + if(options.carInfoId !== undefined) { | ||
| 176 | + const { data } = await getCarDetail(options.carInfoId) | ||
| 177 | + form.value = data | ||
| 178 | + isCustom.value = data.isCustomizeBrandAndModel == "0" | ||
| 179 | + isShowHeader.value = true | ||
| 180 | + } | ||
| 132 | }) | 181 | }) |
| 182 | +// 获取承保公司 | ||
| 183 | +const companyOption = ref([]) | ||
| 184 | +const getCompanyOption = () => { | ||
| 185 | + getListDeptApi().then(res => { | ||
| 186 | + const { data } = res | ||
| 187 | + const newList = data.filter(item => item.parentId === 100) | ||
| 188 | + const arrList = newList.map(item => { | ||
| 189 | + return { | ||
| 190 | + value: item.deptId, | ||
| 191 | + text: item.deptName | ||
| 192 | + } | ||
| 193 | + }) | ||
| 194 | + companyOption.value = arrList | ||
| 195 | + }) | ||
| 196 | +} | ||
| 197 | +getCompanyOption() | ||
| 198 | +// 获取号牌种类 | ||
| 199 | +const carNumOption = ref([]) | ||
| 200 | +const getCarNumOption = () => { | ||
| 201 | + getCarNumApi(queryParams).then(res => { | ||
| 202 | + const { data } = res | ||
| 203 | + const arrList = data.records.map(item => { | ||
| 204 | + return { | ||
| 205 | + value: item.id, | ||
| 206 | + text:item.name | ||
| 207 | + } | ||
| 208 | + }) | ||
| 209 | + carNumOption.value = arrList | ||
| 210 | + }) | ||
| 211 | +} | ||
| 212 | +getCarNumOption() | ||
| 213 | +// 获取车辆类型 | ||
| 214 | +const carTypeOption = ref([]) | ||
| 215 | +const getCarTypeOption = () => { | ||
| 216 | + getCarTypeApi(queryParams).then(res => { | ||
| 217 | + const { data } = res | ||
| 218 | + const arrList = data.records.map(item => { | ||
| 219 | + return { | ||
| 220 | + value: item.id, | ||
| 221 | + text:item.name | ||
| 222 | + } | ||
| 223 | + }) | ||
| 224 | + carTypeOption.value = arrList | ||
| 225 | + }) | ||
| 226 | +} | ||
| 227 | +getCarTypeOption() | ||
| 228 | +// 获取车辆使用性质 | ||
| 229 | +const carNatureOption = ref([]) | ||
| 230 | +const getCarNatureOption = () => { | ||
| 231 | + getCarNatureApi(queryParams).then(res => { | ||
| 232 | + const { data } = res | ||
| 233 | + const arrList = data.records.map(item => { | ||
| 234 | + return { | ||
| 235 | + value: item.id, | ||
| 236 | + text:item.name | ||
| 237 | + } | ||
| 238 | + }) | ||
| 239 | + carNatureOption.value = arrList | ||
| 240 | + }) | ||
| 241 | +} | ||
| 242 | +getCarNatureOption() | ||
| 243 | +// 获取中文品牌 | ||
| 244 | +const carBrandOption = ref([]) | ||
| 245 | +const getCarBrandOption = () => { | ||
| 246 | + getCarBrandApi(queryParams).then(res => { | ||
| 247 | + const { data } = res | ||
| 248 | + const arrList = data.records.map(item => { | ||
| 249 | + return { | ||
| 250 | + value: item.id, | ||
| 251 | + text:item.name | ||
| 252 | + } | ||
| 253 | + }) | ||
| 254 | + carBrandOption.value = arrList | ||
| 255 | + }) | ||
| 256 | +} | ||
| 257 | +getCarBrandOption() | ||
| 258 | +// 获取保险需求 | ||
| 259 | +const needOption = ref([]) | ||
| 260 | +const getNeedOption = () => { | ||
| 261 | + getNeedApi(queryParams).then(res => { | ||
| 262 | + const { data } = res | ||
| 263 | + const arrList = data.records.map(item => { | ||
| 264 | + return { | ||
| 265 | + value: item.id, | ||
| 266 | + text:item.name | ||
| 267 | + } | ||
| 268 | + }) | ||
| 269 | + needOption.value = arrList | ||
| 270 | + }) | ||
| 271 | +} | ||
| 272 | +getNeedOption() | ||
| 273 | + | ||
| 274 | + | ||
| 275 | +// 获取搜索列表 | ||
| 133 | const getSearch = (value) => { | 276 | const getSearch = (value) => { |
| 134 | if(uni.$u.trim(value)){ | 277 | if(uni.$u.trim(value)){ |
| 135 | - showList.value = true | 278 | + queryModelParams.modelName = value |
| 279 | + debounce(getModelList, 500) | ||
| 136 | } else { | 280 | } else { |
| 137 | showList.value = false | 281 | showList.value = false |
| 138 | } | 282 | } |
| 139 | } | 283 | } |
| 140 | -const openSelect = (arr) => { | ||
| 141 | - columns.value = [] | ||
| 142 | - columns.value.push(arr) | ||
| 143 | - showPicker.value = true | ||
| 144 | - icon.value = 'arrow-up' | 284 | +// 获取车辆型号 |
| 285 | +const getModelList = async () => { | ||
| 286 | + const res = await getCarModelApi(queryModelParams) | ||
| 287 | + const { data } = res | ||
| 288 | + const listData = data.records | ||
| 289 | + searchList.value = listData | ||
| 290 | + showList.value = true | ||
| 145 | } | 291 | } |
| 146 | -const onCancel = () => { | ||
| 147 | - showPicker.value = false | ||
| 148 | - icon.value = 'arrow-down' | 292 | +// 选择车辆型号 |
| 293 | +const selectModel = (item) => { | ||
| 294 | + form.value.vehicleModelId = item.id | ||
| 295 | + form.value.customizeVehicleModel = item.name | ||
| 296 | + brandTitle.value = item.brandName | ||
| 297 | + form.value.vehicleBrandId = item.brandId | ||
| 298 | + showList.value = false | ||
| 299 | + isCustom.value = true | ||
| 300 | + form.value.isCustomizeBrandAndModel = '0' | ||
| 149 | } | 301 | } |
| 150 | -const deleteCar = () => { | ||
| 151 | - uni.showModal({ | ||
| 152 | - title: '删除车辆提示', | ||
| 153 | - content: '删除车辆后将无法及时收到投保方案解答与最新优惠,且无法恢复车辆信息。是否继续删除?', | ||
| 154 | - success: function (res) { | ||
| 155 | - if (res.confirm) { | ||
| 156 | - console.log('用户点击确定'); | ||
| 157 | - } else if (res.cancel) { | ||
| 158 | - console.log('用户点击取消'); | ||
| 159 | - } | ||
| 160 | - } | ||
| 161 | - }) | 302 | + |
| 303 | +const submitInfo = async () => { | ||
| 304 | + await carInfoAdd(form.value) | ||
| 305 | + uni.$u.toast('添加成功') | ||
| 162 | } | 306 | } |
| 163 | </script> | 307 | </script> |
| 164 | 308 | ||
| @@ -268,7 +412,7 @@ const deleteCar = () => { | @@ -268,7 +412,7 @@ const deleteCar = () => { | ||
| 268 | } | 412 | } |
| 269 | .searchList{ | 413 | .searchList{ |
| 270 | position: absolute; | 414 | position: absolute; |
| 271 | - bottom: 200%; | 415 | + bottom: 120%; |
| 272 | left: 0; | 416 | left: 0; |
| 273 | width: 100%; | 417 | width: 100%; |
| 274 | background-color: #fff; | 418 | background-color: #fff; |
| @@ -4,9 +4,11 @@ | @@ -4,9 +4,11 @@ | ||
| 4 | <view class="work_box"> | 4 | <view class="work_box"> |
| 5 | <!-- 头部导航 --> | 5 | <!-- 头部导航 --> |
| 6 | <view class="nav_header"> | 6 | <view class="nav_header"> |
| 7 | - <view class="nav_item" :class="{ active: expertActive === 0 }" @click="expertActive = 0">待办事项</view> | 7 | + <view class="nav_item" :class="{ active: expertActive === 0 }" @click="expertActive = 0">待处理保单</view> |
| 8 | <view class="colLine"></view> | 8 | <view class="colLine"></view> |
| 9 | - <view class="nav_item" :class="{ active: expertActive === 1 }" @click="expertActive = 1">车主信息</view> | 9 | + <view class="nav_item" :class="{ active: expertActive === 1 }" @click="expertActive = 1">已承接保单</view> |
| 10 | + <view class="colLine"></view> | ||
| 11 | + <view class="nav_item" :class="{ active: expertActive === 2 }" @click="expertActive = 2">已完结保单</view> | ||
| 10 | </view> | 12 | </view> |
| 11 | <!-- 内容模块 --> | 13 | <!-- 内容模块 --> |
| 12 | <view class="expert_content"> | 14 | <view class="expert_content"> |
| @@ -15,17 +17,46 @@ | @@ -15,17 +17,46 @@ | ||
| 15 | <view class="swiper-item"> | 17 | <view class="swiper-item"> |
| 16 | <scroll-view scroll-y="true" class="scroll-history"> | 18 | <scroll-view scroll-y="true" class="scroll-history"> |
| 17 | <view class="work_list"> | 19 | <view class="work_list"> |
| 18 | - <carCard v-for="carItem in carList" :key="carItem.carId" tipContent="待办" :carInfo="carItem"> | 20 | + <carCard v-for="carItem in List" :key="carItem.taskId" :tipContent="carItem.orderProgress" :carInfo="carItem"> |
| 21 | + <template #header> | ||
| 22 | + <navTop :carNum="carItem.licensePlateNumber" /> | ||
| 23 | + </template> | ||
| 24 | + <template #center> | ||
| 25 | + <wordInfo :phone="carItem.phone" :userName="carItem.name" :company="carItem.sysDeptName" /> | ||
| 26 | + </template> | ||
| 27 | + <template #footer> | ||
| 28 | + <centerLine leftContent="承接" rightContent="转办" @leftComfirn="handleContinue(carItem.taskId)" @rightComfirn="handleSharing(carItem.taskId)"></centerLine> | ||
| 29 | + </template> | ||
| 30 | + </carCard> | ||
| 31 | + <up-empty | ||
| 32 | + :show="List.length == 0" | ||
| 33 | + mode="list" | ||
| 34 | + text="暂无待办事项" | ||
| 35 | + /> | ||
| 36 | + </view> | ||
| 37 | + </scroll-view> | ||
| 38 | + </view> | ||
| 39 | + </swiper-item> | ||
| 40 | + <swiper-item> | ||
| 41 | + <view class="swiper-item"> | ||
| 42 | + <scroll-view scroll-y="true" class="scroll-history"> | ||
| 43 | + <view class="work_list"> | ||
| 44 | + <carCard v-for="(carItem, index) in ProcessedList" :key="index" tipContent="查看详情" :carInfo="carItem"> | ||
| 19 | <template #header> | 45 | <template #header> |
| 20 | - <navTop :carNum="carItem.carNum" /> | 46 | + <navTop :carNum="carItem.licensePlateNumber" /> |
| 21 | </template> | 47 | </template> |
| 22 | <template #center> | 48 | <template #center> |
| 23 | - <wordInfo :carType="carItem.carType" :userName="carItem.name" :applyTime="carItem.createTime" /> | 49 | + <wordInfo :phone="carItem.phone" :userName="carItem.name" :company="carItem.sysDeptName" /> |
| 24 | </template> | 50 | </template> |
| 25 | <template #footer> | 51 | <template #footer> |
| 26 | - <centerLine></centerLine> | 52 | + <centerLine leftContent="承接回馈" rightContent="疑难件" @leftComfirn="handleFeedback(carItem.taskId)" @rightComfirn="handleTroubleshooting(carItem.taskId)"></centerLine> |
| 27 | </template> | 53 | </template> |
| 28 | </carCard> | 54 | </carCard> |
| 55 | + <up-empty | ||
| 56 | + :show="ProcessedList.length == 0" | ||
| 57 | + mode="list" | ||
| 58 | + text="暂无数据" | ||
| 59 | + /> | ||
| 29 | </view> | 60 | </view> |
| 30 | </scroll-view> | 61 | </scroll-view> |
| 31 | </view> | 62 | </view> |
| @@ -34,19 +65,24 @@ | @@ -34,19 +65,24 @@ | ||
| 34 | <view class="swiper-item"> | 65 | <view class="swiper-item"> |
| 35 | <scroll-view scroll-y="true" class="scroll-history"> | 66 | <scroll-view scroll-y="true" class="scroll-history"> |
| 36 | <view class="work_list"> | 67 | <view class="work_list"> |
| 37 | - <carCard v-for="carItem in carList" :key="carItem.carId" tipContent="查看详情" :carInfo="carItem" @onSkip="goCarDetail"> | 68 | + <carCard v-for="(carItem, index) in EndedList" :key="index" :tipContent="carItem.policyStatus" :carInfo="carItem"> |
| 38 | <template #header> | 69 | <template #header> |
| 39 | - <navTop :carNum="carItem.carNum" /> | 70 | + <navTop :carNum="carItem.licensePlateNumber" /> |
| 40 | </template> | 71 | </template> |
| 41 | <template #center> | 72 | <template #center> |
| 42 | - <ownerInfo /> | 73 | + <ownerInfo :carInfo="carItem" /> |
| 43 | </template> | 74 | </template> |
| 44 | <template #footer> | 75 | <template #footer> |
| 45 | <view class="delInfo"> | 76 | <view class="delInfo"> |
| 46 | - <text @click="delOwnerInfo(carItem.carId)">删除车主信息</text> | 77 | + <text @click="goCarDetail">查看详情</text> |
| 47 | </view> | 78 | </view> |
| 48 | </template> | 79 | </template> |
| 49 | </carCard> | 80 | </carCard> |
| 81 | + <up-empty | ||
| 82 | + :show="EndedList.length == 0" | ||
| 83 | + mode="list" | ||
| 84 | + text="暂无数据" | ||
| 85 | + /> | ||
| 50 | </view> | 86 | </view> |
| 51 | </scroll-view> | 87 | </scroll-view> |
| 52 | </view> | 88 | </view> |
| @@ -55,13 +91,42 @@ | @@ -55,13 +91,42 @@ | ||
| 55 | </view> | 91 | </view> |
| 56 | 92 | ||
| 57 | </view> | 93 | </view> |
| 94 | + <!-- 填写承接回馈弹出框 --> | ||
| 95 | + <up-modal :show="showFeedback" title="填写回馈及单号" @confirm="submitFeedback" @cancel="showFeedback = false"> | ||
| 96 | + <view class="slot-content"> | ||
| 97 | + <up-form :model="FeedbackForm"> | ||
| 98 | + <up-form-item label="承保单号" prop="name"> | ||
| 99 | + <up-input v-model="FeedbackForm.policynumber" /> | ||
| 100 | + </up-form-item> | ||
| 101 | + <up-form-item label="回馈内容" prop="name"> | ||
| 102 | + <rich-text :nodes="FeedbackForm.message"></rich-text> | ||
| 103 | + </up-form-item> | ||
| 104 | + </up-form> | ||
| 105 | + </view> | ||
| 106 | + </up-modal> | ||
| 107 | + | ||
| 108 | + <!-- 转办弹出框 --> | ||
| 109 | + <up-modal :show="showSharing" title="选择转办人员" @confirm="submitSharing" @cancel="showSharing = false"> | ||
| 110 | + <view class="slot-content"> | ||
| 111 | + <up-radio-group | ||
| 112 | + v-model="transferForm.username" | ||
| 113 | + > | ||
| 114 | + <up-radio | ||
| 115 | + v-for="(item, index) in transferOptions" | ||
| 116 | + :key="index" | ||
| 117 | + :label="item.userName" | ||
| 118 | + :name="item.userName" | ||
| 119 | + /> | ||
| 120 | + </up-radio-group> | ||
| 121 | + </view> | ||
| 122 | + </up-modal> | ||
| 58 | <!-- 底部导航栏 --> | 123 | <!-- 底部导航栏 --> |
| 59 | <up-tabbar | 124 | <up-tabbar |
| 60 | :value="useTabbar.employeeCurrent" | 125 | :value="useTabbar.employeeCurrent" |
| 61 | activeColor="#3680FE" | 126 | activeColor="#3680FE" |
| 62 | inactiveColor="#707070" | 127 | inactiveColor="#707070" |
| 63 | > | 128 | > |
| 64 | - <up-tabbar-item text="主页" icon="home" badge="11"></up-tabbar-item> | 129 | + <up-tabbar-item text="主页" icon="home" :badge="useTabbar.companyTotal"></up-tabbar-item> |
| 65 | <up-tabbar-item text="我的" icon="account" @click="goRouter"> | 130 | <up-tabbar-item text="我的" icon="account" @click="goRouter"> |
| 66 | <template #active-icon> | 131 | <template #active-icon> |
| 67 | <image style="width: 48rpx;" class="u-page__item__slot-icon" src="@/static/tabbarIcon/my-active.png" mode="widthFix"></image> | 132 | <image style="width: 48rpx;" class="u-page__item__slot-icon" src="@/static/tabbarIcon/my-active.png" mode="widthFix"></image> |
| @@ -75,31 +140,51 @@ | @@ -75,31 +140,51 @@ | ||
| 75 | </template> | 140 | </template> |
| 76 | 141 | ||
| 77 | <script setup> | 142 | <script setup> |
| 78 | - import { ref } from 'vue'; | 143 | + import { ref, reactive } from 'vue'; |
| 79 | import carCard from '@/components/carCard.vue'; | 144 | import carCard from '@/components/carCard.vue'; |
| 80 | import centerLine from '@/components/centerLine.vue'; | 145 | import centerLine from '@/components/centerLine.vue'; |
| 81 | import wordInfo from '@/components/wordInfo.vue'; | 146 | import wordInfo from '@/components/wordInfo.vue'; |
| 82 | import navTop from '@/components/navTop.vue'; | 147 | import navTop from '@/components/navTop.vue'; |
| 148 | + import { queryMyList, queryContinueList, queryEndedList ,disposeUser, getUserList, transfer } from '@/api/work.js' | ||
| 83 | import ownerInfo from '@/components/ownerInfo.vue'; | 149 | import ownerInfo from '@/components/ownerInfo.vue'; |
| 84 | import useTabbarStore from '@/store/modules/tabbar.js' | 150 | import useTabbarStore from '@/store/modules/tabbar.js' |
| 85 | const useTabbar = useTabbarStore() | 151 | const useTabbar = useTabbarStore() |
| 86 | - const carList = ref([ | ||
| 87 | - { carId: 1, carNum: '桂A·66666', carType: '奔驰C级', name: '张三', createTime: '2024-09-08 10:12' }, | ||
| 88 | - { carId: 2, carNum: '桂A·77777', carType: '奔驰C级', name: '李四', createTime: '2024-09-08 10:12' }, | ||
| 89 | - { carId: 3, carNum: '桂A·77777', carType: '梅赛德斯奔驰', name: '王五', createTime: '2024-09-08 10:12' }, | ||
| 90 | - { carId: 4, carNum: '桂A·77777', carType: '梅赛德斯奔驰', name: '王五', createTime: '2024-09-08 10:12' }, | ||
| 91 | - { carId: 5, carNum: '桂A·77777', carType: '梅赛德斯奔驰', name: '王五', createTime: '2024-09-08 10:12' }, | ||
| 92 | - { carId: 6, carNum: '桂A·77777', carType: '梅赛德斯奔驰', name: '王五', createTime: '2024-09-08 10:12' }, | ||
| 93 | - { carId: 7, carNum: '桂A·77777', carType: '梅赛德斯奔驰', name: '王五', createTime: '2024-09-08 10:12' }, | ||
| 94 | - { carId: 8, carNum: '桂A·77777', carType: '梅赛德斯奔驰', name: '王五', createTime: '2024-09-08 10:12' }, | ||
| 95 | - { carId: 9, carNum: '桂A·77777', carType: '梅赛德斯奔驰', name: '王五', createTime: '2024-09-08 10:12' }, | ||
| 96 | - { carId: 10, carNum: '桂A·77777', carType: '梅赛德斯奔驰', name: '王五', createTime: '2024-09-08 10:12' }, | ||
| 97 | - { carId: 11, carNum: '桂A·77777', carType: '梅赛德斯奔驰', name: '王五', createTime: '2024-09-08 10:12' }, | ||
| 98 | - ]) | 152 | + const List = ref([]) // 待办列表 |
| 153 | + const ProcessedList = ref([]) // 已处理列表 | ||
| 154 | + const EndedList = ref([]) // 已完结列表 | ||
| 99 | const expertActive = ref(0) | 155 | const expertActive = ref(0) |
| 156 | + const transferForm = ref({ | ||
| 157 | + username: '', | ||
| 158 | + taskId: '' | ||
| 159 | + }) | ||
| 160 | + const transferOptions = reactive([]); | ||
| 161 | + const showFeedback = ref(false) | ||
| 162 | + const showSharing = ref(false) | ||
| 163 | + const FeedbackForm = ref({ | ||
| 164 | + policystatus: "2", | ||
| 165 | + message: "", | ||
| 166 | + policynumber: "" | ||
| 167 | + }) | ||
| 168 | + const queryParams = reactive({ | ||
| 169 | + pageNum: 1, | ||
| 170 | + pageSize: 20 | ||
| 171 | + }); | ||
| 172 | + const continueQueryParams = reactive({ | ||
| 173 | + pageNum: 1, | ||
| 174 | + pageSize: 20, | ||
| 175 | + orderprogress: 1, | ||
| 176 | + policystatus: 0 | ||
| 177 | + }); | ||
| 100 | // 检测手机滑动 | 178 | // 检测手机滑动 |
| 101 | const toggleSwiper = (event) => { | 179 | const toggleSwiper = (event) => { |
| 102 | expertActive.value = event.detail?.current | 180 | expertActive.value = event.detail?.current |
| 181 | + if(event.detail?.current === 0) { | ||
| 182 | + getList() | ||
| 183 | + }else if(event.detail?.current === 1) { | ||
| 184 | + getProcessedList() | ||
| 185 | + } else { | ||
| 186 | + getEndedList() | ||
| 187 | + } | ||
| 103 | } | 188 | } |
| 104 | // 删除车主信息 | 189 | // 删除车主信息 |
| 105 | const delOwnerInfo = (id) => { | 190 | const delOwnerInfo = (id) => { |
| @@ -116,6 +201,94 @@ | @@ -116,6 +201,94 @@ | ||
| 116 | }) | 201 | }) |
| 117 | } | 202 | } |
| 118 | 203 | ||
| 204 | + // 获取待办任务 | ||
| 205 | + const getList = async () => { | ||
| 206 | + const { data } = await queryMyList(queryParams); | ||
| 207 | + List.value = data.rows; | ||
| 208 | + useTabbar.companyTotal = data.total; | ||
| 209 | + }; | ||
| 210 | + | ||
| 211 | + // 获取已承接保单 | ||
| 212 | + const getProcessedList = async () => { | ||
| 213 | + const { rows, total } = await queryContinueList(continueQueryParams); | ||
| 214 | + ProcessedList.value = rows; | ||
| 215 | + useTabbar.companyTotal = total; | ||
| 216 | + }; | ||
| 217 | + // 获取已完结保单 | ||
| 218 | + const getEndedList = async () => { | ||
| 219 | + const { rows, total } = await queryEndedList(queryParams); | ||
| 220 | + EndedList.value = rows; | ||
| 221 | + useTabbar.companyTotal = total; | ||
| 222 | + }; | ||
| 223 | + | ||
| 224 | + // 承接 | ||
| 225 | + const handleContinue = (taskId) => { | ||
| 226 | + uni.showModal({ | ||
| 227 | + content: '是否要承接该保单', | ||
| 228 | + success: function (res) { | ||
| 229 | + if (res.confirm) { | ||
| 230 | + disposeUser({}, taskId).then((res) => { | ||
| 231 | + uni.$u.toast('承接成功') | ||
| 232 | + getList(); | ||
| 233 | + }); | ||
| 234 | + } else if (res.cancel) { | ||
| 235 | + uni.$u.toast('已取消') | ||
| 236 | + } | ||
| 237 | + } | ||
| 238 | + }) | ||
| 239 | + } | ||
| 240 | + | ||
| 241 | + // 转办 | ||
| 242 | + const handleSharing = async (taskId) => { | ||
| 243 | + const { data } = await getUserList(); | ||
| 244 | + transferForm.value.taskId = taskId | ||
| 245 | + transferOptions.value = data; | ||
| 246 | + showSharing.value = true | ||
| 247 | + } | ||
| 248 | + | ||
| 249 | + // 承接回馈 | ||
| 250 | + const handleFeedback = (taskId) => { | ||
| 251 | + FeedbackForm.value.taskId = taskId | ||
| 252 | + showFeedback.value = true | ||
| 253 | + } | ||
| 254 | + // 疑难件 | ||
| 255 | + const handleTroubleshooting = (taskId) => { | ||
| 256 | + const data = { | ||
| 257 | + policystatus: "1" | ||
| 258 | + }; | ||
| 259 | + disposeUser(data, FeedbackForm.value.taskId).then((res) => { | ||
| 260 | + showFeedback.value = false | ||
| 261 | + getList(); | ||
| 262 | + }); | ||
| 263 | + } | ||
| 264 | + | ||
| 265 | + // 提交保单回馈 | ||
| 266 | + const submitFeedback = () => { | ||
| 267 | + const data = { | ||
| 268 | + policystatus: "2", | ||
| 269 | + message: FeedbackForm.value.message, | ||
| 270 | + policynumber: FeedbackForm.value.policynumber, | ||
| 271 | + }; | ||
| 272 | + disposeUser(data, FeedbackForm.value.taskId).then((res) => { | ||
| 273 | + showFeedback.value = false | ||
| 274 | + getList(); | ||
| 275 | + proxy.$modal.msgSuccess("回馈成功"); | ||
| 276 | + }); | ||
| 277 | + } | ||
| 278 | + | ||
| 279 | + // 提交转办 | ||
| 280 | + const submitSharing = () => { | ||
| 281 | + const data = { | ||
| 282 | + username: transferForm.value.username, | ||
| 283 | + }; | ||
| 284 | + const taskId = transferForm.value.taskId; | ||
| 285 | + transfer(data, taskId).then((res) => { | ||
| 286 | + showSharing.value = false; | ||
| 287 | + getList(); | ||
| 288 | + proxy.$modal.msgSuccess("保单已分配成功"); | ||
| 289 | + }); | ||
| 290 | + } | ||
| 291 | + | ||
| 119 | const goRouter = (index) => { | 292 | const goRouter = (index) => { |
| 120 | useTabbar.employeeCurrent = index | 293 | useTabbar.employeeCurrent = index |
| 121 | uni.redirectTo({ | 294 | uni.redirectTo({ |
| @@ -128,6 +301,7 @@ | @@ -128,6 +301,7 @@ | ||
| 128 | url: '/pages/ownerDetail/ownerDetail' | 301 | url: '/pages/ownerDetail/ownerDetail' |
| 129 | }) | 302 | }) |
| 130 | } | 303 | } |
| 304 | + getList() | ||
| 131 | </script> | 305 | </script> |
| 132 | 306 | ||
| 133 | <style lang="scss" scoped> | 307 | <style lang="scss" scoped> |
| @@ -4,26 +4,26 @@ | @@ -4,26 +4,26 @@ | ||
| 4 | <view class="car_list"> | 4 | <view class="car_list"> |
| 5 | <view class="line_title"> | 5 | <view class="line_title"> |
| 6 | <text class="left_title" style="color: #fff;">我的信息</text> | 6 | <text class="left_title" style="color: #fff;">我的信息</text> |
| 7 | - <text style="color: #fff;">更新实名信息</text> | 7 | + <text style="color: #fff;" @click="submit">更新实名信息</text> |
| 8 | </view> | 8 | </view> |
| 9 | <view class="user-box"> | 9 | <view class="user-box"> |
| 10 | - <up-form :model="userForm" ref="userFormRef"> | ||
| 11 | - <up-form-item prop="name"> | ||
| 12 | - <up-input v-model="userForm.name" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入真实姓名"> | 10 | + <up-form :model="userInfo" ref="userFormRef"> |
| 11 | + <up-form-item prop="nickName"> | ||
| 12 | + <up-input v-model="userInfo.nickName" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入真实姓名"> | ||
| 13 | <template #prefix> | 13 | <template #prefix> |
| 14 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/user.png" mode="widthFix"></image> | 14 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/user.png" mode="widthFix"></image> |
| 15 | </template> | 15 | </template> |
| 16 | </up-input> | 16 | </up-input> |
| 17 | </up-form-item> | 17 | </up-form-item> |
| 18 | <up-form-item prop="identificationNumber"> | 18 | <up-form-item prop="identificationNumber"> |
| 19 | - <up-input v-model="userForm.identificationNumber" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入身份证号"> | 19 | + <up-input v-model="userInfo.identificationNumber" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入身份证号"> |
| 20 | <template #prefix> | 20 | <template #prefix> |
| 21 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/IdCard.png" mode="widthFix"></image> | 21 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/IdCard.png" mode="widthFix"></image> |
| 22 | </template> | 22 | </template> |
| 23 | </up-input> | 23 | </up-input> |
| 24 | </up-form-item> | 24 | </up-form-item> |
| 25 | - <up-form-item prop="phone"> | ||
| 26 | - <up-input v-model="userForm.phone" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入手机号码"> | 25 | + <up-form-item prop="phonenumber"> |
| 26 | + <up-input v-model="userInfo.phonenumber" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入手机号码"> | ||
| 27 | <template #prefix> | 27 | <template #prefix> |
| 28 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/phone.png" mode="widthFix"></image> | 28 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/phone.png" mode="widthFix"></image> |
| 29 | </template> | 29 | </template> |
| @@ -31,14 +31,14 @@ | @@ -31,14 +31,14 @@ | ||
| 31 | </up-form-item> | 31 | </up-form-item> |
| 32 | </up-form> | 32 | </up-form> |
| 33 | </view> | 33 | </view> |
| 34 | - <view class="line_title"> | 34 | + <!-- <view class="line_title"> |
| 35 | <text class="left_title">状态设置</text> | 35 | <text class="left_title">状态设置</text> |
| 36 | - </view> | 36 | + </view> --> |
| 37 | 37 | ||
| 38 | - <view class="status"> | 38 | + <!-- <view class="status"> |
| 39 | <view class="statusBtn" :class="{active: status === 0}" @click="status = 0">在岗</view> | 39 | <view class="statusBtn" :class="{active: status === 0}" @click="status = 0">在岗</view> |
| 40 | <view class="statusBtn" :class="{active: status === 1}" @click="status = 1">离岗</view> | 40 | <view class="statusBtn" :class="{active: status === 1}" @click="status = 1">离岗</view> |
| 41 | - </view> | 41 | + </view> --> |
| 42 | 42 | ||
| 43 | <view class="loginBtn" @click="loginOut">退出登录</view> | 43 | <view class="loginBtn" @click="loginOut">退出登录</view> |
| 44 | </view> | 44 | </view> |
| @@ -48,7 +48,7 @@ | @@ -48,7 +48,7 @@ | ||
| 48 | activeColor="#3680FE" | 48 | activeColor="#3680FE" |
| 49 | inactiveColor="#707070" | 49 | inactiveColor="#707070" |
| 50 | > | 50 | > |
| 51 | - <up-tabbar-item text="主页" icon="home" @click="goRouter"></up-tabbar-item> | 51 | + <up-tabbar-item text="主页" icon="home" :badge="useTabbar.companyTotal" @click="goRouter"></up-tabbar-item> |
| 52 | <up-tabbar-item text="我的" icon="account"></up-tabbar-item> | 52 | <up-tabbar-item text="我的" icon="account"></up-tabbar-item> |
| 53 | </up-tabbar> | 53 | </up-tabbar> |
| 54 | </view> | 54 | </view> |
| @@ -56,17 +56,14 @@ | @@ -56,17 +56,14 @@ | ||
| 56 | 56 | ||
| 57 | <script setup> | 57 | <script setup> |
| 58 | import { ref } from 'vue' | 58 | import { ref } from 'vue' |
| 59 | +import { updateUserInfo } from '@/api/user.js' | ||
| 59 | import { onReady } from '@dcloudio/uni-app' | 60 | import { onReady } from '@dcloudio/uni-app' |
| 60 | import useTabbarStore from '@/store/modules/tabbar.js' | 61 | import useTabbarStore from '@/store/modules/tabbar.js' |
| 62 | +import useUserStore from '@/store/modules/user.js'; | ||
| 63 | +const { userInfo, Logout } = useUserStore() | ||
| 61 | const useTabbar = useTabbarStore() | 64 | const useTabbar = useTabbarStore() |
| 62 | const status = ref(0) | 65 | const status = ref(0) |
| 63 | const showNotice = ref(true) | 66 | const showNotice = ref(true) |
| 64 | -// 用户参数 | ||
| 65 | -const userForm = ref({ | ||
| 66 | - name: '', | ||
| 67 | - identificationNumber: '', | ||
| 68 | - phone: '' | ||
| 69 | -}) | ||
| 70 | const customStyle = { | 67 | const customStyle = { |
| 71 | height: '80rpx', | 68 | height: '80rpx', |
| 72 | backgroundColor: '#F9F9F9', | 69 | backgroundColor: '#F9F9F9', |
| @@ -80,7 +77,7 @@ const placeholderStyle = { | @@ -80,7 +77,7 @@ const placeholderStyle = { | ||
| 80 | const userFormRef = ref(null) | 77 | const userFormRef = ref(null) |
| 81 | // 校验规则 | 78 | // 校验规则 |
| 82 | const rules = { | 79 | const rules = { |
| 83 | - name: [ | 80 | + nickName: [ |
| 84 | { required: true, message: '请输入姓名', trigger: ['blur', 'change'] }, | 81 | { required: true, message: '请输入姓名', trigger: ['blur', 'change'] }, |
| 85 | { min: 2, max: 6, message: '名字应在2到6个字', trigger: ['blur', 'change'] }, | 82 | { min: 2, max: 6, message: '名字应在2到6个字', trigger: ['blur', 'change'] }, |
| 86 | { validator: (rule, value, callback) => { | 83 | { validator: (rule, value, callback) => { |
| @@ -101,7 +98,7 @@ const rules = { | @@ -101,7 +98,7 @@ const rules = { | ||
| 101 | trigger: ['change','blur'], | 98 | trigger: ['change','blur'], |
| 102 | } | 99 | } |
| 103 | ], | 100 | ], |
| 104 | - phone: [ | 101 | + phonenumber: [ |
| 105 | { required: true, message: '请输入手机号', trigger: ['blur', 'change'] }, | 102 | { required: true, message: '请输入手机号', trigger: ['blur', 'change'] }, |
| 106 | { validator: (rule, value, callback) => { | 103 | { validator: (rule, value, callback) => { |
| 107 | return uni.$u.test.mobile(value) | 104 | return uni.$u.test.mobile(value) |
| @@ -117,7 +114,21 @@ onReady(() => { | @@ -117,7 +114,21 @@ onReady(() => { | ||
| 117 | userFormRef.value.setRules(rules) | 114 | userFormRef.value.setRules(rules) |
| 118 | }) | 115 | }) |
| 119 | const loginOut = () => { | 116 | const loginOut = () => { |
| 120 | - | 117 | + uni.showModal({ |
| 118 | + title: '提示', | ||
| 119 | + content: '是否退出登录', | ||
| 120 | + success: async (res) => { | ||
| 121 | + if (res.confirm) { | ||
| 122 | + await Logout() | ||
| 123 | + uni.$u.toast('退出成功') | ||
| 124 | + uni.redirectTo({ | ||
| 125 | + url: '/pages/login/login' | ||
| 126 | + }) | ||
| 127 | + } else if (res.cancel) { | ||
| 128 | + console.log('用户点击取消'); | ||
| 129 | + } | ||
| 130 | + } | ||
| 131 | + }); | ||
| 121 | } | 132 | } |
| 122 | 133 | ||
| 123 | const goRouter = (index) => { | 134 | const goRouter = (index) => { |
| @@ -126,11 +137,13 @@ const goRouter = (index) => { | @@ -126,11 +137,13 @@ const goRouter = (index) => { | ||
| 126 | url: '/pages/companyHome/companyHome' | 137 | url: '/pages/companyHome/companyHome' |
| 127 | }) | 138 | }) |
| 128 | } | 139 | } |
| 140 | + | ||
| 129 | // 提交方法 | 141 | // 提交方法 |
| 130 | const submit = () => { | 142 | const submit = () => { |
| 131 | userFormRef.value.validate().then(async valid => { | 143 | userFormRef.value.validate().then(async valid => { |
| 132 | if (valid) { | 144 | if (valid) { |
| 133 | - uni.$u.toast('登录成功') | 145 | + await updateUserInfo(userInfo) |
| 146 | + uni.$u.toast('更新成功') | ||
| 134 | } else { | 147 | } else { |
| 135 | uni.$u.toast('校验失败') | 148 | uni.$u.toast('校验失败') |
| 136 | } | 149 | } |
pages/employeeRealName/employeeRealName.vue
0 → 100644
| 1 | +<template> | ||
| 2 | + <view class="login-container"> | ||
| 3 | + <view class="title">实名认证</view> | ||
| 4 | + <view class="line"></view> | ||
| 5 | + <view class="login-box"> | ||
| 6 | + <up-form :model="userInfo" ref="logFormRef"> | ||
| 7 | + <up-form-item prop="nickName"> | ||
| 8 | + <up-input v-model="userInfo.nickName" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入真实姓名"> | ||
| 9 | + <template #prefix> | ||
| 10 | + <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/user.png" mode="widthFix"></image> | ||
| 11 | + </template> | ||
| 12 | + </up-input> | ||
| 13 | + </up-form-item> | ||
| 14 | + <up-form-item prop="identificationNumber"> | ||
| 15 | + <up-input v-model="userInfo.identificationNumber" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入身份证号"> | ||
| 16 | + <template #prefix> | ||
| 17 | + <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/IdCard.png" mode="widthFix"></image> | ||
| 18 | + </template> | ||
| 19 | + </up-input> | ||
| 20 | + </up-form-item> | ||
| 21 | + <up-form-item prop="phonenumber"> | ||
| 22 | + <up-input v-model="userInfo.phonenumber" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入手机号码"> | ||
| 23 | + <template #prefix> | ||
| 24 | + <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/phone.png" mode="widthFix"></image> | ||
| 25 | + </template> | ||
| 26 | + </up-input> | ||
| 27 | + </up-form-item> | ||
| 28 | + </up-form> | ||
| 29 | + </view> | ||
| 30 | + | ||
| 31 | + <view class="log-btn" @click="submit">提交</view> | ||
| 32 | + </view> | ||
| 33 | +</template> | ||
| 34 | + | ||
| 35 | +<script setup> | ||
| 36 | +import { reactive, ref } from 'vue'; | ||
| 37 | +import { userWxLogin, updateUserInfo } from '@/api/user.js' | ||
| 38 | +import { onReady, onLoad } from '@dcloudio/uni-app' | ||
| 39 | +import useUserStore from '@/store/modules/user.js' | ||
| 40 | +const { userInfo, getUser } = useUserStore() | ||
| 41 | +// 表单引用 | ||
| 42 | +const logFormRef = ref(null) | ||
| 43 | +// 校验规则 | ||
| 44 | +const rules = { | ||
| 45 | + nickName: [ | ||
| 46 | + { required: true, message: '请输入姓名', trigger: ['blur', 'change'] }, | ||
| 47 | + { min: 2, max: 6, message: '名字应在2到6个字', trigger: ['blur', 'change'] }, | ||
| 48 | + { validator: (rule, value, callback) => { | ||
| 49 | + return uni.$u.test.chinese(value) | ||
| 50 | + }, | ||
| 51 | + message: '请输入中文', | ||
| 52 | + // 触发器可以同时用blur和change | ||
| 53 | + trigger: ['change','blur'], | ||
| 54 | + } | ||
| 55 | + ], | ||
| 56 | + identificationNumber: [ | ||
| 57 | + { required: true, message: '请输入身份证号', trigger: ['blur', 'change'] }, | ||
| 58 | + { validator: (rule, value, callback) => { | ||
| 59 | + return uni.$u.test.idCard(value) | ||
| 60 | + }, | ||
| 61 | + message: '身份证号码不正确', | ||
| 62 | + // 触发器可以同时用blur和change | ||
| 63 | + trigger: ['change','blur'], | ||
| 64 | + } | ||
| 65 | + ], | ||
| 66 | + phonenumber: [ | ||
| 67 | + { required: true, message: '请输入手机号', trigger: ['blur', 'change'] }, | ||
| 68 | + { validator: (rule, value, callback) => { | ||
| 69 | + return uni.$u.test.mobile(value) | ||
| 70 | + }, | ||
| 71 | + message: '手机号码不正确', | ||
| 72 | + // 触发器可以同时用blur和change | ||
| 73 | + trigger: ['change','blur'], | ||
| 74 | + } | ||
| 75 | + ] | ||
| 76 | +} | ||
| 77 | +const customStyle = { | ||
| 78 | + height: '80rpx', | ||
| 79 | + backgroundColor: '#F9F9F9', | ||
| 80 | + paddingLeft: '40rpx' | ||
| 81 | +} | ||
| 82 | +const placeholderStyle = { | ||
| 83 | + color: '#bbb', | ||
| 84 | + fontSize: '28rpx' | ||
| 85 | +} | ||
| 86 | +// 微信小程序需要在此注册校验规则 | ||
| 87 | +onReady(() => { | ||
| 88 | + logFormRef.value.setRules(rules) | ||
| 89 | +}) | ||
| 90 | +// 提交方法 | ||
| 91 | +const submit = () => { | ||
| 92 | + logFormRef.value.validate().then(async valid => { | ||
| 93 | + if (valid) { | ||
| 94 | + await updateUserInfo(userInfo) | ||
| 95 | + uni.$u.toast('实名成功') | ||
| 96 | + const { roleGroup } = await getUser() | ||
| 97 | + if(roleGroup === '公司员工'){ | ||
| 98 | + uni.redirectTo({ | ||
| 99 | + url: '/pages/companyHome/companyHome' | ||
| 100 | + }) | ||
| 101 | + }else { | ||
| 102 | + uni.redirectTo({ | ||
| 103 | + url: '/pages/societyHome/societyHome' | ||
| 104 | + }) | ||
| 105 | + } | ||
| 106 | + } else { | ||
| 107 | + uni.$u.toast('校验失败') | ||
| 108 | + } | ||
| 109 | + }).catch(() => { | ||
| 110 | + // 处理验证错误 | ||
| 111 | + uni.$u.toast('校验失败') | ||
| 112 | + }); | ||
| 113 | +} | ||
| 114 | +</script> | ||
| 115 | + | ||
| 116 | +<style lang="scss" scoped> | ||
| 117 | +.login-container{ | ||
| 118 | + position: relative; | ||
| 119 | + width: 100%; | ||
| 120 | + height: 100vh; | ||
| 121 | + background: url('http://bxhd.crgx.net/profile/avatar/2024/09/25/bg-login_20240925112841A003.png') no-repeat; | ||
| 122 | + background-size: 100% 100%; | ||
| 123 | + overflow: hidden; | ||
| 124 | + .title{ | ||
| 125 | + position: absolute; | ||
| 126 | + top: 232rpx; | ||
| 127 | + left: 30rpx; | ||
| 128 | + font-size: 48rpx; | ||
| 129 | + line-height: 64rpx; | ||
| 130 | + color: #fff; | ||
| 131 | + font-weight: 500; | ||
| 132 | + } | ||
| 133 | + .line{ | ||
| 134 | + position: absolute; | ||
| 135 | + top: 326rpx; | ||
| 136 | + left: 30rpx; | ||
| 137 | + width: 40rpx; | ||
| 138 | + height: 6rpx; | ||
| 139 | + background: #FFFFFF; | ||
| 140 | + } | ||
| 141 | + .login-box{ | ||
| 142 | + width: 690rpx; | ||
| 143 | + padding: 40rpx 44rpx; | ||
| 144 | + background-color: #fff; | ||
| 145 | + z-index: 10; | ||
| 146 | + margin: 442rpx auto 40rpx; | ||
| 147 | + box-shadow: 0rpx 8rpx 40rpx 0rpx rgba(10,22,44,0.06); | ||
| 148 | + border-radius: 40rpx; | ||
| 149 | + .employeeStatus{ | ||
| 150 | + display: flex; | ||
| 151 | + align-items: center; | ||
| 152 | + gap: 40rpx; | ||
| 153 | + margin-top: 30rpx; | ||
| 154 | + .btn{ | ||
| 155 | + flex: 1; | ||
| 156 | + height: 80rpx; | ||
| 157 | + background: #FFFFFF; | ||
| 158 | + border-radius: 200rpx; | ||
| 159 | + border: 2rpx solid #BBBBBB; | ||
| 160 | + font-size: 28rpx; | ||
| 161 | + text-align: center; | ||
| 162 | + line-height: 80rpx; | ||
| 163 | + color: #999; | ||
| 164 | + &.active{ | ||
| 165 | + background: #75A8FF; | ||
| 166 | + color: #fff; | ||
| 167 | + } | ||
| 168 | + } | ||
| 169 | + } | ||
| 170 | + } | ||
| 171 | + .tip{ | ||
| 172 | + color: #666; | ||
| 173 | + font-size: 24rpx; | ||
| 174 | + line-height: 28rpx; | ||
| 175 | + padding: 0 40rpx; | ||
| 176 | + margin-bottom: 20rpx; | ||
| 177 | + } | ||
| 178 | + .log-btn{ | ||
| 179 | + width: 690rpx; | ||
| 180 | + height: 80rpx; | ||
| 181 | + line-height: 80rpx; | ||
| 182 | + text-align: center; | ||
| 183 | + background: #3680FE; | ||
| 184 | + font-size: 28rpx; | ||
| 185 | + margin: 0 auto; | ||
| 186 | + color: #fff; | ||
| 187 | + box-shadow: 0rpx 8rpx 40rpx 0rpx rgba(10,22,44,0.06); | ||
| 188 | + border-radius: 200rpx; | ||
| 189 | + } | ||
| 190 | +} | ||
| 191 | +</style> |
| @@ -3,50 +3,75 @@ | @@ -3,50 +3,75 @@ | ||
| 3 | <up-navbar placeholder :leftIconSize="0" bgColor="transparent" /> | 3 | <up-navbar placeholder :leftIconSize="0" bgColor="transparent" /> |
| 4 | <view class="car_list"> | 4 | <view class="car_list"> |
| 5 | <view class="title">车辆管理</view> | 5 | <view class="title">车辆管理</view> |
| 6 | - <carCard v-for="carItem in carList" :key="carItem.carId" :carInfo="carItem"> | 6 | + <carCard v-for="carItem in carList" :key="carItem.id" :carInfo="carItem"> |
| 7 | <template #header> | 7 | <template #header> |
| 8 | - <navTop :carNum="carItem.carNum" /> | 8 | + <navTop :carNum="carItem.licensePlateNumber" /> |
| 9 | </template> | 9 | </template> |
| 10 | <template #center> | 10 | <template #center> |
| 11 | - <centerLine :leftContent="carItem.carBrand" fontColor="#999" :rightContent="carItem.address"></centerLine> | 11 | + <centerLine :leftContent="carItem.customizeVehicleBrand || carItem.vehicleBrand" fontColor="#999" :rightContent="carItem.customizeVehicleModel || carItem.vehicleModel"></centerLine> |
| 12 | </template> | 12 | </template> |
| 13 | <template #footer> | 13 | <template #footer> |
| 14 | - <centerLine></centerLine> | 14 | + <view style="color: #3680FE;font-size: 24rpx;" @click="lookCarInfo(carItem.id)">查看详情</view> |
| 15 | </template> | 15 | </template> |
| 16 | </carCard> | 16 | </carCard> |
| 17 | <view class="addBtn" @click="addCarInfo">登记车辆保险信息</view> | 17 | <view class="addBtn" @click="addCarInfo">登记车辆保险信息</view> |
| 18 | </view> | 18 | </view> |
| 19 | 19 | ||
| 20 | - <up-popup :show="showNotice" mode="center" :safeAreaInsetBottom="false" round="20" @close="showNotice = false"> | 20 | + <up-popup :show="userStore.isShowAdver" mode="center" :safeAreaInsetBottom="false" round="20" @close="userStore.isShowAdver = false"> |
| 21 | <view class="notice"> | 21 | <view class="notice"> |
| 22 | - <view class="notice_title">通知公告</view> | 22 | + <view class="notice_title">{{ advertisingTitle }}</view> |
| 23 | <view class="notice_content"> | 23 | <view class="notice_content"> |
| 24 | - 1.我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告 | ||
| 25 | - 2.我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告 | ||
| 26 | - 3.我是公告我是公告我是公告我是公告 | 24 | + <up-parse :content="advertisingContent"></up-parse> |
| 27 | </view> | 25 | </view> |
| 28 | - <view class="btn" @click="showNotice = false">确认</view> | 26 | + <view class="btn" @click="confirm">确认</view> |
| 29 | </view> | 27 | </view> |
| 30 | </up-popup> | 28 | </up-popup> |
| 31 | </view> | 29 | </view> |
| 32 | </template> | 30 | </template> |
| 33 | 31 | ||
| 34 | <script setup> | 32 | <script setup> |
| 35 | -import { ref } from 'vue' | 33 | +import { reactive, ref } from 'vue' |
| 34 | +import { onShow } from '@dcloudio/uni-app' | ||
| 35 | +import { getUserCarInfo, getNotice } from '@/api/user.js' | ||
| 36 | import carCard from '@/components/carCard.vue'; | 36 | import carCard from '@/components/carCard.vue'; |
| 37 | import centerLine from '@/components/centerLine.vue'; | 37 | import centerLine from '@/components/centerLine.vue'; |
| 38 | import navTop from '@/components/navTop.vue'; | 38 | import navTop from '@/components/navTop.vue'; |
| 39 | -const showNotice = ref(true) | ||
| 40 | -const carList = ref([ | ||
| 41 | - { carId: 1, carNum: '桂A·66666', carBrand: '梅赛德斯奔驰', address: '广西壮族自治区 南宁市 兴宁区投保', status: 0 }, | ||
| 42 | - { carId: 2, carNum: '桂A·77777', carBrand: '梅赛德斯奔驰', address: '广西壮族自治区 南宁市 兴宁区投保', status: 1 }, | ||
| 43 | - { carId: 3, carNum: '桂A·77777', carBrand: '梅赛德斯奔驰', address: '广西壮族自治区 南宁市 兴宁区投保', status: 2 } | ||
| 44 | -]) | 39 | +import useUserStore from '@/store/modules/user'; |
| 40 | +const carList = ref([]) | ||
| 41 | +const advertisingTitle = ref('') | ||
| 42 | +const advertisingContent = ref('') | ||
| 43 | +const userStore = useUserStore() | ||
| 44 | +const queryParams = reactive({ | ||
| 45 | + pageNum: 1, | ||
| 46 | + pageSize: 10 | ||
| 47 | +}) | ||
| 48 | +const getMyList = async () => { | ||
| 49 | + const { data } = await getUserCarInfo(queryParams) | ||
| 50 | + carList.value = data.records | ||
| 51 | +} | ||
| 45 | const addCarInfo = () => { | 52 | const addCarInfo = () => { |
| 46 | uni.navigateTo({ | 53 | uni.navigateTo({ |
| 47 | url: '/pages/carDetail/carDetail' | 54 | url: '/pages/carDetail/carDetail' |
| 48 | }) | 55 | }) |
| 49 | } | 56 | } |
| 57 | +const lookCarInfo = (id) => { | ||
| 58 | + uni.navigateTo({ | ||
| 59 | + url: `/pages/carDetail/carDetail?carInfoId=${id}` | ||
| 60 | + }) | ||
| 61 | +} | ||
| 62 | +const confirm = () => { | ||
| 63 | + userStore.isShowAdver = false | ||
| 64 | +} | ||
| 65 | +// 获取广告详情 | ||
| 66 | +const getNoticeDetail = async () => { | ||
| 67 | + const { data } = await getNotice(10) | ||
| 68 | + advertisingContent.value = data.noticeContent | ||
| 69 | + advertisingTitle.value = data.noticeTitle | ||
| 70 | +} | ||
| 71 | +getNoticeDetail() | ||
| 72 | +onShow(() => { | ||
| 73 | + getMyList() | ||
| 74 | +}) | ||
| 50 | </script> | 75 | </script> |
| 51 | 76 | ||
| 52 | <style lang="scss" scoped> | 77 | <style lang="scss" scoped> |
| @@ -2,21 +2,33 @@ | @@ -2,21 +2,33 @@ | ||
| 2 | <view class="login-container"> | 2 | <view class="login-container"> |
| 3 | 3 | ||
| 4 | <view class="login-box"> | 4 | <view class="login-box"> |
| 5 | - <up-form :model="logForm" ref="logFormRef"> | ||
| 6 | - <up-form-item prop="name"> | ||
| 7 | - <up-input v-model="logForm.name" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入真实姓名"> | 5 | + <up-form :model="loginForm" ref="logFormRef"> |
| 6 | + <up-form-item prop="username"> | ||
| 7 | + <up-input v-model="loginForm.username" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入用户名"> | ||
| 8 | <template #prefix> | 8 | <template #prefix> |
| 9 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/user.png" mode="widthFix"></image> | 9 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/user.png" mode="widthFix"></image> |
| 10 | </template> | 10 | </template> |
| 11 | </up-input> | 11 | </up-input> |
| 12 | </up-form-item> | 12 | </up-form-item> |
| 13 | - <up-form-item prop="identificationNumber"> | ||
| 14 | - <up-input v-model="logForm.identificationNumber" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入身份证号"> | 13 | + <up-form-item prop="password"> |
| 14 | + <up-input v-model="loginForm.password" type="password" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入密码"> | ||
| 15 | <template #prefix> | 15 | <template #prefix> |
| 16 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/IdCard.png" mode="widthFix"></image> | 16 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/IdCard.png" mode="widthFix"></image> |
| 17 | </template> | 17 | </template> |
| 18 | </up-input> | 18 | </up-input> |
| 19 | </up-form-item> | 19 | </up-form-item> |
| 20 | + <up-form-item prop="code"> | ||
| 21 | + <view style="display: flex;"> | ||
| 22 | + <up-input v-model="loginForm.code" placeholder="验证码" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="codeCustomStyle"> | ||
| 23 | + <template #prefix> | ||
| 24 | + <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/code.png" mode="widthFix"></image> | ||
| 25 | + </template> | ||
| 26 | + </up-input> | ||
| 27 | + <view class="login-code"> | ||
| 28 | + <image :src="codeUrl" class="login-code-img" mode="widthFix" @click="getCode"></image> | ||
| 29 | + </view> | ||
| 30 | + </view> | ||
| 31 | + </up-form-item> | ||
| 20 | </up-form> | 32 | </up-form> |
| 21 | </view> | 33 | </view> |
| 22 | 34 | ||
| @@ -30,46 +42,51 @@ | @@ -30,46 +42,51 @@ | ||
| 30 | <script setup> | 42 | <script setup> |
| 31 | import { reactive, ref } from 'vue'; | 43 | import { reactive, ref } from 'vue'; |
| 32 | import { onReady } from '@dcloudio/uni-app' | 44 | import { onReady } from '@dcloudio/uni-app' |
| 45 | +import { getCodeImg } from '@/api/user.js' | ||
| 46 | +import { encrypt } from "@/utils/jsencrypt"; | ||
| 47 | +import useUserStore from '@/store/modules/user' | ||
| 48 | + | ||
| 49 | +const userStore = useUserStore() | ||
| 33 | // 登录参数 | 50 | // 登录参数 |
| 34 | -const logForm = ref({ | ||
| 35 | - name: '', | ||
| 36 | - identificationNumber: '' | ||
| 37 | -}) | 51 | +const loginForm = ref({ |
| 52 | + username: "", | ||
| 53 | + password: "", | ||
| 54 | + code: "", | ||
| 55 | + uuid: "" | ||
| 56 | +}); | ||
| 57 | +const codeUrl = ref('') | ||
| 38 | // 表单引用 | 58 | // 表单引用 |
| 39 | const logFormRef = ref(null) | 59 | const logFormRef = ref(null) |
| 40 | // 校验规则 | 60 | // 校验规则 |
| 41 | const rules = { | 61 | const rules = { |
| 42 | - name: [ | ||
| 43 | - { required: true, message: '请输入姓名', trigger: ['blur', 'change'] }, | ||
| 44 | - { min: 2, max: 6, message: '名字应在2到6个字', trigger: ['blur', 'change'] }, | ||
| 45 | - { validator: (rule, value, callback) => { | ||
| 46 | - return uni.$u.test.chinese(value) | ||
| 47 | - }, | ||
| 48 | - message: '请输入中文', | ||
| 49 | - // 触发器可以同时用blur和change | ||
| 50 | - trigger: ['change','blur'], | ||
| 51 | - } | ||
| 52 | - ], | ||
| 53 | - identificationNumber: [ | ||
| 54 | - { required: true, message: '请输入身份证号', trigger: ['blur', 'change'] }, | ||
| 55 | - { validator: (rule, value, callback) => { | ||
| 56 | - return uni.$u.test.idCard(value) | ||
| 57 | - }, | ||
| 58 | - message: '身份证号码不正确', | ||
| 59 | - // 触发器可以同时用blur和change | ||
| 60 | - trigger: ['change','blur'], | ||
| 61 | - } | ||
| 62 | - ] | 62 | + username: [{ required: true, message: '请输入用户名', trigger: ['blur', 'change'] }], |
| 63 | + password: [{ required: true, message: '请输入身份证号', trigger: ['blur', 'change']}], | ||
| 64 | + code: [{ required: true, message: '请输入验证码', trigger: ['blur', 'change']}] | ||
| 63 | } | 65 | } |
| 64 | const customStyle = { | 66 | const customStyle = { |
| 65 | height: '80rpx', | 67 | height: '80rpx', |
| 66 | backgroundColor: '#F9F9F9', | 68 | backgroundColor: '#F9F9F9', |
| 67 | paddingLeft: '40rpx' | 69 | paddingLeft: '40rpx' |
| 68 | } | 70 | } |
| 71 | + | ||
| 72 | +const codeCustomStyle = { | ||
| 73 | + width: '63%', | ||
| 74 | + height: '80rpx', | ||
| 75 | + backgroundColor: '#F9F9F9', | ||
| 76 | + paddingLeft: '40rpx' | ||
| 77 | +} | ||
| 69 | const placeholderStyle = { | 78 | const placeholderStyle = { |
| 70 | color: '#bbb', | 79 | color: '#bbb', |
| 71 | fontSize: '28rpx' | 80 | fontSize: '28rpx' |
| 72 | } | 81 | } |
| 82 | +// 获取验证码 | ||
| 83 | +function getCode() { | ||
| 84 | + getCodeImg().then(res => { | ||
| 85 | + codeUrl.value = "data:image/gif;base64," + res.img; | ||
| 86 | + loginForm.value.uuid = res.uuid; | ||
| 87 | + }); | ||
| 88 | +} | ||
| 89 | + | ||
| 73 | // 微信小程序需要在此注册校验规则 | 90 | // 微信小程序需要在此注册校验规则 |
| 74 | onReady(() => { | 91 | onReady(() => { |
| 75 | logFormRef.value.setRules(rules) | 92 | logFormRef.value.setRules(rules) |
| @@ -80,14 +97,32 @@ const goPrivacy = () => { | @@ -80,14 +97,32 @@ const goPrivacy = () => { | ||
| 80 | url: '/pages/privacy/privacy' | 97 | url: '/pages/privacy/privacy' |
| 81 | }) | 98 | }) |
| 82 | } | 99 | } |
| 83 | -// 提交方法 | 100 | +// 提交登录 |
| 84 | const submit = () => { | 101 | const submit = () => { |
| 85 | logFormRef.value.validate().then(async valid => { | 102 | logFormRef.value.validate().then(async valid => { |
| 86 | if (valid) { | 103 | if (valid) { |
| 87 | - uni.$u.toast('登录成功') | ||
| 88 | - uni.navigateTo({ | 104 | + // 调用action的登录方法 |
| 105 | + userStore.userlogin(loginForm.value).then(async () => { | ||
| 106 | + const { data, roleGroup } = await userStore.getUser() | ||
| 107 | + if(data.identificationNumber !== null) { | ||
| 108 | + if(roleGroup === '公司员工'){ | ||
| 109 | + uni.redirectTo({ | ||
| 89 | url: '/pages/companyHome/companyHome' | 110 | url: '/pages/companyHome/companyHome' |
| 90 | }) | 111 | }) |
| 112 | + }else { | ||
| 113 | + uni.redirectTo({ | ||
| 114 | + url: '/pages/societyHome/societyHome' | ||
| 115 | + }) | ||
| 116 | + } | ||
| 117 | + }else { | ||
| 118 | + uni.redirectTo({ | ||
| 119 | + url: '/pages/employeeRealName/employeeRealName' | ||
| 120 | + }) | ||
| 121 | + } | ||
| 122 | + }).catch(() => { | ||
| 123 | + // 重新获取验证码 | ||
| 124 | + getCode(); | ||
| 125 | + }); | ||
| 91 | } else { | 126 | } else { |
| 92 | uni.$u.toast('校验失败') | 127 | uni.$u.toast('校验失败') |
| 93 | } | 128 | } |
| @@ -96,6 +131,7 @@ const submit = () => { | @@ -96,6 +131,7 @@ const submit = () => { | ||
| 96 | uni.$u.toast('校验失败') | 131 | uni.$u.toast('校验失败') |
| 97 | }); | 132 | }); |
| 98 | } | 133 | } |
| 134 | +getCode(); | ||
| 99 | </script> | 135 | </script> |
| 100 | 136 | ||
| 101 | <style lang="scss" scoped> | 137 | <style lang="scss" scoped> |
| @@ -155,4 +191,17 @@ const submit = () => { | @@ -155,4 +191,17 @@ const submit = () => { | ||
| 155 | border-radius: 200rpx; | 191 | border-radius: 200rpx; |
| 156 | } | 192 | } |
| 157 | } | 193 | } |
| 194 | + | ||
| 195 | +.login-code { | ||
| 196 | + width: 33%; | ||
| 197 | + height: 80rpx; | ||
| 198 | + float: right; | ||
| 199 | + .login-code-img { | ||
| 200 | + width: 100%; | ||
| 201 | + cursor: pointer; | ||
| 202 | + vertical-align: middle; | ||
| 203 | + height: 80rpx; | ||
| 204 | + padding-left: 24rpx; | ||
| 205 | + } | ||
| 206 | +} | ||
| 158 | </style> | 207 | </style> |
| @@ -6,27 +6,27 @@ | @@ -6,27 +6,27 @@ | ||
| 6 | <text class="left_title" style="color: #fff;">我的信息</text> | 6 | <text class="left_title" style="color: #fff;">我的信息</text> |
| 7 | <view style="display: flex;align-items: center;"> | 7 | <view style="display: flex;align-items: center;"> |
| 8 | <u-icon name="checkmark-circle" size="16" color="#fff"></u-icon> | 8 | <u-icon name="checkmark-circle" size="16" color="#fff"></u-icon> |
| 9 | - <text style="color: #fff;margin-left: 10rpx;">更新实名信息</text> | 9 | + <text style="color: #fff;margin-left: 10rpx;" @click="submit">更新实名信息</text> |
| 10 | </view> | 10 | </view> |
| 11 | </view> | 11 | </view> |
| 12 | <view class="user-box"> | 12 | <view class="user-box"> |
| 13 | - <up-form :model="userForm" ref="userFormRef"> | ||
| 14 | - <up-form-item prop="name"> | ||
| 15 | - <up-input v-model="userForm.name" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入真实姓名"> | 13 | + <up-form :model="userInfo" ref="userFormRef"> |
| 14 | + <up-form-item prop="nickName"> | ||
| 15 | + <up-input v-model="userInfo.nickName" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入真实姓名"> | ||
| 16 | <template #prefix> | 16 | <template #prefix> |
| 17 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/user.png" mode="widthFix"></image> | 17 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/user.png" mode="widthFix"></image> |
| 18 | </template> | 18 | </template> |
| 19 | </up-input> | 19 | </up-input> |
| 20 | </up-form-item> | 20 | </up-form-item> |
| 21 | <up-form-item prop="identificationNumber"> | 21 | <up-form-item prop="identificationNumber"> |
| 22 | - <up-input v-model="userForm.identificationNumber" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入身份证号"> | 22 | + <up-input v-model="userInfo.identificationNumber" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入身份证号"> |
| 23 | <template #prefix> | 23 | <template #prefix> |
| 24 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/IdCard.png" mode="widthFix"></image> | 24 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/IdCard.png" mode="widthFix"></image> |
| 25 | </template> | 25 | </template> |
| 26 | </up-input> | 26 | </up-input> |
| 27 | </up-form-item> | 27 | </up-form-item> |
| 28 | - <up-form-item prop="phone"> | ||
| 29 | - <up-input v-model="userForm.phone" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入身份证号"> | 28 | + <up-form-item prop="phonenumber"> |
| 29 | + <up-input v-model="userInfo.phonenumber" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入身份证号"> | ||
| 30 | <template #prefix> | 30 | <template #prefix> |
| 31 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/IdCard.png" mode="widthFix"></image> | 31 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/IdCard.png" mode="widthFix"></image> |
| 32 | </template> | 32 | </template> |
| @@ -40,32 +40,28 @@ | @@ -40,32 +40,28 @@ | ||
| 40 | </view> | 40 | </view> |
| 41 | 41 | ||
| 42 | <view class="car_data"> | 42 | <view class="car_data"> |
| 43 | - <view v-for="carItem in carList" :key="carItem.carId" class="car_item"> | ||
| 44 | - <navTop :carNum="carItem.carNum" /> | ||
| 45 | - <centerLine :leftContent="carItem.carBrand" fontColor="#999" :rightContent="carItem.address" /> | 43 | + <view v-for="carItem in carList" :key="carItem.id" class="car_item"> |
| 44 | + <navTop :carNum="carItem.licensePlateNumber" /> | ||
| 45 | + <centerLine :leftContent="carItem.customizeVehicleBrand || carItem.vehicleBrand" fontColor="#999" :rightContent="carItem.customizeVehicleModel || carItem.vehicleModel"></centerLine> | ||
| 46 | </view> | 46 | </view> |
| 47 | </view> | 47 | </view> |
| 48 | - <view class="loginBtn" @click="addCarInfo">退出登录</view> | 48 | + <view class="loginBtn" @click="loginOut">退出登录</view> |
| 49 | </view> | 49 | </view> |
| 50 | </view> | 50 | </view> |
| 51 | </template> | 51 | </template> |
| 52 | 52 | ||
| 53 | <script setup> | 53 | <script setup> |
| 54 | -import { ref } from 'vue' | 54 | +import { ref, reactive } from 'vue' |
| 55 | import { onReady } from '@dcloudio/uni-app' | 55 | import { onReady } from '@dcloudio/uni-app' |
| 56 | import centerLine from '@/components/centerLine.vue'; | 56 | import centerLine from '@/components/centerLine.vue'; |
| 57 | import navTop from '@/components/navTop.vue'; | 57 | import navTop from '@/components/navTop.vue'; |
| 58 | -const showNotice = ref(true) | ||
| 59 | -const carList = ref([ | ||
| 60 | - { carId: 1, carNum: '桂A·66666', carBrand: '梅赛德斯奔驰', address: '广西壮族自治区 南宁市 兴宁区投保', status: 0 }, | ||
| 61 | - { carId: 2, carNum: '桂A·77777', carBrand: '梅赛德斯奔驰', address: '广西壮族自治区 南宁市 兴宁区投保', status: 1 }, | ||
| 62 | - { carId: 3, carNum: '桂A·77777', carBrand: '梅赛德斯奔驰', address: '广西壮族自治区 南宁市 兴宁区投保', status: 2 } | ||
| 63 | -]) | ||
| 64 | -// 用户参数 | ||
| 65 | -const userForm = ref({ | ||
| 66 | - name: '', | ||
| 67 | - identificationNumber: '', | ||
| 68 | - phone: '' | 58 | +import { updateUserInfo, getUserCarInfo } from '@/api/user.js' |
| 59 | +import useUserStore from '@/store/modules/user.js' | ||
| 60 | +const { userInfo, Logout } = useUserStore() | ||
| 61 | +const carList = ref([]) | ||
| 62 | +const queryParams = reactive({ | ||
| 63 | + pageNum: 1, | ||
| 64 | + pageSize: 10 | ||
| 69 | }) | 65 | }) |
| 70 | const customStyle = { | 66 | const customStyle = { |
| 71 | height: '80rpx', | 67 | height: '80rpx', |
| @@ -80,7 +76,7 @@ const placeholderStyle = { | @@ -80,7 +76,7 @@ const placeholderStyle = { | ||
| 80 | const userFormRef = ref(null) | 76 | const userFormRef = ref(null) |
| 81 | // 校验规则 | 77 | // 校验规则 |
| 82 | const rules = { | 78 | const rules = { |
| 83 | - name: [ | 79 | + nickName: [ |
| 84 | { required: true, message: '请输入姓名', trigger: ['blur', 'change'] }, | 80 | { required: true, message: '请输入姓名', trigger: ['blur', 'change'] }, |
| 85 | { min: 2, max: 6, message: '名字应在2到6个字', trigger: ['blur', 'change'] }, | 81 | { min: 2, max: 6, message: '名字应在2到6个字', trigger: ['blur', 'change'] }, |
| 86 | { validator: (rule, value, callback) => { | 82 | { validator: (rule, value, callback) => { |
| @@ -101,7 +97,7 @@ const rules = { | @@ -101,7 +97,7 @@ const rules = { | ||
| 101 | trigger: ['change','blur'], | 97 | trigger: ['change','blur'], |
| 102 | } | 98 | } |
| 103 | ], | 99 | ], |
| 104 | - phone: [ | 100 | + phonenumber: [ |
| 105 | { required: true, message: '请输入手机号', trigger: ['blur', 'change'] }, | 101 | { required: true, message: '请输入手机号', trigger: ['blur', 'change'] }, |
| 106 | { validator: (rule, value, callback) => { | 102 | { validator: (rule, value, callback) => { |
| 107 | return uni.$u.test.mobile(value) | 103 | return uni.$u.test.mobile(value) |
| @@ -116,16 +112,34 @@ const rules = { | @@ -116,16 +112,34 @@ const rules = { | ||
| 116 | onReady(() => { | 112 | onReady(() => { |
| 117 | userFormRef.value.setRules(rules) | 113 | userFormRef.value.setRules(rules) |
| 118 | }) | 114 | }) |
| 119 | -const addCarInfo = () => { | 115 | +const loginOut = () => { |
| 116 | + uni.showModal({ | ||
| 117 | + title: '提示', | ||
| 118 | + content: '是否退出登录', | ||
| 119 | + success: async (res) => { | ||
| 120 | + if (res.confirm) { | ||
| 121 | + await Logout() | ||
| 122 | + uni.$u.toast('退出成功') | ||
| 120 | uni.navigateTo({ | 123 | uni.navigateTo({ |
| 121 | - url: '/pages/carDetail/carDetail' | 124 | + url: '/pages/realName/realName' |
| 122 | }) | 125 | }) |
| 126 | + } else if (res.cancel) { | ||
| 127 | + console.log('用户点击取消'); | ||
| 128 | + } | ||
| 129 | + } | ||
| 130 | + }); | ||
| 123 | } | 131 | } |
| 132 | +const getMyList = async () => { | ||
| 133 | + const { data } = await getUserCarInfo(queryParams) | ||
| 134 | + carList.value = data.records | ||
| 135 | +} | ||
| 136 | + | ||
| 124 | // 提交方法 | 137 | // 提交方法 |
| 125 | const submit = () => { | 138 | const submit = () => { |
| 126 | userFormRef.value.validate().then(async valid => { | 139 | userFormRef.value.validate().then(async valid => { |
| 127 | if (valid) { | 140 | if (valid) { |
| 128 | - uni.$u.toast('登录成功') | 141 | + await updateUserInfo(userInfo) |
| 142 | + uni.$u.toast('更新成功') | ||
| 129 | } else { | 143 | } else { |
| 130 | uni.$u.toast('校验失败') | 144 | uni.$u.toast('校验失败') |
| 131 | } | 145 | } |
| @@ -134,6 +148,7 @@ const submit = () => { | @@ -134,6 +148,7 @@ const submit = () => { | ||
| 134 | uni.$u.toast('校验失败') | 148 | uni.$u.toast('校验失败') |
| 135 | }); | 149 | }); |
| 136 | } | 150 | } |
| 151 | +getMyList() | ||
| 137 | </script> | 152 | </script> |
| 138 | 153 | ||
| 139 | <style lang="scss" scoped> | 154 | <style lang="scss" scoped> |
| @@ -3,23 +3,23 @@ | @@ -3,23 +3,23 @@ | ||
| 3 | <view class="title">实名认证</view> | 3 | <view class="title">实名认证</view> |
| 4 | <view class="line"></view> | 4 | <view class="line"></view> |
| 5 | <view class="login-box"> | 5 | <view class="login-box"> |
| 6 | - <up-form :model="logForm" ref="logFormRef"> | ||
| 7 | - <up-form-item prop="name"> | ||
| 8 | - <up-input v-model="logForm.name" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入真实姓名"> | 6 | + <up-form :model="userInfo" ref="logFormRef"> |
| 7 | + <up-form-item prop="nickName"> | ||
| 8 | + <up-input v-model="userInfo.nickName" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入真实姓名"> | ||
| 9 | <template #prefix> | 9 | <template #prefix> |
| 10 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/user.png" mode="widthFix"></image> | 10 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/user.png" mode="widthFix"></image> |
| 11 | </template> | 11 | </template> |
| 12 | </up-input> | 12 | </up-input> |
| 13 | </up-form-item> | 13 | </up-form-item> |
| 14 | <up-form-item prop="identificationNumber"> | 14 | <up-form-item prop="identificationNumber"> |
| 15 | - <up-input v-model="logForm.identificationNumber" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入身份证号"> | 15 | + <up-input v-model="userInfo.identificationNumber" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入身份证号"> |
| 16 | <template #prefix> | 16 | <template #prefix> |
| 17 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/IdCard.png" mode="widthFix"></image> | 17 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/IdCard.png" mode="widthFix"></image> |
| 18 | </template> | 18 | </template> |
| 19 | </up-input> | 19 | </up-input> |
| 20 | </up-form-item> | 20 | </up-form-item> |
| 21 | - <up-form-item prop="phone"> | ||
| 22 | - <up-input v-model="logForm.phone" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入手机号码"> | 21 | + <up-form-item prop="phonenumber"> |
| 22 | + <up-input v-model="userInfo.phonenumber" shape="circle" border="none" fontSize="28rpx" color="#bbb" :placeholderStyle="placeholderStyle" :customStyle="customStyle" placeholder="请输入手机号码"> | ||
| 23 | <template #prefix> | 23 | <template #prefix> |
| 24 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/phone.png" mode="widthFix"></image> | 24 | <image style="width: 32rpx;margin-right: 18rpx;margin-top: 10rpx;" src="@/static/commonImage/phone.png" mode="widthFix"></image> |
| 25 | </template> | 25 | </template> |
| @@ -29,26 +29,23 @@ | @@ -29,26 +29,23 @@ | ||
| 29 | </view> | 29 | </view> |
| 30 | 30 | ||
| 31 | <view class="tip"> | 31 | <view class="tip"> |
| 32 | - 未注册或绑定该车型平台的身份证号,将帮你注册新账号,点击登录即代表你同意<text style="color: #3680FE;" @click="goPrivacy">《隐私政策》</text> | 32 | + 未注册或绑定该车型平台的身份证号,将帮你注册新账号,点击提交即代表你同意<text style="color: #3680FE;" @click="goPrivacy">《隐私政策》</text> |
| 33 | </view> | 33 | </view> |
| 34 | - <view class="log-btn" @click="submit">登录</view> | 34 | + <view class="log-btn" @click="submit">提交</view> |
| 35 | </view> | 35 | </view> |
| 36 | </template> | 36 | </template> |
| 37 | 37 | ||
| 38 | <script setup> | 38 | <script setup> |
| 39 | import { reactive, ref } from 'vue'; | 39 | import { reactive, ref } from 'vue'; |
| 40 | -import { onReady } from '@dcloudio/uni-app' | ||
| 41 | -// 登录参数 | ||
| 42 | -const logForm = ref({ | ||
| 43 | - name: '', | ||
| 44 | - identificationNumber: '', | ||
| 45 | - phone: '' | ||
| 46 | -}) | 40 | +import { userWxLogin, updateUserInfo } from '@/api/user.js' |
| 41 | +import { onReady, onLoad } from '@dcloudio/uni-app' | ||
| 42 | +import useUserStore from '@/store/modules/user.js' | ||
| 43 | +const { userInfo, login, getUser } = useUserStore() | ||
| 47 | // 表单引用 | 44 | // 表单引用 |
| 48 | const logFormRef = ref(null) | 45 | const logFormRef = ref(null) |
| 49 | // 校验规则 | 46 | // 校验规则 |
| 50 | const rules = { | 47 | const rules = { |
| 51 | - name: [ | 48 | + nickName: [ |
| 52 | { required: true, message: '请输入姓名', trigger: ['blur', 'change'] }, | 49 | { required: true, message: '请输入姓名', trigger: ['blur', 'change'] }, |
| 53 | { min: 2, max: 6, message: '名字应在2到6个字', trigger: ['blur', 'change'] }, | 50 | { min: 2, max: 6, message: '名字应在2到6个字', trigger: ['blur', 'change'] }, |
| 54 | { validator: (rule, value, callback) => { | 51 | { validator: (rule, value, callback) => { |
| @@ -69,7 +66,7 @@ const rules = { | @@ -69,7 +66,7 @@ const rules = { | ||
| 69 | trigger: ['change','blur'], | 66 | trigger: ['change','blur'], |
| 70 | } | 67 | } |
| 71 | ], | 68 | ], |
| 72 | - phone: [ | 69 | + phonenumber: [ |
| 73 | { required: true, message: '请输入手机号', trigger: ['blur', 'change'] }, | 70 | { required: true, message: '请输入手机号', trigger: ['blur', 'change'] }, |
| 74 | { validator: (rule, value, callback) => { | 71 | { validator: (rule, value, callback) => { |
| 75 | return uni.$u.test.mobile(value) | 72 | return uni.$u.test.mobile(value) |
| @@ -93,7 +90,19 @@ const placeholderStyle = { | @@ -93,7 +90,19 @@ const placeholderStyle = { | ||
| 93 | onReady(() => { | 90 | onReady(() => { |
| 94 | logFormRef.value.setRules(rules) | 91 | logFormRef.value.setRules(rules) |
| 95 | }) | 92 | }) |
| 96 | - | 93 | +onLoad((options) => { |
| 94 | + uni.login({ | ||
| 95 | + success: async (loginRes) => { | ||
| 96 | + await login({code: loginRes.code, type: 0}) | ||
| 97 | + const { data } = await getUser() | ||
| 98 | + if(data.identificationNumber !== null) { | ||
| 99 | + uni.switchTab({ | ||
| 100 | + url: '/pages/index/index' | ||
| 101 | + }) | ||
| 102 | + } | ||
| 103 | + } | ||
| 104 | + }); | ||
| 105 | +}) | ||
| 97 | const goPrivacy = () => { | 106 | const goPrivacy = () => { |
| 98 | uni.navigateTo({ | 107 | uni.navigateTo({ |
| 99 | url: '/pages/privacy/privacy' | 108 | url: '/pages/privacy/privacy' |
| @@ -103,6 +112,7 @@ const goPrivacy = () => { | @@ -103,6 +112,7 @@ const goPrivacy = () => { | ||
| 103 | const submit = () => { | 112 | const submit = () => { |
| 104 | logFormRef.value.validate().then(async valid => { | 113 | logFormRef.value.validate().then(async valid => { |
| 105 | if (valid) { | 114 | if (valid) { |
| 115 | + await updateUserInfo(userInfo) | ||
| 106 | uni.$u.toast('登录成功') | 116 | uni.$u.toast('登录成功') |
| 107 | uni.switchTab({ | 117 | uni.switchTab({ |
| 108 | url: '/pages/index/index' | 118 | url: '/pages/index/index' |
不能预览此文件类型
不能预览此文件类型
static/commonImage/code.png
0 → 100644
5.2 KB
| @@ -5,7 +5,8 @@ const useTabbarStore = defineStore('tabbar', { | @@ -5,7 +5,8 @@ const useTabbarStore = defineStore('tabbar', { | ||
| 5 | state: () => { | 5 | state: () => { |
| 6 | return { | 6 | return { |
| 7 | employeeCurrent: 0, | 7 | employeeCurrent: 0, |
| 8 | - societyCurrent: 0 | 8 | + societyCurrent: 0, |
| 9 | + companyTotal: 0 | ||
| 9 | } | 10 | } |
| 10 | } | 11 | } |
| 11 | }) | 12 | }) |
| 1 | import { defineStore } from 'pinia' | 1 | import { defineStore } from 'pinia' |
| 2 | import storage from '@/utils/storage.js' | 2 | import storage from '@/utils/storage.js' |
| 3 | -import { userLogin, getUserInfo } from '@/api/user' | ||
| 4 | -// 登陆成功后执行 | ||
| 5 | -const loginSuccess = (that, token) => { | ||
| 6 | - // 过期时间30天 | ||
| 7 | - const expiryTime = 30 * 86400 | ||
| 8 | - // 保存tokne到缓存 | ||
| 9 | - storage.set('xiaoming_token', token, expiryTime) | ||
| 10 | - // 记录到store全局变量 | ||
| 11 | - that.token = token | ||
| 12 | -} | 3 | +import { userWxLogin, getUserInfo, userLogin } from '@/api/user.js' |
| 13 | 4 | ||
| 14 | -// 保存用户信息 | ||
| 15 | -const userInfoSuccess = (that, userInfo) => { | ||
| 16 | - // 过期时间30天 | ||
| 17 | - const expiryTime = 30 * 86400 | ||
| 18 | - storage.set('xiaoming_userInfo', userInfo, expiryTime) | ||
| 19 | - // 记录到store全局变量 | ||
| 20 | - that.userInfo = userInfo | ||
| 21 | -} | ||
| 22 | 5 | ||
| 23 | const useUserStore = defineStore('user', { | 6 | const useUserStore = defineStore('user', { |
| 24 | unistorage: true, // 是否持久化到内存 | 7 | unistorage: true, // 是否持久化到内存 |
| 25 | state: () => { | 8 | state: () => { |
| 26 | return { | 9 | return { |
| 27 | - token: storage.get('xiaoming_token', '123'), | ||
| 28 | - userInfo: storage.get('xiaoming_userInfo', null) | 10 | + token: storage.get('crgx_token', ''), |
| 11 | + userInfo: storage.get('crgx_userInfo', null), | ||
| 12 | + isShowAdver: true | ||
| 29 | } | 13 | } |
| 30 | }, | 14 | }, |
| 31 | actions: { | 15 | actions: { |
| 32 | - // 用户登录 | 16 | + // 用户微信登录 |
| 33 | login(data) { | 17 | login(data) { |
| 34 | - let that = this | ||
| 35 | return new Promise((resolve, reject) => { | 18 | return new Promise((resolve, reject) => { |
| 36 | - userLogin(data) | 19 | + userWxLogin(data) |
| 37 | .then(response => { | 20 | .then(response => { |
| 38 | const { token } = response | 21 | const { token } = response |
| 39 | - loginSuccess(that, token) | 22 | + // 过期时间30天 |
| 23 | + const expiryTime = 30 * 86400 | ||
| 24 | + // 保存tokne到缓存 | ||
| 25 | + storage.set('crgx_token', token, expiryTime) | ||
| 26 | + // 记录到store全局变量 | ||
| 27 | + this.token = token | ||
| 40 | resolve(response) | 28 | resolve(response) |
| 41 | }) | 29 | }) |
| 42 | .catch(reject) | 30 | .catch(reject) |
| 43 | }) | 31 | }) |
| 44 | }, | 32 | }, |
| 33 | + | ||
| 34 | + // 账号密码登录 | ||
| 35 | + userlogin(userInfo) { | ||
| 36 | + return new Promise((resolve, reject) => { | ||
| 37 | + userLogin(userInfo).then(res => { | ||
| 38 | + // 保存tokne到缓存 | ||
| 39 | + // 过期时间30天 | ||
| 40 | + const expiryTime = 30 * 86400 | ||
| 41 | + storage.set('crgx_token', res.token, expiryTime) | ||
| 42 | + this.token = res.token | ||
| 43 | + resolve() | ||
| 44 | + }).catch(error => { | ||
| 45 | + reject(error) | ||
| 46 | + }) | ||
| 47 | + }) | ||
| 48 | + }, | ||
| 45 | // 获取用户信息 | 49 | // 获取用户信息 |
| 46 | getUser() { | 50 | getUser() { |
| 47 | - let that = this | ||
| 48 | return new Promise((resolve, reject) => { | 51 | return new Promise((resolve, reject) => { |
| 49 | getUserInfo() | 52 | getUserInfo() |
| 50 | .then(response => { | 53 | .then(response => { |
| 51 | - userInfoSuccess(that, response.data) | 54 | + const userInfo = response.data |
| 55 | + // 过期时间30天 | ||
| 56 | + const expiryTime = 30 * 86400 | ||
| 57 | + storage.set('crgx_userInfo', userInfo, expiryTime) | ||
| 58 | + // 记录到store全局变量 | ||
| 59 | + this.userInfo = userInfo | ||
| 52 | resolve(response) | 60 | resolve(response) |
| 53 | }) | 61 | }) |
| 54 | .catch(reject) | 62 | .catch(reject) |
| @@ -56,11 +64,10 @@ const useUserStore = defineStore('user', { | @@ -56,11 +64,10 @@ const useUserStore = defineStore('user', { | ||
| 56 | }, | 64 | }, |
| 57 | // 退出登录 | 65 | // 退出登录 |
| 58 | Logout() { | 66 | Logout() { |
| 59 | - const store = this | ||
| 60 | return new Promise((resolve, reject) => { | 67 | return new Promise((resolve, reject) => { |
| 61 | // 删除缓存中的tokne和userInfo | 68 | // 删除缓存中的tokne和userInfo |
| 62 | - storage.remove('xiaoming_token') | ||
| 63 | - storage.remove('xiaoming_userInfo') | 69 | + storage.remove('crgx_token') |
| 70 | + storage.remove('crgx_userInfo') | ||
| 64 | resolve() | 71 | resolve() |
| 65 | }) | 72 | }) |
| 66 | } | 73 | } |
| @@ -372,10 +372,10 @@ | @@ -372,10 +372,10 @@ | ||
| 372 | 372 | ||
| 373 | .uni-select { | 373 | .uni-select { |
| 374 | font-size: 14px; | 374 | font-size: 14px; |
| 375 | - border: 1px solid $uni-border-3; | ||
| 376 | box-sizing: border-box; | 375 | box-sizing: border-box; |
| 377 | border-radius: 4px; | 376 | border-radius: 4px; |
| 378 | padding: 0 5px; | 377 | padding: 0 5px; |
| 378 | + text-align: right; | ||
| 379 | padding-left: 10px; | 379 | padding-left: 10px; |
| 380 | position: relative; | 380 | position: relative; |
| 381 | /* #ifndef APP-NVUE */ | 381 | /* #ifndef APP-NVUE */ |
| @@ -384,7 +384,6 @@ | @@ -384,7 +384,6 @@ | ||
| 384 | /* #endif */ | 384 | /* #endif */ |
| 385 | flex-direction: row; | 385 | flex-direction: row; |
| 386 | align-items: center; | 386 | align-items: center; |
| 387 | - border-bottom: solid 1px $uni-border-3; | ||
| 388 | width: 100%; | 387 | width: 100%; |
| 389 | flex: 1; | 388 | flex: 1; |
| 390 | height: 35px; | 389 | height: 35px; |
| @@ -547,8 +546,8 @@ | @@ -547,8 +546,8 @@ | ||
| 547 | } | 546 | } |
| 548 | 547 | ||
| 549 | .uni-select__input-placeholder { | 548 | .uni-select__input-placeholder { |
| 550 | - color: $uni-base-color; | ||
| 551 | - font-size: 12px; | 549 | + color: #999; |
| 550 | + font-size: 28rpx; | ||
| 552 | } | 551 | } |
| 553 | 552 | ||
| 554 | .uni-select--mask { | 553 | .uni-select--mask { |
unpackage/dist/build/mp-weixin/api/car.js
0 → 100644
| 1 | +"use strict";const t=require("../uni_modules/uview-plus/index.js");exports.getCarBrandApi=e=>t.http.get("/system/vehicle/brand/getList",{params:e,custom:{auth:!0}}),exports.getCarDetail=e=>t.http.get(`registration/${e}`,{custom:{auth:!0}}),exports.getCarModelApi=e=>t.http.get("/system/vehicle/model/getList",{params:e,custom:{auth:!0}}),exports.getCarNatureApi=e=>t.http.get("/system/vehicle/nature/getList",{params:e,custom:{auth:!0}}),exports.getCarNumApi=e=>t.http.get("/system/licenseplat/type/getList",{params:e,custom:{auth:!0}}),exports.getCarTypeApi=e=>t.http.get("/system/vehicle/type/getList",{params:e,custom:{auth:!0}}),exports.getListDeptApi=e=>t.http.get("/system/dept/list",{params:e,custom:{auth:!0}}),exports.getNeedApi=e=>t.http.get("/system/requirements/getList",{params:e,custom:{auth:!0}}); |
unpackage/dist/build/mp-weixin/api/user.js
0 → 100644
| 1 | +"use strict";const t=require("../uni_modules/uview-plus/index.js");exports.carInfoAdd=e=>t.http.post("/registration/add",e,{custom:{auth:!0}}),exports.getCodeImg=e=>t.http.get("/captchaImage"),exports.getNotice=e=>t.http.get(`/system/notice/${e}`,{custom:{auth:!0}}),exports.getUserCarInfo=e=>t.http.get("/registration/listRegistration",{params:e,custom:{auth:!0}}),exports.getUserInfo=e=>t.http.get("/system/user/profile",{custom:{auth:!0}}),exports.updateUserInfo=e=>t.http.put("/system/user/profile",e,{custom:{auth:!0}}),exports.userLogin=e=>t.http.post("/login",e),exports.userWxLogin=(e,s={})=>t.http.post("/wechat/login",e,s); |
unpackage/dist/build/mp-weixin/api/work.js
0 → 100644
| 1 | +"use strict";const t=require("../uni_modules/uview-plus/index.js");exports.disposeUser=(s,e)=>t.http.post(`/registration/completeTask/${e}`,s,{custom:{auth:!0}}),exports.getUserList=s=>t.http.post("/system/user/otherEmployee",s,{custom:{auth:!0}}),exports.queryContinueList=s=>t.http.get("/registration/monitor/listReports",{params:s,custom:{auth:!0}}),exports.queryEndedList=s=>t.http.get("/registration/monitor/listEnded",{params:s,custom:{auth:!0}}),exports.queryMyList=s=>t.http.get("/registration/mylist",{params:s,custom:{auth:!0}}),exports.transfer=(s,e)=>t.http.post(`/registratiom/transferTask/${e}`,s,{custom:{auth:!0}}); |
| 1 | -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./common/vendor.js"),o=require("./uni_modules/uview-plus/index.js"),n=require("./store/index.js"),t=require("./utils/request.js");Math;const u={onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};function s(){const s=e.createSSRApp(u);return t.initRequest(),s.use(o.uviewPlus).use(n.store),{app:s}}s().app.mount("#app"),exports.createApp=s; | 1 | +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./common/vendor.js"),r=require("./store/modules/user.js"),s=require("./uni_modules/uview-plus/index.js"),t=require("./store/index.js"),u=require("./utils/request.js");Math;const o={__name:"App",setup:e=>(r.useUserStore(),()=>{})};function i(){const r=e.createSSRApp(o);return u.initRequest(),r.use(s.uviewPlus).use(t.store),{app:r}}i().app.mount("#app"),exports.createApp=i; |
| @@ -10,7 +10,8 @@ | @@ -10,7 +10,8 @@ | ||
| 10 | "pages/companyMy/companyMy", | 10 | "pages/companyMy/companyMy", |
| 11 | "pages/ownerDetail/ownerDetail", | 11 | "pages/ownerDetail/ownerDetail", |
| 12 | "pages/societyHome/societyHome", | 12 | "pages/societyHome/societyHome", |
| 13 | - "pages/societyMy/societyMy" | 13 | + "pages/societyMy/societyMy", |
| 14 | + "pages/employeeRealName/employeeRealName" | ||
| 14 | ], | 15 | ], |
| 15 | "window": { | 16 | "window": { |
| 16 | "navigationBarTextStyle": "black", | 17 | "navigationBarTextStyle": "black", |
| 1 | -"use strict";exports._imports_0="/static/commonImage/user.png",exports._imports_0$1="/static/tabbarIcon/my-active.png",exports._imports_0$2="/static/commonImage/big-car.png",exports._imports_1="/static/commonImage/IdCard.png",exports._imports_1$1="/static/tabbarIcon/my.png",exports._imports_2="/static/commonImage/phone.png"; | 1 | +"use strict";exports._imports_0="/static/commonImage/user.png",exports._imports_0$1="/static/tabbarIcon/my-active.png",exports._imports_0$2="/static/commonImage/big-car.png",exports._imports_1="/static/commonImage/IdCard.png",exports._imports_1$1="/static/tabbarIcon/my.png",exports._imports_2="/static/commonImage/phone.png",exports._imports_2$1="/static/commonImage/code.png"; |
此 diff 太大无法显示。
| 1 | -"use strict";const t=require("../common/vendor.js"),e={__name:"carCard",props:{carInfo:{type:Object,require:!0},tipContent:{type:String,default:""}},emits:["onSkip"],setup(e,{emit:o}){const a=e,n=o,c=t.computed((()=>({0:"#D5E5FF",1:"#DED5FF",2:"#FFD5D5"}[a.carInfo.status||99]||"#D5E5FF"))),r=t.computed((()=>({0:"#3680FE",1:"#7F36FE",2:"#C81515"}[a.carInfo.status||99]||"#3680FE"))),p=t.computed((()=>({0:"已提交",1:"等待修改",2:"已作废"}[a.carInfo.status||99]||""))),s=()=>{n("onSkip",a.carInfo.carId)};return(o,a)=>({a:t.t(""===e.tipContent?p.value:e.tipContent),b:c.value,c:r.value,d:t.o(s)})}},o=t._export_sfc(e,[["__scopeId","data-v-aa887c84"]]);wx.createComponent(o); | 1 | +"use strict";const t=require("../common/vendor.js"),e={__name:"carCard",props:{carInfo:{type:Object,require:!0},tipContent:{type:String,default:""}},emits:["onSkip"],setup(e,{emit:o}){const r=e,a=o,n=t.computed((()=>({"进行中":"#D5E5FF","已完成":"#dbf1e1","已作废":"#FFD5D5"}[r.carInfo.status]||"#D5E5FF"))),c=t.computed((()=>({"进行中":"#3680FE","已完成":"#19be6b","已作废":"#C81515"}[r.carInfo.status]||"#3680FE"))),s=()=>{a("onSkip",r.carInfo.carId)};return(o,r)=>{var a;return{a:t.t((null==(a=e.carInfo)?void 0:a.status)||e.tipContent),b:n.value,c:c.value,d:t.o(s)}}}},o=t._export_sfc(e,[["__scopeId","data-v-2a38acce"]]);wx.createComponent(o); |
| 1 | -<view class="carCard data-v-aa887c84" bindtap="{{d}}"><slot name="header"></slot><slot name="center"></slot><view class="rowLine data-v-aa887c84"></view><slot name="footer"></slot><view class="tip data-v-aa887c84" style="{{'background-color:' + b + ';' + ('color:' + c)}}">{{a}}</view></view> | ||
| 1 | +<view class="carCard data-v-2a38acce" bindtap="{{d}}"><slot name="header"></slot><slot name="center"></slot><view class="rowLine data-v-2a38acce"></view><slot name="footer"></slot><view class="tip data-v-2a38acce" style="{{'background-color:' + b + ';' + ('color:' + c)}}">{{a}}</view></view> |
| 1 | -.carCard.data-v-aa887c84{position:relative;padding:20rpx 30rpx 34rpx;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);background:#fff;border-radius:20rpx}.carCard .rowLine.data-v-aa887c84{width:100%;height:2rpx;background-color:#eee;margin:20rpx 0}.carCard .tip.data-v-aa887c84{position:absolute;top:0;right:0;width:120rpx;height:40rpx;text-align:center;font-size:20rpx;line-height:40rpx;border-radius:0rpx 20rpx;color:#3680fe;background-color:#d5e5ff} | 1 | +.carCard.data-v-2a38acce{position:relative;padding:20rpx 30rpx 34rpx;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);background:#fff;border-radius:20rpx}.carCard .rowLine.data-v-2a38acce{width:100%;height:2rpx;background-color:#eee;margin:20rpx 0}.carCard .tip.data-v-2a38acce{position:absolute;top:0;right:0;width:120rpx;height:40rpx;text-align:center;font-size:20rpx;line-height:40rpx;border-radius:0rpx 20rpx;color:#3680fe;background-color:#d5e5ff} |
| 1 | -"use strict";const t=require("../common/vendor.js"),e={__name:"centerLine",props:{fontColor:{type:String,default:"#3680FE"},leftContent:{type:String,default:"修改车辆信息"},rightContent:{type:String,default:"删除车辆"}},setup(e){const n=e,o=()=>{n.leftContent},r=()=>{n.rightContent};return(n,f)=>({a:t.t(e.leftContent),b:t.o(o),c:e.fontColor,d:t.t(e.rightContent),e:t.o(r),f:e.fontColor})}},n=t._export_sfc(e,[["__scopeId","data-v-14f9323c"]]);wx.createComponent(n); | 1 | +"use strict";const t=require("../common/vendor.js"),e={__name:"centerLine",props:{fontColor:{type:String,default:"#3680FE"},leftContent:{type:String,default:"修改车辆信息"},rightContent:{type:String,default:""}},emits:["leftComfirn","rightComfirn"],setup:(e,{emit:o})=>(o,n)=>({a:t.t(e.leftContent),b:t.o(((...t)=>o.leftComfirn&&o.leftComfirn(...t))),c:e.fontColor,d:t.t(e.rightContent),e:t.o(((...t)=>o.rightComfirn&&o.rightComfirn(...t))),f:e.fontColor})},o=t._export_sfc(e,[["__scopeId","data-v-c7ce802e"]]);wx.createComponent(o); |
| 1 | -<view class="centerLine data-v-14f9323c" style="{{'color:' + f}}"><text class="data-v-14f9323c" bindtap="{{b}}">{{a}}</text><text class="line data-v-14f9323c" style="{{'background-color:' + c}}"></text><text class="data-v-14f9323c" bindtap="{{e}}">{{d}}</text></view> | ||
| 1 | +<view class="centerLine data-v-c7ce802e" style="{{'color:' + f}}"><text class="data-v-c7ce802e" bindtap="{{b}}">{{a}}</text><text class="line data-v-c7ce802e" style="{{'background-color:' + c}}"></text><text class="data-v-c7ce802e" bindtap="{{e}}">{{d}}</text></view> |
| 1 | -.centerLine.data-v-14f9323c{display:flex;align-items:center;font-size:20rpx}.centerLine .line.data-v-14f9323c{height:20rpx;width:2rpx;margin:0 20rpx} | 1 | +.centerLine.data-v-c7ce802e{display:flex;align-items:center;font-size:20rpx}.centerLine .line.data-v-c7ce802e{height:20rpx;width:2rpx;margin:0 20rpx} |
| 1 | -"use strict";const e={};const n=require("../common/vendor.js")._export_sfc(e,[["render",function(e,n){return{}}],["__scopeId","data-v-3b1ddd08"]]);wx.createComponent(n); | 1 | +"use strict";const e=require("../common/vendor.js"),o={__name:"ownerInfo",props:{carInfo:{type:Object,require:!0}},setup:o=>(c,r)=>({a:e.t(o.carInfo.name),b:e.t(o.carInfo.sysDeptName),c:e.t(o.carInfo.vehicleType),d:e.t(o.carInfo.phone),e:e.t(o.carInfo.policyTime),f:e.t(o.carInfo.createTime)})},c=e._export_sfc(o,[["__scopeId","data-v-d8fe8a01"]]);wx.createComponent(c); |
| 1 | -<view class="ownerInfo data-v-3b1ddd08"><view class="info_item data-v-3b1ddd08">车主:张三</view><view class="info_item data-v-3b1ddd08">客户来源:客户介绍</view><view class="info_item data-v-3b1ddd08">车辆类型:奔驰C级</view><view class="info_item data-v-3b1ddd08">客户归属:admin</view><view class="info_item data-v-3b1ddd08">下次跟进:2024-09-08</view><view class="info_item data-v-3b1ddd08">创建日期:2024-09-01</view></view> | ||
| 1 | +<view class="ownerInfo data-v-d8fe8a01"><view class="info_item data-v-d8fe8a01">车主:{{a}}</view><view class="info_item data-v-d8fe8a01">承保公司:{{b}}</view><view class="info_item data-v-d8fe8a01">车辆类型:{{c}}</view><view class="info_item data-v-d8fe8a01">联系电话:{{d}}</view><view class="info_item data-v-d8fe8a01">办结日期:{{e}}</view><view class="info_item data-v-d8fe8a01">创建日期:{{f}}</view></view> |
| 1 | -.ownerInfo.data-v-3b1ddd08{display:flex;flex-wrap:wrap}.ownerInfo .info_item.data-v-3b1ddd08{width:50%;font-size:20rpx;line-height:26rpx;color:#999;margin-bottom:10rpx} | 1 | +.ownerInfo.data-v-d8fe8a01{display:flex;flex-wrap:wrap}.ownerInfo .info_item.data-v-d8fe8a01{width:50%;font-size:20rpx;line-height:26rpx;color:#999;margin-bottom:10rpx} |
| 1 | -"use strict";const e=require("../common/vendor.js"),t={__name:"wordInfo",props:{carType:{type:String,default:""},userName:{type:String,default:""},applyTime:{type:String,default:""}},setup:t=>(a,p)=>({a:e.t(t.userName),b:e.t(t.carType),c:e.t(t.applyTime)})},a=e._export_sfc(t,[["__scopeId","data-v-8e0a9992"]]);wx.createComponent(a); | 1 | +"use strict";const e=require("../common/vendor.js"),t={__name:"wordInfo",props:{phone:{type:String,default:""},userName:{type:String,default:""},company:{type:String,default:""}},setup:t=>(o,n)=>({a:e.t(t.userName),b:e.t(t.phone),c:e.t(t.company)})},o=e._export_sfc(t,[["__scopeId","data-v-34f459ed"]]);wx.createComponent(o); |
| 1 | -<view class="wordInfo data-v-8e0a9992"><text class="data-v-8e0a9992" style="min-width:160rpx">车主:{{a}}</text><text class="data-v-8e0a9992">车辆类型:{{b}}</text><text class="applyTime data-v-8e0a9992">{{c}}</text></view> | ||
| 1 | +<view class="wordInfo u-line-1 data-v-34f459ed"><text class="data-v-34f459ed" style="min-width:120rpx">车主:{{a}}</text><text class="data-v-34f459ed" style="min-width:160rpx;margin-right:20rpx">联系电话:{{b}}</text><text class="data-v-34f459ed">上年承保公司:{{c}}</text></view> |
| 1 | -.wordInfo.data-v-8e0a9992{position:relative;display:flex;align-items:center;line-height:26rpx;color:#999;font-size:20rpx}.wordInfo .applyTime.data-v-8e0a9992{position:absolute;top:-20rpx;right:0} | 1 | +.wordInfo.data-v-34f459ed{position:relative;display:flex;align-items:center;line-height:26rpx;color:#999;font-size:20rpx}.wordInfo .applyTime.data-v-34f459ed{position:absolute;top:-20rpx;right:0} |
| 1 | -"use strict";const e=require("../../common/vendor.js");if(!Array){(e.resolveComponent("up-input")+e.resolveComponent("up-form-item")+e.resolveComponent("up-transition")+e.resolveComponent("up-form")+e.resolveComponent("up-picker")+e.resolveComponent("up-popup"))()}Math||(o+(()=>"../../uni_modules/uview-plus/components/u-input/u-input.js")+(()=>"../../uni_modules/uview-plus/components/u-form-item/u-form-item.js")+(()=>"../../uni_modules/uview-plus/components/u-transition/u-transition.js")+(()=>"../../uni_modules/uview-plus/components/u-form/u-form.js")+(()=>"../../uni_modules/uview-plus/components/u-picker/u-picker.js")+(()=>"../../uni_modules/uview-plus/components/u-popup/u-popup.js"))();const o=()=>"../../components/navTop.js",l={__name:"carDetail",setup(o){const l=e.ref(!1),n=e.ref(!0),r=e.ref([]),a={fontSize:"28rpx",lineHeight:"38rpx",color:"#3D3D3D"},p=e.ref(!1),i=e.ref("arrow-down"),u=e.ref({name:"",identificationNumber:"",sysDeptName:"",licensePlateNumber:"",lincensePlateType:"",frameNumber:"",engineNumber:"",vehicleType:"",vehicleNature:"",passengersNumber:"",passengerCapacity:"",emissions:"",vehicleModel:"",vehicleBrand:"",tractionMass:"",requirements:""});e.onLoad((e=>{}));const t=o=>{e.index.$u.trim(o)?p.value=!0:p.value=!1},s=e=>{r.value=[],r.value.push(e),l.value=!0,i.value="arrow-up"},c=()=>{l.value=!1,i.value="arrow-down"},m=()=>{e.index.showModal({title:"删除车辆提示",content:"删除车辆后将无法及时收到投保方案解答与最新优惠,且无法恢复车辆信息。是否继续删除?",success:function(e){e.confirm?console.log("用户点击确定"):e.cancel&&console.log("用户点击取消")}})};return(o,v)=>({a:e.p({carNum:"桂A·66666"}),b:e.o((e=>u.value.sysDeptName=e)),c:e.p({fontSize:"28rpx",color:"#999",placeholder:"请输入上年承保公司",border:"none",inputAlign:"right",modelValue:u.value.sysDeptName}),d:e.p({label:"上年承保公司",prop:"sysDeptName"}),e:e.o((e=>u.value.name=e)),f:e.p({fontSize:"28rpx",color:"#999",placeholder:"请输入真实姓名",border:"none",inputAlign:"right",modelValue:u.value.name}),g:e.p({label:"车主姓名",prop:"name"}),h:e.o((e=>u.value.identificationNumber=e)),i:e.p({fontSize:"28rpx",color:"#999",placeholder:"请输入身份证号",border:"none",inputAlign:"right",modelValue:u.value.identificationNumber}),j:e.p({label:"身份证号",prop:"identificationNumber"}),k:e.o((e=>u.value.licensePlateNumber=e)),l:e.p({fontSize:"28rpx",color:"#999",placeholder:"请输入车牌号码",border:"none",inputAlign:"right",modelValue:u.value.licensePlateNumber}),m:e.p({label:"车牌号码",prop:"licensePlateNumber"}),n:e.o((e=>s(["黄色车牌","绿色车牌","白色车牌","蓝色车牌"]))),o:e.o((e=>u.value.lincensePlateType=e)),p:e.p({fontSize:"28rpx",color:"#999",placeholder:"请选择号牌种类",suffixIcon:i.value,suffixIconStyle:"font-size: 28rpx",border:"none",inputAlign:"right",modelValue:u.value.lincensePlateType}),q:e.p({label:"号牌种类",prop:"lincensePlateType"}),r:e.o((e=>u.value.frameNumber=e)),s:e.p({fontSize:"28rpx",color:"#999",placeholder:"请输入车架号",border:"none",inputAlign:"right",modelValue:u.value.frameNumber}),t:e.p({label:"车架号",prop:"frameNumber"}),v:e.o((e=>u.value.engineNumber=e)),w:e.p({fontSize:"28rpx",color:"#999",placeholder:"请输入发动机号",border:"none",inputAlign:"right",modelValue:u.value.engineNumber}),x:e.p({label:"发动机号",prop:"engineNumber"}),y:e.o((e=>s(["小轿车","大货车","两厢车"]))),z:e.o((e=>u.value.vehicleType=e)),A:e.p({fontSize:"28rpx",color:"#999",placeholder:"请选择车辆类型",suffixIcon:i.value,suffixIconStyle:"font-size: 28rpx",border:"none",inputAlign:"right",modelValue:u.value.vehicleType}),B:e.p({label:"车辆类型",prop:"vehicleType"}),C:e.o((e=>s(["运营车辆","私家车","公务车"]))),D:e.o((e=>u.value.vehicleNature=e)),E:e.p({fontSize:"28rpx",color:"#999",placeholder:"请选择车辆使用性质",suffixIcon:i.value,suffixIconStyle:"font-size: 28rpx",border:"none",inputAlign:"right",modelValue:u.value.vehicleNature}),F:e.p({label:"车辆使用性质",prop:"vehicleNature"}),G:e.o((e=>u.value.passengersNumber=e)),H:e.p({fontSize:"28rpx",color:"#999",placeholder:"请输入核载人数",border:"none",inputAlign:"right",modelValue:u.value.passengersNumber}),I:e.p({label:"核定客载数(人)",prop:"passengersNumber"}),J:e.o((e=>u.value.passengerCapacity=e)),K:e.p({fontSize:"28rpx",color:"#999",placeholder:"请输入核载重量",border:"none",inputAlign:"right",modelValue:u.value.passengerCapacity}),L:e.p({label:"核定载质量(千克)",prop:"passengerCapacity"}),M:e.o((e=>u.value.emissions=e)),N:e.p({fontSize:"28rpx",color:"#999",placeholder:"请输入排放量",border:"none",inputAlign:"right",modelValue:u.value.emissions}),O:e.p({label:"排量毫升",prop:"emissions"}),P:e.o(t),Q:e.o((e=>u.value.vehicleModel=e)),R:e.p({fontSize:"28rpx",color:"#999",placeholder:"请填写车辆型号",border:"none",inputAlign:"right",modelValue:u.value.vehicleModel}),S:e.p({show:p.value}),T:e.o((e=>s(["宝马","奔驰","劳斯莱斯"]))),U:e.o((e=>u.value.vehicleBrand=e)),V:e.p({fontSize:"28rpx",color:"#999",placeholder:"请选择车辆品牌",suffixIcon:i.value,suffixIconStyle:"font-size: 28rpx",border:"none",inputAlign:"right",modelValue:u.value.vehicleBrand}),W:e.p({label:"中文品牌",prop:"vehicleBrand"}),X:e.o((e=>u.value.tractionMass=e)),Y:e.p({fontSize:"28rpx",color:"#999",placeholder:"请填写准牵引准质量",border:"none",inputAlign:"right",modelValue:u.value.tractionMass}),Z:e.p({label:"准牵引质量",prop:"tractionMass"}),aa:e.o((e=>s(["强险","商险"]))),ab:e.o((e=>u.value.requirements=e)),ac:e.p({fontSize:"28rpx",color:"#999",placeholder:"请选择保险需求",suffixIcon:i.value,suffixIconStyle:"font-size: 28rpx",border:"none",inputAlign:"right",modelValue:u.value.requirements}),ad:e.p({label:"保险需求",prop:"requirements"}),ae:e.o(m),af:e.sr("uFormRef","06942e84-0"),ag:e.p({model:u.value,"label-width":"130",labelStyle:a}),ah:e.o(c),ai:e.o(c),aj:e.o((e=>l.value=!1)),ak:e.p({show:l.value,columns:r.value,closeOnClickOverlay:!0}),al:e.o((e=>n.value=!1)),am:e.o((e=>n.value=!1)),an:e.p({show:n.value,mode:"center",safeAreaInsetBottom:!1,round:"20"}),ao:l.value?"100vh":"",ap:l.value?"hidden":""})}},n=e._export_sfc(l,[["__scopeId","data-v-06942e84"]]);wx.createPage(n); | 1 | +"use strict";const e=require("../../common/vendor.js");require("../../uni_modules/uview-plus/index.js");const a=require("../../api/user.js"),l=require("../../api/car.js"),o=require("../../uni_modules/uview-plus/libs/function/debounce.js");if(!Array){(e.resolveComponent("uni-data-select")+e.resolveComponent("up-form-item")+e.resolveComponent("up-input")+e.resolveComponent("up-transition")+e.resolveComponent("up-form")+e.resolveComponent("up-popup"))()}Math||(r+(()=>"../../uni_modules/uni-data-select/components/uni-data-select/uni-data-select.js")+(()=>"../../uni_modules/uview-plus/components/u-form-item/u-form-item.js")+(()=>"../../uni_modules/uview-plus/components/u-input/u-input.js")+(()=>"../../uni_modules/uview-plus/components/u-transition/u-transition.js")+(()=>"../../uni_modules/uview-plus/components/u-form/u-form.js")+(()=>"../../uni_modules/uview-plus/components/u-popup/u-popup.js"))();const r=()=>"../../components/navTop.js",n={__name:"carDetail",setup(r){const n=e.ref(!0),u=e.ref("请选择中文品牌");e.ref(!1);const t={fontSize:"28rpx",lineHeight:"38rpx",color:"#3D3D3D"},i=e.ref(!1),p=e.ref(!1),d=e.ref([]),s=e.ref(!1),c=e.ref({name:"",identificationNumber:"",sysDeptId:"",customizeVehicleBrand:"",customizeVehicleModel:"",licensePlateNumber:"",lincensePlateTypeId:"",isCustomizeBrandAndModel:"1",frameNumber:"",engineNumber:"",vehicleTypeId:"",vehicleNatureId:"",passengersNumber:"",passengerCapacity:"",emissions:"",vehicleModelId:"",vehicleBrandId:"",tractionMass:"",requirementsId:""}),m=e.reactive({pageSize:100,pageNum:1}),v=e.reactive({pageSize:100,pageNum:1,modelName:void 0});e.onLoad((async e=>{if(void 0!==e.carInfoId){const{data:a}=await l.getCarDetail(e.carInfoId);c.value=a,p.value="0"==a.isCustomizeBrandAndModel,i.value=!0}}));const h=e.ref([]);l.getListDeptApi().then((e=>{const{data:a}=e,l=a.filter((e=>100===e.parentId)).map((e=>({value:e.deptId,text:e.deptName})));h.value=l}));const b=e.ref([]);l.getCarNumApi(m).then((e=>{const{data:a}=e,l=a.records.map((e=>({value:e.id,text:e.name})));b.value=l}));const f=e.ref([]);l.getCarTypeApi(m).then((e=>{const{data:a}=e,l=a.records.map((e=>({value:e.id,text:e.name})));f.value=l}));const g=e.ref([]);l.getCarNatureApi(m).then((e=>{const{data:a}=e,l=a.records.map((e=>({value:e.id,text:e.name})));g.value=l}));const N=e.ref([]);l.getCarBrandApi(m).then((e=>{const{data:a}=e,l=a.records.map((e=>({value:e.id,text:e.name})));N.value=l}));const I=e.ref([]);l.getNeedApi(m).then((e=>{const{data:a}=e,l=a.records.map((e=>({value:e.id,text:e.name})));I.value=l}));const z=a=>{e.index.$u.trim(a)?(v.modelName=a,o.debounce(V,500)):s.value=!1},V=async()=>{const e=await l.getCarModelApi(v),{data:a}=e,o=a.records;d.value=o,s.value=!0},x=async()=>{await a.carInfoAdd(c.value),e.index.$u.toast("添加成功")};return(a,l)=>e.e({a:e.p({carNum:c.value.licensePlateNumber}),b:e.t(c.value.customizeVehicleBrand||c.value.vehicleBran),c:e.t(c.value.customizeVehicleModel||c.value.vehicleModel),d:i.value,e:e.o((e=>c.value.sysDeptId=e)),f:e.p({localdata:h.value,placeholder:"请选择上年承保公司",modelValue:c.value.sysDeptId}),g:e.p({label:"上年承保公司",prop:"sysDeptId"}),h:e.o((e=>c.value.name=e)),i:e.p({fontSize:"28rpx",color:"#999",placeholder:"请输入真实姓名",border:"none",inputAlign:"right",modelValue:c.value.name}),j:e.p({label:"车主姓名",prop:"name"}),k:e.o((e=>c.value.identificationNumber=e)),l:e.p({fontSize:"28rpx",color:"#999",placeholder:"请输入身份证号",border:"none",inputAlign:"right",modelValue:c.value.identificationNumber}),m:e.p({label:"身份证号",prop:"identificationNumber"}),n:e.o((e=>c.value.licensePlateNumber=e)),o:e.p({fontSize:"28rpx",color:"#999",placeholder:"请输入车牌号码",border:"none",inputAlign:"right",modelValue:c.value.licensePlateNumber}),p:e.p({label:"车牌号码",prop:"licensePlateNumber"}),q:e.o((e=>c.value.lincensePlateTypeId=e)),r:e.p({localdata:b.value,placeholder:"请选择号牌种类",modelValue:c.value.lincensePlateTypeId}),s:e.p({label:"号牌种类",prop:"lincensePlateType"}),t:e.o((e=>c.value.frameNumber=e)),v:e.p({fontSize:"28rpx",color:"#999",placeholder:"请输入车架号",border:"none",inputAlign:"right",modelValue:c.value.frameNumber}),w:e.p({label:"车架号",prop:"frameNumber"}),x:e.o((e=>c.value.engineNumber=e)),y:e.p({fontSize:"28rpx",color:"#999",placeholder:"请输入发动机号",border:"none",inputAlign:"right",modelValue:c.value.engineNumber}),z:e.p({label:"发动机号",prop:"engineNumber"}),A:e.o((e=>c.value.vehicleTypeId=e)),B:e.p({localdata:f.value,placeholder:"请选择车辆类型",modelValue:c.value.vehicleTypeId}),C:e.p({label:"车辆类型",prop:"vehicleType"}),D:e.o((e=>c.value.vehicleNatureId=e)),E:e.p({localdata:g.value,placeholder:"请选择车辆使用性质",modelValue:c.value.vehicleNatureId}),F:e.p({label:"车辆使用性质",prop:"vehicleNature"}),G:e.o((e=>c.value.passengersNumber=e)),H:e.p({fontSize:"28rpx",color:"#999",placeholder:"请输入核载人数",border:"none",inputAlign:"right",modelValue:c.value.passengersNumber}),I:e.p({label:"核定客载数(人)",prop:"passengersNumber"}),J:e.o((e=>c.value.passengerCapacity=e)),K:e.p({fontSize:"28rpx",color:"#999",placeholder:"请输入核载重量",border:"none",inputAlign:"right",modelValue:c.value.passengerCapacity}),L:e.p({label:"核定载质量(千克)",prop:"passengerCapacity"}),M:e.o((e=>c.value.emissions=e)),N:e.p({fontSize:"28rpx",color:"#999",placeholder:"请输入排放量",border:"none",inputAlign:"right",modelValue:c.value.emissions}),O:e.p({label:"排量毫升",prop:"emissions"}),P:e.o(z),Q:e.o((e=>s.value=!1)),R:e.o((e=>c.value.customizeVehicleModel=e)),S:e.p({fontSize:"28rpx",color:"#999",placeholder:"请填写车辆型号",border:"none",inputAlign:"right",modelValue:c.value.customizeVehicleModel}),T:e.f(d.value,((a,l,o)=>({a:e.t(a.name),b:a,c:e.o((e=>(e=>{c.value.vehicleModelId=e.id,c.value.customizeVehicleModel=e.name,u.value=e.brandName,c.value.vehicleBrandId=e.brandId,s.value=!1,p.value=!0,c.value.isCustomizeBrandAndModel="0"})(a)),a)}))),U:0==d.value.length},(d.value.length,{}),{V:e.p({show:s.value}),W:p.value},p.value?{X:e.o((e=>c.value.vehicleBrandId=e)),Y:e.p({localdata:N.value,placeholder:u.value,modelValue:c.value.vehicleBrandId}),Z:e.p({label:"中文品牌",prop:"vehicleBrand"})}:{aa:e.o((e=>c.value.customizeVehicleBrand=e)),ab:e.p({fontSize:"28rpx",color:"#999",placeholder:"请填写中文品牌",border:"none",inputAlign:"right",modelValue:c.value.customizeVehicleBrand}),ac:e.p({label:"中文品牌",prop:"vehicleBrand"})},{ad:e.o((e=>c.value.tractionMass=e)),ae:e.p({fontSize:"28rpx",color:"#999",placeholder:"请填写准牵引准质量",border:"none",inputAlign:"right",modelValue:c.value.tractionMass}),af:e.p({label:"准牵引质量",prop:"tractionMass"}),ag:e.o((e=>c.value.requirementsId=e)),ah:e.p({localdata:I.value,placeholder:"请选择保险需求",modelValue:c.value.requirementsId}),ai:e.p({label:"保险需求",prop:"requirements"}),aj:e.o(x),ak:e.sr("uFormRef","df665d9b-0"),al:e.p({model:c.value,"label-width":"130",labelStyle:t}),am:e.o((e=>n.value=!1)),an:e.o((e=>n.value=!1)),ao:e.p({show:n.value,mode:"center",safeAreaInsetBottom:!1,round:"20"})})}},u=e._export_sfc(n,[["__scopeId","data-v-df665d9b"]]);wx.createPage(u); |
| @@ -2,11 +2,11 @@ | @@ -2,11 +2,11 @@ | ||
| 2 | "navigationBarTitleText": "车辆信息", | 2 | "navigationBarTitleText": "车辆信息", |
| 3 | "navigationBarBackgroundColor": "#FFFFFF", | 3 | "navigationBarBackgroundColor": "#FFFFFF", |
| 4 | "usingComponents": { | 4 | "usingComponents": { |
| 5 | - "up-input": "../../uni_modules/uview-plus/components/u-input/u-input", | 5 | + "uni-data-select": "../../uni_modules/uni-data-select/components/uni-data-select/uni-data-select", |
| 6 | "up-form-item": "../../uni_modules/uview-plus/components/u-form-item/u-form-item", | 6 | "up-form-item": "../../uni_modules/uview-plus/components/u-form-item/u-form-item", |
| 7 | + "up-input": "../../uni_modules/uview-plus/components/u-input/u-input", | ||
| 7 | "up-transition": "../../uni_modules/uview-plus/components/u-transition/u-transition", | 8 | "up-transition": "../../uni_modules/uview-plus/components/u-transition/u-transition", |
| 8 | "up-form": "../../uni_modules/uview-plus/components/u-form/u-form", | 9 | "up-form": "../../uni_modules/uview-plus/components/u-form/u-form", |
| 9 | - "up-picker": "../../uni_modules/uview-plus/components/u-picker/u-picker", | ||
| 10 | "up-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup", | 10 | "up-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup", |
| 11 | "nav-top": "../../components/navTop" | 11 | "nav-top": "../../components/navTop" |
| 12 | } | 12 | } |
| 1 | -<view class="carDetail data-v-06942e84" style="{{'height:' + ao + ';' + ('overflow:' + ap)}}"><up-form wx:if="{{ag}}" class="r data-v-06942e84" u-s="{{['d']}}" u-r="uFormRef" u-i="06942e84-0" bind:__l="__l" u-p="{{ag}}"><view class="carInfo data-v-06942e84"><nav-top wx:if="{{a}}" class="data-v-06942e84" u-i="06942e84-1,06942e84-0" bind:__l="__l" u-p="{{a}}"/><view class="centerContent data-v-06942e84"><view class="carBand data-v-06942e84">梅赛德斯奔驰</view><view class="carModel data-v-06942e84">2024 1.6L双离合变速器 两厢 双离合 舒适型 国IV 5座</view></view><view class="rowLine data-v-06942e84"></view><up-form-item wx:if="{{d}}" class="data-v-06942e84" u-s="{{['d']}}" u-i="06942e84-2,06942e84-0" bind:__l="__l" u-p="{{d}}"><up-input wx:if="{{c}}" class="data-v-06942e84" u-i="06942e84-3,06942e84-2" bind:__l="__l" bindupdateModelValue="{{b}}" u-p="{{c}}"/></up-form-item></view><view class="carInfo data-v-06942e84"><view class="card_title data-v-06942e84">车主信息</view><up-form-item wx:if="{{g}}" class="data-v-06942e84" u-s="{{['d']}}" u-i="06942e84-4,06942e84-0" bind:__l="__l" u-p="{{g}}"><up-input wx:if="{{f}}" class="data-v-06942e84" u-i="06942e84-5,06942e84-4" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"/></up-form-item><up-form-item wx:if="{{j}}" class="data-v-06942e84" u-s="{{['d']}}" u-i="06942e84-6,06942e84-0" bind:__l="__l" u-p="{{j}}"><up-input wx:if="{{i}}" class="data-v-06942e84" u-i="06942e84-7,06942e84-6" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"/></up-form-item></view><view class="carInfo data-v-06942e84"><view class="card_title data-v-06942e84">行驶证信息</view><up-form-item wx:if="{{m}}" class="data-v-06942e84" u-s="{{['d']}}" u-i="06942e84-8,06942e84-0" bind:__l="__l" u-p="{{m}}"><up-input wx:if="{{l}}" class="data-v-06942e84" u-i="06942e84-9,06942e84-8" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"/></up-form-item><up-form-item wx:if="{{q}}" class="data-v-06942e84" u-s="{{['d']}}" u-i="06942e84-10,06942e84-0" bind:__l="__l" u-p="{{q}}"><up-input wx:if="{{p}}" class="data-v-06942e84" bindfocus="{{n}}" u-i="06942e84-11,06942e84-10" bind:__l="__l" bindupdateModelValue="{{o}}" u-p="{{p}}"/></up-form-item><up-form-item wx:if="{{t}}" class="data-v-06942e84" u-s="{{['d']}}" u-i="06942e84-12,06942e84-0" bind:__l="__l" u-p="{{t}}"><up-input wx:if="{{s}}" class="data-v-06942e84" u-i="06942e84-13,06942e84-12" bind:__l="__l" bindupdateModelValue="{{r}}" u-p="{{s}}"/></up-form-item><up-form-item wx:if="{{x}}" class="data-v-06942e84" u-s="{{['d']}}" u-i="06942e84-14,06942e84-0" bind:__l="__l" u-p="{{x}}"><up-input wx:if="{{w}}" class="data-v-06942e84" u-i="06942e84-15,06942e84-14" bind:__l="__l" bindupdateModelValue="{{v}}" u-p="{{w}}"/></up-form-item><up-form-item wx:if="{{B}}" class="data-v-06942e84" u-s="{{['d']}}" u-i="06942e84-16,06942e84-0" bind:__l="__l" u-p="{{B}}"><up-input wx:if="{{A}}" class="data-v-06942e84" bindfocus="{{y}}" u-i="06942e84-17,06942e84-16" bind:__l="__l" bindupdateModelValue="{{z}}" u-p="{{A}}"/></up-form-item><up-form-item wx:if="{{F}}" class="data-v-06942e84" u-s="{{['d']}}" u-i="06942e84-18,06942e84-0" bind:__l="__l" u-p="{{F}}"><up-input wx:if="{{E}}" class="data-v-06942e84" bindfocus="{{C}}" u-i="06942e84-19,06942e84-18" bind:__l="__l" bindupdateModelValue="{{D}}" u-p="{{E}}"/></up-form-item><up-form-item wx:if="{{I}}" class="data-v-06942e84" u-s="{{['d']}}" u-i="06942e84-20,06942e84-0" bind:__l="__l" u-p="{{I}}"><up-input wx:if="{{H}}" class="data-v-06942e84" u-i="06942e84-21,06942e84-20" bind:__l="__l" bindupdateModelValue="{{G}}" u-p="{{H}}"/></up-form-item><up-form-item wx:if="{{L}}" class="data-v-06942e84" u-s="{{['d']}}" u-i="06942e84-22,06942e84-0" bind:__l="__l" u-p="{{L}}"><up-input wx:if="{{K}}" class="data-v-06942e84" u-i="06942e84-23,06942e84-22" bind:__l="__l" bindupdateModelValue="{{J}}" u-p="{{K}}"/></up-form-item><up-form-item wx:if="{{O}}" class="data-v-06942e84" u-s="{{['d']}}" u-i="06942e84-24,06942e84-0" bind:__l="__l" u-p="{{O}}"><up-input wx:if="{{N}}" class="data-v-06942e84" u-i="06942e84-25,06942e84-24" bind:__l="__l" bindupdateModelValue="{{M}}" u-p="{{N}}"/></up-form-item><view class="carModelBox data-v-06942e84"><view class="model_line data-v-06942e84"><text class="leftContent data-v-06942e84">车辆型号</text><up-input wx:if="{{R}}" class="data-v-06942e84" bindchange="{{P}}" u-i="06942e84-26,06942e84-0" bind:__l="__l" bindupdateModelValue="{{Q}}" u-p="{{R}}"/></view><up-transition wx:if="{{S}}" class="data-v-06942e84" u-s="{{['d']}}" u-i="06942e84-27,06942e84-0" bind:__l="__l" u-p="{{S}}"><view class="searchList data-v-06942e84"><view class="searchItem data-v-06942e84">123</view><view class="searchItem data-v-06942e84">123</view><view class="searchItem data-v-06942e84">123</view><view class="searchItem data-v-06942e84">123</view></view></up-transition></view><up-form-item wx:if="{{W}}" class="data-v-06942e84" u-s="{{['d']}}" u-i="06942e84-28,06942e84-0" bind:__l="__l" u-p="{{W}}"><up-input wx:if="{{V}}" class="data-v-06942e84" bindfocus="{{T}}" u-i="06942e84-29,06942e84-28" bind:__l="__l" bindupdateModelValue="{{U}}" u-p="{{V}}"/></up-form-item><up-form-item wx:if="{{Z}}" class="data-v-06942e84" u-s="{{['d']}}" u-i="06942e84-30,06942e84-0" bind:__l="__l" u-p="{{Z}}"><up-input wx:if="{{Y}}" class="data-v-06942e84" u-i="06942e84-31,06942e84-30" bind:__l="__l" bindupdateModelValue="{{X}}" u-p="{{Y}}"/></up-form-item><up-form-item wx:if="{{ad}}" class="data-v-06942e84" u-s="{{['d']}}" u-i="06942e84-32,06942e84-0" bind:__l="__l" u-p="{{ad}}"><up-input wx:if="{{ac}}" class="data-v-06942e84" bindfocus="{{aa}}" u-i="06942e84-33,06942e84-32" bind:__l="__l" bindupdateModelValue="{{ab}}" u-p="{{ac}}"/></up-form-item></view><view class="tip data-v-06942e84">请认真核实车辆信息,实际投保车辆信息以保险公司确认为准</view><view class="btn delBtn data-v-06942e84" bindtap="{{ae}}">删除车辆</view><view class="btn confirmBtn data-v-06942e84">确认</view></up-form><up-picker wx:if="{{ak}}" class="data-v-06942e84" bindclose="{{ah}}" bindcancel="{{ai}}" bindconfirm="{{aj}}" u-i="06942e84-34" bind:__l="__l" u-p="{{ak}}"></up-picker><up-popup wx:if="{{an}}" class="data-v-06942e84" u-s="{{['d']}}" bindclose="{{am}}" u-i="06942e84-35" bind:__l="__l" u-p="{{an}}"><view class="notice data-v-06942e84"><view class="notice_title data-v-06942e84">温馨提示</view><view class="notice_content data-v-06942e84"> 本平台仅供出租租赁车辆提供登记服务 </view><view class="btn data-v-06942e84" bindtap="{{al}}">我已认真阅读并同意以上内容</view></view></up-popup></view> | ||
| 1 | +<view class="carDetail data-v-df665d9b"><up-form wx:if="{{al}}" class="r data-v-df665d9b" u-s="{{['d']}}" u-r="uFormRef" u-i="df665d9b-0" bind:__l="__l" u-p="{{al}}"><view class="carInfo data-v-df665d9b"><view class="data-v-df665d9b" hidden="{{!d}}"><nav-top wx:if="{{a}}" class="data-v-df665d9b" u-i="df665d9b-1,df665d9b-0" bind:__l="__l" u-p="{{a}}"/><view class="centerContent data-v-df665d9b"><view class="carBand data-v-df665d9b">{{b}}</view><view class="carModel data-v-df665d9b">{{c}}</view></view><view class="rowLine data-v-df665d9b"></view></view><up-form-item wx:if="{{g}}" class="data-v-df665d9b" u-s="{{['d']}}" u-i="df665d9b-2,df665d9b-0" bind:__l="__l" u-p="{{g}}"><uni-data-select wx:if="{{f}}" class="data-v-df665d9b" u-i="df665d9b-3,df665d9b-2" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"/></up-form-item></view><view class="carInfo data-v-df665d9b"><view class="card_title data-v-df665d9b">车主信息</view><up-form-item wx:if="{{j}}" class="data-v-df665d9b" u-s="{{['d']}}" u-i="df665d9b-4,df665d9b-0" bind:__l="__l" u-p="{{j}}"><up-input wx:if="{{i}}" class="data-v-df665d9b" u-i="df665d9b-5,df665d9b-4" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"/></up-form-item><up-form-item wx:if="{{m}}" class="data-v-df665d9b" u-s="{{['d']}}" u-i="df665d9b-6,df665d9b-0" bind:__l="__l" u-p="{{m}}"><up-input wx:if="{{l}}" class="data-v-df665d9b" u-i="df665d9b-7,df665d9b-6" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"/></up-form-item></view><view class="carInfo data-v-df665d9b"><view class="card_title data-v-df665d9b">行驶证信息</view><up-form-item wx:if="{{p}}" class="data-v-df665d9b" u-s="{{['d']}}" u-i="df665d9b-8,df665d9b-0" bind:__l="__l" u-p="{{p}}"><up-input wx:if="{{o}}" class="data-v-df665d9b" u-i="df665d9b-9,df665d9b-8" bind:__l="__l" bindupdateModelValue="{{n}}" u-p="{{o}}"/></up-form-item><up-form-item wx:if="{{s}}" class="data-v-df665d9b" u-s="{{['d']}}" u-i="df665d9b-10,df665d9b-0" bind:__l="__l" u-p="{{s}}"><uni-data-select wx:if="{{r}}" class="data-v-df665d9b" u-i="df665d9b-11,df665d9b-10" bind:__l="__l" bindupdateModelValue="{{q}}" u-p="{{r}}"/></up-form-item><up-form-item wx:if="{{w}}" class="data-v-df665d9b" u-s="{{['d']}}" u-i="df665d9b-12,df665d9b-0" bind:__l="__l" u-p="{{w}}"><up-input wx:if="{{v}}" class="data-v-df665d9b" u-i="df665d9b-13,df665d9b-12" bind:__l="__l" bindupdateModelValue="{{t}}" u-p="{{v}}"/></up-form-item><up-form-item wx:if="{{z}}" class="data-v-df665d9b" u-s="{{['d']}}" u-i="df665d9b-14,df665d9b-0" bind:__l="__l" u-p="{{z}}"><up-input wx:if="{{y}}" class="data-v-df665d9b" u-i="df665d9b-15,df665d9b-14" bind:__l="__l" bindupdateModelValue="{{x}}" u-p="{{y}}"/></up-form-item><up-form-item wx:if="{{C}}" class="data-v-df665d9b" u-s="{{['d']}}" u-i="df665d9b-16,df665d9b-0" bind:__l="__l" u-p="{{C}}"><uni-data-select wx:if="{{B}}" class="data-v-df665d9b" u-i="df665d9b-17,df665d9b-16" bind:__l="__l" bindupdateModelValue="{{A}}" u-p="{{B}}"/></up-form-item><up-form-item wx:if="{{F}}" class="data-v-df665d9b" u-s="{{['d']}}" u-i="df665d9b-18,df665d9b-0" bind:__l="__l" u-p="{{F}}"><uni-data-select wx:if="{{E}}" class="data-v-df665d9b" u-i="df665d9b-19,df665d9b-18" bind:__l="__l" bindupdateModelValue="{{D}}" u-p="{{E}}"/></up-form-item><up-form-item wx:if="{{I}}" class="data-v-df665d9b" u-s="{{['d']}}" u-i="df665d9b-20,df665d9b-0" bind:__l="__l" u-p="{{I}}"><up-input wx:if="{{H}}" class="data-v-df665d9b" u-i="df665d9b-21,df665d9b-20" bind:__l="__l" bindupdateModelValue="{{G}}" u-p="{{H}}"/></up-form-item><up-form-item wx:if="{{L}}" class="data-v-df665d9b" u-s="{{['d']}}" u-i="df665d9b-22,df665d9b-0" bind:__l="__l" u-p="{{L}}"><up-input wx:if="{{K}}" class="data-v-df665d9b" u-i="df665d9b-23,df665d9b-22" bind:__l="__l" bindupdateModelValue="{{J}}" u-p="{{K}}"/></up-form-item><up-form-item wx:if="{{O}}" class="data-v-df665d9b" u-s="{{['d']}}" u-i="df665d9b-24,df665d9b-0" bind:__l="__l" u-p="{{O}}"><up-input wx:if="{{N}}" class="data-v-df665d9b" u-i="df665d9b-25,df665d9b-24" bind:__l="__l" bindupdateModelValue="{{M}}" u-p="{{N}}"/></up-form-item><view class="carModelBox data-v-df665d9b"><view class="model_line data-v-df665d9b"><text class="leftContent data-v-df665d9b">车辆型号</text><up-input wx:if="{{S}}" class="data-v-df665d9b" bindchange="{{P}}" bindblur="{{Q}}" u-i="df665d9b-26,df665d9b-0" bind:__l="__l" bindupdateModelValue="{{R}}" u-p="{{S}}"/></view><up-transition wx:if="{{V}}" class="data-v-df665d9b" u-s="{{['d']}}" u-i="df665d9b-27,df665d9b-0" bind:__l="__l" u-p="{{V}}"><view class="searchList data-v-df665d9b"><view wx:for="{{T}}" wx:for-item="item" wx:key="b" class="searchItem data-v-df665d9b" bindtap="{{item.c}}">{{item.a}}</view><view wx:if="{{U}}" class="data-v-df665d9b">无数据</view></view></up-transition></view><up-form-item wx:if="{{W}}" class="data-v-df665d9b" u-s="{{['d']}}" u-i="df665d9b-28,df665d9b-0" bind:__l="__l" u-p="{{Z}}"><uni-data-select wx:if="{{Y}}" class="data-v-df665d9b" u-i="df665d9b-29,df665d9b-28" bind:__l="__l" bindupdateModelValue="{{X}}" u-p="{{Y}}"/></up-form-item><up-form-item wx:else class="data-v-df665d9b" u-s="{{['d']}}" u-i="df665d9b-30,df665d9b-0" bind:__l="__l" u-p="{{ac||''}}"><up-input wx:if="{{ab}}" class="data-v-df665d9b" u-i="df665d9b-31,df665d9b-30" bind:__l="__l" bindupdateModelValue="{{aa}}" u-p="{{ab}}"/></up-form-item><up-form-item wx:if="{{af}}" class="data-v-df665d9b" u-s="{{['d']}}" u-i="df665d9b-32,df665d9b-0" bind:__l="__l" u-p="{{af}}"><up-input wx:if="{{ae}}" class="data-v-df665d9b" u-i="df665d9b-33,df665d9b-32" bind:__l="__l" bindupdateModelValue="{{ad}}" u-p="{{ae}}"/></up-form-item><up-form-item wx:if="{{ai}}" class="data-v-df665d9b" u-s="{{['d']}}" u-i="df665d9b-34,df665d9b-0" bind:__l="__l" u-p="{{ai}}"><uni-data-select wx:if="{{ah}}" class="data-v-df665d9b" u-i="df665d9b-35,df665d9b-34" bind:__l="__l" bindupdateModelValue="{{ag}}" u-p="{{ah}}"/></up-form-item></view><view class="tip data-v-df665d9b">请认真核实车辆信息,实际投保车辆信息以保险公司确认为准</view><view class="btn confirmBtn data-v-df665d9b" bindtap="{{aj}}">确认</view></up-form><up-popup wx:if="{{ao}}" class="data-v-df665d9b" u-s="{{['d']}}" bindclose="{{an}}" u-i="df665d9b-36" bind:__l="__l" u-p="{{ao}}"><view class="notice data-v-df665d9b"><view class="notice_title data-v-df665d9b">温馨提示</view><view class="notice_content data-v-df665d9b"> 本平台仅供出租租赁车辆提供登记服务 </view><view class="btn data-v-df665d9b" bindtap="{{am}}">我已认真阅读并同意以上内容</view></view></up-popup></view> |
| 1 | -.carDetail.data-v-06942e84{padding:20rpx 30rpx 40rpx;background:#f8f9ff}.carDetail .carInfo.data-v-06942e84{padding:22rpx 30rpx;background:#fff;border-radius:20rpx;margin-bottom:20rpx}.carDetail .carInfo .card_title.data-v-06942e84{color:#3d3d3d;font-size:28rpx;line-height:38rpx;font-weight:500}.carDetail .carInfo .carBand.data-v-06942e84{font-size:24rpx;color:#333;margin-bottom:10rpx}.carDetail .carInfo .carModel.data-v-06942e84{font-size:20rpx;color:#999}.carDetail .carInfo .rowLine.data-v-06942e84{width:100%;height:2rpx;background-color:#eee;margin:16rpx 0 20rpx}.carDetail .tip.data-v-06942e84{color:#999;font-size:20rpx;line-height:26rpx;margin:20px 0}.carDetail .btn.data-v-06942e84{height:80rpx;line-height:80rpx;text-align:center;font-size:28rpx;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:20rpx}.carDetail .delBtn.data-v-06942e84{color:#999;background:#fff;margin-bottom:20rpx}.carDetail .confirmBtn.data-v-06942e84{color:#fff;background:#3680fe}.notice.data-v-06942e84{position:relative;width:690rpx;height:360rpx;background:#fff;padding:40rpx 30rpx 0;border-radius:20rpx;overflow:hidden}.notice .notice_title.data-v-06942e84{text-align:center;font-size:36rpx;line-height:48rpx;color:#3d3d3d;margin-bottom:40rpx}.notice .notice_content.data-v-06942e84{text-align:center;font-size:28rpx;line-height:38rpx;color:#999}.notice .btn.data-v-06942e84{position:absolute;bottom:0;left:0;width:100%;line-height:100rpx;text-align:center;height:100rpx;color:#3680fe;font-size:28rpx;border-top:2rpx solid #eee}.carModelBox.data-v-06942e84{position:relative;padding:20rpx 0}.carModelBox .model_line.data-v-06942e84{display:flex;align-items:center}.carModelBox .model_line .leftContent.data-v-06942e84{width:130px;font-size:28rpx;line-height:38rpx;color:#3d3d3d}.carModelBox .searchList.data-v-06942e84{position:absolute;bottom:200%;left:0;width:100%;background-color:#fff;box-shadow:rgba(100,100,111,.2) 0 7px 29px;z-index:9;border-radius:20rpx;padding:20rpx 30rpx;transition:all .5s}.carModelBox .searchList.data-v-06942e84:after{position:absolute;bottom:-50rpx;left:20rpx;content:"";width:0px;height:0px;border:30rpx solid transparent;border-top-color:#fff} | 1 | +.carDetail.data-v-df665d9b{padding:20rpx 30rpx 40rpx;background:#f8f9ff}.carDetail .carInfo.data-v-df665d9b{padding:22rpx 30rpx;background:#fff;border-radius:20rpx;margin-bottom:20rpx}.carDetail .carInfo .card_title.data-v-df665d9b{color:#3d3d3d;font-size:28rpx;line-height:38rpx;font-weight:500}.carDetail .carInfo .carBand.data-v-df665d9b{font-size:24rpx;color:#333;margin-bottom:10rpx}.carDetail .carInfo .carModel.data-v-df665d9b{font-size:20rpx;color:#999}.carDetail .carInfo .rowLine.data-v-df665d9b{width:100%;height:2rpx;background-color:#eee;margin:16rpx 0 20rpx}.carDetail .tip.data-v-df665d9b{color:#999;font-size:20rpx;line-height:26rpx;margin:20px 0}.carDetail .btn.data-v-df665d9b{height:80rpx;line-height:80rpx;text-align:center;font-size:28rpx;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:20rpx}.carDetail .delBtn.data-v-df665d9b{color:#999;background:#fff;margin-bottom:20rpx}.carDetail .confirmBtn.data-v-df665d9b{color:#fff;background:#3680fe}.notice.data-v-df665d9b{position:relative;width:690rpx;height:360rpx;background:#fff;padding:40rpx 30rpx 0;border-radius:20rpx;overflow:hidden}.notice .notice_title.data-v-df665d9b{text-align:center;font-size:36rpx;line-height:48rpx;color:#3d3d3d;margin-bottom:40rpx}.notice .notice_content.data-v-df665d9b{text-align:center;font-size:28rpx;line-height:38rpx;color:#999}.notice .btn.data-v-df665d9b{position:absolute;bottom:0;left:0;width:100%;line-height:100rpx;text-align:center;height:100rpx;color:#3680fe;font-size:28rpx;border-top:2rpx solid #eee}.carModelBox.data-v-df665d9b{position:relative;padding:20rpx 0}.carModelBox .model_line.data-v-df665d9b{display:flex;align-items:center}.carModelBox .model_line .leftContent.data-v-df665d9b{width:130px;font-size:28rpx;line-height:38rpx;color:#3d3d3d}.carModelBox .searchList.data-v-df665d9b{position:absolute;bottom:120%;left:0;width:100%;background-color:#fff;box-shadow:rgba(100,100,111,.2) 0 7px 29px;z-index:9;border-radius:20rpx;padding:20rpx 30rpx;transition:all .5s}.carModelBox .searchList.data-v-df665d9b:after{position:absolute;bottom:-50rpx;left:20rpx;content:"";width:0px;height:0px;border:30rpx solid transparent;border-top-color:#fff} |
| 1 | -"use strict";const e=require("../../common/vendor.js"),a=require("../../common/assets.js"),r=require("../../store/modules/tabbar.js");if(!Array){(e.resolveComponent("up-navbar")+e.resolveComponent("up-tabbar-item")+e.resolveComponent("up-tabbar"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js")+t+n+o+c+m+(()=>"../../uni_modules/uview-plus/components/u-tabbar-item/u-tabbar-item.js")+(()=>"../../uni_modules/uview-plus/components/u-tabbar/u-tabbar.js"))();const c=()=>"../../components/carCard.js",o=()=>"../../components/centerLine.js",n=()=>"../../components/wordInfo.js",t=()=>"../../components/navTop.js",m=()=>"../../components/ownerInfo.js",u={__name:"companyHome",setup(c){const o=r.useTabbarStore(),n=e.ref([{carId:1,carNum:"桂A·66666",carType:"奔驰C级",name:"张三",createTime:"2024-09-08 10:12"},{carId:2,carNum:"桂A·77777",carType:"奔驰C级",name:"李四",createTime:"2024-09-08 10:12"},{carId:3,carNum:"桂A·77777",carType:"梅赛德斯奔驰",name:"王五",createTime:"2024-09-08 10:12"},{carId:4,carNum:"桂A·77777",carType:"梅赛德斯奔驰",name:"王五",createTime:"2024-09-08 10:12"},{carId:5,carNum:"桂A·77777",carType:"梅赛德斯奔驰",name:"王五",createTime:"2024-09-08 10:12"},{carId:6,carNum:"桂A·77777",carType:"梅赛德斯奔驰",name:"王五",createTime:"2024-09-08 10:12"},{carId:7,carNum:"桂A·77777",carType:"梅赛德斯奔驰",name:"王五",createTime:"2024-09-08 10:12"},{carId:8,carNum:"桂A·77777",carType:"梅赛德斯奔驰",name:"王五",createTime:"2024-09-08 10:12"},{carId:9,carNum:"桂A·77777",carType:"梅赛德斯奔驰",name:"王五",createTime:"2024-09-08 10:12"},{carId:10,carNum:"桂A·77777",carType:"梅赛德斯奔驰",name:"王五",createTime:"2024-09-08 10:12"},{carId:11,carNum:"桂A·77777",carType:"梅赛德斯奔驰",name:"王五",createTime:"2024-09-08 10:12"}]),t=e.ref(0),m=e=>{var a;t.value=null==(a=e.detail)?void 0:a.current},u=a=>{o.employeeCurrent=a,e.index.redirectTo({url:"/pages/companyMy/companyMy"})},p=()=>{e.index.navigateTo({url:"/pages/ownerDetail/ownerDetail"})};return(r,c)=>({a:e.p({placeholder:!0,leftIconSize:0,bgColor:"transparent"}),b:0===t.value?1:"",c:e.o((e=>t.value=0)),d:1===t.value?1:"",e:e.o((e=>t.value=1)),f:e.f(n.value,((a,r,c)=>({a:"6c80a5ea-2-"+c+",6c80a5ea-1-"+c,b:e.p({carNum:a.carNum}),c:"6c80a5ea-3-"+c+",6c80a5ea-1-"+c,d:e.p({carType:a.carType,userName:a.name,applyTime:a.createTime}),e:"6c80a5ea-4-"+c+",6c80a5ea-1-"+c,f:a.carId,g:"6c80a5ea-1-"+c,h:e.p({tipContent:"待办",carInfo:a})}))),g:e.f(n.value,((a,r,c)=>({a:"6c80a5ea-6-"+c+",6c80a5ea-5-"+c,b:e.p({carNum:a.carNum}),c:"6c80a5ea-7-"+c+",6c80a5ea-5-"+c,d:e.o((r=>(a.carId,void e.index.showModal({title:"删除车主信息",content:"是否删除车主信息,该操作不可逆?",success:function(a){a.confirm?e.index.$u.toast("删除成功"):a.cancel&&console.log("用户点击取消")}}))),a.carId),e:a.carId,f:e.o(p,a.carId),g:"6c80a5ea-5-"+c,h:e.p({tipContent:"查看详情",carInfo:a})}))),h:t.value,i:e.o(m),j:e.p({text:"主页",icon:"home",badge:"11"}),k:a._imports_0$1,l:a._imports_1$1,m:e.o(u),n:e.p({text:"我的",icon:"account"}),o:e.p({value:e.unref(o).employeeCurrent,activeColor:"#3680FE",inactiveColor:"#707070"})})}},p=e._export_sfc(u,[["__scopeId","data-v-6c80a5ea"]]);wx.createPage(p); | 1 | +"use strict";const e=require("../../common/vendor.js"),o=require("../../common/assets.js"),a=require("../../api/work.js"),t=require("../../store/modules/tabbar.js");if(!Array){(e.resolveComponent("up-navbar")+e.resolveComponent("up-empty")+e.resolveComponent("up-input")+e.resolveComponent("up-form-item")+e.resolveComponent("up-form")+e.resolveComponent("up-modal")+e.resolveComponent("up-radio")+e.resolveComponent("up-radio-group")+e.resolveComponent("up-tabbar-item")+e.resolveComponent("up-tabbar"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js")+r+u+s+n+(()=>"../../uni_modules/uview-plus/components/u-empty/u-empty.js")+l+(()=>"../../uni_modules/uview-plus/components/u-input/u-input.js")+(()=>"../../uni_modules/uview-plus/components/u-form-item/u-form-item.js")+(()=>"../../uni_modules/uview-plus/components/u-form/u-form.js")+(()=>"../../uni_modules/uview-plus/components/u-modal/u-modal.js")+(()=>"../../uni_modules/uview-plus/components/u-radio/u-radio.js")+(()=>"../../uni_modules/uview-plus/components/u-radio-group/u-radio-group.js")+(()=>"../../uni_modules/uview-plus/components/u-tabbar-item/u-tabbar-item.js")+(()=>"../../uni_modules/uview-plus/components/u-tabbar/u-tabbar.js"))();const n=()=>"../../components/carCard.js",s=()=>"../../components/centerLine.js",u=()=>"../../components/wordInfo.js",r=()=>"../../components/navTop.js",l=()=>"../../components/ownerInfo.js",p={__name:"companyHome",setup(n){const s=t.useTabbarStore(),u=e.ref([]),r=e.ref([]),l=e.ref([]),p=e.ref(0),m=e.ref({username:"",taskId:""}),c=e.reactive([]),i=e.ref(!1),d=e.ref(!1),v=e.ref({policystatus:"2",message:"",policynumber:""}),f=e.reactive({pageNum:1,pageSize:20}),y=e.reactive({pageNum:1,pageSize:20,orderprogress:1,policystatus:0}),b=e=>{var o,a,t;p.value=null==(o=e.detail)?void 0:o.current,0===(null==(a=e.detail)?void 0:a.current)?g():1===(null==(t=e.detail)?void 0:t.current)?w():h()},g=async()=>{const{data:e}=await a.queryMyList(f);u.value=e.rows,s.companyTotal=e.total},w=async()=>{const{rows:e,total:o}=await a.queryContinueList(y);r.value=e,s.companyTotal=o},h=async()=>{const{rows:e,total:o}=await a.queryEndedList(f);l.value=e,s.companyTotal=o},C=()=>{const e={policystatus:"2",message:v.value.message,policynumber:v.value.policynumber};a.disposeUser(e,v.value.taskId).then((e=>{i.value=!1,g(),proxy.$modal.msgSuccess("回馈成功")}))},j=()=>{const e={username:m.value.username},o=m.value.taskId;a.transfer(e,o).then((e=>{d.value=!1,g(),proxy.$modal.msgSuccess("保单已分配成功")}))},I=o=>{s.employeeCurrent=o,e.index.redirectTo({url:"/pages/companyMy/companyMy"})},_=()=>{e.index.navigateTo({url:"/pages/ownerDetail/ownerDetail"})};return g(),(t,n)=>({a:e.p({placeholder:!0,leftIconSize:0,bgColor:"transparent"}),b:0===p.value?1:"",c:e.o((e=>p.value=0)),d:1===p.value?1:"",e:e.o((e=>p.value=1)),f:2===p.value?1:"",g:e.o((e=>p.value=2)),h:e.f(u.value,((o,t,n)=>({a:"f4c28d10-2-"+n+",f4c28d10-1-"+n,b:e.p({carNum:o.licensePlateNumber}),c:"f4c28d10-3-"+n+",f4c28d10-1-"+n,d:e.p({phone:o.phone,userName:o.name,company:o.sysDeptName}),e:e.o((t=>{return n=o.taskId,void e.index.showModal({content:"是否要承接该保单",success:function(o){o.confirm?a.disposeUser({},n).then((o=>{e.index.$u.toast("承接成功"),g()})):o.cancel&&e.index.$u.toast("已取消")}});var n}),o.taskId),f:e.o((e=>(async e=>{const{data:o}=await a.getUserList();m.value.taskId=e,c.value=o,d.value=!0})(o.taskId)),o.taskId),g:"f4c28d10-4-"+n+",f4c28d10-1-"+n,h:o.taskId,i:"f4c28d10-1-"+n,j:e.p({tipContent:o.orderProgress,carInfo:o})}))),i:e.p({leftContent:"承接",rightContent:"转办"}),j:e.p({show:0==u.value.length,mode:"list",text:"暂无待办事项"}),k:e.f(r.value,((o,t,n)=>({a:"f4c28d10-7-"+n+",f4c28d10-6-"+n,b:e.p({carNum:o.licensePlateNumber}),c:"f4c28d10-8-"+n+",f4c28d10-6-"+n,d:e.p({phone:o.phone,userName:o.name,company:o.sysDeptName}),e:e.o((e=>{return a=o.taskId,v.value.taskId=a,void(i.value=!0);var a}),t),f:e.o((e=>(o.taskId,void a.disposeUser({policystatus:"1"},v.value.taskId).then((e=>{i.value=!1,g()})))),t),g:"f4c28d10-9-"+n+",f4c28d10-6-"+n,h:t,i:"f4c28d10-6-"+n,j:e.p({tipContent:"查看详情",carInfo:o})}))),l:e.p({leftContent:"承接回馈",rightContent:"疑难件"}),m:e.p({show:0==r.value.length,mode:"list",text:"暂无数据"}),n:e.f(l.value,((o,a,t)=>({a:"f4c28d10-12-"+t+",f4c28d10-11-"+t,b:e.p({carNum:o.licensePlateNumber}),c:"f4c28d10-13-"+t+",f4c28d10-11-"+t,d:e.p({carInfo:o}),e:e.o(_,a),f:a,g:"f4c28d10-11-"+t,h:e.p({tipContent:o.policyStatus,carInfo:o})}))),o:e.p({show:0==l.value.length,mode:"list",text:"暂无数据"}),p:p.value,q:e.o(b),r:e.o((e=>v.value.policynumber=e)),s:e.p({modelValue:v.value.policynumber}),t:e.p({label:"承保单号",prop:"name"}),v:v.value.message,w:e.p({label:"回馈内容",prop:"name"}),x:e.p({model:v.value}),y:e.o(C),z:e.o((e=>i.value=!1)),A:e.p({show:i.value,title:"填写回馈及单号"}),B:e.f(c,((o,a,t)=>({a:a,b:"f4c28d10-22-"+t+",f4c28d10-21",c:e.p({label:o.userName,name:o.userName})}))),C:e.o((e=>m.value.username=e)),D:e.p({modelValue:m.value.username}),E:e.o(j),F:e.o((e=>d.value=!1)),G:e.p({show:d.value,title:"选择转办人员"}),H:e.p({text:"主页",icon:"home",badge:e.unref(s).companyTotal}),I:o._imports_0$1,J:o._imports_1$1,K:e.o(I),L:e.p({text:"我的",icon:"account"}),M:e.p({value:e.unref(s).employeeCurrent,activeColor:"#3680FE",inactiveColor:"#707070"})})}},m=e._export_sfc(p,[["__scopeId","data-v-f4c28d10"]]);wx.createPage(m); |
| 1 | { | 1 | { |
| 2 | - "navigationBarTitleText": "", | 2 | + "navigationBarTitleText": "公司员工首页", |
| 3 | "navigationStyle": "custom", | 3 | "navigationStyle": "custom", |
| 4 | "usingComponents": { | 4 | "usingComponents": { |
| 5 | "up-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar", | 5 | "up-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar", |
| 6 | + "up-empty": "../../uni_modules/uview-plus/components/u-empty/u-empty", | ||
| 7 | + "up-input": "../../uni_modules/uview-plus/components/u-input/u-input", | ||
| 8 | + "up-form-item": "../../uni_modules/uview-plus/components/u-form-item/u-form-item", | ||
| 9 | + "up-form": "../../uni_modules/uview-plus/components/u-form/u-form", | ||
| 10 | + "up-modal": "../../uni_modules/uview-plus/components/u-modal/u-modal", | ||
| 11 | + "up-radio": "../../uni_modules/uview-plus/components/u-radio/u-radio", | ||
| 12 | + "up-radio-group": "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group", | ||
| 6 | "up-tabbar-item": "../../uni_modules/uview-plus/components/u-tabbar-item/u-tabbar-item", | 13 | "up-tabbar-item": "../../uni_modules/uview-plus/components/u-tabbar-item/u-tabbar-item", |
| 7 | "up-tabbar": "../../uni_modules/uview-plus/components/u-tabbar/u-tabbar", | 14 | "up-tabbar": "../../uni_modules/uview-plus/components/u-tabbar/u-tabbar", |
| 8 | "car-card": "../../components/carCard", | 15 | "car-card": "../../components/carCard", |
| 1 | -<view class="company_container data-v-6c80a5ea"><up-navbar wx:if="{{a}}" class="data-v-6c80a5ea" u-i="6c80a5ea-0" bind:__l="__l" u-p="{{a}}"/><view class="work_box data-v-6c80a5ea"><view class="nav_header data-v-6c80a5ea"><view class="{{['nav_item', 'data-v-6c80a5ea', b && 'active']}}" bindtap="{{c}}">待办事项</view><view class="colLine data-v-6c80a5ea"></view><view class="{{['nav_item', 'data-v-6c80a5ea', d && 'active']}}" bindtap="{{e}}">车主信息</view></view><view class="expert_content data-v-6c80a5ea"><swiper class="swiper data-v-6c80a5ea" circular current="{{h}}" bindanimationfinish="{{i}}"><swiper-item class="data-v-6c80a5ea"><view class="swiper-item data-v-6c80a5ea"><scroll-view scroll-y="true" class="scroll-history data-v-6c80a5ea"><view class="work_list data-v-6c80a5ea"><car-card wx:for="{{f}}" wx:for-item="carItem" wx:key="f" class="data-v-6c80a5ea" u-s="{{['header','center','footer']}}" u-i="{{carItem.g}}" bind:__l="__l" u-p="{{carItem.h}}"><nav-top class="data-v-6c80a5ea" u-i="{{carItem.a}}" bind:__l="__l" u-p="{{carItem.b}}" slot="header"/><word-info class="data-v-6c80a5ea" u-i="{{carItem.c}}" bind:__l="__l" u-p="{{carItem.d}}" slot="center"/><center-line class="data-v-6c80a5ea" u-i="{{carItem.e}}" bind:__l="__l" slot="footer"></center-line></car-card></view></scroll-view></view></swiper-item><swiper-item class="data-v-6c80a5ea"><view class="swiper-item data-v-6c80a5ea"><scroll-view scroll-y="true" class="scroll-history data-v-6c80a5ea"><view class="work_list data-v-6c80a5ea"><car-card wx:for="{{g}}" wx:for-item="carItem" wx:key="e" class="data-v-6c80a5ea" u-s="{{['header','center','footer']}}" bindonSkip="{{carItem.f}}" u-i="{{carItem.g}}" bind:__l="__l" u-p="{{carItem.h}}"><nav-top class="data-v-6c80a5ea" u-i="{{carItem.a}}" bind:__l="__l" u-p="{{carItem.b}}" slot="header"/><owner-info class="data-v-6c80a5ea" u-i="{{carItem.c}}" bind:__l="__l" slot="center"/><view class="delInfo data-v-6c80a5ea" slot="footer"><text class="data-v-6c80a5ea" bindtap="{{carItem.d}}">删除车主信息</text></view></car-card></view></scroll-view></view></swiper-item></swiper></view></view><up-tabbar wx:if="{{o}}" class="data-v-6c80a5ea" u-s="{{['d']}}" u-i="6c80a5ea-8" bind:__l="__l" u-p="{{o}}"><up-tabbar-item wx:if="{{j}}" class="data-v-6c80a5ea" u-i="6c80a5ea-9,6c80a5ea-8" bind:__l="__l" u-p="{{j}}"></up-tabbar-item><up-tabbar-item wx:if="{{n}}" class="data-v-6c80a5ea" u-s="{{['active-icon','inactive-icon']}}" bindclick="{{m}}" u-i="6c80a5ea-10,6c80a5ea-8" bind:__l="__l" u-p="{{n}}"><image style="width:48rpx" class="u-page__item__slot-icon data-v-6c80a5ea" src="{{k}}" mode="widthFix" slot="active-icon"></image><image style="width:48rpx" class="u-page__item__slot-icon data-v-6c80a5ea" src="{{l}}" mode="widthFix" slot="inactive-icon"></image></up-tabbar-item></up-tabbar></view> | ||
| 1 | +<view class="company_container data-v-f4c28d10"><up-navbar wx:if="{{a}}" class="data-v-f4c28d10" u-i="f4c28d10-0" bind:__l="__l" u-p="{{a}}"/><view class="work_box data-v-f4c28d10"><view class="nav_header data-v-f4c28d10"><view class="{{['nav_item', 'data-v-f4c28d10', b && 'active']}}" bindtap="{{c}}">待处理保单</view><view class="colLine data-v-f4c28d10"></view><view class="{{['nav_item', 'data-v-f4c28d10', d && 'active']}}" bindtap="{{e}}">已承接保单</view><view class="colLine data-v-f4c28d10"></view><view class="{{['nav_item', 'data-v-f4c28d10', f && 'active']}}" bindtap="{{g}}">已完结保单</view></view><view class="expert_content data-v-f4c28d10"><swiper class="swiper data-v-f4c28d10" circular current="{{p}}" bindanimationfinish="{{q}}"><swiper-item class="data-v-f4c28d10"><view class="swiper-item data-v-f4c28d10"><scroll-view scroll-y="true" class="scroll-history data-v-f4c28d10"><view class="work_list data-v-f4c28d10"><car-card wx:for="{{h}}" wx:for-item="carItem" wx:key="h" class="data-v-f4c28d10" u-s="{{['header','center','footer']}}" u-i="{{carItem.i}}" bind:__l="__l" u-p="{{carItem.j}}"><nav-top class="data-v-f4c28d10" u-i="{{carItem.a}}" bind:__l="__l" u-p="{{carItem.b}}" slot="header"/><word-info class="data-v-f4c28d10" u-i="{{carItem.c}}" bind:__l="__l" u-p="{{carItem.d}}" slot="center"/><center-line class="data-v-f4c28d10" bindleftComfirn="{{carItem.e}}" bindrightComfirn="{{carItem.f}}" u-i="{{carItem.g}}" bind:__l="__l" u-p="{{i}}" slot="footer"></center-line></car-card><up-empty wx:if="{{j}}" class="data-v-f4c28d10" u-i="f4c28d10-5" bind:__l="__l" u-p="{{j}}"/></view></scroll-view></view></swiper-item><swiper-item class="data-v-f4c28d10"><view class="swiper-item data-v-f4c28d10"><scroll-view scroll-y="true" class="scroll-history data-v-f4c28d10"><view class="work_list data-v-f4c28d10"><car-card wx:for="{{k}}" wx:for-item="carItem" wx:key="h" class="data-v-f4c28d10" u-s="{{['header','center','footer']}}" u-i="{{carItem.i}}" bind:__l="__l" u-p="{{carItem.j}}"><nav-top class="data-v-f4c28d10" u-i="{{carItem.a}}" bind:__l="__l" u-p="{{carItem.b}}" slot="header"/><word-info class="data-v-f4c28d10" u-i="{{carItem.c}}" bind:__l="__l" u-p="{{carItem.d}}" slot="center"/><center-line class="data-v-f4c28d10" bindleftComfirn="{{carItem.e}}" bindrightComfirn="{{carItem.f}}" u-i="{{carItem.g}}" bind:__l="__l" u-p="{{l}}" slot="footer"></center-line></car-card><up-empty wx:if="{{m}}" class="data-v-f4c28d10" u-i="f4c28d10-10" bind:__l="__l" u-p="{{m}}"/></view></scroll-view></view></swiper-item><swiper-item class="data-v-f4c28d10"><view class="swiper-item data-v-f4c28d10"><scroll-view scroll-y="true" class="scroll-history data-v-f4c28d10"><view class="work_list data-v-f4c28d10"><car-card wx:for="{{n}}" wx:for-item="carItem" wx:key="f" class="data-v-f4c28d10" u-s="{{['header','center','footer']}}" u-i="{{carItem.g}}" bind:__l="__l" u-p="{{carItem.h}}"><nav-top class="data-v-f4c28d10" u-i="{{carItem.a}}" bind:__l="__l" u-p="{{carItem.b}}" slot="header"/><owner-info class="data-v-f4c28d10" u-i="{{carItem.c}}" bind:__l="__l" u-p="{{carItem.d}}" slot="center"/><view class="delInfo data-v-f4c28d10" slot="footer"><text class="data-v-f4c28d10" bindtap="{{carItem.e}}">查看详情</text></view></car-card><up-empty wx:if="{{o}}" class="data-v-f4c28d10" u-i="f4c28d10-14" bind:__l="__l" u-p="{{o}}"/></view></scroll-view></view></swiper-item></swiper></view></view><up-modal wx:if="{{A}}" class="data-v-f4c28d10" u-s="{{['d']}}" bindconfirm="{{y}}" bindcancel="{{z}}" u-i="f4c28d10-15" bind:__l="__l" u-p="{{A}}"><view class="slot-content data-v-f4c28d10"><up-form wx:if="{{x}}" class="data-v-f4c28d10" u-s="{{['d']}}" u-i="f4c28d10-16,f4c28d10-15" bind:__l="__l" u-p="{{x}}"><up-form-item wx:if="{{t}}" class="data-v-f4c28d10" u-s="{{['d']}}" u-i="f4c28d10-17,f4c28d10-16" bind:__l="__l" u-p="{{t}}"><up-input wx:if="{{s}}" class="data-v-f4c28d10" u-i="f4c28d10-18,f4c28d10-17" bind:__l="__l" bindupdateModelValue="{{r}}" u-p="{{s}}"/></up-form-item><up-form-item wx:if="{{w}}" class="data-v-f4c28d10" u-s="{{['d']}}" u-i="f4c28d10-19,f4c28d10-16" bind:__l="__l" u-p="{{w}}"><rich-text class="data-v-f4c28d10" nodes="{{v}}"></rich-text></up-form-item></up-form></view></up-modal><up-modal wx:if="{{G}}" class="data-v-f4c28d10" u-s="{{['d']}}" bindconfirm="{{E}}" bindcancel="{{F}}" u-i="f4c28d10-20" bind:__l="__l" u-p="{{G}}"><view class="slot-content data-v-f4c28d10"><up-radio-group wx:if="{{D}}" class="data-v-f4c28d10" u-s="{{['d']}}" u-i="f4c28d10-21,f4c28d10-20" bind:__l="__l" bindupdateModelValue="{{C}}" u-p="{{D}}"><up-radio wx:for="{{B}}" wx:for-item="item" wx:key="a" class="data-v-f4c28d10" u-i="{{item.b}}" bind:__l="__l" u-p="{{item.c}}"/></up-radio-group></view></up-modal><up-tabbar wx:if="{{M}}" class="data-v-f4c28d10" u-s="{{['d']}}" u-i="f4c28d10-23" bind:__l="__l" u-p="{{M}}"><up-tabbar-item wx:if="{{H}}" class="data-v-f4c28d10" u-i="f4c28d10-24,f4c28d10-23" bind:__l="__l" u-p="{{H}}"></up-tabbar-item><up-tabbar-item wx:if="{{L}}" class="data-v-f4c28d10" u-s="{{['active-icon','inactive-icon']}}" bindclick="{{K}}" u-i="f4c28d10-25,f4c28d10-23" bind:__l="__l" u-p="{{L}}"><image style="width:48rpx" class="u-page__item__slot-icon data-v-f4c28d10" src="{{I}}" mode="widthFix" slot="active-icon"></image><image style="width:48rpx" class="u-page__item__slot-icon data-v-f4c28d10" src="{{J}}" mode="widthFix" slot="inactive-icon"></image></up-tabbar-item></up-tabbar></view> |
| 1 | -.company_container.data-v-6c80a5ea{width:100%;height:100vh;background:url(http://bxhd.crgx.net/profile/avatar/2024/09/25/bg-index_20240925113012A004.png) no-repeat;background-size:100% 100%;overflow:hidden}.company_container .work_box.data-v-6c80a5ea{height:calc(100vh - 88rpx);background-color:#f8f9ff}.company_container .work_box .nav_header.data-v-6c80a5ea{display:flex;align-items:center;width:100%;height:80rpx;background:#fff}.company_container .work_box .nav_header .nav_item.data-v-6c80a5ea{flex:1;text-align:center;height:80rpx;line-height:80rpx;font-size:28rpx;color:#999}.company_container .work_box .nav_header .nav_item.active.data-v-6c80a5ea{font-weight:500;color:#333}.company_container .work_box .nav_header .colLine.data-v-6c80a5ea{width:2rpx;height:40rpx;background:#d8d8d8}.company_container .work_box .work_list.data-v-6c80a5ea{padding:20rpx 30rpx 200rpx;display:flex;flex-direction:column;gap:20rpx}.delInfo.data-v-6c80a5ea{font-size:20rpx;line-height:26rpx;color:#3680fe}.scroll-history.data-v-6c80a5ea,.swiper.data-v-6c80a5ea{height:calc(100vh - 256rpx)} | 1 | +.company_container.data-v-f4c28d10{width:100%;height:100vh;background:url(http://bxhd.crgx.net/profile/avatar/2024/09/25/bg-index_20240925113012A004.png) no-repeat;background-size:100% 100%;overflow:hidden}.company_container .work_box.data-v-f4c28d10{height:calc(100vh - 88rpx);background-color:#f8f9ff}.company_container .work_box .nav_header.data-v-f4c28d10{display:flex;align-items:center;width:100%;height:80rpx;background:#fff}.company_container .work_box .nav_header .nav_item.data-v-f4c28d10{flex:1;text-align:center;height:80rpx;line-height:80rpx;font-size:28rpx;color:#999}.company_container .work_box .nav_header .nav_item.active.data-v-f4c28d10{font-weight:500;color:#333}.company_container .work_box .nav_header .colLine.data-v-f4c28d10{width:2rpx;height:40rpx;background:#d8d8d8}.company_container .work_box .work_list.data-v-f4c28d10{padding:20rpx 30rpx 200rpx;display:flex;flex-direction:column;gap:20rpx}.delInfo.data-v-f4c28d10{font-size:20rpx;line-height:26rpx;color:#3680fe}.scroll-history.data-v-f4c28d10,.swiper.data-v-f4c28d10{height:calc(100vh - 256rpx)} |
| 1 | -"use strict";const e=require("../../common/vendor.js"),o=require("../../common/assets.js"),r=require("../../store/modules/tabbar.js");if(!Array){(e.resolveComponent("up-navbar")+e.resolveComponent("up-input")+e.resolveComponent("up-form-item")+e.resolveComponent("up-form")+e.resolveComponent("up-tabbar-item")+e.resolveComponent("up-tabbar"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js")+(()=>"../../uni_modules/uview-plus/components/u-input/u-input.js")+(()=>"../../uni_modules/uview-plus/components/u-form-item/u-form-item.js")+(()=>"../../uni_modules/uview-plus/components/u-form/u-form.js")+(()=>"../../uni_modules/uview-plus/components/u-tabbar-item/u-tabbar-item.js")+(()=>"../../uni_modules/uview-plus/components/u-tabbar/u-tabbar.js"))();const n={__name:"companyMy",setup(n){const a=r.useTabbarStore(),t=e.ref(0);e.ref(!0);const u=e.ref({name:"",identificationNumber:"",phone:""}),l={height:"80rpx",backgroundColor:"#F9F9F9",paddingLeft:"40rpx"},i={color:"#bbb",fontSize:"28rpx"},s=e.ref(null),p={name:[{required:!0,message:"请输入姓名",trigger:["blur","change"]},{min:2,max:6,message:"名字应在2到6个字",trigger:["blur","change"]},{validator:(o,r,n)=>e.index.$u.test.chinese(r),message:"请输入中文",trigger:["change","blur"]}],identificationNumber:[{required:!0,message:"请输入身份证号",trigger:["blur","change"]},{validator:(o,r,n)=>e.index.$u.test.idCard(r),message:"身份证号码不正确",trigger:["change","blur"]}],phone:[{required:!0,message:"请输入手机号",trigger:["blur","change"]},{validator:(o,r,n)=>e.index.$u.test.mobile(r),message:"手机号码不正确",trigger:["change","blur"]}]};e.onReady((()=>{s.value.setRules(p)}));const m=()=>{},c=o=>{a.employeeCurrent=o,e.index.redirectTo({url:"/pages/companyHome/companyHome"})};return(r,n)=>({a:e.p({placeholder:!0,leftIconSize:0,bgColor:"transparent"}),b:o._imports_0,c:e.o((e=>u.value.name=e)),d:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:i,customStyle:l,placeholder:"请输入真实姓名",modelValue:u.value.name}),e:e.p({prop:"name"}),f:o._imports_1,g:e.o((e=>u.value.identificationNumber=e)),h:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:i,customStyle:l,placeholder:"请输入身份证号",modelValue:u.value.identificationNumber}),i:e.p({prop:"identificationNumber"}),j:o._imports_2,k:e.o((e=>u.value.phone=e)),l:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:i,customStyle:l,placeholder:"请输入手机号码",modelValue:u.value.phone}),m:e.p({prop:"phone"}),n:e.sr(s,"a3ec610d-1",{k:"userFormRef"}),o:e.p({model:u.value}),p:0===t.value?1:"",q:e.o((e=>t.value=0)),r:1===t.value?1:"",s:e.o((e=>t.value=1)),t:e.o(m),v:e.o(c),w:e.p({text:"主页",icon:"home"}),x:e.p({text:"我的",icon:"account"}),y:e.p({value:e.unref(a).employeeCurrent,activeColor:"#3680FE",inactiveColor:"#707070"})})}},a=e._export_sfc(n,[["__scopeId","data-v-a3ec610d"]]);wx.createPage(a); | 1 | +"use strict";const e=require("../../common/vendor.js"),o=require("../../common/assets.js"),r=require("../../api/user.js"),n=require("../../store/modules/tabbar.js"),t=require("../../store/modules/user.js");if(!Array){(e.resolveComponent("up-navbar")+e.resolveComponent("up-input")+e.resolveComponent("up-form-item")+e.resolveComponent("up-form")+e.resolveComponent("up-tabbar-item")+e.resolveComponent("up-tabbar"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js")+(()=>"../../uni_modules/uview-plus/components/u-input/u-input.js")+(()=>"../../uni_modules/uview-plus/components/u-form-item/u-form-item.js")+(()=>"../../uni_modules/uview-plus/components/u-form/u-form.js")+(()=>"../../uni_modules/uview-plus/components/u-tabbar-item/u-tabbar-item.js")+(()=>"../../uni_modules/uview-plus/components/u-tabbar/u-tabbar.js"))();const u={__name:"companyMy",setup(u){const{userInfo:a,Logout:s}=t.useUserStore(),i=n.useTabbarStore();e.ref(0),e.ref(!0);const l={height:"80rpx",backgroundColor:"#F9F9F9",paddingLeft:"40rpx"},p={color:"#bbb",fontSize:"28rpx"},c=e.ref(null),m={nickName:[{required:!0,message:"请输入姓名",trigger:["blur","change"]},{min:2,max:6,message:"名字应在2到6个字",trigger:["blur","change"]},{validator:(o,r,n)=>e.index.$u.test.chinese(r),message:"请输入中文",trigger:["change","blur"]}],identificationNumber:[{required:!0,message:"请输入身份证号",trigger:["blur","change"]},{validator:(o,r,n)=>e.index.$u.test.idCard(r),message:"身份证号码不正确",trigger:["change","blur"]}],phonenumber:[{required:!0,message:"请输入手机号",trigger:["blur","change"]},{validator:(o,r,n)=>e.index.$u.test.mobile(r),message:"手机号码不正确",trigger:["change","blur"]}]};e.onReady((()=>{c.value.setRules(m)}));const d=()=>{e.index.showModal({title:"提示",content:"是否退出登录",success:async o=>{o.confirm?(await s(),e.index.$u.toast("退出成功"),e.index.redirectTo({url:"/pages/login/login"})):o.cancel&&console.log("用户点击取消")}})},b=o=>{i.employeeCurrent=o,e.index.redirectTo({url:"/pages/companyHome/companyHome"})},g=()=>{c.value.validate().then((async o=>{o?(await r.updateUserInfo(a),e.index.$u.toast("更新成功")):e.index.$u.toast("校验失败")})).catch((()=>{e.index.$u.toast("校验失败")}))};return(r,n)=>({a:e.p({placeholder:!0,leftIconSize:0,bgColor:"transparent"}),b:e.o(g),c:o._imports_0,d:e.o((o=>e.unref(a).nickName=o)),e:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:p,customStyle:l,placeholder:"请输入真实姓名",modelValue:e.unref(a).nickName}),f:e.p({prop:"nickName"}),g:o._imports_1,h:e.o((o=>e.unref(a).identificationNumber=o)),i:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:p,customStyle:l,placeholder:"请输入身份证号",modelValue:e.unref(a).identificationNumber}),j:e.p({prop:"identificationNumber"}),k:o._imports_2,l:e.o((o=>e.unref(a).phonenumber=o)),m:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:p,customStyle:l,placeholder:"请输入手机号码",modelValue:e.unref(a).phonenumber}),n:e.p({prop:"phonenumber"}),o:e.sr(c,"ebdcd2f8-1",{k:"userFormRef"}),p:e.p({model:e.unref(a)}),q:e.o(d),r:e.o(b),s:e.p({text:"主页",icon:"home",badge:e.unref(i).companyTotal}),t:e.p({text:"我的",icon:"account"}),v:e.p({value:e.unref(i).employeeCurrent,activeColor:"#3680FE",inactiveColor:"#707070"})})}},a=e._export_sfc(u,[["__scopeId","data-v-ebdcd2f8"]]);wx.createPage(a); |
| 1 | { | 1 | { |
| 2 | - "navigationBarTitleText": "", | 2 | + "navigationBarTitleText": "公司员工信息", |
| 3 | "navigationStyle": "custom", | 3 | "navigationStyle": "custom", |
| 4 | "usingComponents": { | 4 | "usingComponents": { |
| 5 | "up-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar", | 5 | "up-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar", |
| 1 | -<view class="app-container data-v-a3ec610d"><up-navbar wx:if="{{a}}" class="data-v-a3ec610d" u-i="a3ec610d-0" bind:__l="__l" u-p="{{a}}"/><view class="car_list data-v-a3ec610d"><view class="line_title data-v-a3ec610d"><text class="left_title data-v-a3ec610d" style="color:#fff">我的信息</text><text class="data-v-a3ec610d" style="color:#fff">更新实名信息</text></view><view class="user-box data-v-a3ec610d"><up-form wx:if="{{o}}" class="r data-v-a3ec610d" u-s="{{['d']}}" u-r="userFormRef" u-i="a3ec610d-1" bind:__l="__l" u-p="{{o}}"><up-form-item wx:if="{{e}}" class="data-v-a3ec610d" u-s="{{['d']}}" u-i="a3ec610d-2,a3ec610d-1" bind:__l="__l" u-p="{{e}}"><up-input wx:if="{{d}}" class="data-v-a3ec610d" u-s="{{['prefix']}}" u-i="a3ec610d-3,a3ec610d-2" bind:__l="__l" bindupdateModelValue="{{c}}" u-p="{{d}}"><image class="data-v-a3ec610d" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{b}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item><up-form-item wx:if="{{i}}" class="data-v-a3ec610d" u-s="{{['d']}}" u-i="a3ec610d-4,a3ec610d-1" bind:__l="__l" u-p="{{i}}"><up-input wx:if="{{h}}" class="data-v-a3ec610d" u-s="{{['prefix']}}" u-i="a3ec610d-5,a3ec610d-4" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"><image class="data-v-a3ec610d" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{f}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item><up-form-item wx:if="{{m}}" class="data-v-a3ec610d" u-s="{{['d']}}" u-i="a3ec610d-6,a3ec610d-1" bind:__l="__l" u-p="{{m}}"><up-input wx:if="{{l}}" class="data-v-a3ec610d" u-s="{{['prefix']}}" u-i="a3ec610d-7,a3ec610d-6" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"><image class="data-v-a3ec610d" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{j}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item></up-form></view><view class="line_title data-v-a3ec610d"><text class="left_title data-v-a3ec610d">状态设置</text></view><view class="status data-v-a3ec610d"><view class="{{['statusBtn', 'data-v-a3ec610d', p && 'active']}}" bindtap="{{q}}">在岗</view><view class="{{['statusBtn', 'data-v-a3ec610d', r && 'active']}}" bindtap="{{s}}">离岗</view></view><view class="loginBtn data-v-a3ec610d" bindtap="{{t}}">退出登录</view></view><up-tabbar wx:if="{{y}}" class="data-v-a3ec610d" u-s="{{['d']}}" u-i="a3ec610d-8" bind:__l="__l" u-p="{{y}}"><up-tabbar-item wx:if="{{w}}" class="data-v-a3ec610d" bindclick="{{v}}" u-i="a3ec610d-9,a3ec610d-8" bind:__l="__l" u-p="{{w}}"></up-tabbar-item><up-tabbar-item wx:if="{{x}}" class="data-v-a3ec610d" u-i="a3ec610d-10,a3ec610d-8" bind:__l="__l" u-p="{{x}}"></up-tabbar-item></up-tabbar></view> | ||
| 1 | +<view class="app-container data-v-ebdcd2f8"><up-navbar wx:if="{{a}}" class="data-v-ebdcd2f8" u-i="ebdcd2f8-0" bind:__l="__l" u-p="{{a}}"/><view class="car_list data-v-ebdcd2f8"><view class="line_title data-v-ebdcd2f8"><text class="left_title data-v-ebdcd2f8" style="color:#fff">我的信息</text><text class="data-v-ebdcd2f8" style="color:#fff" bindtap="{{b}}">更新实名信息</text></view><view class="user-box data-v-ebdcd2f8"><up-form wx:if="{{p}}" class="r data-v-ebdcd2f8" u-s="{{['d']}}" u-r="userFormRef" u-i="ebdcd2f8-1" bind:__l="__l" u-p="{{p}}"><up-form-item wx:if="{{f}}" class="data-v-ebdcd2f8" u-s="{{['d']}}" u-i="ebdcd2f8-2,ebdcd2f8-1" bind:__l="__l" u-p="{{f}}"><up-input wx:if="{{e}}" class="data-v-ebdcd2f8" u-s="{{['prefix']}}" u-i="ebdcd2f8-3,ebdcd2f8-2" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"><image class="data-v-ebdcd2f8" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{c}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item><up-form-item wx:if="{{j}}" class="data-v-ebdcd2f8" u-s="{{['d']}}" u-i="ebdcd2f8-4,ebdcd2f8-1" bind:__l="__l" u-p="{{j}}"><up-input wx:if="{{i}}" class="data-v-ebdcd2f8" u-s="{{['prefix']}}" u-i="ebdcd2f8-5,ebdcd2f8-4" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"><image class="data-v-ebdcd2f8" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{g}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item><up-form-item wx:if="{{n}}" class="data-v-ebdcd2f8" u-s="{{['d']}}" u-i="ebdcd2f8-6,ebdcd2f8-1" bind:__l="__l" u-p="{{n}}"><up-input wx:if="{{m}}" class="data-v-ebdcd2f8" u-s="{{['prefix']}}" u-i="ebdcd2f8-7,ebdcd2f8-6" bind:__l="__l" bindupdateModelValue="{{l}}" u-p="{{m}}"><image class="data-v-ebdcd2f8" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{k}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item></up-form></view><view class="loginBtn data-v-ebdcd2f8" bindtap="{{q}}">退出登录</view></view><up-tabbar wx:if="{{v}}" class="data-v-ebdcd2f8" u-s="{{['d']}}" u-i="ebdcd2f8-8" bind:__l="__l" u-p="{{v}}"><up-tabbar-item wx:if="{{s}}" class="data-v-ebdcd2f8" bindclick="{{r}}" u-i="ebdcd2f8-9,ebdcd2f8-8" bind:__l="__l" u-p="{{s}}"></up-tabbar-item><up-tabbar-item wx:if="{{t}}" class="data-v-ebdcd2f8" u-i="ebdcd2f8-10,ebdcd2f8-8" bind:__l="__l" u-p="{{t}}"></up-tabbar-item></up-tabbar></view> |
| 1 | -.app-container.data-v-a3ec610d{width:100%;height:100vh;padding:0 30rpx;background:url(http://bxhd.crgx.net/profile/avatar/2024/09/25/bg-index_20240925113012A004.png) no-repeat;background-size:100% 100%;overflow:hidden}.app-container .user-box.data-v-a3ec610d{width:690rpx;padding:40rpx 44rpx;background-color:#fff;z-index:10;margin:0 auto 40rpx;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:40rpx}.app-container .car_list.data-v-a3ec610d{display:flex;flex-direction:column;gap:20rpx}.app-container .car_list .line_title.data-v-a3ec610d{display:flex;justify-content:space-between;font-size:24rpx;color:#999;line-height:32rpx}.app-container .car_list .line_title .left_title.data-v-a3ec610d{font-size:32rpx;line-height:42rpx;color:#333}.app-container .car_list .car_data.data-v-a3ec610d{padding:0 30rpx;background:#fff;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:40rpx;margin-bottom:60rpx}.app-container .car_list .car_data .car_item.data-v-a3ec610d{padding:30rpx 0;border-bottom:2rpx solid #eee}.app-container .car_list .car_data .car_item.data-v-a3ec610d:last-child{border-bottom:0}.app-container .car_list .loginBtn.data-v-a3ec610d{width:100%;height:80rpx;line-height:80rpx;text-align:center;font-size:28rpx;color:#fff;font-weight:500;background:#3680fe;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:40rpx;margin-top:40rpx}.status.data-v-a3ec610d{display:flex;align-items:center;justify-content:space-between;padding:40rpx 46rpx;background:#fff;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:40rpx}.status .statusBtn.data-v-a3ec610d{width:280rpx;height:80rpx;text-align:center;line-height:80rpx;color:#999;background:#fff;border-radius:200rpx;border:2rpx solid #BBBBBB}.status .statusBtn.active.data-v-a3ec610d{color:#fff;background:#75a8ff} | 1 | +.app-container.data-v-ebdcd2f8{width:100%;height:100vh;padding:0 30rpx;background:url(http://bxhd.crgx.net/profile/avatar/2024/09/25/bg-index_20240925113012A004.png) no-repeat;background-size:100% 100%;overflow:hidden}.app-container .user-box.data-v-ebdcd2f8{width:690rpx;padding:40rpx 44rpx;background-color:#fff;z-index:10;margin:0 auto 40rpx;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:40rpx}.app-container .car_list.data-v-ebdcd2f8{display:flex;flex-direction:column;gap:20rpx}.app-container .car_list .line_title.data-v-ebdcd2f8{display:flex;justify-content:space-between;font-size:24rpx;color:#999;line-height:32rpx}.app-container .car_list .line_title .left_title.data-v-ebdcd2f8{font-size:32rpx;line-height:42rpx;color:#333}.app-container .car_list .car_data.data-v-ebdcd2f8{padding:0 30rpx;background:#fff;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:40rpx;margin-bottom:60rpx}.app-container .car_list .car_data .car_item.data-v-ebdcd2f8{padding:30rpx 0;border-bottom:2rpx solid #eee}.app-container .car_list .car_data .car_item.data-v-ebdcd2f8:last-child{border-bottom:0}.app-container .car_list .loginBtn.data-v-ebdcd2f8{width:100%;height:80rpx;line-height:80rpx;text-align:center;font-size:28rpx;color:#fff;font-weight:500;background:#3680fe;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:40rpx;margin-top:40rpx}.status.data-v-ebdcd2f8{display:flex;align-items:center;justify-content:space-between;padding:40rpx 46rpx;background:#fff;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:40rpx}.status .statusBtn.data-v-ebdcd2f8{width:280rpx;height:80rpx;text-align:center;line-height:80rpx;color:#999;background:#fff;border-radius:200rpx;border:2rpx solid #BBBBBB}.status .statusBtn.active.data-v-ebdcd2f8{color:#fff;background:#75a8ff} |
| 1 | +"use strict";const e=require("../../common/vendor.js"),r=require("../../common/assets.js"),o=require("../../api/user.js"),n=require("../../store/modules/user.js");if(!Array){(e.resolveComponent("up-input")+e.resolveComponent("up-form-item")+e.resolveComponent("up-form"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-input/u-input.js")+(()=>"../../uni_modules/uview-plus/components/u-form-item/u-form-item.js")+(()=>"../../uni_modules/uview-plus/components/u-form/u-form.js"))();const t={__name:"employeeRealName",setup(t){const{userInfo:i,getUser:u}=n.useUserStore(),s=e.ref(null),a={nickName:[{required:!0,message:"请输入姓名",trigger:["blur","change"]},{min:2,max:6,message:"名字应在2到6个字",trigger:["blur","change"]},{validator:(r,o,n)=>e.index.$u.test.chinese(o),message:"请输入中文",trigger:["change","blur"]}],identificationNumber:[{required:!0,message:"请输入身份证号",trigger:["blur","change"]},{validator:(r,o,n)=>e.index.$u.test.idCard(o),message:"身份证号码不正确",trigger:["change","blur"]}],phonenumber:[{required:!0,message:"请输入手机号",trigger:["blur","change"]},{validator:(r,o,n)=>e.index.$u.test.mobile(o),message:"手机号码不正确",trigger:["change","blur"]}]},l={height:"80rpx",backgroundColor:"#F9F9F9",paddingLeft:"40rpx"},m={color:"#bbb",fontSize:"28rpx"};e.onReady((()=>{s.value.setRules(a)}));const p=()=>{s.value.validate().then((async r=>{if(r){await o.updateUserInfo(i),e.index.$u.toast("实名成功");const{roleGroup:r}=await u();"公司员工"===r?e.index.redirectTo({url:"/pages/companyHome/companyHome"}):e.index.redirectTo({url:"/pages/societyHome/societyHome"})}else e.index.$u.toast("校验失败")})).catch((()=>{e.index.$u.toast("校验失败")}))};return(o,n)=>({a:r._imports_0,b:e.o((r=>e.unref(i).nickName=r)),c:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:m,customStyle:l,placeholder:"请输入真实姓名",modelValue:e.unref(i).nickName}),d:e.p({prop:"nickName"}),e:r._imports_1,f:e.o((r=>e.unref(i).identificationNumber=r)),g:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:m,customStyle:l,placeholder:"请输入身份证号",modelValue:e.unref(i).identificationNumber}),h:e.p({prop:"identificationNumber"}),i:r._imports_2,j:e.o((r=>e.unref(i).phonenumber=r)),k:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:m,customStyle:l,placeholder:"请输入手机号码",modelValue:e.unref(i).phonenumber}),l:e.p({prop:"phonenumber"}),m:e.sr(s,"4f71b82a-0",{k:"logFormRef"}),n:e.p({model:e.unref(i)}),o:e.o(p)})}},i=e._export_sfc(t,[["__scopeId","data-v-4f71b82a"]]);wx.createPage(i); |
| 1 | +{ | ||
| 2 | + "navigationBarTitleText": "", | ||
| 3 | + "usingComponents": { | ||
| 4 | + "up-input": "../../uni_modules/uview-plus/components/u-input/u-input", | ||
| 5 | + "up-form-item": "../../uni_modules/uview-plus/components/u-form-item/u-form-item", | ||
| 6 | + "up-form": "../../uni_modules/uview-plus/components/u-form/u-form" | ||
| 7 | + } | ||
| 8 | +} |
| 1 | +<view class="login-container data-v-4f71b82a"><view class="title data-v-4f71b82a">实名认证</view><view class="line data-v-4f71b82a"></view><view class="login-box data-v-4f71b82a"><up-form wx:if="{{n}}" class="r data-v-4f71b82a" u-s="{{['d']}}" u-r="logFormRef" u-i="4f71b82a-0" bind:__l="__l" u-p="{{n}}"><up-form-item wx:if="{{d}}" class="data-v-4f71b82a" u-s="{{['d']}}" u-i="4f71b82a-1,4f71b82a-0" bind:__l="__l" u-p="{{d}}"><up-input wx:if="{{c}}" class="data-v-4f71b82a" u-s="{{['prefix']}}" u-i="4f71b82a-2,4f71b82a-1" bind:__l="__l" bindupdateModelValue="{{b}}" u-p="{{c}}"><image class="data-v-4f71b82a" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{a}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item><up-form-item wx:if="{{h}}" class="data-v-4f71b82a" u-s="{{['d']}}" u-i="4f71b82a-3,4f71b82a-0" bind:__l="__l" u-p="{{h}}"><up-input wx:if="{{g}}" class="data-v-4f71b82a" u-s="{{['prefix']}}" u-i="4f71b82a-4,4f71b82a-3" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"><image class="data-v-4f71b82a" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{e}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item><up-form-item wx:if="{{l}}" class="data-v-4f71b82a" u-s="{{['d']}}" u-i="4f71b82a-5,4f71b82a-0" bind:__l="__l" u-p="{{l}}"><up-input wx:if="{{k}}" class="data-v-4f71b82a" u-s="{{['prefix']}}" u-i="4f71b82a-6,4f71b82a-5" bind:__l="__l" bindupdateModelValue="{{j}}" u-p="{{k}}"><image class="data-v-4f71b82a" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{i}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item></up-form></view><view class="log-btn data-v-4f71b82a" bindtap="{{o}}">提交</view></view> |
| 1 | +.login-container.data-v-4f71b82a{position:relative;width:100%;height:100vh;background:url(http://bxhd.crgx.net/profile/avatar/2024/09/25/bg-login_20240925112841A003.png) no-repeat;background-size:100% 100%;overflow:hidden}.login-container .title.data-v-4f71b82a{position:absolute;top:232rpx;left:30rpx;font-size:48rpx;line-height:64rpx;color:#fff;font-weight:500}.login-container .line.data-v-4f71b82a{position:absolute;top:326rpx;left:30rpx;width:40rpx;height:6rpx;background:#fff}.login-container .login-box.data-v-4f71b82a{width:690rpx;padding:40rpx 44rpx;background-color:#fff;z-index:10;margin:442rpx auto 40rpx;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:40rpx}.login-container .login-box .employeeStatus.data-v-4f71b82a{display:flex;align-items:center;gap:40rpx;margin-top:30rpx}.login-container .login-box .employeeStatus .btn.data-v-4f71b82a{flex:1;height:80rpx;background:#fff;border-radius:200rpx;border:2rpx solid #BBBBBB;font-size:28rpx;text-align:center;line-height:80rpx;color:#999}.login-container .login-box .employeeStatus .btn.active.data-v-4f71b82a{background:#75a8ff;color:#fff}.login-container .tip.data-v-4f71b82a{color:#666;font-size:24rpx;line-height:28rpx;padding:0 40rpx;margin-bottom:20rpx}.login-container .log-btn.data-v-4f71b82a{width:690rpx;height:80rpx;line-height:80rpx;text-align:center;background:#3680fe;font-size:28rpx;margin:0 auto;color:#fff;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:200rpx} |
| 1 | -"use strict";const e=require("../../common/vendor.js");if(!Array){(e.resolveComponent("up-navbar")+e.resolveComponent("up-popup"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js")+o+r+a+(()=>"../../uni_modules/uview-plus/components/u-popup/u-popup.js"))();const a=()=>"../../components/carCard.js",r=()=>"../../components/centerLine.js",o=()=>"../../components/navTop.js",n={__name:"index",setup(a){const r=e.ref(!0),o=e.ref([{carId:1,carNum:"桂A·66666",carBrand:"梅赛德斯奔驰",address:"广西壮族自治区 南宁市 兴宁区投保",status:0},{carId:2,carNum:"桂A·77777",carBrand:"梅赛德斯奔驰",address:"广西壮族自治区 南宁市 兴宁区投保",status:1},{carId:3,carNum:"桂A·77777",carBrand:"梅赛德斯奔驰",address:"广西壮族自治区 南宁市 兴宁区投保",status:2}]),n=()=>{e.index.navigateTo({url:"/pages/carDetail/carDetail"})};return(a,s)=>({a:e.p({placeholder:!0,leftIconSize:0,bgColor:"transparent"}),b:e.f(o.value,((a,r,o)=>({a:"29637f37-2-"+o+",29637f37-1-"+o,b:e.p({carNum:a.carNum}),c:"29637f37-3-"+o+",29637f37-1-"+o,d:e.p({leftContent:a.carBrand,fontColor:"#999",rightContent:a.address}),e:"29637f37-4-"+o+",29637f37-1-"+o,f:a.carId,g:"29637f37-1-"+o,h:e.p({carInfo:a})}))),c:e.o(n),d:e.o((e=>r.value=!1)),e:e.o((e=>r.value=!1)),f:e.p({show:r.value,mode:"center",safeAreaInsetBottom:!1,round:"20"})})}},s=e._export_sfc(n,[["__scopeId","data-v-29637f37"]]);wx.createPage(s); | 1 | +"use strict";const e=require("../../common/vendor.js"),a=require("../../api/user.js"),o=require("../../store/modules/user.js");if(!Array){(e.resolveComponent("up-navbar")+e.resolveComponent("up-parse")+e.resolveComponent("up-popup"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js")+t+r+n+(()=>"../../uni_modules/uview-plus/components/u-parse/u-parse.js")+(()=>"../../uni_modules/uview-plus/components/u-popup/u-popup.js"))();const n=()=>"../../components/carCard.js",r=()=>"../../components/centerLine.js",t=()=>"../../components/navTop.js",s={__name:"index",setup(n){const r=e.ref([]),t=e.ref(""),s=e.ref(""),u=o.useUserStore(),i=e.reactive({pageNum:1,pageSize:10}),c=()=>{e.index.navigateTo({url:"/pages/carDetail/carDetail"})},p=()=>{u.isShowAdver=!1};return(async()=>{const{data:e}=await a.getNotice(10);s.value=e.noticeContent,t.value=e.noticeTitle})(),e.onShow((()=>{(async()=>{const{data:e}=await a.getUserCarInfo(i);r.value=e.records})()})),(a,o)=>({a:e.p({placeholder:!0,leftIconSize:0,bgColor:"transparent"}),b:e.f(r.value,((a,o,n)=>({a:"3a2da4bd-2-"+n+",3a2da4bd-1-"+n,b:e.p({carNum:a.licensePlateNumber}),c:"3a2da4bd-3-"+n+",3a2da4bd-1-"+n,d:e.p({leftContent:a.customizeVehicleBrand||a.vehicleBrand,fontColor:"#999",rightContent:a.customizeVehicleModel||a.vehicleModel}),e:e.o((o=>{return n=a.id,void e.index.navigateTo({url:`/pages/carDetail/carDetail?carInfoId=${n}`});var n}),a.id),f:a.id,g:"3a2da4bd-1-"+n,h:e.p({carInfo:a})}))),c:e.o(c),d:e.t(t.value),e:e.p({content:s.value}),f:e.o(p),g:e.o((a=>e.unref(u).isShowAdver=!1)),h:e.p({show:e.unref(u).isShowAdver,mode:"center",safeAreaInsetBottom:!1,round:"20"})})}},u=e._export_sfc(s,[["__scopeId","data-v-3a2da4bd"]]);wx.createPage(u); |
| 1 | { | 1 | { |
| 2 | - "navigationBarTitleText": "", | 2 | + "navigationBarTitleText": "客户首页", |
| 3 | "navigationStyle": "custom", | 3 | "navigationStyle": "custom", |
| 4 | "usingComponents": { | 4 | "usingComponents": { |
| 5 | "up-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar", | 5 | "up-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar", |
| 6 | + "up-parse": "../../uni_modules/uview-plus/components/u-parse/u-parse", | ||
| 6 | "up-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup", | 7 | "up-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup", |
| 7 | "car-card": "../../components/carCard", | 8 | "car-card": "../../components/carCard", |
| 8 | "center-line": "../../components/centerLine", | 9 | "center-line": "../../components/centerLine", |
| 1 | -<view class="app-container data-v-29637f37"><up-navbar wx:if="{{a}}" class="data-v-29637f37" u-i="29637f37-0" bind:__l="__l" u-p="{{a}}"/><view class="car_list data-v-29637f37"><view class="title data-v-29637f37">车辆管理</view><car-card wx:for="{{b}}" wx:for-item="carItem" wx:key="f" class="data-v-29637f37" u-s="{{['header','center','footer']}}" u-i="{{carItem.g}}" bind:__l="__l" u-p="{{carItem.h}}"><nav-top class="data-v-29637f37" u-i="{{carItem.a}}" bind:__l="__l" u-p="{{carItem.b}}" slot="header"/><center-line class="data-v-29637f37" u-i="{{carItem.c}}" bind:__l="__l" u-p="{{carItem.d}}" slot="center"></center-line><center-line class="data-v-29637f37" u-i="{{carItem.e}}" bind:__l="__l" slot="footer"></center-line></car-card><view class="addBtn data-v-29637f37" bindtap="{{c}}">登记车辆保险信息</view></view><up-popup wx:if="{{f}}" class="data-v-29637f37" u-s="{{['d']}}" bindclose="{{e}}" u-i="29637f37-5" bind:__l="__l" u-p="{{f}}"><view class="notice data-v-29637f37"><view class="notice_title data-v-29637f37">通知公告</view><view class="notice_content data-v-29637f37"> 1.我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告 2.我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告 3.我是公告我是公告我是公告我是公告 </view><view class="btn data-v-29637f37" bindtap="{{d}}">确认</view></view></up-popup></view> | ||
| 1 | +<view class="app-container data-v-3a2da4bd"><up-navbar wx:if="{{a}}" class="data-v-3a2da4bd" u-i="3a2da4bd-0" bind:__l="__l" u-p="{{a}}"/><view class="car_list data-v-3a2da4bd"><view class="title data-v-3a2da4bd">车辆管理</view><car-card wx:for="{{b}}" wx:for-item="carItem" wx:key="f" class="data-v-3a2da4bd" u-s="{{['header','center','footer']}}" u-i="{{carItem.g}}" bind:__l="__l" u-p="{{carItem.h}}"><nav-top class="data-v-3a2da4bd" u-i="{{carItem.a}}" bind:__l="__l" u-p="{{carItem.b}}" slot="header"/><center-line class="data-v-3a2da4bd" u-i="{{carItem.c}}" bind:__l="__l" u-p="{{carItem.d}}" slot="center"></center-line><view class="data-v-3a2da4bd" style="color:#3680FE;font-size:24rpx" bindtap="{{carItem.e}}" slot="footer">查看详情</view></car-card><view class="addBtn data-v-3a2da4bd" bindtap="{{c}}">登记车辆保险信息</view></view><up-popup wx:if="{{h}}" class="data-v-3a2da4bd" u-s="{{['d']}}" bindclose="{{g}}" u-i="3a2da4bd-4" bind:__l="__l" u-p="{{h}}"><view class="notice data-v-3a2da4bd"><view class="notice_title data-v-3a2da4bd">{{d}}</view><view class="notice_content data-v-3a2da4bd"><up-parse wx:if="{{e}}" class="data-v-3a2da4bd" u-i="3a2da4bd-5,3a2da4bd-4" bind:__l="__l" u-p="{{e}}"></up-parse></view><view class="btn data-v-3a2da4bd" bindtap="{{f}}">确认</view></view></up-popup></view> |
| 1 | -.app-container.data-v-29637f37{width:100%;height:100vh;padding:0 30rpx;background:url(http://bxhd.crgx.net/profile/avatar/2024/09/25/bg-index_20240925113012A004.png) no-repeat;background-size:100% 100%;overflow:hidden}.app-container .car_list.data-v-29637f37{display:flex;flex-direction:column;gap:20rpx}.app-container .car_list .title.data-v-29637f37{font-size:32rpx;line-height:42rpx;color:#fff}.app-container .car_list .addBtn.data-v-29637f37{width:100%;height:80rpx;line-height:80rpx;text-align:center;font-size:28rpx;color:#3d3d3d;font-weight:500;background:#fff;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:20rpx}.notice.data-v-29637f37{position:relative;width:690rpx;height:600rpx;background:#fff;padding:40rpx 30rpx 0;border-radius:20rpx;overflow:hidden}.notice .notice_title.data-v-29637f37{text-align:center;font-size:36rpx;line-height:48rpx;color:#3d3d3d;margin-bottom:40rpx}.notice .notice_content.data-v-29637f37{font-size:28rpx;line-height:38rpx;color:#999}.notice .btn.data-v-29637f37{position:absolute;bottom:0;left:0;width:100%;line-height:100rpx;text-align:center;height:100rpx;color:#3680fe;font-size:28rpx;border-top:2rpx solid #eee} | 1 | +.app-container.data-v-3a2da4bd{width:100%;height:100vh;padding:0 30rpx;background:url(http://bxhd.crgx.net/profile/avatar/2024/09/25/bg-index_20240925113012A004.png) no-repeat;background-size:100% 100%;overflow:hidden}.app-container .car_list.data-v-3a2da4bd{display:flex;flex-direction:column;gap:20rpx}.app-container .car_list .title.data-v-3a2da4bd{font-size:32rpx;line-height:42rpx;color:#fff}.app-container .car_list .addBtn.data-v-3a2da4bd{width:100%;height:80rpx;line-height:80rpx;text-align:center;font-size:28rpx;color:#3d3d3d;font-weight:500;background:#fff;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:20rpx}.notice.data-v-3a2da4bd{position:relative;width:690rpx;height:600rpx;background:#fff;padding:40rpx 30rpx 0;border-radius:20rpx;overflow:hidden}.notice .notice_title.data-v-3a2da4bd{text-align:center;font-size:36rpx;line-height:48rpx;color:#3d3d3d;margin-bottom:40rpx}.notice .notice_content.data-v-3a2da4bd{font-size:28rpx;line-height:38rpx;color:#999}.notice .btn.data-v-3a2da4bd{position:absolute;bottom:0;left:0;width:100%;line-height:100rpx;text-align:center;height:100rpx;color:#3680fe;font-size:28rpx;border-top:2rpx solid #eee} |
| 1 | -"use strict";const e=require("../../common/vendor.js"),o=require("../../common/assets.js");if(!Array){(e.resolveComponent("up-input")+e.resolveComponent("up-form-item")+e.resolveComponent("up-form"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-input/u-input.js")+(()=>"../../uni_modules/uview-plus/components/u-form-item/u-form-item.js")+(()=>"../../uni_modules/uview-plus/components/u-form/u-form.js"))();const r={__name:"login",setup(r){const n=e.ref({name:"",identificationNumber:""}),i=e.ref(null),t={name:[{required:!0,message:"请输入姓名",trigger:["blur","change"]},{min:2,max:6,message:"名字应在2到6个字",trigger:["blur","change"]},{validator:(o,r,n)=>e.index.$u.test.chinese(r),message:"请输入中文",trigger:["change","blur"]}],identificationNumber:[{required:!0,message:"请输入身份证号",trigger:["blur","change"]},{validator:(o,r,n)=>e.index.$u.test.idCard(r),message:"身份证号码不正确",trigger:["change","blur"]}]},a={height:"80rpx",backgroundColor:"#F9F9F9",paddingLeft:"40rpx"},u={color:"#bbb",fontSize:"28rpx"};e.onReady((()=>{i.value.setRules(t)}));const s=()=>{e.index.navigateTo({url:"/pages/privacy/privacy"})},l=()=>{i.value.validate().then((async o=>{o?(e.index.$u.toast("登录成功"),e.index.navigateTo({url:"/pages/companyHome/companyHome"})):e.index.$u.toast("校验失败")})).catch((()=>{e.index.$u.toast("校验失败")}))};return(r,t)=>({a:o._imports_0,b:e.o((e=>n.value.name=e)),c:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:u,customStyle:a,placeholder:"请输入真实姓名",modelValue:n.value.name}),d:e.p({prop:"name"}),e:o._imports_1,f:e.o((e=>n.value.identificationNumber=e)),g:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:u,customStyle:a,placeholder:"请输入身份证号",modelValue:n.value.identificationNumber}),h:e.p({prop:"identificationNumber"}),i:e.sr(i,"d82b9310-0",{k:"logFormRef"}),j:e.p({model:n.value}),k:e.o(s),l:e.o(l)})}},n=e._export_sfc(r,[["__scopeId","data-v-d82b9310"]]);wx.createPage(n); | 1 | +"use strict";const e=require("../../common/vendor.js"),o=require("../../common/assets.js"),r=require("../../api/user.js"),a=require("../../store/modules/user.js");if(!Array){(e.resolveComponent("up-input")+e.resolveComponent("up-form-item")+e.resolveComponent("up-form"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-input/u-input.js")+(()=>"../../uni_modules/uview-plus/components/u-form-item/u-form-item.js")+(()=>"../../uni_modules/uview-plus/components/u-form/u-form.js"))();const s={__name:"login",setup(s){const u=a.useUserStore(),l=e.ref({username:"",password:"",code:"",uuid:""}),t=e.ref(""),n=e.ref(null),p={username:[{required:!0,message:"请输入用户名",trigger:["blur","change"]}],password:[{required:!0,message:"请输入身份证号",trigger:["blur","change"]}],code:[{required:!0,message:"请输入验证码",trigger:["blur","change"]}]},i={height:"80rpx",backgroundColor:"#F9F9F9",paddingLeft:"40rpx"},c={width:"63%",height:"80rpx",backgroundColor:"#F9F9F9",paddingLeft:"40rpx"},d={color:"#bbb",fontSize:"28rpx"};function m(){r.getCodeImg().then((e=>{t.value="data:image/gif;base64,"+e.img,l.value.uuid=e.uuid}))}e.onReady((()=>{n.value.setRules(p)}));const g=()=>{e.index.navigateTo({url:"/pages/privacy/privacy"})},v=()=>{n.value.validate().then((async o=>{o?u.userlogin(l.value).then((async()=>{const{data:o,roleGroup:r}=await u.getUser();null!==o.identificationNumber?"公司员工"===r?e.index.redirectTo({url:"/pages/companyHome/companyHome"}):e.index.redirectTo({url:"/pages/societyHome/societyHome"}):e.index.redirectTo({url:"/pages/employeeRealName/employeeRealName"})})).catch((()=>{m()})):e.index.$u.toast("校验失败")})).catch((()=>{e.index.$u.toast("校验失败")}))};return m(),(r,a)=>({a:o._imports_0,b:e.o((e=>l.value.username=e)),c:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:d,customStyle:i,placeholder:"请输入用户名",modelValue:l.value.username}),d:e.p({prop:"username"}),e:o._imports_1,f:e.o((e=>l.value.password=e)),g:e.p({type:"password",shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:d,customStyle:i,placeholder:"请输入密码",modelValue:l.value.password}),h:e.p({prop:"password"}),i:o._imports_2$1,j:e.o((e=>l.value.code=e)),k:e.p({placeholder:"验证码",shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:d,customStyle:c,modelValue:l.value.code}),l:t.value,m:e.o(m),n:e.p({prop:"code"}),o:e.sr(n,"e04c0c3e-0",{k:"logFormRef"}),p:e.p({model:l.value}),q:e.o(g),r:e.o(v)})}},u=e._export_sfc(s,[["__scopeId","data-v-e04c0c3e"]]);wx.createPage(u); |
| 1 | { | 1 | { |
| 2 | - "navigationBarTitleText": "", | 2 | + "navigationBarTitleText": "登录页面", |
| 3 | "navigationStyle": "custom", | 3 | "navigationStyle": "custom", |
| 4 | "usingComponents": { | 4 | "usingComponents": { |
| 5 | "up-input": "../../uni_modules/uview-plus/components/u-input/u-input", | 5 | "up-input": "../../uni_modules/uview-plus/components/u-input/u-input", |
| 1 | -<view class="login-container data-v-d82b9310"><view class="login-box data-v-d82b9310"><up-form wx:if="{{j}}" class="r data-v-d82b9310" u-s="{{['d']}}" u-r="logFormRef" u-i="d82b9310-0" bind:__l="__l" u-p="{{j}}"><up-form-item wx:if="{{d}}" class="data-v-d82b9310" u-s="{{['d']}}" u-i="d82b9310-1,d82b9310-0" bind:__l="__l" u-p="{{d}}"><up-input wx:if="{{c}}" class="data-v-d82b9310" u-s="{{['prefix']}}" u-i="d82b9310-2,d82b9310-1" bind:__l="__l" bindupdateModelValue="{{b}}" u-p="{{c}}"><image class="data-v-d82b9310" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{a}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item><up-form-item wx:if="{{h}}" class="data-v-d82b9310" u-s="{{['d']}}" u-i="d82b9310-3,d82b9310-0" bind:__l="__l" u-p="{{h}}"><up-input wx:if="{{g}}" class="data-v-d82b9310" u-s="{{['prefix']}}" u-i="d82b9310-4,d82b9310-3" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"><image class="data-v-d82b9310" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{e}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item></up-form></view><view class="tip data-v-d82b9310"> 未注册或绑定该车型平台的身份证号,将帮你注册新账号,点击登录即代表你同意<text class="data-v-d82b9310" style="color:#3680FE" bindtap="{{k}}">《隐私政策》</text></view><view class="log-btn data-v-d82b9310" bindtap="{{l}}">登录</view></view> | ||
| 1 | +<view class="login-container data-v-e04c0c3e"><view class="login-box data-v-e04c0c3e"><up-form wx:if="{{p}}" class="r data-v-e04c0c3e" u-s="{{['d']}}" u-r="logFormRef" u-i="e04c0c3e-0" bind:__l="__l" u-p="{{p}}"><up-form-item wx:if="{{d}}" class="data-v-e04c0c3e" u-s="{{['d']}}" u-i="e04c0c3e-1,e04c0c3e-0" bind:__l="__l" u-p="{{d}}"><up-input wx:if="{{c}}" class="data-v-e04c0c3e" u-s="{{['prefix']}}" u-i="e04c0c3e-2,e04c0c3e-1" bind:__l="__l" bindupdateModelValue="{{b}}" u-p="{{c}}"><image class="data-v-e04c0c3e" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{a}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item><up-form-item wx:if="{{h}}" class="data-v-e04c0c3e" u-s="{{['d']}}" u-i="e04c0c3e-3,e04c0c3e-0" bind:__l="__l" u-p="{{h}}"><up-input wx:if="{{g}}" class="data-v-e04c0c3e" u-s="{{['prefix']}}" u-i="e04c0c3e-4,e04c0c3e-3" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"><image class="data-v-e04c0c3e" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{e}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item><up-form-item wx:if="{{n}}" class="data-v-e04c0c3e" u-s="{{['d']}}" u-i="e04c0c3e-5,e04c0c3e-0" bind:__l="__l" u-p="{{n}}"><view class="data-v-e04c0c3e" style="display:flex"><up-input wx:if="{{k}}" class="data-v-e04c0c3e" u-s="{{['prefix']}}" u-i="e04c0c3e-6,e04c0c3e-5" bind:__l="__l" bindupdateModelValue="{{j}}" u-p="{{k}}"><image class="data-v-e04c0c3e" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{i}}" mode="widthFix" slot="prefix"></image></up-input><view class="login-code data-v-e04c0c3e"><image src="{{l}}" class="login-code-img data-v-e04c0c3e" mode="widthFix" bindtap="{{m}}"></image></view></view></up-form-item></up-form></view><view class="tip data-v-e04c0c3e"> 未注册或绑定该车型平台的身份证号,将帮你注册新账号,点击登录即代表你同意<text class="data-v-e04c0c3e" style="color:#3680FE" bindtap="{{q}}">《隐私政策》</text></view><view class="log-btn data-v-e04c0c3e" bindtap="{{r}}">登录</view></view> |
| 1 | -.login-container.data-v-d82b9310{width:100%;height:100vh;background:url(http://bxhd.crgx.net/profile/avatar/2024/09/25/bg-login_20240925112841A003.png) no-repeat;background-size:100% 100%;overflow:hidden}.login-container .login-box.data-v-d82b9310{width:690rpx;padding:40rpx 44rpx;background-color:#fff;z-index:10;margin:442rpx auto 40rpx;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:40rpx}.login-container .login-box .employeeStatus.data-v-d82b9310{display:flex;align-items:center;gap:40rpx;margin-top:30rpx}.login-container .login-box .employeeStatus .btn.data-v-d82b9310{flex:1;height:80rpx;background:#fff;border-radius:200rpx;border:2rpx solid #BBBBBB;font-size:28rpx;text-align:center;line-height:80rpx;color:#999}.login-container .login-box .employeeStatus .btn.active.data-v-d82b9310{background:#75a8ff;color:#fff}.login-container .tip.data-v-d82b9310{color:#666;font-size:24rpx;line-height:28rpx;padding:0 40rpx;margin-bottom:20rpx}.login-container .log-btn.data-v-d82b9310{width:690rpx;height:80rpx;line-height:80rpx;text-align:center;background:#3680fe;font-size:28rpx;margin:0 auto;color:#fff;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:200rpx} | 1 | +.login-container.data-v-e04c0c3e{width:100%;height:100vh;background:url(http://bxhd.crgx.net/profile/avatar/2024/09/25/bg-login_20240925112841A003.png) no-repeat;background-size:100% 100%;overflow:hidden}.login-container .login-box.data-v-e04c0c3e{width:690rpx;padding:40rpx 44rpx;background-color:#fff;z-index:10;margin:442rpx auto 40rpx;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:40rpx}.login-container .login-box .employeeStatus.data-v-e04c0c3e{display:flex;align-items:center;gap:40rpx;margin-top:30rpx}.login-container .login-box .employeeStatus .btn.data-v-e04c0c3e{flex:1;height:80rpx;background:#fff;border-radius:200rpx;border:2rpx solid #BBBBBB;font-size:28rpx;text-align:center;line-height:80rpx;color:#999}.login-container .login-box .employeeStatus .btn.active.data-v-e04c0c3e{background:#75a8ff;color:#fff}.login-container .tip.data-v-e04c0c3e{color:#666;font-size:24rpx;line-height:28rpx;padding:0 40rpx;margin-bottom:20rpx}.login-container .log-btn.data-v-e04c0c3e{width:690rpx;height:80rpx;line-height:80rpx;text-align:center;background:#3680fe;font-size:28rpx;margin:0 auto;color:#fff;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:200rpx}.login-code.data-v-e04c0c3e{width:33%;height:80rpx;float:right}.login-code .login-code-img.data-v-e04c0c3e{width:100%;cursor:pointer;vertical-align:middle;height:80rpx;padding-left:24rpx} |
| 1 | -"use strict";const e=require("../../common/vendor.js"),r=require("../../common/assets.js");if(!Array){(e.resolveComponent("up-navbar")+e.resolveComponent("u-icon")+e.resolveComponent("up-input")+e.resolveComponent("up-form-item")+e.resolveComponent("up-form"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js")+(()=>"../../uni_modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../uni_modules/uview-plus/components/u-input/u-input.js")+(()=>"../../uni_modules/uview-plus/components/u-form-item/u-form-item.js")+(()=>"../../uni_modules/uview-plus/components/u-form/u-form.js")+n+o)();const o=()=>"../../components/centerLine.js",n=()=>"../../components/navTop.js",a={__name:"my",setup(o){e.ref(!0);const n=e.ref([{carId:1,carNum:"桂A·66666",carBrand:"梅赛德斯奔驰",address:"广西壮族自治区 南宁市 兴宁区投保",status:0},{carId:2,carNum:"桂A·77777",carBrand:"梅赛德斯奔驰",address:"广西壮族自治区 南宁市 兴宁区投保",status:1},{carId:3,carNum:"桂A·77777",carBrand:"梅赛德斯奔驰",address:"广西壮族自治区 南宁市 兴宁区投保",status:2}]),a=e.ref({name:"",identificationNumber:"",phone:""}),t={height:"80rpx",backgroundColor:"#F9F9F9",paddingLeft:"40rpx"},s={color:"#bbb",fontSize:"28rpx"},u=e.ref(null),i={name:[{required:!0,message:"请输入姓名",trigger:["blur","change"]},{min:2,max:6,message:"名字应在2到6个字",trigger:["blur","change"]},{validator:(r,o,n)=>e.index.$u.test.chinese(o),message:"请输入中文",trigger:["change","blur"]}],identificationNumber:[{required:!0,message:"请输入身份证号",trigger:["blur","change"]},{validator:(r,o,n)=>e.index.$u.test.idCard(o),message:"身份证号码不正确",trigger:["change","blur"]}],phone:[{required:!0,message:"请输入手机号",trigger:["blur","change"]},{validator:(r,o,n)=>e.index.$u.test.mobile(o),message:"手机号码不正确",trigger:["change","blur"]}]};e.onReady((()=>{u.value.setRules(i)}));const l=()=>{e.index.navigateTo({url:"/pages/carDetail/carDetail"})};return(o,i)=>({a:e.p({placeholder:!0,leftIconSize:0,bgColor:"transparent"}),b:e.p({name:"checkmark-circle",size:"16",color:"#fff"}),c:r._imports_0,d:e.o((e=>a.value.name=e)),e:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:s,customStyle:t,placeholder:"请输入真实姓名",modelValue:a.value.name}),f:e.p({prop:"name"}),g:r._imports_1,h:e.o((e=>a.value.identificationNumber=e)),i:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:s,customStyle:t,placeholder:"请输入身份证号",modelValue:a.value.identificationNumber}),j:e.p({prop:"identificationNumber"}),k:r._imports_1,l:e.o((e=>a.value.phone=e)),m:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:s,customStyle:t,placeholder:"请输入身份证号",modelValue:a.value.phone}),n:e.p({prop:"phone"}),o:e.sr(u,"4f11383f-2",{k:"userFormRef"}),p:e.p({model:a.value}),q:e.f(n.value,((r,o,n)=>({a:"4f11383f-9-"+n,b:e.p({carNum:r.carNum}),c:"4f11383f-10-"+n,d:e.p({leftContent:r.carBrand,fontColor:"#999",rightContent:r.address}),e:r.carId}))),r:e.o(l)})}},t=e._export_sfc(a,[["__scopeId","data-v-4f11383f"]]);wx.createPage(t); | 1 | +"use strict";const e=require("../../common/vendor.js"),o=require("../../common/assets.js"),r=require("../../api/user.js"),n=require("../../store/modules/user.js");if(!Array){(e.resolveComponent("up-navbar")+e.resolveComponent("u-icon")+e.resolveComponent("up-input")+e.resolveComponent("up-form-item")+e.resolveComponent("up-form"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js")+(()=>"../../uni_modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../uni_modules/uview-plus/components/u-input/u-input.js")+(()=>"../../uni_modules/uview-plus/components/u-form-item/u-form-item.js")+(()=>"../../uni_modules/uview-plus/components/u-form/u-form.js")+t+a)();const a=()=>"../../components/centerLine.js",t=()=>"../../components/navTop.js",i={__name:"my",setup(a){const{userInfo:t,Logout:i}=n.useUserStore(),s=e.ref([]),u=e.reactive({pageNum:1,pageSize:10}),c={height:"80rpx",backgroundColor:"#F9F9F9",paddingLeft:"40rpx"},l={color:"#bbb",fontSize:"28rpx"},m=e.ref(null),p={nickName:[{required:!0,message:"请输入姓名",trigger:["blur","change"]},{min:2,max:6,message:"名字应在2到6个字",trigger:["blur","change"]},{validator:(o,r,n)=>e.index.$u.test.chinese(r),message:"请输入中文",trigger:["change","blur"]}],identificationNumber:[{required:!0,message:"请输入身份证号",trigger:["blur","change"]},{validator:(o,r,n)=>e.index.$u.test.idCard(r),message:"身份证号码不正确",trigger:["change","blur"]}],phonenumber:[{required:!0,message:"请输入手机号",trigger:["blur","change"]},{validator:(o,r,n)=>e.index.$u.test.mobile(r),message:"手机号码不正确",trigger:["change","blur"]}]};e.onReady((()=>{m.value.setRules(p)}));const d=()=>{e.index.showModal({title:"提示",content:"是否退出登录",success:async o=>{o.confirm?(await i(),e.index.$u.toast("退出成功"),e.index.navigateTo({url:"/pages/realName/realName"})):o.cancel&&console.log("用户点击取消")}})},b=()=>{m.value.validate().then((async o=>{o?(await r.updateUserInfo(t),e.index.$u.toast("更新成功")):e.index.$u.toast("校验失败")})).catch((()=>{e.index.$u.toast("校验失败")}))};return(async()=>{const{data:e}=await r.getUserCarInfo(u);s.value=e.records})(),(r,n)=>({a:e.p({placeholder:!0,leftIconSize:0,bgColor:"transparent"}),b:e.p({name:"checkmark-circle",size:"16",color:"#fff"}),c:e.o(b),d:o._imports_0,e:e.o((o=>e.unref(t).nickName=o)),f:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:l,customStyle:c,placeholder:"请输入真实姓名",modelValue:e.unref(t).nickName}),g:e.p({prop:"nickName"}),h:o._imports_1,i:e.o((o=>e.unref(t).identificationNumber=o)),j:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:l,customStyle:c,placeholder:"请输入身份证号",modelValue:e.unref(t).identificationNumber}),k:e.p({prop:"identificationNumber"}),l:o._imports_1,m:e.o((o=>e.unref(t).phonenumber=o)),n:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:l,customStyle:c,placeholder:"请输入身份证号",modelValue:e.unref(t).phonenumber}),o:e.p({prop:"phonenumber"}),p:e.sr(m,"a432ca4b-2",{k:"userFormRef"}),q:e.p({model:e.unref(t)}),r:e.f(s.value,((o,r,n)=>({a:"a432ca4b-9-"+n,b:e.p({carNum:o.licensePlateNumber}),c:"a432ca4b-10-"+n,d:e.p({leftContent:o.customizeVehicleBrand||o.vehicleBrand,fontColor:"#999",rightContent:o.customizeVehicleModel||o.vehicleModel}),e:o.id}))),s:e.o(d)})}},s=e._export_sfc(i,[["__scopeId","data-v-a432ca4b"]]);wx.createPage(s); |
| 1 | { | 1 | { |
| 2 | - "navigationBarTitleText": "", | 2 | + "navigationBarTitleText": "客户信息", |
| 3 | "navigationStyle": "custom", | 3 | "navigationStyle": "custom", |
| 4 | "usingComponents": { | 4 | "usingComponents": { |
| 5 | "up-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar", | 5 | "up-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar", |
| 1 | -<view class="app-container data-v-4f11383f"><up-navbar wx:if="{{a}}" class="data-v-4f11383f" u-i="4f11383f-0" bind:__l="__l" u-p="{{a}}"/><view class="car_list data-v-4f11383f"><view class="line_title data-v-4f11383f"><text class="left_title data-v-4f11383f" style="color:#fff">我的信息</text><view class="data-v-4f11383f" style="display:flex;align-items:center"><u-icon wx:if="{{b}}" class="data-v-4f11383f" u-i="4f11383f-1" bind:__l="__l" u-p="{{b}}"></u-icon><text class="data-v-4f11383f" style="color:#fff;margin-left:10rpx">更新实名信息</text></view></view><view class="user-box data-v-4f11383f"><up-form wx:if="{{p}}" class="r data-v-4f11383f" u-s="{{['d']}}" u-r="userFormRef" u-i="4f11383f-2" bind:__l="__l" u-p="{{p}}"><up-form-item wx:if="{{f}}" class="data-v-4f11383f" u-s="{{['d']}}" u-i="4f11383f-3,4f11383f-2" bind:__l="__l" u-p="{{f}}"><up-input wx:if="{{e}}" class="data-v-4f11383f" u-s="{{['prefix']}}" u-i="4f11383f-4,4f11383f-3" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"><image class="data-v-4f11383f" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{c}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item><up-form-item wx:if="{{j}}" class="data-v-4f11383f" u-s="{{['d']}}" u-i="4f11383f-5,4f11383f-2" bind:__l="__l" u-p="{{j}}"><up-input wx:if="{{i}}" class="data-v-4f11383f" u-s="{{['prefix']}}" u-i="4f11383f-6,4f11383f-5" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"><image class="data-v-4f11383f" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{g}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item><up-form-item wx:if="{{n}}" class="data-v-4f11383f" u-s="{{['d']}}" u-i="4f11383f-7,4f11383f-2" bind:__l="__l" u-p="{{n}}"><up-input wx:if="{{m}}" class="data-v-4f11383f" u-s="{{['prefix']}}" u-i="4f11383f-8,4f11383f-7" bind:__l="__l" bindupdateModelValue="{{l}}" u-p="{{m}}"><image class="data-v-4f11383f" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{k}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item></up-form></view><view class="line_title data-v-4f11383f"><text class="left_title data-v-4f11383f">我的车辆</text><text class="data-v-4f11383f">去修改车辆信息</text></view><view class="car_data data-v-4f11383f"><view wx:for="{{q}}" wx:for-item="carItem" wx:key="e" class="car_item data-v-4f11383f"><nav-top wx:if="{{carItem.b}}" class="data-v-4f11383f" u-i="{{carItem.a}}" bind:__l="__l" u-p="{{carItem.b}}"/><center-line wx:if="{{carItem.d}}" class="data-v-4f11383f" u-i="{{carItem.c}}" bind:__l="__l" u-p="{{carItem.d}}"/></view></view><view class="loginBtn data-v-4f11383f" bindtap="{{r}}">退出登录</view></view></view> | ||
| 1 | +<view class="app-container data-v-a432ca4b"><up-navbar wx:if="{{a}}" class="data-v-a432ca4b" u-i="a432ca4b-0" bind:__l="__l" u-p="{{a}}"/><view class="car_list data-v-a432ca4b"><view class="line_title data-v-a432ca4b"><text class="left_title data-v-a432ca4b" style="color:#fff">我的信息</text><view class="data-v-a432ca4b" style="display:flex;align-items:center"><u-icon wx:if="{{b}}" class="data-v-a432ca4b" u-i="a432ca4b-1" bind:__l="__l" u-p="{{b}}"></u-icon><text class="data-v-a432ca4b" style="color:#fff;margin-left:10rpx" bindtap="{{c}}">更新实名信息</text></view></view><view class="user-box data-v-a432ca4b"><up-form wx:if="{{q}}" class="r data-v-a432ca4b" u-s="{{['d']}}" u-r="userFormRef" u-i="a432ca4b-2" bind:__l="__l" u-p="{{q}}"><up-form-item wx:if="{{g}}" class="data-v-a432ca4b" u-s="{{['d']}}" u-i="a432ca4b-3,a432ca4b-2" bind:__l="__l" u-p="{{g}}"><up-input wx:if="{{f}}" class="data-v-a432ca4b" u-s="{{['prefix']}}" u-i="a432ca4b-4,a432ca4b-3" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"><image class="data-v-a432ca4b" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{d}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item><up-form-item wx:if="{{k}}" class="data-v-a432ca4b" u-s="{{['d']}}" u-i="a432ca4b-5,a432ca4b-2" bind:__l="__l" u-p="{{k}}"><up-input wx:if="{{j}}" class="data-v-a432ca4b" u-s="{{['prefix']}}" u-i="a432ca4b-6,a432ca4b-5" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"><image class="data-v-a432ca4b" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{h}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item><up-form-item wx:if="{{o}}" class="data-v-a432ca4b" u-s="{{['d']}}" u-i="a432ca4b-7,a432ca4b-2" bind:__l="__l" u-p="{{o}}"><up-input wx:if="{{n}}" class="data-v-a432ca4b" u-s="{{['prefix']}}" u-i="a432ca4b-8,a432ca4b-7" bind:__l="__l" bindupdateModelValue="{{m}}" u-p="{{n}}"><image class="data-v-a432ca4b" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{l}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item></up-form></view><view class="line_title data-v-a432ca4b"><text class="left_title data-v-a432ca4b">我的车辆</text><text class="data-v-a432ca4b">去修改车辆信息</text></view><view class="car_data data-v-a432ca4b"><view wx:for="{{r}}" wx:for-item="carItem" wx:key="e" class="car_item data-v-a432ca4b"><nav-top wx:if="{{carItem.b}}" class="data-v-a432ca4b" u-i="{{carItem.a}}" bind:__l="__l" u-p="{{carItem.b}}"/><center-line wx:if="{{carItem.d}}" class="data-v-a432ca4b" u-i="{{carItem.c}}" bind:__l="__l" u-p="{{carItem.d}}"></center-line></view></view><view class="loginBtn data-v-a432ca4b" bindtap="{{s}}">退出登录</view></view></view> |
| 1 | -.app-container.data-v-4f11383f{width:100%;height:100vh;padding:0 30rpx;background:url(http://bxhd.crgx.net/profile/avatar/2024/09/25/bg-index_20240925113012A004.png) no-repeat;background-size:100% 100%;overflow:hidden}.app-container .user-box.data-v-4f11383f{width:690rpx;padding:40rpx 44rpx;background-color:#fff;z-index:10;margin:0 auto 40rpx;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:40rpx}.app-container .car_list.data-v-4f11383f{display:flex;flex-direction:column;gap:20rpx}.app-container .car_list .line_title.data-v-4f11383f{display:flex;justify-content:space-between;font-size:24rpx;color:#999;line-height:32rpx}.app-container .car_list .line_title .left_title.data-v-4f11383f{font-size:32rpx;line-height:42rpx;color:#333}.app-container .car_list .car_data.data-v-4f11383f{padding:0 30rpx;background:#fff;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:40rpx;margin-bottom:60rpx}.app-container .car_list .car_data .car_item.data-v-4f11383f{padding:30rpx 0;border-bottom:2rpx solid #eee}.app-container .car_list .car_data .car_item.data-v-4f11383f:last-child{border-bottom:0}.app-container .car_list .loginBtn.data-v-4f11383f{width:100%;height:80rpx;line-height:80rpx;text-align:center;font-size:28rpx;color:#fff;font-weight:500;background:#3680fe;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:40rpx} | 1 | +.app-container.data-v-a432ca4b{width:100%;height:100vh;padding:0 30rpx;background:url(http://bxhd.crgx.net/profile/avatar/2024/09/25/bg-index_20240925113012A004.png) no-repeat;background-size:100% 100%;overflow:hidden}.app-container .user-box.data-v-a432ca4b{width:690rpx;padding:40rpx 44rpx;background-color:#fff;z-index:10;margin:0 auto 40rpx;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:40rpx}.app-container .car_list.data-v-a432ca4b{display:flex;flex-direction:column;gap:20rpx}.app-container .car_list .line_title.data-v-a432ca4b{display:flex;justify-content:space-between;font-size:24rpx;color:#999;line-height:32rpx}.app-container .car_list .line_title .left_title.data-v-a432ca4b{font-size:32rpx;line-height:42rpx;color:#333}.app-container .car_list .car_data.data-v-a432ca4b{padding:0 30rpx;background:#fff;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:40rpx;margin-bottom:60rpx}.app-container .car_list .car_data .car_item.data-v-a432ca4b{padding:30rpx 0;border-bottom:2rpx solid #eee}.app-container .car_list .car_data .car_item.data-v-a432ca4b:last-child{border-bottom:0}.app-container .car_list .loginBtn.data-v-a432ca4b{width:100%;height:80rpx;line-height:80rpx;text-align:center;font-size:28rpx;color:#fff;font-weight:500;background:#3680fe;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:40rpx} |
| 1 | { | 1 | { |
| 2 | - "navigationBarTitleText": "", | 2 | + "navigationBarTitleText": "车主信息", |
| 3 | "navigationStyle": "custom", | 3 | "navigationStyle": "custom", |
| 4 | "usingComponents": { | 4 | "usingComponents": { |
| 5 | "up-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar", | 5 | "up-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar", |
| 1 | -"use strict";const e=require("../../common/vendor.js"),o=require("../../common/assets.js");if(!Array){(e.resolveComponent("up-input")+e.resolveComponent("up-form-item")+e.resolveComponent("up-form"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-input/u-input.js")+(()=>"../../uni_modules/uview-plus/components/u-form-item/u-form-item.js")+(()=>"../../uni_modules/uview-plus/components/u-form/u-form.js"))();const r={__name:"realName",setup(r){const n=e.ref({name:"",identificationNumber:"",phone:""}),a=e.ref(null),i={name:[{required:!0,message:"请输入姓名",trigger:["blur","change"]},{min:2,max:6,message:"名字应在2到6个字",trigger:["blur","change"]},{validator:(o,r,n)=>e.index.$u.test.chinese(r),message:"请输入中文",trigger:["change","blur"]}],identificationNumber:[{required:!0,message:"请输入身份证号",trigger:["blur","change"]},{validator:(o,r,n)=>e.index.$u.test.idCard(r),message:"身份证号码不正确",trigger:["change","blur"]}],phone:[{required:!0,message:"请输入手机号",trigger:["blur","change"]},{validator:(o,r,n)=>e.index.$u.test.mobile(r),message:"手机号码不正确",trigger:["change","blur"]}]},t={height:"80rpx",backgroundColor:"#F9F9F9",paddingLeft:"40rpx"},l={color:"#bbb",fontSize:"28rpx"};e.onReady((()=>{a.value.setRules(i)}));const u=()=>{e.index.navigateTo({url:"/pages/privacy/privacy"})},s=()=>{a.value.validate().then((async o=>{o?(e.index.$u.toast("登录成功"),e.index.switchTab({url:"/pages/index/index"})):e.index.$u.toast("校验失败")})).catch((()=>{e.index.$u.toast("校验失败")}))};return(r,i)=>({a:o._imports_0,b:e.o((e=>n.value.name=e)),c:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:l,customStyle:t,placeholder:"请输入真实姓名",modelValue:n.value.name}),d:e.p({prop:"name"}),e:o._imports_1,f:e.o((e=>n.value.identificationNumber=e)),g:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:l,customStyle:t,placeholder:"请输入身份证号",modelValue:n.value.identificationNumber}),h:e.p({prop:"identificationNumber"}),i:o._imports_2,j:e.o((e=>n.value.phone=e)),k:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:l,customStyle:t,placeholder:"请输入手机号码",modelValue:n.value.phone}),l:e.p({prop:"phone"}),m:e.sr(a,"c1dd4c02-0",{k:"logFormRef"}),n:e.p({model:n.value}),o:e.o(u),p:e.o(s)})}},n=e._export_sfc(r,[["__scopeId","data-v-c1dd4c02"]]);wx.createPage(n); | 1 | +"use strict";const e=require("../../common/vendor.js"),r=require("../../common/assets.js"),o=require("../../api/user.js"),n=require("../../store/modules/user.js");if(!Array){(e.resolveComponent("up-input")+e.resolveComponent("up-form-item")+e.resolveComponent("up-form"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-input/u-input.js")+(()=>"../../uni_modules/uview-plus/components/u-form-item/u-form-item.js")+(()=>"../../uni_modules/uview-plus/components/u-form/u-form.js"))();const i={__name:"realName",setup(i){const{userInfo:t,login:a,getUser:u}=n.useUserStore(),s=e.ref(null),l={nickName:[{required:!0,message:"请输入姓名",trigger:["blur","change"]},{min:2,max:6,message:"名字应在2到6个字",trigger:["blur","change"]},{validator:(r,o,n)=>e.index.$u.test.chinese(o),message:"请输入中文",trigger:["change","blur"]}],identificationNumber:[{required:!0,message:"请输入身份证号",trigger:["blur","change"]},{validator:(r,o,n)=>e.index.$u.test.idCard(o),message:"身份证号码不正确",trigger:["change","blur"]}],phonenumber:[{required:!0,message:"请输入手机号",trigger:["blur","change"]},{validator:(r,o,n)=>e.index.$u.test.mobile(o),message:"手机号码不正确",trigger:["change","blur"]}]},c={height:"80rpx",backgroundColor:"#F9F9F9",paddingLeft:"40rpx"},p={color:"#bbb",fontSize:"28rpx"};e.onReady((()=>{s.value.setRules(l)})),e.onLoad((r=>{e.index.login({success:async r=>{await a({code:r.code,type:0});const{data:o}=await u();null!==o.identificationNumber&&e.index.switchTab({url:"/pages/index/index"})}})}));const m=()=>{e.index.navigateTo({url:"/pages/privacy/privacy"})},d=()=>{s.value.validate().then((async r=>{r?(await o.updateUserInfo(t),e.index.$u.toast("登录成功"),e.index.switchTab({url:"/pages/index/index"})):e.index.$u.toast("校验失败")})).catch((()=>{e.index.$u.toast("校验失败")}))};return(o,n)=>({a:r._imports_0,b:e.o((r=>e.unref(t).nickName=r)),c:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:p,customStyle:c,placeholder:"请输入真实姓名",modelValue:e.unref(t).nickName}),d:e.p({prop:"nickName"}),e:r._imports_1,f:e.o((r=>e.unref(t).identificationNumber=r)),g:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:p,customStyle:c,placeholder:"请输入身份证号",modelValue:e.unref(t).identificationNumber}),h:e.p({prop:"identificationNumber"}),i:r._imports_2,j:e.o((r=>e.unref(t).phonenumber=r)),k:e.p({shape:"circle",border:"none",fontSize:"28rpx",color:"#bbb",placeholderStyle:p,customStyle:c,placeholder:"请输入手机号码",modelValue:e.unref(t).phonenumber}),l:e.p({prop:"phonenumber"}),m:e.sr(s,"5aff8a13-0",{k:"logFormRef"}),n:e.p({model:e.unref(t)}),o:e.o(m),p:e.o(d)})}},t=e._export_sfc(i,[["__scopeId","data-v-5aff8a13"]]);wx.createPage(t); |
| 1 | { | 1 | { |
| 2 | - "navigationBarTitleText": "", | 2 | + "navigationBarTitleText": "实名页面", |
| 3 | "navigationStyle": "custom", | 3 | "navigationStyle": "custom", |
| 4 | "usingComponents": { | 4 | "usingComponents": { |
| 5 | "up-input": "../../uni_modules/uview-plus/components/u-input/u-input", | 5 | "up-input": "../../uni_modules/uview-plus/components/u-input/u-input", |
| 1 | -<view class="login-container data-v-c1dd4c02"><view class="title data-v-c1dd4c02">实名认证</view><view class="line data-v-c1dd4c02"></view><view class="login-box data-v-c1dd4c02"><up-form wx:if="{{n}}" class="r data-v-c1dd4c02" u-s="{{['d']}}" u-r="logFormRef" u-i="c1dd4c02-0" bind:__l="__l" u-p="{{n}}"><up-form-item wx:if="{{d}}" class="data-v-c1dd4c02" u-s="{{['d']}}" u-i="c1dd4c02-1,c1dd4c02-0" bind:__l="__l" u-p="{{d}}"><up-input wx:if="{{c}}" class="data-v-c1dd4c02" u-s="{{['prefix']}}" u-i="c1dd4c02-2,c1dd4c02-1" bind:__l="__l" bindupdateModelValue="{{b}}" u-p="{{c}}"><image class="data-v-c1dd4c02" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{a}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item><up-form-item wx:if="{{h}}" class="data-v-c1dd4c02" u-s="{{['d']}}" u-i="c1dd4c02-3,c1dd4c02-0" bind:__l="__l" u-p="{{h}}"><up-input wx:if="{{g}}" class="data-v-c1dd4c02" u-s="{{['prefix']}}" u-i="c1dd4c02-4,c1dd4c02-3" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"><image class="data-v-c1dd4c02" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{e}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item><up-form-item wx:if="{{l}}" class="data-v-c1dd4c02" u-s="{{['d']}}" u-i="c1dd4c02-5,c1dd4c02-0" bind:__l="__l" u-p="{{l}}"><up-input wx:if="{{k}}" class="data-v-c1dd4c02" u-s="{{['prefix']}}" u-i="c1dd4c02-6,c1dd4c02-5" bind:__l="__l" bindupdateModelValue="{{j}}" u-p="{{k}}"><image class="data-v-c1dd4c02" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{i}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item></up-form></view><view class="tip data-v-c1dd4c02"> 未注册或绑定该车型平台的身份证号,将帮你注册新账号,点击登录即代表你同意<text class="data-v-c1dd4c02" style="color:#3680FE" bindtap="{{o}}">《隐私政策》</text></view><view class="log-btn data-v-c1dd4c02" bindtap="{{p}}">登录</view></view> | ||
| 1 | +<view class="login-container data-v-5aff8a13"><view class="title data-v-5aff8a13">实名认证</view><view class="line data-v-5aff8a13"></view><view class="login-box data-v-5aff8a13"><up-form wx:if="{{n}}" class="r data-v-5aff8a13" u-s="{{['d']}}" u-r="logFormRef" u-i="5aff8a13-0" bind:__l="__l" u-p="{{n}}"><up-form-item wx:if="{{d}}" class="data-v-5aff8a13" u-s="{{['d']}}" u-i="5aff8a13-1,5aff8a13-0" bind:__l="__l" u-p="{{d}}"><up-input wx:if="{{c}}" class="data-v-5aff8a13" u-s="{{['prefix']}}" u-i="5aff8a13-2,5aff8a13-1" bind:__l="__l" bindupdateModelValue="{{b}}" u-p="{{c}}"><image class="data-v-5aff8a13" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{a}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item><up-form-item wx:if="{{h}}" class="data-v-5aff8a13" u-s="{{['d']}}" u-i="5aff8a13-3,5aff8a13-0" bind:__l="__l" u-p="{{h}}"><up-input wx:if="{{g}}" class="data-v-5aff8a13" u-s="{{['prefix']}}" u-i="5aff8a13-4,5aff8a13-3" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"><image class="data-v-5aff8a13" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{e}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item><up-form-item wx:if="{{l}}" class="data-v-5aff8a13" u-s="{{['d']}}" u-i="5aff8a13-5,5aff8a13-0" bind:__l="__l" u-p="{{l}}"><up-input wx:if="{{k}}" class="data-v-5aff8a13" u-s="{{['prefix']}}" u-i="5aff8a13-6,5aff8a13-5" bind:__l="__l" bindupdateModelValue="{{j}}" u-p="{{k}}"><image class="data-v-5aff8a13" style="width:32rpx;margin-right:18rpx;margin-top:10rpx" src="{{i}}" mode="widthFix" slot="prefix"></image></up-input></up-form-item></up-form></view><view class="tip data-v-5aff8a13"> 未注册或绑定该车型平台的身份证号,将帮你注册新账号,点击提交即代表你同意<text class="data-v-5aff8a13" style="color:#3680FE" bindtap="{{o}}">《隐私政策》</text></view><view class="log-btn data-v-5aff8a13" bindtap="{{p}}">提交</view></view> |
| 1 | -.login-container.data-v-c1dd4c02{position:relative;width:100%;height:100vh;background:url(http://bxhd.crgx.net/profile/avatar/2024/09/25/bg-login_20240925112841A003.png) no-repeat;background-size:100% 100%;overflow:hidden}.login-container .title.data-v-c1dd4c02{position:absolute;top:232rpx;left:30rpx;font-size:48rpx;line-height:64rpx;color:#fff;font-weight:500}.login-container .line.data-v-c1dd4c02{position:absolute;top:326rpx;left:30rpx;width:40rpx;height:6rpx;background:#fff}.login-container .login-box.data-v-c1dd4c02{width:690rpx;padding:40rpx 44rpx;background-color:#fff;z-index:10;margin:442rpx auto 40rpx;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:40rpx}.login-container .login-box .employeeStatus.data-v-c1dd4c02{display:flex;align-items:center;gap:40rpx;margin-top:30rpx}.login-container .login-box .employeeStatus .btn.data-v-c1dd4c02{flex:1;height:80rpx;background:#fff;border-radius:200rpx;border:2rpx solid #BBBBBB;font-size:28rpx;text-align:center;line-height:80rpx;color:#999}.login-container .login-box .employeeStatus .btn.active.data-v-c1dd4c02{background:#75a8ff;color:#fff}.login-container .tip.data-v-c1dd4c02{color:#666;font-size:24rpx;line-height:28rpx;padding:0 40rpx;margin-bottom:20rpx}.login-container .log-btn.data-v-c1dd4c02{width:690rpx;height:80rpx;line-height:80rpx;text-align:center;background:#3680fe;font-size:28rpx;margin:0 auto;color:#fff;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:200rpx} | 1 | +.login-container.data-v-5aff8a13{position:relative;width:100%;height:100vh;background:url(http://bxhd.crgx.net/profile/avatar/2024/09/25/bg-login_20240925112841A003.png) no-repeat;background-size:100% 100%;overflow:hidden}.login-container .title.data-v-5aff8a13{position:absolute;top:232rpx;left:30rpx;font-size:48rpx;line-height:64rpx;color:#fff;font-weight:500}.login-container .line.data-v-5aff8a13{position:absolute;top:326rpx;left:30rpx;width:40rpx;height:6rpx;background:#fff}.login-container .login-box.data-v-5aff8a13{width:690rpx;padding:40rpx 44rpx;background-color:#fff;z-index:10;margin:442rpx auto 40rpx;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:40rpx}.login-container .login-box .employeeStatus.data-v-5aff8a13{display:flex;align-items:center;gap:40rpx;margin-top:30rpx}.login-container .login-box .employeeStatus .btn.data-v-5aff8a13{flex:1;height:80rpx;background:#fff;border-radius:200rpx;border:2rpx solid #BBBBBB;font-size:28rpx;text-align:center;line-height:80rpx;color:#999}.login-container .login-box .employeeStatus .btn.active.data-v-5aff8a13{background:#75a8ff;color:#fff}.login-container .tip.data-v-5aff8a13{color:#666;font-size:24rpx;line-height:28rpx;padding:0 40rpx;margin-bottom:20rpx}.login-container .log-btn.data-v-5aff8a13{width:690rpx;height:80rpx;line-height:80rpx;text-align:center;background:#3680fe;font-size:28rpx;margin:0 auto;color:#fff;box-shadow:0 8rpx 40rpx rgba(10,22,44,.06);border-radius:200rpx} |
| 1 | { | 1 | { |
| 2 | - "navigationBarTitleText": "", | 2 | + "navigationBarTitleText": "协会员工首页", |
| 3 | "navigationStyle": "custom", | 3 | "navigationStyle": "custom", |
| 4 | "usingComponents": { | 4 | "usingComponents": { |
| 5 | "up-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar", | 5 | "up-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar", |
| 1 | { | 1 | { |
| 2 | - "navigationBarTitleText": "", | 2 | + "navigationBarTitleText": "协会员工信息", |
| 3 | "navigationStyle": "custom", | 3 | "navigationStyle": "custom", |
| 4 | "usingComponents": { | 4 | "usingComponents": { |
| 5 | "up-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar", | 5 | "up-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar", |
| @@ -21,7 +21,17 @@ | @@ -21,7 +21,17 @@ | ||
| 21 | "libVersion": "3.6.0", | 21 | "libVersion": "3.6.0", |
| 22 | "appid": "wx2884bf0a53ee40b3", | 22 | "appid": "wx2884bf0a53ee40b3", |
| 23 | "projectname": "car-insurance", | 23 | "projectname": "car-insurance", |
| 24 | - "condition": {}, | 24 | + "condition": { |
| 25 | + "miniprogram": { | ||
| 26 | + "list": [ | ||
| 27 | + { | ||
| 28 | + "name": "test", | ||
| 29 | + "pathName": "pages/login/login", | ||
| 30 | + "query": "" | ||
| 31 | + } | ||
| 32 | + ] | ||
| 33 | + } | ||
| 34 | + }, | ||
| 25 | "editorSetting": { | 35 | "editorSetting": { |
| 26 | "tabIndent": "tab", | 36 | "tabIndent": "tab", |
| 27 | "tabSize": 2 | 37 | "tabSize": 2 |
| 1 | +{ | ||
| 2 | + "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", | ||
| 3 | + "condition": { | ||
| 4 | + "miniprogram": { | ||
| 5 | + "list": [ | ||
| 6 | + { | ||
| 7 | + "name": "pages/login/login", | ||
| 8 | + "pathName": "pages/login/login", | ||
| 9 | + "query": "", | ||
| 10 | + "launchMode": "default", | ||
| 11 | + "scene": null | ||
| 12 | + }, | ||
| 13 | + { | ||
| 14 | + "name": "test", | ||
| 15 | + "pathName": "pages/login/login", | ||
| 16 | + "query": "" | ||
| 17 | + } | ||
| 18 | + ] | ||
| 19 | + } | ||
| 20 | + } | ||
| 21 | +} |
5.2 KB
| 1 | -"use strict";const e=require("../../common/vendor.js").defineStore("tabbar",{unistorage:!0,state:()=>({employeeCurrent:0,societyCurrent:0})});exports.useTabbarStore=e; | 1 | +"use strict";const e=require("../../common/vendor.js").defineStore("tabbar",{unistorage:!0,state:()=>({employeeCurrent:0,societyCurrent:0,companyTotal:0})});exports.useTabbarStore=e; |
| 1 | +"use strict";const e=require("../../common/vendor.js"),r=require("../../utils/storage.js"),t=require("../../api/user.js"),o=e.defineStore("user",{unistorage:!0,state:()=>({token:r.storage.get("crgx_token",""),userInfo:r.storage.get("crgx_userInfo",null),isShowAdver:!0}),actions:{login(e){return new Promise(((o,s)=>{t.userWxLogin(e).then((e=>{const{token:t}=e;r.storage.set("crgx_token",t,2592e3),this.token=t,o(e)})).catch(s)}))},userlogin(e){return new Promise(((o,s)=>{t.userLogin(e).then((e=>{r.storage.set("crgx_token",e.token,2592e3),this.token=e.token,o()})).catch((e=>{s(e)}))}))},getUser(){return new Promise(((e,o)=>{t.getUserInfo().then((t=>{const o=t.data;r.storage.set("crgx_userInfo",o,2592e3),this.userInfo=o,e(t)})).catch(o)}))},Logout:()=>new Promise(((e,t)=>{r.storage.remove("crgx_token"),r.storage.remove("crgx_userInfo"),e()}))}});exports.useUserStore=o; |
| 1 | +"use strict";const e=require("../../../../common/vendor.js"),t={name:"uni-data-select",mixins:[e.Vs.mixinDatacom||{}],props:{localdata:{type:Array,default:()=>[]},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},label:{type:String,default:""},placeholder:{type:String,default:"请选择"},emptyTips:{type:String,default:"无选项"},clear:{type:Boolean,default:!0},defItem:{type:Number,default:0},disabled:{type:Boolean,default:!1},format:{type:String,default:""},placement:{type:String,default:"bottom"}},data:()=>({showSelector:!1,current:"",mixinDatacomResData:[],apps:[],channels:[],cacheKey:"uni-data-select-lastSelectedValue"}),created(){this.debounceGet=this.debounce((()=>{this.query()}),300),this.collection&&!this.localdata.length&&this.debounceGet()},computed:{typePlaceholder(){const e=this.placeholder,t={"opendb-stat-app-versions":"版本","opendb-app-channels":"渠道","opendb-app-list":"应用"}[this.collection];return t?e+t:e},valueCom(){return this.modelValue},textShow(){let e=this.current;return e.length>10?e.slice(0,25)+"...":e},getOffsetByPlacement(){switch(this.placement){case"top":return"bottom:calc(100% + 12px);";case"bottom":return"top:calc(100% + 12px);"}}},watch:{localdata:{immediate:!0,handler(e,t){Array.isArray(e)&&t!==e&&(this.mixinDatacomResData=e)}},valueCom(e,t){this.initDefVal()},mixinDatacomResData:{immediate:!0,handler(e){e.length&&this.initDefVal()}}},methods:{debounce(e,t=100){let a=null;return function(...i){a&&clearTimeout(a),a=setTimeout((()=>{e.apply(this,i)}),t)}},query(){this.mixinDatacomEasyGet()},onMixinDatacomPropsChange(){this.collection&&this.debounceGet()},initDefVal(){let e="";if(!this.valueCom&&0!==this.valueCom||this.isDisabled(this.valueCom)){let t;if(this.collection&&(t=this.getCache()),t||0===t)e=t;else{let t="";this.defItem>0&&this.defItem<=this.mixinDatacomResData.length&&(t=this.mixinDatacomResData[this.defItem-1].value),e=t}(e||0===e)&&this.emit(e)}else e=this.valueCom;const t=this.mixinDatacomResData.find((t=>t.value===e));this.current=t?this.formatItemName(t):""},isDisabled(e){let t=!1;return this.mixinDatacomResData.forEach((a=>{a.value===e&&(t=a.disable)})),t},clearVal(){this.emit(""),this.collection&&this.removeCache()},change(e){e.disable||(this.showSelector=!1,this.current=this.formatItemName(e),this.emit(e.value))},emit(e){this.$emit("input",e),this.$emit("update:modelValue",e),this.$emit("change",e),this.collection&&this.setCache(e)},toggleSelector(){this.disabled||(this.showSelector=!this.showSelector)},formatItemName(e){let{text:t,value:a,channel_code:i}=e;if(i=i?`(${i})`:"",this.format){let t="";t=this.format;for(let a in e)t=t.replace(new RegExp(`{${a}}`,"g"),e[a]);return t}return this.collection.indexOf("app-list")>0?`${t}(${a})`:t||`未命名${i}`},getLoadData(){return this.mixinDatacomResData},getCurrentCacheKey(){return this.collection},getCache(t=this.getCurrentCacheKey()){return(e.index.getStorageSync(this.cacheKey)||{})[t]},setCache(t,a=this.getCurrentCacheKey()){let i=e.index.getStorageSync(this.cacheKey)||{};i[a]=t,e.index.setStorageSync(this.cacheKey,i)},removeCache(t=this.getCurrentCacheKey()){let a=e.index.getStorageSync(this.cacheKey)||{};delete a[t],e.index.setStorageSync(this.cacheKey,a)}}};if(!Array){e.resolveComponent("uni-icons")()}const a=e._export_sfc(t,[["render",function(t,a,i,l,o,c){return e.e({a:i.label},i.label?{b:e.t(i.label+":")}:{},{c:o.current},o.current?{d:e.t(c.textShow)}:{e:e.t(c.typePlaceholder)},{f:o.current&&i.clear&&!i.disabled},o.current&&i.clear&&!i.disabled?{g:e.p({type:"clear",color:"#c0c4cc",size:"24"}),h:e.o(((...e)=>c.clearVal&&c.clearVal(...e)))}:{i:e.p({type:o.showSelector?"top":"bottom",size:"14",color:"#999"})},{j:e.o(((...e)=>c.toggleSelector&&c.toggleSelector(...e))),k:o.showSelector},o.showSelector?{l:e.o(((...e)=>c.toggleSelector&&c.toggleSelector(...e)))}:{},{m:o.showSelector},o.showSelector?e.e({n:e.n("bottom"==i.placement?"uni-popper__arrow_bottom":"uni-popper__arrow_top"),o:0===o.mixinDatacomResData.length},0===o.mixinDatacomResData.length?{p:e.t(i.emptyTips)}:{q:e.f(o.mixinDatacomResData,((t,a,i)=>({a:e.t(c.formatItemName(t)),b:t.disable?1:"",c:a,d:e.o((e=>c.change(t)),a)})))},{r:e.s(c.getOffsetByPlacement)}):{},{s:i.disabled?1:"",t:o.current?1:""})}]]);wx.createComponent(a); |
| 1 | +<view class="uni-stat__select"><label wx:if="{{a}}" class="uni-label-text hide-on-phone">{{b}}</label><view class="{{['uni-stat-box', t && 'uni-stat__actived']}}"><view class="{{['uni-select', s && 'uni-select--disabled']}}"><view class="uni-select__input-box" bindtap="{{j}}"><view wx:if="{{c}}" class="uni-select__input-text">{{d}}</view><view wx:else class="uni-select__input-text uni-select__input-placeholder">{{e}}</view><view wx:if="{{f}}" catchtap="{{h}}"><uni-icons wx:if="{{g}}" u-i="92e98be6-0" bind:__l="__l" u-p="{{g}}"/></view><view wx:else><uni-icons wx:if="{{i}}" u-i="92e98be6-1" bind:__l="__l" u-p="{{i}}"/></view></view><view wx:if="{{k}}" class="uni-select--mask" bindtap="{{l}}"/><view wx:if="{{m}}" class="uni-select__selector" style="{{r}}"><view class="{{n}}"></view><scroll-view scroll-y="true" class="uni-select__selector-scroll"><view wx:if="{{o}}" class="uni-select__selector-empty"><text>{{p}}</text></view><block wx:else><view wx:for="{{q}}" wx:for-item="item" wx:key="c" class="uni-select__selector-item" bindtap="{{item.d}}"><text class="{{[item.b && 'uni-select__selector__disabled']}}">{{item.a}}</text></view></block></scroll-view></view></view></view></view> |
| 1 | +@media screen and (max-width: 500px){.hide-on-phone{display:none}}.uni-stat__select{display:flex;align-items:center;width:100%;flex:1;box-sizing:border-box}.uni-stat-box,.uni-stat__actived{width:100%;flex:1}.uni-label-text{font-size:14px;font-weight:700;color:#6a6a6a;margin:auto 5px auto 0}.uni-select{font-size:14px;box-sizing:border-box;border-radius:4px;text-align:right;padding:0 5px 0 10px;position:relative;display:flex;-webkit-user-select:none;user-select:none;flex-direction:row;align-items:center;width:100%;flex:1;height:35px}.uni-select--disabled{background-color:#f5f7fa;cursor:not-allowed}.uni-select__label{font-size:16px;height:35px;padding-right:10px;color:#909399}.uni-select__input-box{height:35px;position:relative;display:flex;flex:1;flex-direction:row;align-items:center}.uni-select__input{flex:1;font-size:14px;height:22px;line-height:22px}.uni-select__input-plac{font-size:14px;color:#909399}.uni-select__selector{box-sizing:border-box;position:absolute;left:0;width:100%;background-color:#fff;border:1px solid #EBEEF5;border-radius:6px;box-shadow:0 2px 12px rgba(0,0,0,.1);z-index:3;padding:4px 0}.uni-select__selector-scroll{max-height:200px;box-sizing:border-box}.uni-select__selector-empty,.uni-select__selector-item{display:flex;cursor:pointer;line-height:35px;font-size:14px;text-align:center;padding:0 10px}.uni-select__selector-item:hover{background-color:#f9f9f9}.uni-select__selector-empty:last-child,.uni-select__selector-item:last-child{border-bottom:none}.uni-select__selector__disabled{opacity:.4;cursor:default}.uni-popper__arrow_bottom,.uni-popper__arrow_bottom:after,.uni-popper__arrow_top,.uni-popper__arrow_top:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;border-width:6px}.uni-popper__arrow_bottom{filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));top:-6px;left:10%;margin-right:3px;border-top-width:0;border-bottom-color:#ebeef5}.uni-popper__arrow_bottom:after{content:" ";top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#fff}.uni-popper__arrow_top{filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));bottom:-6px;left:10%;margin-right:3px;border-bottom-width:0;border-top-color:#ebeef5}.uni-popper__arrow_top:after{content:" ";bottom:1px;margin-left:-6px;border-bottom-width:0;border-top-color:#fff}.uni-select__input-text{width:100%;color:#333;white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis;overflow:hidden}.uni-select__input-placeholder{color:#999;font-size:28rpx}.uni-select--mask{position:fixed;top:0;bottom:0;right:0;left:0;z-index:2} |
| 1 | +"use strict";const e=require("../../libs/vue.js"),t=require("../../libs/config/props.js"),p=e.defineMixin({props:{icon:{type:String,default:()=>t.defProps.empty.icon},text:{type:String,default:()=>t.defProps.empty.text},textColor:{type:String,default:()=>t.defProps.empty.textColor},textSize:{type:[String,Number],default:()=>t.defProps.empty.textSize},iconColor:{type:String,default:()=>t.defProps.empty.iconColor},iconSize:{type:[String,Number],default:()=>t.defProps.empty.iconSize},mode:{type:String,default:()=>t.defProps.empty.mode},width:{type:[String,Number],default:()=>t.defProps.empty.width},height:{type:[String,Number],default:()=>t.defProps.empty.height},show:{type:Boolean,default:()=>t.defProps.empty.show},marginTop:{type:[String,Number],default:()=>t.defProps.empty.marginTop}}});exports.props=p; |
| 1 | +"use strict";const e=require("./props.js"),t=require("../../libs/mixin/mpMixin.js"),i=require("../../libs/mixin/mixin.js"),s=require("../../libs/function/index.js"),o=require("../../../../common/vendor.js"),n={name:"u-empty",mixins:[t.mpMixin,i.mixin,e.props],data:()=>({icons:{car:"购物车为空",page:"页面不存在",search:"没有搜索结果",address:"没有收货地址",wifi:"没有WiFi",order:"订单为空",coupon:"没有优惠券",favor:"暂无收藏",permission:"无权限",history:"无历史记录",news:"无新闻列表",message:"消息列表为空",list:"列表为空",data:"数据为空",comment:"暂无评论"}}),computed:{emptyStyle(){const e={};return e.marginTop=s.addUnit(this.marginTop),s.deepMerge(s.addStyle(this.customStyle),e)},textStyle(){const e={};return e.color=this.textColor,e.fontSize=s.addUnit(this.textSize),e},isSrc(){return this.icon.indexOf("/")>=0}},methods:{addUnit:s.addUnit}};if(!Array){o.resolveComponent("u-icon")()}Math;const r=o._export_sfc(n,[["render",function(e,t,i,s,n,r){return o.e({a:e.show},e.show?o.e({b:!r.isSrc},r.isSrc?{d:r.addUnit(e.width),e:r.addUnit(e.height),f:e.icon}:{c:o.p({name:"message"===e.mode?"chat":`empty-${e.mode}`,size:e.iconSize,color:e.iconColor,"margin-top":"14"})},{g:o.t(e.text?e.text:n.icons[e.mode]),h:o.s(r.textStyle),i:e.$slots.default||e.$slots.$default},(e.$slots.default||e.$slots.$default,{}),{j:o.s(r.emptyStyle)}):{})}],["__scopeId","data-v-bf213012"]]);wx.createComponent(r); |
| 1 | +<view wx:if="{{a}}" class="u-empty data-v-bf213012" style="{{j}}"><u-icon wx:if="{{b}}" class="data-v-bf213012" u-i="bf213012-0" bind:__l="__l" u-p="{{c}}"></u-icon><image wx:else class="data-v-bf213012" style="{{'width:' + d + ';' + ('height:' + e)}}" src="{{f}}" mode="widthFix"></image><text class="u-empty__text data-v-bf213012" style="{{h}}">{{g}}</text><view wx:if="{{i}}" class="u-empty__wrap data-v-bf213012"><slot/></view></view> |
| 1 | +.u-empty.data-v-bf213012,.u-empty__wrap.data-v-bf213012,.u-tabs.data-v-bf213012,.u-tabs__wrapper.data-v-bf213012,.u-tabs__wrapper__scroll-view-wrapper.data-v-bf213012,.u-tabs__wrapper__scroll-view.data-v-bf213012,.u-tabs__wrapper__nav.data-v-bf213012,.u-tabs__wrapper__nav__line.data-v-bf213012,.up-empty.data-v-bf213012,.up-empty__wrap.data-v-bf213012,.up-tabs.data-v-bf213012,.up-tabs__wrapper.data-v-bf213012,.up-tabs__wrapper__scroll-view-wrapper.data-v-bf213012,.up-tabs__wrapper__scroll-view.data-v-bf213012,.up-tabs__wrapper__nav.data-v-bf213012,.up-tabs__wrapper__nav__line.data-v-bf213012{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-empty.data-v-bf213012{display:flex;flex-direction:row;flex-direction:column;justify-content:center;align-items:center}.u-empty__text.data-v-bf213012,.u-slot-wrap.data-v-bf213012{display:flex;flex-direction:row;justify-content:center;align-items:center;margin-top:20rpx} |
| 1 | +"use strict";const e=require("../../libs/vue.js"),o=require("../../libs/config/props.js"),t=e.defineMixin({props:{show:{type:Boolean,default:()=>o.defProps.modal.show},title:{type:[String],default:()=>o.defProps.modal.title},content:{type:String,default:()=>o.defProps.modal.content},confirmText:{type:String,default:()=>o.defProps.modal.confirmText},cancelText:{type:String,default:()=>o.defProps.modal.cancelText},showConfirmButton:{type:Boolean,default:()=>o.defProps.modal.showConfirmButton},showCancelButton:{type:Boolean,default:()=>o.defProps.modal.showCancelButton},confirmColor:{type:String,default:()=>o.defProps.modal.confirmColor},cancelColor:{type:String,default:()=>o.defProps.modal.cancelColor},buttonReverse:{type:Boolean,default:()=>o.defProps.modal.buttonReverse},zoom:{type:Boolean,default:()=>o.defProps.modal.zoom},asyncClose:{type:Boolean,default:()=>o.defProps.modal.asyncClose},closeOnClickOverlay:{type:Boolean,default:()=>o.defProps.modal.closeOnClickOverlay},negativeTop:{type:[String,Number],default:()=>o.defProps.modal.negativeTop},width:{type:[String,Number],default:()=>o.defProps.modal.width},confirmButtonShape:{type:String,default:()=>o.defProps.modal.confirmButtonShape},contentTextAlign:{type:String,default:()=>o.defProps.modal.contentTextAlign}}});exports.props=t; |
| 1 | +"use strict";const o=require("./props.js"),n=require("../../libs/mixin/mpMixin.js"),e=require("../../libs/mixin/mixin.js"),t=require("../../libs/function/index.js"),i=require("../../../../common/vendor.js"),r={name:"u-modal",mixins:[n.mpMixin,e.mixin,o.props],data:()=>({loading:!1}),watch:{show(o){o&&this.loading&&(this.loading=!1)}},emits:["confirm","cancel","close"],methods:{addUnit:t.addUnit,confirmHandler(){this.asyncClose&&(this.loading=!0),this.$emit("confirm")},cancelHandler(){this.$emit("cancel")},clickHandler(){this.closeOnClickOverlay&&this.$emit("close")}}};if(!Array){(i.resolveComponent("u-line")+i.resolveComponent("u-loading-icon")+i.resolveComponent("u-popup"))()}Math||((()=>"../u-line/u-line.js")+(()=>"../u-loading-icon/u-loading-icon.js")+(()=>"../u-popup/u-popup.js"))();const l=i._export_sfc(r,[["render",function(o,n,e,t,r,l){return i.e({a:o.title},o.title?{b:i.t(o.title)}:{},{c:i.t(o.content),d:o.contentTextAlign,e:(o.title?12:25)+"px",f:o.$slots.confirmButton},o.$slots.confirmButton?{}:i.e({g:o.showCancelButton},o.showCancelButton?{h:i.t(o.cancelText),i:o.cancelColor,j:i.n(o.showCancelButton&&!o.showConfirmButton&&"u-modal__button-group__wrapper--only-cancel"),k:i.o(((...o)=>l.cancelHandler&&l.cancelHandler(...o)))}:{},{l:o.showConfirmButton&&o.showCancelButton},o.showConfirmButton&&o.showCancelButton?{m:i.p({direction:"column"})}:{},{n:o.showConfirmButton},o.showConfirmButton?i.e({o:r.loading},r.loading?{}:{p:i.t(o.confirmText),q:o.confirmColor},{r:i.n(!o.showCancelButton&&o.showConfirmButton&&"u-modal__button-group__wrapper--only-confirm"),s:i.o(((...o)=>l.confirmHandler&&l.confirmHandler(...o)))}):{},{t:o.buttonReverse?"row-reverse":"row"}),{v:l.addUnit(o.width),w:i.n(o.customClass),x:i.o(l.clickHandler),y:i.p({mode:"center",zoom:o.zoom,show:o.show,customStyle:{borderRadius:"6px",overflow:"hidden",marginTop:`-${l.addUnit(o.negativeTop)}`},closeOnClickOverlay:o.closeOnClickOverlay,safeAreaInsetBottom:!1,duration:400})})}],["__scopeId","data-v-c7af5116"]]);wx.createComponent(l); |
| 1 | { | 1 | { |
| 2 | "component": true, | 2 | "component": true, |
| 3 | "usingComponents": { | 3 | "usingComponents": { |
| 4 | - "u-toolbar": "../u-toolbar/u-toolbar", | 4 | + "u-line": "../u-line/u-line", |
| 5 | "u-loading-icon": "../u-loading-icon/u-loading-icon", | 5 | "u-loading-icon": "../u-loading-icon/u-loading-icon", |
| 6 | "u-popup": "../u-popup/u-popup" | 6 | "u-popup": "../u-popup/u-popup" |
| 7 | } | 7 | } |
| 1 | +<u-popup wx:if="{{y}}" u-s="{{['d']}}" class="{{['data-v-c7af5116', w]}}" bindclick="{{x}}" u-i="c7af5116-0" bind:__l="__l" u-p="{{y}}"><view class="u-modal data-v-c7af5116" style="{{'width:' + v}}"><view wx:if="{{a}}" class="u-modal__title data-v-c7af5116">{{b}}</view><view class="u-modal__content data-v-c7af5116" style="{{'padding-top:' + e}}"><block wx:if="{{$slots.d}}"><slot></slot></block><block wx:else><text class="u-modal__content__text data-v-c7af5116" style="{{'text-align:' + d}}">{{c}}</text></block></view><view wx:if="{{f}}" class="u-modal__button-group--confirm-button data-v-c7af5116"><slot name="confirmButton"></slot></view><block wx:else><u-line class="data-v-c7af5116" u-i="c7af5116-1,c7af5116-0" bind:__l="__l"></u-line><view class="u-modal__button-group data-v-c7af5116" style="{{'flex-direction:' + t}}"><view wx:if="{{g}}" hover-stay-time="{{150}}" hover-class="u-modal__button-group__wrapper--hover" class="{{['u-modal__button-group__wrapper', 'u-modal__button-group__wrapper--cancel', 'data-v-c7af5116', j]}}" bindtap="{{k}}"><text class="u-modal__button-group__wrapper__text data-v-c7af5116" style="{{'color:' + i}}">{{h}}</text></view><u-line wx:if="{{l}}" class="data-v-c7af5116" u-i="c7af5116-2,c7af5116-0" bind:__l="__l" u-p="{{m}}"></u-line><view wx:if="{{n}}" hover-stay-time="{{150}}" hover-class="u-modal__button-group__wrapper--hover" class="{{['u-modal__button-group__wrapper', 'u-modal__button-group__wrapper--confirm', 'data-v-c7af5116', r]}}" bindtap="{{s}}"><u-loading-icon wx:if="{{o}}" class="data-v-c7af5116" u-i="c7af5116-3,c7af5116-0" bind:__l="__l"></u-loading-icon><text wx:else class="u-modal__button-group__wrapper__text data-v-c7af5116" style="{{'color:' + q}}">{{p}}</text></view></view></block></view></u-popup> |
| 1 | +.u-empty.data-v-c7af5116,.u-empty__wrap.data-v-c7af5116,.u-tabs.data-v-c7af5116,.u-tabs__wrapper.data-v-c7af5116,.u-tabs__wrapper__scroll-view-wrapper.data-v-c7af5116,.u-tabs__wrapper__scroll-view.data-v-c7af5116,.u-tabs__wrapper__nav.data-v-c7af5116,.u-tabs__wrapper__nav__line.data-v-c7af5116,.up-empty.data-v-c7af5116,.up-empty__wrap.data-v-c7af5116,.up-tabs.data-v-c7af5116,.up-tabs__wrapper.data-v-c7af5116,.up-tabs__wrapper__scroll-view-wrapper.data-v-c7af5116,.up-tabs__wrapper__scroll-view.data-v-c7af5116,.up-tabs__wrapper__nav.data-v-c7af5116,.up-tabs__wrapper__nav__line.data-v-c7af5116{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-modal.data-v-c7af5116{width:650rpx;border-radius:6px;overflow:hidden}.u-modal__title.data-v-c7af5116{display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:16px;font-weight:700;color:#606266;text-align:center;padding-top:25px}.u-modal__content.data-v-c7af5116{padding:12px 25px 25px;display:flex;flex-direction:row;justify-content:center}.u-modal__content__text.data-v-c7af5116{font-size:15px;color:#606266;flex:1}.u-modal__button-group.data-v-c7af5116{display:flex;flex-direction:row}.u-modal__button-group--confirm-button.data-v-c7af5116{flex-direction:column;padding:0 25px 15px}.u-modal__button-group__wrapper.data-v-c7af5116{flex:1;display:flex;flex-direction:row;justify-content:center;align-items:center;height:48px}.u-modal__button-group__wrapper--confirm.data-v-c7af5116,.u-modal__button-group__wrapper--only-cancel.data-v-c7af5116{border-bottom-right-radius:6px}.u-modal__button-group__wrapper--cancel.data-v-c7af5116,.u-modal__button-group__wrapper--only-confirm.data-v-c7af5116{border-bottom-left-radius:6px}.u-modal__button-group__wrapper--hover.data-v-c7af5116{background-color:#f3f4f6}.u-modal__button-group__wrapper__text.data-v-c7af5116{color:#606266;font-size:16px;text-align:center} |
-
请 注册 或 登录 后发表评论