diff --git a/src/api/service/service.js b/src/api/service/service.js
new file mode 100644
index 0000000..99964e5
--- /dev/null
+++ b/src/api/service/service.js
@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 1 获取列表
+export function queryInsuranceCompanyList(params) {
+ return request({
+ url: 'insuranceCompany/queryInsuranceCompanyList',
+ method: 'post',
+ data: params
+ })
+}
+
+// 1 详情
+export function queryInsuranceCompanyInfo(params) {
+ return request({
+ url: 'insuranceCompany/queryInsuranceCompanyInfo',
+ method: 'post',
+ data: params
+ })
+}
+
+
+// 1 保存手机
+export function saveInsuranceCompanyInfo(params) {
+ return request({
+ url: 'insuranceCompany/saveInsuranceCompanyInfo',
+ method: 'post',
+ data: params
+ })
+}
+
+
+// 获取美食店铺列表
+export function queryInsuranceShopList(params) {
+ return request({
+ url: 'insuranceShop/queryInsuranceShopList',
+ method: 'post',
+ data: params
+ })
+}
+
+
+// 获取美食店铺详情
+export function queryInsuranceShopInfo (params) {
+ return request({
+ url: 'insuranceShop/queryInsuranceShopInfo ',
+ method: 'post',
+ data: params
+ })
+}
+
+
+
+
diff --git a/src/assets/images/service/foodIcon.png b/src/assets/images/service/foodIcon.png
new file mode 100644
index 0000000..edc61fb
--- /dev/null
+++ b/src/assets/images/service/foodIcon.png
diff --git a/src/router/index.js b/src/router/index.js
index 502df0c..5dcef21 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -276,6 +276,18 @@ export default new Router({
},
{
+ path: '/foodService',
+ name: 'foodService',
+ component: () => import("@/views/service/foodService.vue"),
+ meta:{
+ title:'周边美食'
+ }
+ },
+
+
+
+
+ {
path: '/insureDetail',
name: 'insureDetail',
component: () => import("@/views/service/insureDetail.vue"),
diff --git a/src/utils/request.js b/src/utils/request.js
index a858551..d14141a 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -5,7 +5,7 @@ import axios from 'axios'
const service = axios.create({
// http://dev.renniting.cn/pay/ 赤峰测试
// http://pay.service.renniting.cn/ 赤峰
- baseURL: 'http://pay.service.renniting.cn/', // url = base url + request url
+ baseURL: 'http://test.renniting.cn/pay/', // url = base url + request url
// withCredentials: true, // send cookies when cross-domain requests
timeout: 6000 // request timeout
})
diff --git a/src/utils/utils.js b/src/utils/utils.js
index 58f14e7..d73e44e 100644
--- a/src/utils/utils.js
+++ b/src/utils/utils.js
@@ -1,4 +1,5 @@
import md5 from "./md5.min.js";
+import { Toast } from 'mint-ui';
export default {
myCommonSalt: function(val) { // 获取盐值
let len = parseInt(val);
@@ -11,6 +12,21 @@ export default {
console.log(pwd);
return pwd;
},
+
+ testPhone : (resPhone) => {
+ console.log(resPhone, "resPhone")
+ const reg = /^1[3|4|5|7|8|9][0-9]d{8}$/;
+ if (resPhone == "" || resPhone == undefined || resPhone == null || resPhone.length == 0) {
+ Toast("手机号不能为空");
+ return false
+ } else if (reg.test(resPhone)) {
+ Toast("正确");
+ return true
+ } else {
+ Toast("手机号格式不正确");
+ return false
+ }
+ },
formatDate: function(secs, type = 0) { //type是可选参数,因为json中时间的格式是year-month-date,不能识别XX年XX月XX日
var t = new Date(secs);
var year = t.getFullYear();
diff --git a/src/views/service/foodService.vue b/src/views/service/foodService.vue
new file mode 100644
index 0000000..ff5df6f
--- /dev/null
+++ b/src/views/service/foodService.vue
@@ -0,0 +1,249 @@
+
+
+ {{i.shopName}}
+
+ 营业时间:{{i.workTime}}
+
+
+ 联系电话:{{i.contactTel}}
+
+
+ 位置:{{i.shopAddress}}
+
+
+ {{i.serviceFeatures}}
+
+ 暂无数据
+
+
+
+
+
+
- 大家财险黄石中心支公司 + {{i.companyName}}
-- 营业时间:08:00-18:00 +
+ 营业时间:{{i.workTime}}
- 热线电话:95569 + 热线电话:{{i.reportTel}}
- 位置: 黄石港区杭州路19号儿童公园加油站旁
-
-
-
+ 位置:{{i.companyAddress}}
+
+
+
- 服务范围:车险,意外险 -
+ + +
- 专业贴膜
-
+ {{i.mainBusines}}
+
+
查看详情
@@ -98,16 +98,15 @@
-
-
-
-
-
暂无数据