|
@@ -181,6 +181,13 @@ page {
|
|
|
class="logo-text"
|
|
|
src="{{h5StaticPath}}/page-home/tenatslink.svg"
|
|
|
></image> -->
|
|
|
+ <footer v-show="hasCustomePhone" @callPhone="openPhonePanel" @custome-phone-show="customePhoneShow"></footer>
|
|
|
+ <custome-service-panel
|
|
|
+ :show="visiblePhone"
|
|
|
+ :phone="phone"
|
|
|
+ @custome-service-close="closePhonePanel"
|
|
|
+ >
|
|
|
+ </custome-service-panel>
|
|
|
|
|
|
</div>
|
|
|
</template>
|
|
@@ -201,6 +208,9 @@ import { carbonCredit } from '../common.js'
|
|
|
wepy.page({
|
|
|
store,
|
|
|
data: {
|
|
|
+ phone: null,
|
|
|
+ visiblePhone: false,
|
|
|
+ hasCustomePhone: false,
|
|
|
carbonCreditText: '',
|
|
|
pageTopBarTop: 0,
|
|
|
h5StaticPath: config.h5StaticPath + '/page-portrait',
|
|
@@ -232,13 +242,18 @@ wepy.page({
|
|
|
this.getAir()
|
|
|
this.getLamp()
|
|
|
this.queryPortraitModule()
|
|
|
- // this.getUsersFace()
|
|
|
},
|
|
|
- // getUsersFace() { // 用户信息
|
|
|
- // getCompmayUsers().then(res => {
|
|
|
- // store.commit('setUserData', res.data || {})
|
|
|
- // })
|
|
|
- // },
|
|
|
+ // 是否有客服
|
|
|
+ customePhoneShow(val) {
|
|
|
+ this.hasCustomePhone = val
|
|
|
+ },
|
|
|
+ openPhonePanel(val) {
|
|
|
+ this.phone = val
|
|
|
+ this.visiblePhone = true
|
|
|
+ },
|
|
|
+ closePhonePanel(val) {
|
|
|
+ this.visiblePhone = val
|
|
|
+ },
|
|
|
showEnergyPage(page, pointType, pointName) { // 跳转到排行
|
|
|
wx.uma.trackEvent(`portrait_home_${pointType}`, { key: pointName })
|
|
|
// if (page === 'total') {
|
|
@@ -319,7 +334,12 @@ wepy.page({
|
|
|
navigationStyle:"custom",
|
|
|
backgroundColor: '#EBF5FA',
|
|
|
usingComponents: {
|
|
|
- 'page-top-bar': '~@/components/common/page-top-bar',
|
|
|
+ 'page-top-bar': '~@/components/common/page-top-bar',
|
|
|
+ 'custome-service-panel': '~@/components/coustome/custome-service-panel',
|
|
|
+ 'footer':'~@/components/coustome/footer'
|
|
|
},
|
|
|
+ "componentPlaceholder": {
|
|
|
+ "add-miniprogram-to-desk-panel": "view",
|
|
|
+ }
|
|
|
}
|
|
|
</config>
|