|  |  |  | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view class="name" v-if="!currentInfo.id" open-type="getUserInfo" @click.stop="toCustomerLogin" | 
|---|
|  |  |  | style="font-size: 48rpx;margin-top: 16rpx;"> | 
|---|
|  |  |  | {{ '点击登陆' }} | 
|---|
|  |  |  | {{ '点击登陆/注册' }} | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <image class="icon-setting" src="../../static/common/icon-setting.png" mode="aspectFit"></image> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <view class="user-utils m-20"> | 
|---|
|  |  |  | <view class="user-util m-t-12 flex" @click="goto('/sub_pages/partner/delivery/delivery',true)"> | 
|---|
|  |  |  | <view class="user-util m-t-12 flex" @click="goto('/sub_pages/partner/delivery/station-delivery',true)"> | 
|---|
|  |  |  | <view class="title">质检列表</view> | 
|---|
|  |  |  | <view class="right-icon"> | 
|---|
|  |  |  | <uni-icons type="right"></uni-icons> | 
|---|
|  |  |  | 
|---|
|  |  |  | <uni-icons type="right"></uni-icons> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <view class="user-util m-t-12 " v-if="selftype==='supplier'||selftype==='customer' || !selftype"> | 
|---|
|  |  |  | <view class="title">我的客服</view> | 
|---|
|  |  |  | <view class="flex"> | 
|---|
|  |  |  | <!--    <view class="flex"> | 
|---|
|  |  |  | <image class="icon-clock m-r-6 m-t-2" src="../../static/common/icon-call.png"></image> | 
|---|
|  |  |  | <view class="name" @click="callTel"> | 
|---|
|  |  |  | 客服电话 :    <span class="topic-gray">{{ tel }}</span> | 
|---|
|  |  |  | 
|---|
|  |  |  | <view class="right-icon" open-type="contact"> | 
|---|
|  |  |  | <uni-icons type="right"></uni-icons> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </view> --> | 
|---|
|  |  |  | <view class="flex flex-wrap-normal"> | 
|---|
|  |  |  | <image class="icon-clock m-r-6 m-t-2" src="../../static/common/icon-call.png"></image> | 
|---|
|  |  |  | <!-- @click="callTel" --> | 
|---|
|  |  |  | <button open-type="contact" class="component-button-contact" @handleContact="handleContact"> | 
|---|
|  |  |  | <view class="name"> | 
|---|
|  |  |  | 客服电话 :    <span class="topic-gray">{{ tel }}</span> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view class="right-icon"> | 
|---|
|  |  |  | <uni-icons type="right"></uni-icons> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </button> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | 
|---|
|  |  |  | tcode: '', | 
|---|
|  |  |  | inviterName: '', | 
|---|
|  |  |  | // StatusBar:0, | 
|---|
|  |  |  | tel: '15974805814', | 
|---|
|  |  |  | tel: '19288780072', | 
|---|
|  |  |  | tj: {}, | 
|---|
|  |  |  | cacheUserId: '', | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | //       } | 
|---|
|  |  |  | //    } | 
|---|
|  |  |  | // }, | 
|---|
|  |  |  | onShow() {}, | 
|---|
|  |  |  | onShow() { | 
|---|
|  |  |  | this.getHotLineConfig() | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | onLoad(options) { | 
|---|
|  |  |  | // const url = options.q ? decodeURIComponent(options.q) : ''; | 
|---|
|  |  |  | // const urlcode = options.url && decodeURIComponent(options.url) || '' | 
|---|
|  |  |  | 
|---|
|  |  |  | created() { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | onShareAppMessage() { | 
|---|
|  |  |  | let that = this; | 
|---|
|  |  |  | var name = that.currentInfo.customerDTO&&that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO&&that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO&&that.currentInfo.partnerDTO.name || '' | 
|---|
|  |  |  | var url = | 
|---|
|  |  |  | `/pages/login/supplier-login?shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数 | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | title: "花满芫", | 
|---|
|  |  |  | path: url, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | onShareTimeline() { | 
|---|
|  |  |  | let that = this; | 
|---|
|  |  |  | var name = that.currentInfo.customerDTO&&that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO&&that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO&&that.currentInfo.partnerDTO.name || '' | 
|---|
|  |  |  | var url = | 
|---|
|  |  |  | `/pages/login/supplier-login?shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数 | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | title: "花满芫", | 
|---|
|  |  |  | path: url, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | async onPullDownRefresh() { | 
|---|
|  |  |  | await this.$store.dispatch('getCurrentInfo') | 
|---|
|  |  |  | uni.stopPullDownRefresh() | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | async getHotLineConfig() { | 
|---|
|  |  |  | this.$message.showLoading() | 
|---|
|  |  |  | const { | 
|---|
|  |  |  | code, | 
|---|
|  |  |  | data | 
|---|
|  |  |  | } = await this.$http.request('get', `/v2/config-param/base/getBaseString`, { | 
|---|
|  |  |  | params: { | 
|---|
|  |  |  | paramGroup: "servicehotline", | 
|---|
|  |  |  | paramKey: "hotline_tel" | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | this.$message.hideLoading() | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (code === 0) { | 
|---|
|  |  |  | // 电话 | 
|---|
|  |  |  | console.log(data) | 
|---|
|  |  |  | this.tel =data | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | async clearlogout() { | 
|---|
|  |  |  | await this.$message.confirm('是否退出登录?') | 
|---|