diff --git a/common/http.interceptor.js b/common/http.interceptor.js index c8c80c1..ac555e4 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -19,13 +19,13 @@ const install = (Vue, vm) => { // }, // }); - uni.setStorageSync('deptId', 100); + uni.setStorageSync('deptId', 101); Vue.prototype.$u.http.setConfig({ // baseUrl: 'http://61.174.243.28:15861', // baseUrl: 'http://192.168.2.14:8080', // baseUrl: 'http://124.221.246.124:2289', - // baseUrl: 'https://dianche.chuantewulian.cn/prod-api', - baseUrl: 'https://dche.ccttiot.com/prod-api', + baseUrl: 'https://dianche.chuantewulian.cn/prod-api', + // baseUrl: 'https://dche.ccttiot.com/prod-api', loadingText: '努力加载中~', // loadingTime: 2000, // 设置自定义头部content-type diff --git a/manifest.json b/manifest.json index cad1f86..8d15cb5 100644 --- a/manifest.json +++ b/manifest.json @@ -51,7 +51,7 @@ /* 小程序特有相关 */ "mp-weixin" : { "libVersion" : "latest", - "appid" : "wx3428c498d5061192", + "appid" : "wx4d178f8c80348214", "setting" : { "urlCheck" : false }, diff --git a/page_user/khfw/khfw.vue b/page_user/khfw/khfw.vue index 8a88aec..2060ea0 100644 --- a/page_user/khfw/khfw.vue +++ b/page_user/khfw/khfw.vue @@ -24,11 +24,52 @@ - + - 电话咨询:{{areaInfo.servicePhone}} + 电话咨询 + + + + 联系电话 + + + + + {{areaInfo.serviceName1}} + + + {{areaInfo.servicePhone1}} + + + + + {{areaInfo.serviceName2}} + + + {{areaInfo.servicePhone2}} + + + + + {{areaInfo.serviceName3}} + + + {{areaInfo.servicePhone3}} + + + + + + 取消 + + + + + @@ -42,7 +83,8 @@ areaInfo: {}, tabindex:0, classlist:[], - wordlist:[] + wordlist:[], + isbackcar:false } }, onShow() { @@ -121,7 +163,8 @@ if (res.code == 200) { this.areaInfo = res.data - + // this.areaInfo.serviceName1='陶旭旭' + // this.areaInfo.servicePhone1='17795402553' } else { // uni.showToast({ // title: res.msg, @@ -177,9 +220,10 @@ } }); }, - callPhone(){ + callPhone(phone){ + this.isbackcar=false uni.makePhoneCall({ - phoneNumber:this.areaInfo.servicePhone + phoneNumber:phone }) } } @@ -193,6 +237,190 @@ .page { width: 750rpx; + .pops { + padding: 46rpx 36rpx; + position: fixed; + top: 400rpx; + left: 74rpx; + width: 604rpx; + // height: 606rpx; + background: #fff; + border-radius: 20rpx 20rpx 20rpx 20rpx; + z-index: 110; + + .close { + position: absolute; + left: 266rpx; + bottom: -100rpx; + + image { + width: 80rpx; + height: 80rpx; + } + } + + .loading_box { + width: 100%; + // height: 200rpx; + display: flex; + align-items: center; + justify-content: center; + + image { + width: 336rpx; + height: 154rpx; + } + + // .loader { + // width: 120rpx; + // aspect-ratio: 1; + // border-radius: 50%; + // clip-path: inset(-360rpx); /* 4倍的比例调整 */ + // box-shadow: -240rpx 60rpx, -240rpx 60rpx, -240rpx 60rpx; /* 4倍的比例调整 */ + // transform: translateY(-60rpx); /* 4倍的比例调整 */ + // animation: l19 1s infinite linear; + // } + + // @keyframes l19 { + // 16.67% {box-shadow:-240rpx 60rpx,-240rpx 60rpx, 76rpx 60rpx} /* 4倍的比例调整 */ + // 33.33% {box-shadow:-240rpx 60rpx, 0px 60rpx, 76rpx 60rpx} /* 4倍的比例调整 */ + // 40%,60%{box-shadow: -76rpx 60rpx, 0px 60rpx, 76rpx 60rpx} /* 4倍的比例调整 */ + // 66.67% {box-shadow: -76rpx 60rpx, 0px 60rpx, 240rpx 60rpx} /* 4倍的比例调整 */ + // 83.33% {box-shadow: -76rpx 60rpx, 240rpx 60rpx,240rpx 60rpx} /* 4倍的比例调整 */ + // 100% {box-shadow: 240rpx 60rpx, 240rpx 60rpx,240rpx 60rpx} /* 4倍的比例调整 */ + // } + + } + + .btn_box { + margin-top: 80rpx; + display: flex; + align-items: center; + justify-content: center; + + .btn1 { + display: flex; + align-items: center; + justify-content: center; + width: 216rpx; + height: 90rpx; + background: #989898; + border-radius: 54rpx 54rpx 54rpx 54rpx; + + font-weight: 500; + font-size: 40rpx; + color: #FFFFFF; + } + + .btn2 { + display: flex; + align-items: center; + justify-content: center; + width: 268rpx; + height: 90rpx; + background: #4C97E7; + border-radius: 54rpx 54rpx 54rpx 54rpx; + + font-weight: 500; + font-size: 40rpx; + color: #FFFFFF; + } + } + + .time { + margin-top: 20rpx; + text-align: center; + font-weight: 500; + font-size: 48rpx; + color: #4C97E7; + } + + .cont { + height: 500rpx; + overflow-x: hidden; + overflow-y: auto; + } + + .tits { + // width: 604rpx; + text-align: center; + font-weight: 500; + font-size: 36rpx; + color: #3D3D3D; + margin-bottom: 54rpx; + } + + .cont_box { + margin-top: 36rpx; + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: center; + .pohone_li{ + margin-top: 10rpx; + display: flex; + flex-wrap: nowrap; + .name{ + font-weight: 500; + font-size: 36rpx; + color: #3D3D3D; + margin-bottom: 54rpx; + } + .pohone{ + margin-left: 20rpx; + font-weight: 500; + font-size: 36rpx; + color: #3D3D3D; + margin-bottom: 54rpx; + } + } + + } + + .text { + margin-top: 36rpx; + display: flex; + flex-wrap: wrap; + // align-items: center; + + .yuan { + margin-top: 10rpx; + margin-right: 12rpx; + width: 20rpx; + height: 20rpx; + background: #000; + border-radius: 50%; + } + + span { + width: 90%; + font-weight: 400; + font-size: 28rpx; + color: #3D3D3D; + } + } + + .btn { + margin-left: 40rpx; + margin-top: 50rpx; + display: flex; + align-items: center; + justify-content: center; + width: 470rpx; + height: 90rpx; + background: #4C97E7; + border-radius: 54rpx 54rpx 54rpx 54rpx; + font-weight: 500; + font-size: 40rpx; + color: #FFFFFF; + } + + .act1 { + background-color: #ccc; + } + } + + .backimg{ position: fixed; width: 750rpx; diff --git a/page_user/word.vue b/page_user/word.vue index b3f7922..e55ed8e 100644 --- a/page_user/word.vue +++ b/page_user/word.vue @@ -61,7 +61,7 @@ content = content.replace(/]*)>/g, (match, group1) => { // 查找并移除可能存在的尾部斜杠 let cleanedGroup = group1.replace(/\s*\/$/, ''); - return ``; + return ``; }); return content; @@ -80,7 +80,7 @@ width: 750rpx; .cont { - margin-top: 34rpx; + margin-top: 34rpx ; margin: 0 auto; width: 634rpx; diff --git a/page_user/yczn.vue b/page_user/yczn.vue index 6ea34d5..8b4ce6a 100644 --- a/page_user/yczn.vue +++ b/page_user/yczn.vue @@ -2,37 +2,9 @@ - - - 请在运营区内骑行,否则将断电 - - - 地图上 蓝色区域即为运营区 - - - 1.在运营区外骑行时,车辆可能断电 - - - 2.在运营区外还车时,车辆无法及时维修,将额外收 - 取调度费 - - - - - - 提前确认目的地是否有“还车P点” - - - 地图上 绿色区域标有“P”即为还车P点 - - - 请在P点内关锁还车,否则将在骑行费用以外,额外 收取调度费 - - - - - - + + + @@ -43,56 +15,80 @@ bgc: { backgroundColor: "#fff", }, + content: '' } }, + onLoad() { + this.getword() + }, methods: { - + // getclass() { + + // this.$u.get("/app/classify/list?&parentId=111?&classifyId=114" ).then((res) => { + + // if (res.code == 200) { + // this.classlist = res.data + // let id =this.classlist[0].classifyId + // this.getword(id) + // } else { + // // uni.showToast({ + // // title: res.msg, + // // icon: 'none', + // // duration: 2000 + // // }); + // } + // }); + // }, + getword() { + + this.$u.get("/app/article/list?classifyId=" + 100).then((res) => { + + if (res.code == 200) { + let abb = res.rows.find(item => item.articleId == 19); + this.content = abb.content + this.content = this.replaceImgWithImage(this.content) + + } else { + // uni.showToast({ + // title: res.msg, + // icon: 'none', + // duration: 2000 + // }); + } + }); + }, + replaceImgWithImage(content) { + // 替换所有的 为 \u00A0 + content = content.replace(/ /g, '\u00A0'); + + // 替换 标签的宽度和高度样式 + content = content.replace(/]*)>/g, (match, group1) => { + // 查找并移除可能存在的尾部斜杠 + let cleanedGroup = group1.replace(/\s*\/$/, ''); + return ``; + }); + + return content; + } } } - + + .page { + width: 750rpx; + padding-bottom: 100rpx; + .cont { + + margin-top: 34rpx; + margin: 0 auto; + width: 634rpx; + + } + + } + \ No newline at end of file diff --git a/pages.json b/pages.json index 6071900..8ee8453 100644 --- a/pages.json +++ b/pages.json @@ -364,6 +364,15 @@ "enablePullDownRefresh" : false, "navigationStyle": "custom" } + }, + { + "path" : "bulelink", + "style" : + { + "navigationBarTitleText" : "", + "enablePullDownRefresh" : false, + "navigationStyle": "custom" + } } // 其他 userpages 目录下的页面... diff --git a/pages/index/index.vue b/pages/index/index.vue index 6daed64..501f62f 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,16 +1,25 @@