适配微信小程序
This commit is contained in:
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../common/vendor.js"),t={name:"SalesScenarioNew",props:{contentTop:{type:String,default:"0rpx"},contentBottom:{type:String,default:"0rpx"}},methods:{openReceptionTab(e){this.switchTabWithQuery("/pages/furniture_reception/furniture_reception",e)},openCustomerTab(t){const o=`/pages-subpackage/furniture_customer/furniture_customer?tab=${t}`;e.index.navigateTo({url:o})},switchTabWithQuery(t,o){"/pages/furniture_reception/furniture_reception"===t&&e.index.setStorageSync("workbench-reception-tab",o),e.index.switchTab({url:t,fail:()=>{const n=`${t}?tab=${o}`;e.index.navigateTo({url:n})}})}}};const o=e._export_sfc(t,[["render",function(t,o,n,r,a,c){return{a:e.o((e=>c.openReceptionTab("reception")),"0a"),b:e.o((e=>c.openReceptionTab("status")),"ed"),c:e.o((e=>c.openReceptionTab("tag")),"8b"),d:e.o((e=>c.openCustomerTab("service")),"b5"),e:e.o((e=>c.openCustomerTab("customer")),"cd"),f:n.contentTop,g:n.contentBottom}}],["__scopeId","data-v-08e7a06f"]]);wx.createComponent(o);
|
||||
"use strict";const e=require("../../../common/vendor.js"),t={name:"SalesScenarioNew",props:{contentTop:{type:String,default:"0rpx"},contentBottom:{type:String,default:"0rpx"}},methods:{openReceptionTab(t){if(!["status","reception","tag"].includes(t))return;const o=`/pages-subpackage/furniture_reception/furniture_reception_entry?tab=${encodeURIComponent(t)}`;e.index.navigateTo({url:o,fail:()=>{e.index.showToast({title:"跳转接待页失败",icon:"none"})}})},openCustomerTab(t){const o=`/pages-subpackage/furniture_customer/furniture_customer?tab=${t}`;e.index.navigateTo({url:o})}}};const o=e._export_sfc(t,[["render",function(t,o,n,r,a,c){return{a:e.o((e=>c.openReceptionTab("reception")),"28"),b:e.o((e=>c.openReceptionTab("status")),"75"),c:e.o((e=>c.openReceptionTab("tag")),"24"),d:e.o((e=>c.openCustomerTab("service")),"5c"),e:e.o((e=>c.openCustomerTab("customer")),"13"),f:n.contentTop,g:n.contentBottom}}],["__scopeId","data-v-ba0b423c"]]);wx.createComponent(o);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="scenario-wrapper data-v-08e7a06f" style="{{'top:' + f + ';' + ('bottom:' + g)}}"><scroll-view class="content-scroll data-v-08e7a06f" scroll-y="true"><view class="category-section two-column data-v-08e7a06f"><view class="category-header data-v-08e7a06f"><text class="category-icon data-v-08e7a06f">🏷️</text><text class="category-title data-v-08e7a06f">接待页面标签</text></view><view class="function-grid data-v-08e7a06f"><view class="function-item data-v-08e7a06f" bindtap="{{a}}"><view class="function-icon data-v-08e7a06f">🛎️</view><text class="function-name data-v-08e7a06f">开始接待</text><text class="function-desc data-v-08e7a06f">进入接待页并切到开始接待</text></view><view class="function-item data-v-08e7a06f" bindtap="{{b}}"><view class="function-icon data-v-08e7a06f">📌</view><text class="function-name data-v-08e7a06f">服务中</text><text class="function-desc data-v-08e7a06f">进入接待页并切到服务中</text></view><view class="function-item data-v-08e7a06f" bindtap="{{c}}"><view class="function-icon data-v-08e7a06f">🗂️</view><text class="function-name data-v-08e7a06f">标签管理</text><text class="function-desc data-v-08e7a06f">进入接待页并切到标签管理</text></view></view></view><view class="category-section two-column data-v-08e7a06f"><view class="category-header data-v-08e7a06f"><text class="category-icon data-v-08e7a06f">👤</text><text class="category-title data-v-08e7a06f">客户页面标签</text></view><view class="function-grid data-v-08e7a06f"><view class="function-item data-v-08e7a06f" bindtap="{{d}}"><view class="function-icon data-v-08e7a06f">📝</view><text class="function-name data-v-08e7a06f">服务记录</text><text class="function-desc data-v-08e7a06f">进入客户页并切到服务记录</text></view><view class="function-item data-v-08e7a06f" bindtap="{{e}}"><view class="function-icon data-v-08e7a06f">👥</view><text class="function-name data-v-08e7a06f">客户</text><text class="function-desc data-v-08e7a06f">进入客户页并切到客户列表</text></view></view></view></scroll-view></view>
|
||||
<view class="scenario-wrapper data-v-ba0b423c" style="{{'top:' + f + ';' + ('bottom:' + g)}}"><scroll-view class="content-scroll data-v-ba0b423c" scroll-y="true"><view class="category-section two-column data-v-ba0b423c"><view class="category-header data-v-ba0b423c"><text class="category-icon data-v-ba0b423c">🏷️</text><text class="category-title data-v-ba0b423c">接待</text></view><view class="function-grid data-v-ba0b423c"><view class="function-item data-v-ba0b423c" bindtap="{{a}}"><view class="function-icon data-v-ba0b423c">🛎️</view><text class="function-name data-v-ba0b423c">开始接待</text><text class="function-desc data-v-ba0b423c"></text></view><view class="function-item data-v-ba0b423c" bindtap="{{b}}"><view class="function-icon data-v-ba0b423c">📌</view><text class="function-name data-v-ba0b423c">服务中</text><text class="function-desc data-v-ba0b423c"></text></view><view class="function-item data-v-ba0b423c" bindtap="{{c}}"><view class="function-icon data-v-ba0b423c">🗂️</view><text class="function-name data-v-ba0b423c">标签管理</text><text class="function-desc data-v-ba0b423c"></text></view></view></view><view class="category-section two-column data-v-ba0b423c"><view class="category-header data-v-ba0b423c"><text class="category-icon data-v-ba0b423c">👤</text><text class="category-title data-v-ba0b423c">客户</text></view><view class="function-grid data-v-ba0b423c"><view class="function-item data-v-ba0b423c" bindtap="{{d}}"><view class="function-icon data-v-ba0b423c">📝</view><text class="function-name data-v-ba0b423c">服务记录</text><text class="function-desc data-v-ba0b423c"></text></view><view class="function-item data-v-ba0b423c" bindtap="{{e}}"><view class="function-icon data-v-ba0b423c">👥</view><text class="function-name data-v-ba0b423c">客户</text><text class="function-desc data-v-ba0b423c"></text></view></view></view></scroll-view></view>
|
||||
@@ -1 +1 @@
|
||||
.scenario-wrapper.data-v-08e7a06f{position:absolute;left:0;right:0}.content-scroll.data-v-08e7a06f{height:100%}.category-section.data-v-08e7a06f{margin:20rpx 30rpx;background:#fff;border-radius:16rpx;overflow:hidden;box-shadow:0 2rpx 8rpx rgba(0,0,0,.04)}.category-section.data-v-08e7a06f:first-child{margin-top:0}.category-section.data-v-08e7a06f:last-child{margin-bottom:0}.category-header.data-v-08e7a06f{display:flex;align-items:center;padding:30rpx;background:#fff;border-bottom:1rpx solid #f0f0f0}.category-icon.data-v-08e7a06f{font-size:32rpx;margin-right:20rpx}.category-title.data-v-08e7a06f{font-size:32rpx;font-weight:500;color:#333}.function-grid.data-v-08e7a06f{display:flex;flex-wrap:wrap;padding:10rpx}.two-column .function-item.data-v-08e7a06f{flex:1;background:#fff;border-radius:12rpx;padding:24rpx 16rpx;margin:0 5rpx;text-align:center;box-shadow:0 2rpx 4rpx rgba(0,0,0,.04);transition:all .3s ease;border:1rpx solid #f0f0f0}.function-item.data-v-08e7a06f{min-width:42%}.function-item.data-v-08e7a06f:active{transform:scale(.95);box-shadow:0 1rpx 2rpx rgba(0,0,0,.1)}.function-icon.data-v-08e7a06f{font-size:48rpx;margin-bottom:12rpx}.function-name.data-v-08e7a06f{display:block;font-size:28rpx;font-weight:500;color:#333;margin-bottom:8rpx}.function-desc.data-v-08e7a06f{display:block;font-size:24rpx;color:#666;line-height:1.4}
|
||||
.scenario-wrapper.data-v-ba0b423c{position:absolute;left:0;right:0}.content-scroll.data-v-ba0b423c{height:100%}.category-section.data-v-ba0b423c{margin:20rpx 30rpx;background:#fff;border-radius:16rpx;overflow:hidden;box-shadow:0 2rpx 8rpx rgba(0,0,0,.04)}.category-section.data-v-ba0b423c:first-child{margin-top:0}.category-section.data-v-ba0b423c:last-child{margin-bottom:0}.category-header.data-v-ba0b423c{display:flex;align-items:center;padding:30rpx;background:#fff;border-bottom:1rpx solid #f0f0f0}.category-icon.data-v-ba0b423c{font-size:32rpx;margin-right:20rpx}.category-title.data-v-ba0b423c{font-size:32rpx;font-weight:500;color:#333}.function-grid.data-v-ba0b423c{display:flex;flex-wrap:wrap;padding:10rpx}.two-column .function-item.data-v-ba0b423c{flex:1;background:#fff;border-radius:12rpx;padding:24rpx 16rpx;margin:0 5rpx;text-align:center;box-shadow:0 2rpx 4rpx rgba(0,0,0,.04);transition:all .3s ease;border:1rpx solid #f0f0f0}.function-item.data-v-ba0b423c{min-width:42%}.function-item.data-v-ba0b423c:active{transform:scale(.95);box-shadow:0 1rpx 2rpx rgba(0,0,0,.1)}.function-icon.data-v-ba0b423c{font-size:48rpx;margin-bottom:12rpx}.function-name.data-v-ba0b423c{display:block;font-size:28rpx;font-weight:500;color:#333;margin-bottom:8rpx}.function-desc.data-v-ba0b423c{display:block;font-size:24rpx;color:#666;line-height:1.4}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js");const t={components:{SalesScenarioNew:()=>"./components/sales_scenario_new.js"},data:()=>({contentTop:2*function(){try{return{statusBarHeight:e.index.getSystemInfoSync().statusBarHeight||20}}catch(t){return{statusBarHeight:20}}}().statusBarHeight+88+"rpx",contentBottom:"96rpx",isSalesScenario:!1}),onShow(){this.refreshScenario()},methods:{refreshScenario(){const t=(e.index.getStorageSync("backend-scenario")||"").toString().toLowerCase();this.isSalesScenario="sales"===t,this.isSalesScenario||e.index.switchTab({url:"/pages/ai_analysis/ai_analysis"})}}};if(!Array){(e.resolveComponent("uni-nav-bar")+e.resolveComponent("sales-scenario-new"))()}Math;const n=e._export_sfc(t,[["render",function(t,n,o,s,a,r){return e.e({a:e.p({fixed:!0,statusBar:!0,border:!1,title:"工作台",color:"#333",backgroundColor:"#FFFFFF"}),b:a.isSalesScenario},a.isSalesScenario?{c:e.p({contentTop:a.contentTop,contentBottom:a.contentBottom})}:{})}],["__scopeId","data-v-b6747fba"]]);wx.createPage(n);
|
||||
"use strict";const e=require("../../common/vendor.js");const o={components:{SalesScenarioNew:()=>"./components/sales_scenario_new.js",AiAnalysisDashboardBody:()=>"../../components/ai-analysis-dashboard-body.js"},data:()=>({contentTop:2*function(){try{return{statusBarHeight:e.index.getSystemInfoSync().statusBarHeight||20}}catch(o){return{statusBarHeight:20}}}().statusBarHeight+88+"rpx",contentBottom:"96rpx",isSalesScenario:!1,isSoftSalesScenario:!1}),onShow(){this.refreshScenario()},methods:{refreshScenario(){const o=(e.index.getStorageSync("backend-scenario")||"").toString().trim().toLowerCase();this.isSalesScenario="sales"===o,this.isSoftSalesScenario="soft_sales"===o}}};if(!Array){(e.resolveComponent("uni-nav-bar")+e.resolveComponent("sales-scenario-new")+e.resolveComponent("ai-analysis-dashboard-body"))()}Math;const t=e._export_sfc(o,[["render",function(o,t,n,s,a,r){return e.e({a:e.p({fixed:!0,statusBar:!0,border:!1,title:"工作台",color:"#333",backgroundColor:"#FFFFFF"}),b:a.isSalesScenario},a.isSalesScenario?{c:e.p({contentTop:a.contentTop,contentBottom:a.contentBottom})}:a.isSoftSalesScenario?{e:e.p({"content-top":a.contentTop,"content-bottom":a.contentBottom})}:{},{d:a.isSoftSalesScenario})}],["__scopeId","data-v-493fce2d"]]);wx.createPage(t);
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"sales-scenario-new": "./components/sales_scenario_new",
|
||||
"ai-analysis-dashboard-body": "../../components/ai-analysis-dashboard-body",
|
||||
"uni-nav-bar": "../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar"
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<view class="page data-v-b6747fba"><uni-nav-bar wx:if="{{a}}" class="data-v-b6747fba" u-i="b6747fba-0" bind:__l="__l" u-p="{{a}}"/><view class="content data-v-b6747fba"><sales-scenario-new wx:if="{{b}}" class="data-v-b6747fba" u-i="b6747fba-1" bind:__l="__l" u-p="{{c}}"/><view wx:else class="redirecting-text data-v-b6747fba">正在跳转到 AI 分析...</view></view></view>
|
||||
<view class="page data-v-493fce2d"><uni-nav-bar wx:if="{{a}}" class="data-v-493fce2d" u-i="493fce2d-0" bind:__l="__l" u-p="{{a}}"/><view class="content data-v-493fce2d"><sales-scenario-new wx:if="{{b}}" class="data-v-493fce2d" u-i="493fce2d-1" bind:__l="__l" u-p="{{c}}"/><ai-analysis-dashboard-body wx:elif="{{d}}" class="data-v-493fce2d" u-i="493fce2d-2" bind:__l="__l" u-p="{{e}}"/><view wx:else class="redirecting-text data-v-493fce2d"><text class="data-v-493fce2d">当前未配置为销售或轻销场景(backend-scenario 不是 sales / soft_sales),工作台入口已隐藏。</text></view></view></view>
|
||||
@@ -1 +1 @@
|
||||
page.data-v-b6747fba{background-color:#f5f5f5}.page.data-v-b6747fba{min-height:100vh;background-color:#f5f5f5}.content.data-v-b6747fba{position:relative;min-height:100vh}.redirecting-text.data-v-b6747fba{padding:40rpx 30rpx;color:#666;font-size:28rpx;text-align:center}
|
||||
page.data-v-493fce2d{background-color:#f5f5f5}.page.data-v-493fce2d{min-height:100vh;background-color:#f5f5f5}.content.data-v-493fce2d{position:relative;width:100%;min-height:100vh;box-sizing:border-box}.redirecting-text.data-v-493fce2d{padding:40rpx 30rpx;color:#666;font-size:28rpx;text-align:center}
|
||||
|
||||
Reference in New Issue
Block a user