diff --git a/App.vue b/App.vue index f509e36..61ae2c8 100644 --- a/App.vue +++ b/App.vue @@ -4,12 +4,11 @@ export default { globalData:{ outside:true,//是否外界进来,默认是 - hostApi:'https://dxscrm.scdxtc.com/',//域名 + hostApi:'https://dxscrm.scdxtc.com/api/',//域名 latitude:30.656693,//纬度 longitude:104.136425//经度 }, onLaunch: function() { - console.log(this.globalData.hostApi,12); // 获取主题色事件 themeEv(); this.autoUpdate(); @@ -18,7 +17,6 @@ toolAll.tools.isVedio(); }, onShow: function() { - console.log(this.globalData.hostApi,12); if(uni.getStorageSync('token')) { toolAll.tools.networkStatus();//检查当前网络状态 toolAll.tools.refreshToken();//每十分钟刷新token diff --git a/commons/hengmei.css b/commons/hengmei.css index 78c5e08..c3038a2 100644 --- a/commons/hengmei.css +++ b/commons/hengmei.css @@ -70,7 +70,7 @@ /* 病种列表 */ .problem-input{border: 2rpx solid #E0E0E0;padding: 0rpx 20rpx;height: 80rpx;line-height: 80rpx;} /* 暂无内容时,显示的图片大小 */ -.zanw-img{width: 474rpx;height: 273rpx;} +.zanw-img{width: 180rpx;} /* 修改资料页面 */ .head_img{width: 140rpx;height: 140rpx;border-radius: 100%;} .nic{color: #101010;} diff --git a/commons/icon-font.css b/commons/icon-font.css new file mode 100644 index 0000000..a92ebd6 --- /dev/null +++ b/commons/icon-font.css @@ -0,0 +1,143 @@ +@font-face { + font-family: "iconfont"; /* Project id 3180711 */ + src: url('https://at.alicdn.com/t/font_3180711_14xpivprz1c.woff2?t=1650872732612') format('woff2'), + url('https://at.alicdn.com/t/font_3180711_14xpivprz1c.woff?t=1650872732612') format('woff'), + url('https://at.alicdn.com/t/font_3180711_14xpivprz1c.ttf?t=1650872732612') format('truetype'); +} + +.icon { + font-family: "iconfont" !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-add-picture05:before { + content: "\e639"; +} + +.icon-add-picture04:before { + content: "\e636"; +} + +.icon-add-picture03:before { + content: "\e642"; +} + +.icon-add-picture02:before { + content: "\e8bc"; +} + +.icon-add-picture01:before { + content: "\e62c"; +} + +.icon-sandian:before { + content: "\e769"; +} + +.icon-nothing-collection:before { + content: "\e610"; +} + +.icon-nothing-more:before { + content: "\e624"; +} + +.icon-nothing-data:before { + content: "\e60c"; +} + +.icon-address-check:before { + content: "\e6c2"; +} + +.icon-address-unchecked:before { + content: "\e623"; +} + +.icon-navigate-now:before { + content: "\e640"; +} + +.icon-send-goods:before { + content: "\e601"; +} + +.icon-payment:before { + content: "\e602"; +} + +.icon-finish:before { + content: "\e63f"; +} + +.icon-take:before { + content: "\e649"; +} + +.icon-refund:before { + content: "\e613"; +} + +.icon-customer-black:before { + content: "\ec2e"; +} + +.icon-customer:before { + content: "\e628"; +} + +.icon-check:before { + content: "\e61e"; +} + +.icon-del-white:before { + content: "\e61f"; +} + +.icon-screen:before { + content: "\e60b"; +} + +.icon-search:before { + content: "\e653"; +} + +.icon-caidan-mo:before { + content: "\e73e"; +} + +.icon-renwu-mo:before { + content: "\e73f"; +} + +.icon-shop-cart:before { + content: "\e73d"; +} + +.icon-caidan-active:before { + content: "\e608"; +} + +.icon-renwu-acitve:before { + content: "\e67c"; +} + +.icon-home-mo:before { + content: "\e673"; +} + +.icon-home-active:before { + content: "\e674"; +} + +.icon-return:before { + content: "\e600"; +} + +.icon-next:before { + content: "\e60e"; +} + diff --git a/components/bottom-tab.vue b/components/bottom-tab.vue index cc3d65b..af4fbec 100644 --- a/components/bottom-tab.vue +++ b/components/bottom-tab.vue @@ -7,7 +7,7 @@ 联系客服 - + @@ -34,6 +34,11 @@ }) }, lianK() { //客服 + wx.openCustomerServiceChat({ + extInfo: {url: `https://work.weixin.qq.com/kfid/kfc0d895c27861955a2?enc_scene=${'ENC6yeVMve4yhC238GG9zc5VYa6WaddYNHvNriZ6KueYvXj'}&scene_param=${uni.getStorageSync('openid')}`}, + corpId: 'ww62997b64e2c56170', + success(res) {} + }) this.$requst.post('user/rand-bind-service').then(res => {}) this.$toolAll.tools.closeTimer() //清空埋点倒计时 this.$requst.post('user/record', { diff --git a/components/foot-tab.vue b/components/foot-tab.vue index 8b7c99c..81e1873 100644 --- a/components/foot-tab.vue +++ b/components/foot-tab.vue @@ -17,7 +17,7 @@ - + @@ -102,11 +102,11 @@ break; case 2: if(existMobile!=''){ - // wx.openCustomerServiceChat({ - // extInfo: {url: `https://work.weixin.qq.com/kfid/kfcb3bba5b57d9a42ba?enc_scene=ENC616HXDjLYNcmsR49PBE75UERg8Ncv3dygpYjfnh3XVvA&scene_param=${uni.getStorageSync('openid')}`}, - // corpId: 'ww1f86f258d4ff5817', - // success(res) {} - // }) + wx.openCustomerServiceChat({ + extInfo: {url: `https://work.weixin.qq.com/kfid/kfc0d895c27861955a2?enc_scene=${'ENC6yeVMve4yhC238GG9zc5VYa6WaddYNHvNriZ6KueYvXj'}&scene_param=${uni.getStorageSync('openid')}`}, + corpId: 'ww62997b64e2c56170', + success(res) {} + }) this.$requst.post('user/rand-bind-service').then(res=>{}) this.$toolAll.tools.closeTimer()//清空埋点倒计时 this.$requst.post('user/record',{type:'other',action:'ask',id:0}).then(res=>{},error=>{}) @@ -124,7 +124,7 @@ }, // 前往登录页 goLogin(){ - uni.reLaunch({ + uni.reLaunchENCGp1Z2XmC3n4g2NibCrXxyrUbHutgkeVhkAhYr6Qi6Xt2({ url:'/pages/login/login' }) }, @@ -159,7 +159,7 @@ .item-box>view{width: 25%;text-align: center;} .centerBox{display: flex;justify-content: center;align-items: center;} /* .centerBox-item{width: 124rpx;height: 124rpx;background-color: rgba(244, 244, 244, 1);margin-top: -100rpx;border-radius: 100%;display: flex;justify-content: center;align-items: center;} */ - .centerBox-item{width: 124rpx;height: 124rpx;margin-top: -100rpx;border-radius: 100%;display: flex;justify-content: center;align-items: center;} + .centerBox-item{width: 124rpx;height: 124rpx;margin-top: -100rpx;border-radius: 100%;display: flex;justify-content: center;align-items: center;background-color: transparent;} .centerImg{width: 112rpx;height: 112rpx;} /* 公共 */ diff --git a/components/list-pu.vue b/components/list-pu.vue index b2f352f..270d1d0 100644 --- a/components/list-pu.vue +++ b/components/list-pu.vue @@ -86,8 +86,8 @@ - - + + diff --git a/components/nothing-page.vue b/components/nothing-page.vue index 2ec3496..3640418 100644 --- a/components/nothing-page.vue +++ b/components/nothing-page.vue @@ -1,7 +1,7 @@ @@ -40,6 +40,11 @@ }, methods:{ lianK(){ + wx.openCustomerServiceChat({ + extInfo: {url: `https://work.weixin.qq.com/kfid/kfc0d895c27861955a2?enc_scene=${'ENC6yeVMve4yhC238GG9zc5VYa6WaddYNHvNriZ6KueYvXj'}&scene_param=${uni.getStorageSync('openid')}`}, + corpId: 'ww62997b64e2c56170', + success(res) {} + }) this.$requst.post('user/rand-bind-service').then(res=>{}) this.$toolAll.tools.closeTimer()//清空埋点倒计时 this.$requst.post('user/record',{type:'other',action:'ask',id:this.nid}).then(res=>{},error=>{}) diff --git a/jsFile/publicAPI.js b/jsFile/publicAPI.js index 65a167e..185db3c 100644 --- a/jsFile/publicAPI.js +++ b/jsFile/publicAPI.js @@ -84,8 +84,8 @@ export function themeEv(){//查询主题色 res.data.footBar.forEach(item=>{ let newName = item.name let newObj = { - iconPath:'https://oss.hmzfyy.cn' + item.icon[0], - selectedIconPath:'https://oss.hmzfyy.cn' + item.icon[1], + iconPath:'https://dxscrm.scdxtc.com' + item.icon[0], + selectedIconPath:'https://dxscrm.scdxtc.com' + item.icon[1], } if(item.key=="home"){ imgList[0] = newObj @@ -133,7 +133,7 @@ export function checkQuan(){//查询优惠券 if(res.code==0){ if(res.data.has_coupon==1){ uni.setStorageSync('isQuan',true); - uni.setStorageSync('quanImg','https://oss.hmzfyy.cn' + res.data.home_coupon.cover); + uni.setStorageSync('quanImg','https://dxscrm.scdxtc.com' + res.data.home_coupon.cover); uni.setStorageSync('quanId',res.data.home_coupon.id); } else { uni.setStorageSync('isQuan',false); diff --git a/jsFile/requst.js b/jsFile/requst.js index 75ac0bf..a31bdee 100644 --- a/jsFile/requst.js +++ b/jsFile/requst.js @@ -1,5 +1,5 @@ const ENV = process.env; -let hostapi = 'https://dxscrm.scdxtc.com/'; +let hostapi = 'https://dxscrm.scdxtc.com/api/'; // 请求错误处理 const checkError = (e) => { // console.error("----接口错误----", e) diff --git a/jsFile/tools.js b/jsFile/tools.js index c2a203d..8252b9c 100644 --- a/jsFile/tools.js +++ b/jsFile/tools.js @@ -4,6 +4,7 @@ const tools = { timer:'', // 埋点倒计时 daoTime(){ + clearInterval(this.timer); let daoTime = uni.getStorageSync('daoTime') if(daoTime==''){//初次判断倒计时是否为空 uni.setStorageSync('daoTime',60)//设置倒计时 @@ -216,7 +217,7 @@ const tools = { }) .replace(' { if(res.data.code==0){ res.data.data.v==0 ? uni.setStorageSync('isVedio',false) : uni.setStorageSync('isVedio',true); - let appletImg = 'https://oss.hmzfyy.cn' + res.data.data.logo; + let appletImg = 'https://dxscrm.scdxtc.com' + res.data.data.logo; uni.setStorageSync('appletImg',appletImg); state.commit('updateAppletImgEv',appletImg); } @@ -337,14 +338,15 @@ const tools = { // console.log(hInfo.envVersion);//develop:开发版 trial:体验版 release:正式版 if(hInfo.miniProgram.envVersion == "develop" || hInfo.miniProgram.envVersion == "trial"){ // (开发版,体验版)-配置全局域名 - uni.setStorageSync('hostapi','https://dxscrm.scdxtc.com/'); + uni.setStorageSync('hostapi','https://dxscrm.scdxtc.com/api/'); + this.daoTime();//开启埋点倒计时 } else { // 清除所有输出日志 console.log = () =>{}; // 正式版-配置全局域名 - uni.setStorageSync('hostapi','https://dxscrm.scdxtc.com/'); + uni.setStorageSync('hostapi','https://dxscrm.scdxtc.com/api/'); // 开启埋点倒计时 - // this.daoTime();//开启埋点倒计时 + this.daoTime();//开启埋点倒计时 } // #endif }, diff --git a/main.js b/main.js index d270d37..9f72ff6 100644 --- a/main.js +++ b/main.js @@ -34,7 +34,6 @@ Vue.component('auth-userInfo-mobileInfo',authUserInfoMobileInfo)//全局注册 import share from './jsFile/share.js' Vue.mixin(share) -Vue.prototype.$hostApi = 'https://oss.hmzfyy.cn'; // 常用工具 import tools from '@/jsFile/tools.js' Vue.prototype.$toolAll = tools; @@ -44,7 +43,7 @@ Vue.prototype.$toolAll = tools; import requst from '@/jsFile/requst.js' Vue.prototype.$requst = requst; // 域名,专治后台仔没有返回http/https的图片 -Vue.prototype.$http = 'https://oss.hmzfyy.cn'; +Vue.prototype.$http = 'https://dxscrm.scdxtc.com'; const {log} = console; Vue.prototype.$log = log diff --git a/pages.json b/pages.json index ddf2fee..b64770b 100644 --- a/pages.json +++ b/pages.json @@ -55,13 +55,6 @@ "enablePullDownRefresh": false } - } - ,{ - "path" : "getReadyDan/getReadyDan", - "style" : { - "navigationBarTitleText": "", - "enablePullDownRefresh": false - } } ,{ "path" : "getReadyDan/getReadyDan-two", diff --git a/pages/tabbar/cate/cate.vue b/pages/tabbar/cate/cate.vue index 6461150..8bcc09f 100644 --- a/pages/tabbar/cate/cate.vue +++ b/pages/tabbar/cate/cate.vue @@ -4,7 +4,7 @@