diff --git a/App.vue b/App.vue index c1b54e5..e8fe4ff 100644 --- a/App.vue +++ b/App.vue @@ -85,6 +85,7 @@ @import './colorui/icon.css'; @import "@/colorui/animation.css"; @import '@/common/styles/common.css'; + @import "@/common/styles/iconfont.css"; /*每个页面公共css */ //底部按钮 .btn-bottom { diff --git a/common/api.js b/common/api.js index 34b0861..b118ef1 100644 --- a/common/api.js +++ b/common/api.js @@ -26,6 +26,7 @@ export const API_PRPAID = '/api/order/deal' /* 个人中心相关 */ export const API_COLLECT_LIST = '/api/collect/list'; // 我的收藏列表 +export const API_CONTACT = '/api/contact'; // 客服落地页信息 /* 用户相关 */ export const API_WXLOGIN = '/api/wxlogin'; // 用户登录 diff --git a/common/styles/iconfont.css b/common/styles/iconfont.css new file mode 100644 index 0000000..bd0a103 --- /dev/null +++ b/common/styles/iconfont.css @@ -0,0 +1,74 @@ +@font-face { + font-family: "lf-iconfont"; /* Project id 2631569 */ + src: url('//at.alicdn.com/t/font_2631569_rgieivs47oc.woff2?t=1624527625328') format('woff2'), + url('//at.alicdn.com/t/font_2631569_rgieivs47oc.woff?t=1624527625328') format('woff'), + url('//at.alicdn.com/t/font_2631569_rgieivs47oc.ttf?t=1624527625328') format('truetype'); +} + +.lf-iconfont { + font-family: "lf-iconfont" !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.lf-icon-jia1:before { + content: "\e6d4"; +} + +.lf-icon-xiangyou-copy:before { + content: "\e623"; +} + +.lf-icon-dianhua:before { + content: "\e64c"; +} + +.lf-icon-shuaxin:before { + content: "\e60e"; +} + +.lf-icon-shibai:before { + content: "\e645"; +} + +.lf-icon-jianshao:before { + content: "\e663"; +} + +.lf-icon-cuo:before { + content: "\e63f"; +} + +.lf-icon-icon-test:before { + content: "\e61e"; +} + +.lf-icon-dizhi:before { + content: "\e612"; +} + +.lf-icon-fanhui-xianxing:before { + content: "\e641"; +} + +.lf-icon-weigouxuan:before { + content: "\e615"; +} + +.lf-icon-gouxuan-xianxing:before { + content: "\e616"; +} + +.lf-icon-jian1:before { + content: "\e646"; +} + +.lf-icon-chenggong:before { + content: "\e60a"; +} + +.lf-icon-fenxiangzhuanfa:before { + content: "\e74f"; +} diff --git a/pages/contactService/index.vue b/pages/contactService/index.vue index 12878e6..8c55ea3 100644 --- a/pages/contactService/index.vue +++ b/pages/contactService/index.vue @@ -4,6 +4,7 @@ 在线客服 + 服务时间 10:00~20:00 @@ -23,6 +24,7 @@ 复制 + 当前版本 {{ version }} @@ -34,13 +36,22 @@ export default { data(){ return { - version: '' + version: '', + list: [] } }, onLoad(){ this.version = this.API.VERSION; + this.getInfo(); }, methods: { + // 获取信息 + getInfo(){ + this.$http(this.API.API_CONTACT).then(res => { + console.log("info", res); + this.list = res.data; + }) + }, // 拨打电话 makePhoneCall(){ uni.makePhoneCall({ diff --git a/pages/index/index.vue b/pages/index/index.vue index 551eba4..90f4058 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -155,9 +155,12 @@ this.getGoodsList(); uni.stopPullDownRefresh() }, - // onShareAppMessage(){ - - // } + onShareAppMessage(){ + return { + title: '分享小程序', + path: '/pages/route/index' + } + } }