解决页面显示空白的问题。
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -3,7 +3,7 @@
|
||||
"usingComponents": {
|
||||
"common-begin-reception": "./common_begin_reception",
|
||||
"service-list-furniture": "./serviceListFurniture",
|
||||
"uni-nav-bar": "../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar",
|
||||
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons"
|
||||
"tag-management-panel": "./tag_management_panel",
|
||||
"uni-nav-bar": "../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),t={name:"接待中",components:{CommonBeginReception:()=>"./common_begin_reception.js",ServiceListFurniture:()=>"./serviceListFurniture.js"},data:()=>({activeTab:"status",navbarTop:"88rpx",contentTop:"160rpx",receptionForm:{id:"",customerName:"",contact:"",customerSource:"",gender:"女",age:"",dealershipId:"",dealershipName:"",salesId:"",salesName:"",salesPhone:"",recordingCount:0,intendedModel:"",infoCard:"",remark:"",detailedAddress:"",contactCount:0}}),computed:{computedNavbarTop(){const t=e.index.getSystemInfoSync();return((t.statusBarHeight||20)+44)*(750/(t.windowWidth||t.screenWidth||375))+"rpx"},computedContentTop(){const t=e.index.getSystemInfoSync();return((t.statusBarHeight||20)+44)*(750/(t.windowWidth||t.screenWidth||375))+72+"rpx"}},onLoad(){this.updateNavbarPosition(),this.loadCurrentUserInfo()},onShow(){this.$nextTick((()=>{this.updateNavbarPosition(),setTimeout((()=>this.updateNavbarPosition()),50),"status"===this.activeTab&&this.$nextTick((()=>{const e=this.$refs.serviceListRef;e&&"function"==typeof e.onServiceStatusRefresh&&e.onServiceStatusRefresh()}))}))},methods:{updateNavbarPosition(){const t=2*(e.index.getSystemInfoSync().statusBarHeight||20)+88;this.$set(this,"navbarTop",t+"rpx"),this.$set(this,"contentTop",t+72+"rpx"),this.$forceUpdate()},loadCurrentUserInfo(){try{const t=e.index.getStorageSync("backend-login-response")||{};t.userName&&(this.receptionForm.salesName=t.userName),t.phone?this.receptionForm.salesPhone=t.phone:t.userName&&(this.receptionForm.salesPhone=t.userName),t.userId&&(this.receptionForm.salesId=String(t.userId))}catch(t){console.error("[ReceptionInProgress] 加载当前登录用户信息失败:",t)}},goBack(){getCurrentPages().length<=1?e.index.switchTab({url:"/pages/workbench/workbench",fail:e=>{console.error("[ReceptionInProgress] 切回工作台失败:",e)}}):e.index.navigateBack({fail:e=>{console.error("[ReceptionInProgress] 返回失败:",e)}})},switchTab(e){"reception"!==e&&"status"!==e||(this.activeTab=e,"reception"===e&&this.resetReceptionForm())},resetReceptionForm(){this.receptionForm={id:"",customerName:"",contact:"",customerSource:"",gender:"女",age:"",dealershipId:"",dealershipName:"",salesId:"",salesName:"",salesPhone:"",recordingCount:0,intendedModel:"",infoCard:"",remark:"",detailedAddress:"",contactCount:0},this.loadCurrentUserInfo()},onReceptionCancel(){this.resetReceptionForm()},onReceptionSaveSuccess({action:e,data:t}){t&&(this.receptionForm={...this.receptionForm,...t}),this.resetReceptionForm(),"start"===e&&(this.activeTab="status",this.$nextTick((()=>{const e=this.$refs.serviceListRef;e&&"function"==typeof e.onServiceStatusRefresh&&e.onServiceStatusRefresh()})))},onReceptionSaveError({action:e,error:t}){console.error("[ReceptionInProgress] 保存失败:",e,t)}}};if(!Array){(e.resolveComponent("uni-nav-bar")+e.resolveComponent("common-begin-reception")+e.resolveComponent("service-list-furniture"))()}Math;const o=e._export_sfc(t,[["render",function(t,o,r,n,s,i){return e.e({a:e.o(i.goBack,"42"),b:e.p({fixed:!0,statusBar:!0,border:!1,title:"接待中",leftIcon:"left",color:"#333",backgroundColor:"#FFFFFF"}),c:"reception"===s.activeTab?1:"",d:e.o((e=>i.switchTab("reception")),"3d"),e:"status"===s.activeTab?1:"",f:e.o((e=>i.switchTab("status")),"30"),g:i.computedNavbarTop||s.navbarTop,h:"reception"===s.activeTab},"reception"===s.activeTab?{i:i.computedContentTop||s.contentTop,j:e.o(i.onReceptionCancel,"06"),k:e.o(i.onReceptionSaveSuccess,"f9"),l:e.o(i.onReceptionSaveError,"4b"),m:e.p({"initial-data":s.receptionForm})}:{},{n:"status"===s.activeTab},"status"===s.activeTab?{o:e.sr("serviceListRef","199fff57-2"),p:i.computedContentTop||s.contentTop,q:e.p({"record-state-label":"接待中","empty-list-hint":"暂无接待中记录","show-reception-entry-shortcut":!0})}:{})}]]);wx.createPage(o);
|
||||
"use strict";const e=require("../../common/vendor.js"),t={name:"接待中",components:{CommonBeginReception:()=>"./common_begin_reception.js",ServiceListFurniture:()=>"./serviceListFurniture.js",TagManagementPanel:()=>"./tag_management_panel.js"},data:()=>({activeTab:"status",navbarTop:"88rpx",contentTop:"160rpx",receptionForm:{id:"",customerName:"",contact:"",customerSource:"",gender:"女",age:"",dealershipId:"",dealershipName:"",salesId:"",salesName:"",salesPhone:"",recordingCount:0,intendedModel:"",infoCard:"",remark:"",detailedAddress:"",contactCount:0}}),computed:{computedNavbarTop(){const t=e.index.getSystemInfoSync();return((t.statusBarHeight||20)+44)*(750/(t.windowWidth||t.screenWidth||375))+"rpx"},computedContentTop(){const t=e.index.getSystemInfoSync();return((t.statusBarHeight||20)+44)*(750/(t.windowWidth||t.screenWidth||375))+72+"rpx"}},onLoad(){this.updateNavbarPosition(),this.loadCurrentUserInfo()},onShow(){this.$nextTick((()=>{this.updateNavbarPosition(),setTimeout((()=>this.updateNavbarPosition()),50),"status"===this.activeTab?this.$nextTick((()=>{const e=this.$refs.serviceListRef;e&&"function"==typeof e.onServiceStatusRefresh&&e.onServiceStatusRefresh()})):"tag"===this.activeTab&&this.$nextTick((()=>{const e=this.$refs.tagPanelRef;e&&"function"==typeof e.refreshTagList&&e.refreshTagList()}))}))},methods:{updateNavbarPosition(){const t=2*(e.index.getSystemInfoSync().statusBarHeight||20)+88;this.$set(this,"navbarTop",t+"rpx"),this.$set(this,"contentTop",t+72+"rpx"),this.$forceUpdate()},loadCurrentUserInfo(){try{const t=e.index.getStorageSync("backend-login-response")||{};t.userName&&(this.receptionForm.salesName=t.userName),t.phone?this.receptionForm.salesPhone=t.phone:t.userName&&(this.receptionForm.salesPhone=t.userName),t.userId&&(this.receptionForm.salesId=String(t.userId))}catch(t){console.error("[ReceptionInProgress] 加载当前登录用户信息失败:",t)}},goBack(){getCurrentPages().length<=1?e.index.switchTab({url:"/pages/workbench/workbench",fail:e=>{console.error("[ReceptionInProgress] 切回工作台失败:",e)}}):e.index.navigateBack({fail:e=>{console.error("[ReceptionInProgress] 返回失败:",e)}})},switchTab(e){"reception"!==e&&"status"!==e&&"tag"!==e||(this.activeTab=e,"reception"===e?this.resetReceptionForm():"tag"===e&&this.$nextTick((()=>{this.$nextTick((()=>{const e=this.$refs.tagPanelRef;e&&"function"==typeof e.refreshTagList&&e.refreshTagList()}))})))},resetReceptionForm(){this.receptionForm={id:"",customerName:"",contact:"",customerSource:"",gender:"女",age:"",dealershipId:"",dealershipName:"",salesId:"",salesName:"",salesPhone:"",recordingCount:0,intendedModel:"",infoCard:"",remark:"",detailedAddress:"",contactCount:0},this.loadCurrentUserInfo()},onReceptionCancel(){this.resetReceptionForm()},onReceptionSaveSuccess({action:e,data:t}){t&&(this.receptionForm={...this.receptionForm,...t}),this.resetReceptionForm(),"start"===e&&(this.activeTab="status",this.$nextTick((()=>{const e=this.$refs.serviceListRef;e&&"function"==typeof e.onServiceStatusRefresh&&e.onServiceStatusRefresh()})))},onReceptionSaveError({action:e,error:t}){console.error("[ReceptionInProgress] 保存失败:",e,t)}}};if(!Array){(e.resolveComponent("uni-nav-bar")+e.resolveComponent("common-begin-reception")+e.resolveComponent("service-list-furniture")+e.resolveComponent("tag-management-panel"))()}Math;const o=e._export_sfc(t,[["render",function(t,o,n,s,r,a){return e.e({a:e.o(a.goBack,"42"),b:e.p({fixed:!0,statusBar:!0,border:!1,title:"接待中",leftIcon:"left",color:"#333",backgroundColor:"#FFFFFF"}),c:"reception"===r.activeTab?1:"",d:e.o((e=>a.switchTab("reception")),"3d"),e:"status"===r.activeTab?1:"",f:e.o((e=>a.switchTab("status")),"30"),g:"tag"===r.activeTab?1:"",h:e.o((e=>a.switchTab("tag")),"70"),i:a.computedNavbarTop||r.navbarTop,j:"reception"===r.activeTab},"reception"===r.activeTab?{k:a.computedContentTop||r.contentTop,l:e.o(a.onReceptionCancel,"c8"),m:e.o(a.onReceptionSaveSuccess,"98"),n:e.o(a.onReceptionSaveError,"09"),o:e.p({"initial-data":r.receptionForm})}:{},{p:"status"===r.activeTab},"status"===r.activeTab?{q:e.sr("serviceListRef","199fff57-2"),r:a.computedContentTop||r.contentTop,s:e.p({"show-record-state-indicator":!1,"empty-list-hint":"暂无接待中记录","show-reception-entry-shortcut":!0})}:{},{t:"tag"===r.activeTab},"tag"===r.activeTab?{v:e.sr("tagPanelRef","199fff57-3"),w:e.p({"content-top":a.computedContentTop||r.contentTop})}:{})}]]);wx.createPage(o);
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"usingComponents": {
|
||||
"common-begin-reception": "./common_begin_reception",
|
||||
"service-list-furniture": "./serviceListFurniture",
|
||||
"tag-management-panel": "./tag_management_panel",
|
||||
"uni-nav-bar": "../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar"
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<view class="page"><uni-nav-bar wx:if="{{b}}" bindclickLeft="{{a}}" u-i="199fff57-0" bind:__l="__l" u-p="{{b}}"/><view class="content"><view class="tabs" style="{{'top:' + g}}"><view class="{{['tab-item', c && 'active']}}" bindtap="{{d}}"><text>开始接待</text></view><view class="{{['tab-item', e && 'active']}}" bindtap="{{f}}"><text>接待中</text></view></view><common-begin-reception wx:if="{{h}}" class="reception-form-container" style="{{'top:' + i}}" bindcancel="{{j}}" bindsaveSuccess="{{k}}" bindsaveError="{{l}}" u-i="199fff57-1" bind:__l="__l" u-p="{{m}}"/><service-list-furniture wx:if="{{n}}" u-r="serviceListRef" class="service-status-container r" style="{{'top:' + p}}" u-i="199fff57-2" bind:__l="__l" u-p="{{q}}"/></view></view>
|
||||
<view class="page"><uni-nav-bar wx:if="{{b}}" bindclickLeft="{{a}}" u-i="199fff57-0" bind:__l="__l" u-p="{{b}}"/><view class="content"><view class="tabs" style="{{'top:' + i}}"><view class="{{['tab-item', c && 'active']}}" bindtap="{{d}}"><text>开发接待</text></view><view class="{{['tab-item', e && 'active']}}" bindtap="{{f}}"><text>接待中</text></view><view class="{{['tab-item', g && 'active']}}" bindtap="{{h}}"><text>标签管理</text></view></view><common-begin-reception wx:if="{{j}}" class="reception-form-container" style="{{'top:' + k}}" bindcancel="{{l}}" bindsaveSuccess="{{m}}" bindsaveError="{{n}}" u-i="199fff57-1" bind:__l="__l" u-p="{{o}}"/><service-list-furniture wx:if="{{p}}" u-r="serviceListRef" class="service-status-container r" style="{{'top:' + r}}" u-i="199fff57-2" bind:__l="__l" u-p="{{s}}"/><tag-management-panel wx:if="{{t}}" class="r" u-r="tagPanelRef" u-i="199fff57-3" bind:__l="__l" u-p="{{w}}"/></view></view>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/mp-weixin/pages-subpackage/furniture_reception/tag_management_panel.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages-subpackage/furniture_reception/tag_management_panel.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="tag-mgmt-host" style="{{'top:' + S}}"><scroll-view wx:if="{{a}}" class="tag-mgmt-scroll tag-list" scroll-y bindscrolltolower="{{s}}"><view class="service-status-toolbar"><text class="toolbar-total">共{{b}}条</text><input class="toolbar-input" placeholder="标签分类" placeholder-style="color: #b0b0b0" confirm-type="search" bindconfirm="{{c}}" value="{{d}}" bindinput="{{e}}"/><input class="toolbar-input" placeholder="标签名称" placeholder-style="color: #b0b0b0" confirm-type="search" bindconfirm="{{f}}" value="{{g}}" bindinput="{{h}}"/><view class="toolbar-actions"><view class="toolbar-btn toolbar-btn--refresh" bindtap="{{j}}"><uni-icons wx:if="{{i}}" u-i="0806a306-0" bind:__l="__l" u-p="{{i}}"></uni-icons></view><view class="toolbar-btn toolbar-btn--add" bindtap="{{l}}"><uni-icons wx:if="{{k}}" u-i="0806a306-1" bind:__l="__l" u-p="{{k}}"></uni-icons></view></view></view><view wx:for="{{m}}" wx:for-item="item" wx:key="s" class="{{['service-card', 'tag-card-item', item.t && 'tag-card-item--active']}}"><view class="card-header"><view class="staff-info" catchtap="{{item.c}}"><view class="staff-avatar"><text class="avatar-text">{{item.a}}</text></view><text class="staff-name">{{item.b}}</text></view><view class="tag-card-action-btn" catchtap="{{item.e}}"><uni-icons wx:if="{{n}}" u-i="{{item.d}}" bind:__l="__l" u-p="{{n}}"></uni-icons></view></view><view class="customer-info" catchtap="{{item.h}}"><text wx:if="{{item.f}}" class="customer-name">所属行业:{{item.g}}</text></view><view wx:if="{{item.i}}" class="customer-tags" catchtap="{{item.n}}"><view wx:if="{{item.j}}" class="tag-item tag-blue"><text>详情:{{item.k}}</text></view><view wx:if="{{item.l}}" class="tag-item tag-orange"><text>备注:{{item.m}}</text></view></view><view wx:if="{{item.o}}" class="tag-action-menu" catchtap="{{item.r}}"><view class="tag-action-menu-item" bindtap="{{item.p}}"><text>编辑</text></view><view class="tag-action-menu-divider"></view><view class="tag-action-menu-item tag-action-menu-item--danger" bindtap="{{item.q}}"><text>删除</text></view></view></view><view wx:if="{{o}}" class="tag-action-menu-mask" bindtap="{{p}}"></view><view wx:if="{{q}}" class="service-status-empty"><text>暂无标签</text></view><view wx:if="{{r}}" class="service-status-loading-more"><text>正在加载更多...</text></view></scroll-view><view wx:if="{{t}}" class="tag-management"><scroll-view class="tag-form" scroll-y><view class="form-card"><view wx:if="{{v}}" class="form-item"><text class="form-item__label">所属行业</text><input class="form-item__input" placeholder="请输入所属行业" placeholder-style="color: #9ca3af" value="{{w}}" bindinput="{{x}}"/></view><view class="form-item tag-select-wrapper"><text class="form-item__label">标签分类</text><view ref="tagTypeSelect" class="tag-select" catchtap="{{B}}"><text class="{{z}}">{{y}}</text><uni-icons wx:if="{{A}}" u-i="0806a306-3" bind:__l="__l" u-p="{{A}}"></uni-icons></view><view wx:if="{{C}}" ref="tagTypeDropdown" class="tag-select-dropdown" catchtap="{{E}}"><view wx:for="{{D}}" wx:for-item="option" wx:key="c" class="tag-select-dropdown__item" bindtap="{{option.d}}"><text class="{{[option.b && 'active']}}">{{option.a}}</text></view></view></view><view class="form-item"><text class="form-item__label">标签名</text><input class="form-item__input" placeholder="请输入标签名" placeholder-style="color: #9ca3af" value="{{F}}" bindinput="{{G}}"/></view><view class="form-item form-item--textarea"><text class="form-item__label">详情</text><block wx:if="{{r0}}"><textarea class="form-item__textarea" placeholder="请输入详情" placeholder-style="color: #9ca3af" maxlength="{{500}}" auto-height value="{{H}}" bindinput="{{I}}"/></block></view><view class="form-item form-item--textarea"><text class="form-item__label">备注</text><block wx:if="{{r0}}"><textarea class="form-item__textarea" placeholder="请输入备注" placeholder-style="color: #9ca3af" maxlength="{{500}}" auto-height value="{{J}}" bindinput="{{K}}"/></block></view><view class="form-item form-item--switch"><text class="form-item__label">是否启用</text><switch checked="{{L}}" bindchange="{{M}}" color="#007AFF"/></view></view><view class="form-actions"><view class="form-btn form-btn--cancel" bindtap="{{N}}"><text class="form-btn__text">取消</text></view><view class="form-btn form-btn--save" bindtap="{{P}}"><text class="form-btn__text">{{O}}</text></view></view></scroll-view><view wx:if="{{Q}}" class="tag-select-mask" bindtap="{{R}}"></view></view></view>
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user