修正跳转逻辑

This commit is contained in:
zhonghua.li
2026-04-19 15:48:33 +08:00
parent 15c554a7c2
commit 9d1b425f0a
6 changed files with 16 additions and 22 deletions

View File

@@ -1 +1 @@
"use strict";const e=require("../../../common/vendor.js"),o={name:"SalesScenarioNew",props:{contentTop:{type:String,default:"0rpx"},contentBottom:{type:String,default:"0rpx"}},methods:{openReceptionTab(o){if(!["status","reception","tag"].includes(o))return;const n=`/pages-subpackage/furniture_reception/furniture_reception_entry?tab=${encodeURIComponent(o)}`;e.index.navigateTo({url:n,fail:()=>{e.index.showToast({title:"跳转接待页失败",icon:"none"})}})},goReceptionInProgressPage(o){e.index.navigateTo({url:"/pages-subpackage/furniture_reception/reception_in_progress",fail:()=>{e.index.showToast({title:o||"页面打开失败",icon:"none"})}})},openReceptionInProgress(){this.goReceptionInProgressPage("跳转接待中失败")},openCustomerTab(o){const n=`/pages-subpackage/furniture_customer/furniture_customer?tab=${o}`;e.index.navigateTo({url:n})}}};const n=e._export_sfc(o,[["render",function(o,n,t,r,a,i){return{a:e.o((e=>i.openReceptionTab("reception")),"28"),b:e.o((e=>i.goReceptionInProgressPage("跳转服务中失败")),"e9"),c:e.o((e=>i.openReceptionTab("tag")),"2f"),d:e.o((e=>i.openCustomerTab("service")),"74"),e:e.o((e=>i.openCustomerTab("customer")),"34"),f:t.contentTop,g:t.contentBottom}}],["__scopeId","data-v-fecda258"]]);wx.createComponent(n);
"use strict";const e=require("../../../common/vendor.js"),o={name:"SalesScenarioNew",props:{contentTop:{type:String,default:"0rpx"},contentBottom:{type:String,default:"0rpx"}},methods:{goReceptionInProgressPage(o,t){let n="/pages-subpackage/furniture_reception/reception_in_progress";"reception"!==t&&"status"!==t&&"tag"!==t||(n+=`?tab=${encodeURIComponent(t)}`),e.index.navigateTo({url:n,fail:()=>{e.index.showToast({title:o||"页面打开失败",icon:"none"})}})},openReceptionInProgress(){this.goReceptionInProgressPage("跳转接待中失败")},openCustomerTab(o){const t=`/pages-subpackage/furniture_customer/furniture_customer?tab=${o}`;e.index.navigateTo({url:t})}}};const t=e._export_sfc(o,[["render",function(o,t,n,r,s,c){return{a:e.o((e=>c.goReceptionInProgressPage("跳转开始接待失败","reception")),"32"),b:e.o((e=>c.goReceptionInProgressPage("跳转服务中失败")),"17"),c:e.o((e=>c.goReceptionInProgressPage("跳转标签管理失败","tag")),"df"),d:e.o((e=>c.openCustomerTab("service")),"08"),e:e.o((e=>c.openCustomerTab("customer")),"f2"),f:n.contentTop,g:n.contentBottom}}],["__scopeId","data-v-077bc1c5"]]);wx.createComponent(t);

View File

@@ -1 +1 @@
<view class="scenario-wrapper data-v-fecda258" style="{{'top:' + f + ';' + ('bottom:' + g)}}"><scroll-view class="content-scroll data-v-fecda258" scroll-y="true"><view class="category-section two-column data-v-fecda258"><view class="category-header data-v-fecda258"><text class="category-icon data-v-fecda258">🏷️</text><text class="category-title data-v-fecda258">接待</text></view><view class="function-grid data-v-fecda258"><view class="function-item data-v-fecda258" bindtap="{{a}}"><view class="function-icon data-v-fecda258">🛎️</view><text class="function-name data-v-fecda258">开始接待</text><text class="function-desc data-v-fecda258"></text></view><view class="function-item data-v-fecda258" bindtap="{{b}}"><view class="function-icon data-v-fecda258">📌</view><text class="function-name data-v-fecda258">服务中</text><text class="function-desc data-v-fecda258"></text></view><view class="function-item data-v-fecda258" bindtap="{{c}}"><view class="function-icon data-v-fecda258">🗂️</view><text class="function-name data-v-fecda258">标签管理</text><text class="function-desc data-v-fecda258"></text></view></view></view><view class="category-section two-column data-v-fecda258"><view class="category-header data-v-fecda258"><text class="category-icon data-v-fecda258">👤</text><text class="category-title data-v-fecda258">客户</text></view><view class="function-grid data-v-fecda258"><view class="function-item data-v-fecda258" bindtap="{{d}}"><view class="function-icon data-v-fecda258">📝</view><text class="function-name data-v-fecda258">服务记录</text><text class="function-desc data-v-fecda258"></text></view><view class="function-item data-v-fecda258" bindtap="{{e}}"><view class="function-icon data-v-fecda258">👥</view><text class="function-name data-v-fecda258">客户</text><text class="function-desc data-v-fecda258"></text></view></view></view></scroll-view></view>
<view class="scenario-wrapper data-v-077bc1c5" style="{{'top:' + f + ';' + ('bottom:' + g)}}"><scroll-view class="content-scroll data-v-077bc1c5" scroll-y="true"><view class="category-section two-column data-v-077bc1c5"><view class="category-header data-v-077bc1c5"><text class="category-icon data-v-077bc1c5">🏷️</text><text class="category-title data-v-077bc1c5">接待</text></view><view class="function-grid data-v-077bc1c5"><view class="function-item data-v-077bc1c5" bindtap="{{a}}"><view class="function-icon data-v-077bc1c5">🛎️</view><text class="function-name data-v-077bc1c5">开始接待</text><text class="function-desc data-v-077bc1c5"></text></view><view class="function-item data-v-077bc1c5" bindtap="{{b}}"><view class="function-icon data-v-077bc1c5">📌</view><text class="function-name data-v-077bc1c5">服务中</text><text class="function-desc data-v-077bc1c5"></text></view><view class="function-item data-v-077bc1c5" bindtap="{{c}}"><view class="function-icon data-v-077bc1c5">🗂️</view><text class="function-name data-v-077bc1c5">标签管理</text><text class="function-desc data-v-077bc1c5"></text></view></view></view><view class="category-section two-column data-v-077bc1c5"><view class="category-header data-v-077bc1c5"><text class="category-icon data-v-077bc1c5">👤</text><text class="category-title data-v-077bc1c5">客户</text></view><view class="function-grid data-v-077bc1c5"><view class="function-item data-v-077bc1c5" bindtap="{{d}}"><view class="function-icon data-v-077bc1c5">📝</view><text class="function-name data-v-077bc1c5">服务记录</text><text class="function-desc data-v-077bc1c5"></text></view><view class="function-item data-v-077bc1c5" bindtap="{{e}}"><view class="function-icon data-v-077bc1c5">👥</view><text class="function-name data-v-077bc1c5">客户</text><text class="function-desc data-v-077bc1c5"></text></view></view></view></scroll-view></view>

View File

@@ -1 +1 @@
.scenario-wrapper.data-v-fecda258{position:absolute;left:0;right:0}.content-scroll.data-v-fecda258{height:100%}.category-section.data-v-fecda258{margin:20rpx 30rpx;background:#fff;border-radius:16rpx;overflow:hidden;box-shadow:0 2rpx 8rpx rgba(0,0,0,.04)}.category-section.data-v-fecda258:first-child{margin-top:0}.category-section.data-v-fecda258:last-child{margin-bottom:0}.category-header.data-v-fecda258{display:flex;align-items:center;padding:30rpx;background:#fff;border-bottom:1rpx solid #f0f0f0}.category-icon.data-v-fecda258{font-size:32rpx;margin-right:20rpx}.category-title.data-v-fecda258{font-size:32rpx;font-weight:500;color:#333}.function-grid.data-v-fecda258{display:flex;flex-wrap:wrap;padding:10rpx}.two-column .function-item.data-v-fecda258{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-fecda258{min-width:42%}.function-item.data-v-fecda258:active{transform:scale(.95);box-shadow:0 1rpx 2rpx rgba(0,0,0,.1)}.function-icon.data-v-fecda258{font-size:48rpx;margin-bottom:12rpx}.function-name.data-v-fecda258{display:block;font-size:28rpx;font-weight:500;color:#333;margin-bottom:8rpx}.function-desc.data-v-fecda258{display:block;font-size:24rpx;color:#666;line-height:1.4}
.scenario-wrapper.data-v-077bc1c5{position:absolute;left:0;right:0}.content-scroll.data-v-077bc1c5{height:100%}.category-section.data-v-077bc1c5{margin:20rpx 30rpx;background:#fff;border-radius:16rpx;overflow:hidden;box-shadow:0 2rpx 8rpx rgba(0,0,0,.04)}.category-section.data-v-077bc1c5:first-child{margin-top:0}.category-section.data-v-077bc1c5:last-child{margin-bottom:0}.category-header.data-v-077bc1c5{display:flex;align-items:center;padding:30rpx;background:#fff;border-bottom:1rpx solid #f0f0f0}.category-icon.data-v-077bc1c5{font-size:32rpx;margin-right:20rpx}.category-title.data-v-077bc1c5{font-size:32rpx;font-weight:500;color:#333}.function-grid.data-v-077bc1c5{display:flex;flex-wrap:wrap;padding:10rpx}.two-column .function-item.data-v-077bc1c5{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-077bc1c5{min-width:42%}.function-item.data-v-077bc1c5:active{transform:scale(.95);box-shadow:0 1rpx 2rpx rgba(0,0,0,.1)}.function-icon.data-v-077bc1c5{font-size:48rpx;margin-bottom:12rpx}.function-name.data-v-077bc1c5{display:block;font-size:28rpx;font-weight:500;color:#333;margin-bottom:8rpx}.function-desc.data-v-077bc1c5{display:block;font-size:24rpx;color:#666;line-height:1.4}