@ -0,0 +1,17 @@
|
||||
<script> |
||||
export default { |
||||
onLaunch: function() { |
||||
console.log('App Launch') |
||||
}, |
||||
onShow: function() { |
||||
console.log('App Show') |
||||
}, |
||||
onHide: function() { |
||||
console.log('App Hide') |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<style> |
||||
/*每个页面公共css */ |
||||
</style> |
@ -0,0 +1,2 @@
|
||||
const host='https://www.junyizaojia.com/api' |
||||
export {host} |
@ -0,0 +1,36 @@
|
||||
import request from "@/utils/request.js"; |
||||
import { host } from './config.js' |
||||
|
||||
/** |
||||
* 获取配置文件 |
||||
* @param {Object} data |
||||
*/ |
||||
export function getconfig(data) { |
||||
return request({ |
||||
url: `${host}/get-config`, |
||||
method: "get", |
||||
data |
||||
}); |
||||
} |
||||
/** |
||||
* 发送验证码 |
||||
* @param {Object} data |
||||
*/ |
||||
export function sendcode(data) { |
||||
return request({ |
||||
url: `${host}/send-code`, |
||||
method: "post", |
||||
data |
||||
}); |
||||
} |
||||
/** |
||||
* 咨询接口 |
||||
* @param {Object} data |
||||
*/ |
||||
export function consultingservice(data) { |
||||
return request({ |
||||
url: `${host}/consulting-service`, |
||||
method: "post", |
||||
data |
||||
}); |
||||
} |
@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html> |
||||
<html lang="en"> |
||||
<head> |
||||
<meta charset="UTF-8" /> |
||||
<script> |
||||
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || |
||||
CSS.supports('top: constant(a)')) |
||||
document.write( |
||||
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + |
||||
(coverSupport ? ', viewport-fit=cover' : '') + '" />') |
||||
</script> |
||||
<title></title> |
||||
<!--preload-links--> |
||||
<!--app-context--> |
||||
</head> |
||||
<body> |
||||
<div id="app"><!--app-html--></div> |
||||
<script type="module" src="/main.js"></script> |
||||
</body> |
||||
</html> |
@ -0,0 +1,21 @@
|
||||
import App from './App' |
||||
|
||||
// #ifndef VUE3
|
||||
import Vue from 'vue' |
||||
Vue.config.productionTip = false |
||||
App.mpType = 'app' |
||||
const app = new Vue({ |
||||
...App |
||||
}) |
||||
app.$mount() |
||||
// #endif
|
||||
|
||||
// #ifdef VUE3
|
||||
import { createSSRApp } from 'vue' |
||||
export function createApp() { |
||||
const app = createSSRApp(App) |
||||
return { |
||||
app |
||||
} |
||||
} |
||||
// #endif
|
@ -0,0 +1,72 @@
|
||||
{ |
||||
"name" : "izhaojia", |
||||
"appid" : "__UNI__504A9E1", |
||||
"description" : "", |
||||
"versionName" : "1.0.0", |
||||
"versionCode" : "100", |
||||
"transformPx" : false, |
||||
/* 5+App特有相关 */ |
||||
"app-plus" : { |
||||
"usingComponents" : true, |
||||
"nvueStyleCompiler" : "uni-app", |
||||
"compilerVersion" : 3, |
||||
"splashscreen" : { |
||||
"alwaysShowBeforeRender" : true, |
||||
"waiting" : true, |
||||
"autoclose" : true, |
||||
"delay" : 0 |
||||
}, |
||||
/* 模块配置 */ |
||||
"modules" : {}, |
||||
/* 应用发布信息 */ |
||||
"distribute" : { |
||||
/* android打包配置 */ |
||||
"android" : { |
||||
"permissions" : [ |
||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", |
||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", |
||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>", |
||||
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>", |
||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", |
||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", |
||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", |
||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>", |
||||
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", |
||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", |
||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>", |
||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", |
||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", |
||||
"<uses-feature android:name=\"android.hardware.camera\"/>", |
||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" |
||||
] |
||||
}, |
||||
/* ios打包配置 */ |
||||
"ios" : {}, |
||||
/* SDK配置 */ |
||||
"sdkConfigs" : {} |
||||
} |
||||
}, |
||||
/* 快应用特有相关 */ |
||||
"quickapp" : {}, |
||||
/* 小程序特有相关 */ |
||||
"mp-weixin" : { |
||||
"appid" : "", |
||||
"setting" : { |
||||
"urlCheck" : false |
||||
}, |
||||
"usingComponents" : true |
||||
}, |
||||
"mp-alipay" : { |
||||
"usingComponents" : true |
||||
}, |
||||
"mp-baidu" : { |
||||
"usingComponents" : true |
||||
}, |
||||
"mp-toutiao" : { |
||||
"usingComponents" : true |
||||
}, |
||||
"uniStatistics" : { |
||||
"enable" : false |
||||
}, |
||||
"vueVersion" : "3" |
||||
} |
@ -0,0 +1,18 @@
|
||||
{ |
||||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages |
||||
{ |
||||
"path": "pages/index/index", |
||||
"style": { |
||||
"navigationBarTitleText": "i造价", |
||||
"navigationStyle": "custom" |
||||
} |
||||
} |
||||
], |
||||
"globalStyle": { |
||||
"navigationBarTextStyle": "black", |
||||
"navigationBarTitleText": "uni-app", |
||||
"navigationBarBackgroundColor": "#F8F8F8", |
||||
"backgroundColor": "#F8F8F8" |
||||
}, |
||||
"uniIdRouter": {} |
||||
} |
@ -0,0 +1,192 @@
|
||||
<template> |
||||
<image class="topimg" mode="widthFix" src="../../static/logo1.png"></image> |
||||
<view class="maxbox"> |
||||
<view class="xianbox"> |
||||
<view class="titl">项目类型</view> |
||||
<picker @change="xzlx" range-key="name" :range="list"> |
||||
<view class="input">{{xzlistval==-1?'请选择项目类型':list[xzlistval]}}</view> |
||||
</picker> |
||||
<view class="titl">总建筑面积</view> |
||||
<view class="shurukbox"> |
||||
<input v-model="area" placeholder="请输入总建筑面积(平米)"/> |
||||
</view> |
||||
<view class="titl">联系方式</view> |
||||
<view class="shurukbox"> |
||||
<input v-model="phone" placeholder="请输入您的手机号"/> |
||||
</view> |
||||
<view class="titl">验证码</view> |
||||
<view class="shurukbox"> |
||||
<input v-model="code" placeholder="请输入验证码"/> |
||||
<view @click="huoqu">{{hqyzm}}</view> |
||||
</view> |
||||
<view class="xian"></view> |
||||
<view class="wtyx" @click="fasonwt">发送委托意向</view> |
||||
<view class="tis">提示:请确认您发布的是非测试项目,提交后项目经理会致电给您确认项目信息。</view> |
||||
</view> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
import { getconfig,sendcode,consultingservice } from '@/api/user.js' |
||||
import { reactive, toRefs } from "vue" |
||||
export default { |
||||
setup(){ |
||||
let details=reactive({ |
||||
list:[], |
||||
xzlistval:-1, |
||||
hqyzm:'获取验证码', |
||||
area:'', |
||||
phone:'', |
||||
code:'' |
||||
}) |
||||
getconfig({config:'projectType'}).then(res=>{ |
||||
console.log(res.data); |
||||
details.list=res.data |
||||
}) |
||||
function xzlx(e){ |
||||
details.xzlistval=e.detail.value |
||||
} |
||||
function huoqu(){ |
||||
let test=/^1[3-9][0-9]{9}$/ |
||||
if(!test.test(details.phone)){ |
||||
uni.showToast({ |
||||
title:'请正确输入手机号', |
||||
icon:'none' |
||||
}) |
||||
return |
||||
} |
||||
sendcode({phone:details.phone}).then(res=>{ |
||||
if(res.code==200){ |
||||
details.hqyzm=60 |
||||
let daojs=setInterval(()=>{ |
||||
if(details.hqyzm==0){ |
||||
details.hqyzm='获取验证码' |
||||
clearInterval(daojs) |
||||
return |
||||
} |
||||
details.hqyzm-- |
||||
},1000) |
||||
} |
||||
}) |
||||
} |
||||
function fasonwt(){ |
||||
if(details.area==''||details.xzlistval==-1||details.code==''){ |
||||
uni.showToast({ |
||||
title:'请确认已经全部填写完成', |
||||
icon:'none' |
||||
}) |
||||
return |
||||
} |
||||
let test=/^1[3-9][0-9]{9}$/ |
||||
if(!test.test(details.phone)){ |
||||
uni.showToast({ |
||||
title:'请正确输入手机号', |
||||
icon:'none' |
||||
}) |
||||
return |
||||
} |
||||
let data={ |
||||
phone:details.phone, |
||||
area:details.area, |
||||
project_type:details.list[details.xzlistval], |
||||
code:details.code |
||||
} |
||||
consultingservice(data).then(res=>{ |
||||
if(res.code==200){ |
||||
uni.showToast({ |
||||
title:'提交成功', |
||||
icon:'none' |
||||
}) |
||||
}else{ |
||||
uni.showToast({ |
||||
title:res.msg, |
||||
icon:'none' |
||||
}) |
||||
} |
||||
}) |
||||
} |
||||
return { |
||||
fasonwt, |
||||
huoqu, |
||||
xzlx, |
||||
...toRefs(details) |
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<style lang="scss"> |
||||
// page{ |
||||
// background-color: #c1c1c1; |
||||
// } |
||||
.tis{ |
||||
padding: 30upx; |
||||
color: #666; |
||||
font-size: 24upx; |
||||
} |
||||
.xian{ |
||||
width: 680upx; |
||||
height: 1upx; |
||||
// background-color:rgba(0,0,0,0.1); |
||||
margin-top: 20upx; |
||||
margin-bottom: 50upx; |
||||
} |
||||
.wtyx{ |
||||
width: 560upx; |
||||
padding: 20upx; |
||||
box-sizing: border-box; |
||||
margin: auto; |
||||
text-align: center; |
||||
background-color: #F06746; |
||||
margin-top: 20upx; |
||||
color: #ffffff; |
||||
border-radius: 10upx; |
||||
} |
||||
.topimg{ |
||||
width: 100%; |
||||
} |
||||
.maxbox{ |
||||
width: 100%; |
||||
height: 600upx; |
||||
background-image: url('../../static/beijin.png'); |
||||
background-repeat: no-repeat; |
||||
background-size: 100% 100%; |
||||
padding-top: 300upx; |
||||
} |
||||
.xianbox{ |
||||
width: 680upx; |
||||
// padding: 30upx; |
||||
box-sizing: border-box; |
||||
background-color: #ffffff; |
||||
margin: auto; |
||||
border-radius: 20upx; |
||||
// margin-top: 100upx; |
||||
padding-bottom: 20upx; |
||||
>.titl{ |
||||
font-size: 32upx; |
||||
// margin-bottom: 40upx; |
||||
padding:30upx 30upx; |
||||
padding-bottom: 15upx; |
||||
} |
||||
.input{ |
||||
font-size: 29upx; |
||||
padding:20upx 30upx; |
||||
padding-bottom: 15upx; |
||||
} |
||||
>.shurukbox{ |
||||
padding: 20upx 30upx; |
||||
padding-bottom: 15upx; |
||||
display: flex; |
||||
align-items: center; |
||||
justify-content: space-between; |
||||
>input{ |
||||
flex: 1; |
||||
} |
||||
>view{ |
||||
color: #DC4732; |
||||
font-size: 30upx; |
||||
font-weight: bold; |
||||
} |
||||
} |
||||
} |
||||
</style> |
After Width: | Height: | Size: 268 KiB |
After Width: | Height: | Size: 81 KiB |
After Width: | Height: | Size: 82 KiB |
@ -0,0 +1,76 @@
|
||||
/** |
||||
* 这里是uni-app内置的常用样式变量 |
||||
* |
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 |
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App |
||||
* |
||||
*/ |
||||
|
||||
/** |
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 |
||||
* |
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 |
||||
*/ |
||||
|
||||
/* 颜色变量 */ |
||||
|
||||
/* 行为相关颜色 */ |
||||
$uni-color-primary: #007aff; |
||||
$uni-color-success: #4cd964; |
||||
$uni-color-warning: #f0ad4e; |
||||
$uni-color-error: #dd524d; |
||||
|
||||
/* 文字基本颜色 */ |
||||
$uni-text-color:#333;//基本色 |
||||
$uni-text-color-inverse:#fff;//反色 |
||||
$uni-text-color-grey:#999;//辅助灰色,如加载更多的提示信息 |
||||
$uni-text-color-placeholder: #808080; |
||||
$uni-text-color-disable:#c0c0c0; |
||||
|
||||
/* 背景颜色 */ |
||||
$uni-bg-color:#ffffff; |
||||
$uni-bg-color-grey:#f8f8f8; |
||||
$uni-bg-color-hover:#f1f1f1;//点击状态颜色 |
||||
$uni-bg-color-mask:rgba(0, 0, 0, 0.4);//遮罩颜色 |
||||
|
||||
/* 边框颜色 */ |
||||
$uni-border-color:#c8c7cc; |
||||
|
||||
/* 尺寸变量 */ |
||||
|
||||
/* 文字尺寸 */ |
||||
$uni-font-size-sm:12px; |
||||
$uni-font-size-base:14px; |
||||
$uni-font-size-lg:16; |
||||
|
||||
/* 图片尺寸 */ |
||||
$uni-img-size-sm:20px; |
||||
$uni-img-size-base:26px; |
||||
$uni-img-size-lg:40px; |
||||
|
||||
/* Border Radius */ |
||||
$uni-border-radius-sm: 2px; |
||||
$uni-border-radius-base: 3px; |
||||
$uni-border-radius-lg: 6px; |
||||
$uni-border-radius-circle: 50%; |
||||
|
||||
/* 水平间距 */ |
||||
$uni-spacing-row-sm: 5px; |
||||
$uni-spacing-row-base: 10px; |
||||
$uni-spacing-row-lg: 15px; |
||||
|
||||
/* 垂直间距 */ |
||||
$uni-spacing-col-sm: 4px; |
||||
$uni-spacing-col-base: 8px; |
||||
$uni-spacing-col-lg: 12px; |
||||
|
||||
/* 透明度 */ |
||||
$uni-opacity-disabled: 0.3; // 组件禁用态的透明度 |
||||
|
||||
/* 文章场景相关 */ |
||||
$uni-color-title: #2C405A; // 文章标题颜色 |
||||
$uni-font-size-title:20px; |
||||
$uni-color-subtitle: #555555; // 二级标题颜色 |
||||
$uni-font-size-subtitle:26px; |
||||
$uni-color-paragraph: #3F536E; // 文章段落颜色 |
||||
$uni-font-size-paragraph:15px; |
After Width: | Height: | Size: 268 KiB |
@ -0,0 +1 @@
|
||||
*{margin:0;-webkit-tap-highlight-color:transparent}html,body{-webkit-user-select:none;user-select:none;width:100%;height:100%}body{overflow-x:hidden;font-size:16px}uni-app,uni-page,uni-page-wrapper,uni-page-body{display:block;box-sizing:border-box;width:100%}uni-page-wrapper{position:relative}#app,uni-app,uni-page,uni-page-wrapper{height:100%}.uni-mask{position:fixed;z-index:999;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.5)}.uni-fade-enter-active,.uni-fade-leave-active{transition-duration:.25s;transition-property:opacity;transition-timing-function:ease}.uni-fade-enter-from,.uni-fade-leave-active{opacity:0}.uni-loading,uni-button[loading]:before{background-color:transparent;background-image:url(data:image/svg+xml;base64,\ PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=);background-repeat:no-repeat}.uni-loading{width:20px;height:20px;display:inline-block;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}@keyframes uni-loading{0%{transform:rotate3d(0,0,1,0)}to{transform:rotate3d(0,0,1,360deg)}}body:after{position:fixed;content:"";left:-1000px;top:-1000px;animation:shadow-preload .1s;animation-delay:3s}@keyframes shadow-preload{0%{background-image:url(https://cdn.dcloud.net.cn/img/shadow-grey.png)}to{background-image:url(https://cdn.dcloud.net.cn/img/shadow-grey.png)}}.uni-async-error{position:absolute;left:0;right:0;top:0;bottom:0;color:#999;padding:100px 10px;text-align:center}.uni-async-loading{box-sizing:border-box;width:100%;padding:50px;text-align:center}.uni-async-loading .uni-loading{width:30px;height:30px} |
@ -0,0 +1 @@
|
||||
.tis[data-v-2ea6af96]{padding:.9375rem;color:#666;font-size:.75rem}.xian[data-v-2ea6af96]{width:21.25rem;height:.03125rem;margin-top:.625rem;margin-bottom:1.5625rem}.wtyx[data-v-2ea6af96]{width:17.5rem;padding:.625rem;box-sizing:border-box;margin:auto;text-align:center;background-color:#f06746;margin-top:.625rem;color:#fff;border-radius:.3125rem}.topimg[data-v-2ea6af96]{width:100%}.maxbox[data-v-2ea6af96]{width:100%;height:18.75rem;background-image:url(/assets/beijin.8e586e42.png);background-repeat:no-repeat;background-size:100% 100%;padding-top:9.375rem}.xianbox[data-v-2ea6af96]{width:21.25rem;box-sizing:border-box;background-color:#fff;margin:auto;border-radius:.625rem;padding-bottom:.625rem}.xianbox>.titl[data-v-2ea6af96]{font-size:1rem;padding:.9375rem .9375rem .46875rem}.xianbox .input[data-v-2ea6af96]{font-size:.90625rem;padding:.625rem .9375rem .46875rem}.xianbox>.shurukbox[data-v-2ea6af96]{padding:.625rem .9375rem .46875rem;display:flex;align-items:center;justify-content:space-between}.xianbox>.shurukbox>uni-input[data-v-2ea6af96]{flex:1}.xianbox>.shurukbox>uni-view[data-v-2ea6af96]{color:#dc4732;font-size:.9375rem;font-weight:700} |
After Width: | Height: | Size: 81 KiB |
@ -0,0 +1 @@
|
||||
var e=Object.defineProperty,a=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,o=(a,t,l)=>t in a?e(a,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):a[t]=l;import{g as n,r as s,s as c,a as r,n as i,b as u,t as d,o as f,c as p,d as h,w as m,e as g,f as x,F as v,h as y,i as _,j as b,k as z,I as k}from"./index.96de83fc.js";var w=e=>new Promise(((a,t)=>{!function t(){let l="";e.isfa&&(l="Bearer "+n("token")),s({url:e.url,data:e.data,method:e.method,dataType:"json",header:{Accept:"application/json",Authorization:l}}).then((e=>{let l=e.data;switch(l.code){case 200:case 500:default:a(l);break;case 1002:r({title:"提示",content:"您还未登录,是否前往登录?",success:function(e){e.confirm?i({url:"/pages/login/login"}):e.cancel&&console.log("用户点击取消")}});break;case 1e3:c("token",l.data.token),t()}}))}()}));const j="https://www.junyizaojia.com/api";var V=((e,a)=>{const t=e.__vccOpts||e;for(const[l,o]of a)t[l]=o;return t})({setup(){let e=u({list:[],xzlistval:-1,hqyzm:"获取验证码",area:"",phone:"",code:""});var n;return(n={config:"projectType"},w({url:`${j}/get-config`,method:"get",data:n})).then((a=>{console.log(a.data),e.list=a.data})),((e,n)=>{for(var s in n||(n={}))t.call(n,s)&&o(e,s,n[s]);if(a)for(var s of a(n))l.call(n,s)&&o(e,s,n[s]);return e})({fasonwt:function(){if(""==e.area||-1==e.xzlistval||""==e.code)return void y({title:"请确认已经全部填写完成",icon:"none"});/^1[3-9][0-9]{9}$/.test(e.phone)?function(e){return w({url:`${j}/consulting-service`,method:"post",data:e})}({phone:e.phone,area:e.area,project_type:e.list[e.xzlistval],code:e.code}).then((e=>{200==e.code?y({title:"提交成功",icon:"none"}):y({title:e.msg,icon:"none"})})):y({title:"请正确输入手机号",icon:"none"})},huoqu:function(){/^1[3-9][0-9]{9}$/.test(e.phone)?function(e){return w({url:`${j}/send-code`,method:"post",data:e})}({phone:e.phone}).then((a=>{if(200==a.code){e.hqyzm=60;let a=setInterval((()=>{if(0==e.hqyzm)return e.hqyzm="获取验证码",void clearInterval(a);e.hqyzm--}),1e3)}})):y({title:"请正确输入手机号",icon:"none"})},xzlx:function(a){e.xzlistval=a.detail.value}},d(e))}},[["render",function(e,a,t,l,o,n){const s=_,c=b,r=z,i=k;return f(),p(v,null,[h(s,{class:"topimg",mode:"widthFix",src:"/assets/logo1.ecaad285.png"}),h(c,{class:"maxbox"},{default:m((()=>[h(c,{class:"xianbox"},{default:m((()=>[h(c,{class:"titl"},{default:m((()=>[g("项目类型")])),_:1}),h(r,{onChange:l.xzlx,"range-key":"name",range:e.list},{default:m((()=>[h(c,{class:"input"},{default:m((()=>[g(x(-1==e.xzlistval?"请选择项目类型":e.list[e.xzlistval]),1)])),_:1})])),_:1},8,["onChange","range"]),h(c,{class:"titl"},{default:m((()=>[g("总建筑面积")])),_:1}),h(c,{class:"shurukbox"},{default:m((()=>[h(i,{modelValue:e.area,"onUpdate:modelValue":a[0]||(a[0]=a=>e.area=a),placeholder:"请输入总建筑面积(平米)"},null,8,["modelValue"])])),_:1}),h(c,{class:"titl"},{default:m((()=>[g("联系方式")])),_:1}),h(c,{class:"shurukbox"},{default:m((()=>[h(i,{modelValue:e.phone,"onUpdate:modelValue":a[1]||(a[1]=a=>e.phone=a),placeholder:"请输入您的手机号"},null,8,["modelValue"])])),_:1}),h(c,{class:"titl"},{default:m((()=>[g("验证码")])),_:1}),h(c,{class:"shurukbox"},{default:m((()=>[h(i,{modelValue:e.code,"onUpdate:modelValue":a[2]||(a[2]=a=>e.code=a),placeholder:"请输入验证码"},null,8,["modelValue"]),h(c,{onClick:l.huoqu},{default:m((()=>[g(x(e.hqyzm),1)])),_:1},8,["onClick"])])),_:1}),h(c,{class:"xian"}),h(c,{class:"wtyx",onClick:l.fasonwt},{default:m((()=>[g("发送委托意向")])),_:1},8,["onClick"]),h(c,{class:"tis"},{default:m((()=>[g("提示:请确认您发布的是非测试项目,提交后项目经理会致电给您确认项目信息。")])),_:1})])),_:1})])),_:1})],64)}],["__scopeId","data-v-2ea6af96"]]);export{V as default}; |
@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html> |
||||
<html lang="en"> |
||||
<head> |
||||
<link rel="stylesheet" href="/assets/uni.6bfc2bea.css"> |
||||
|
||||
<meta charset="UTF-8" /> |
||||
<script> |
||||
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || |
||||
CSS.supports('top: constant(a)')) |
||||
document.write( |
||||
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + |
||||
(coverSupport ? ', viewport-fit=cover' : '') + '" />') |
||||
</script> |
||||
<title>izhaojia</title> |
||||
<!--preload-links--> |
||||
<!--app-context--> |
||||
<script type="module" crossorigin src="/assets/index.96de83fc.js"></script> |
||||
<link rel="stylesheet" href="/assets/index.13d2da89.css"> |
||||
</head> |
||||
<body> |
||||
<div id="app"><!--app-html--></div> |
||||
|
||||
</body> |
||||
</html> |
After Width: | Height: | Size: 268 KiB |
After Width: | Height: | Size: 81 KiB |
After Width: | Height: | Size: 82 KiB |
@ -0,0 +1,57 @@
|
||||
export default (params) => { |
||||
return new Promise((relove, reject) => { |
||||
function qinqiu(){ |
||||
let token = '' |
||||
if(params.isfa){ |
||||
token = 'Bearer '+ uni.getStorageSync('token'); |
||||
} |
||||
uni.request({ |
||||
url: params.url, |
||||
data: params.data, |
||||
method: params.method, |
||||
dataType: "json", |
||||
header: { |
||||
// "content-type": "application/json",
|
||||
"Accept": "application/json", |
||||
Authorization:token |
||||
} |
||||
}).then(res => { |
||||
// console.log(res);
|
||||
let data = res.data; |
||||
// console.log(data.code);
|
||||
switch (data.code) { |
||||
case 200: |
||||
relove(data); |
||||
break; |
||||
case 1002: |
||||
uni.showModal({ |
||||
title: '提示', |
||||
content: '您还未登录,是否前往登录?', |
||||
success: function (res) { |
||||
if (res.confirm) { |
||||
uni.navigateTo({ |
||||
url: '/pages/login/login' |
||||
}) |
||||
} else if (res.cancel) { |
||||
console.log('用户点击取消'); |
||||
} |
||||
} |
||||
}); |
||||
|
||||
break; |
||||
case 500: |
||||
relove(data); |
||||
break; |
||||
case 1000: |
||||
uni.setStorageSync('token',data.data.token) |
||||
qinqiu(); |
||||
break; |
||||
default: |
||||
relove(data) |
||||
break |
||||
} |
||||
}); |
||||
} |
||||
qinqiu() |
||||
}) |
||||
} |