适配微信小程序
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
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
"use strict";const n=require("../../common/vendor.js"),e={name:"FurnitureReceptionEntry",components:{FurnitureReceptionImpl:()=>"./furniture_reception-impl.js"},data:()=>({incomingTab:""}),onLoad(n={}){const e=null!=n.tab?String(n.tab):"";this.incomingTab=["status","reception","tag"].includes(e)?e:"reception"}};if(!Array){n.resolveComponent("furniture-reception-impl")()}const t=n._export_sfc(e,[["render",function(e,t,i,r,o,c){return{a:n.p({incomingTab:o.incomingTab})}}]]);wx.createPage(t);
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"furniture-reception-impl": "./furniture_reception-impl"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<furniture-reception-impl wx:if="{{a}}" u-i="85aeeb16-0" bind:__l="__l" u-p="{{a}}"/>
|
||||
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 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),n={data:()=>({sceneInfo:{title:"",navItems:[]}}),onLoad(n){if(n.scene)try{this.sceneInfo=JSON.parse(decodeURIComponent(n.scene))}catch(o){console.error("解析场景信息失败:",o),e.index.showToast({title:"参数错误",icon:"none"}),setTimeout((()=>{e.index.navigateBack()}),1500)}},methods:{goBack(){e.index.navigateBack()},navigateToPage(n){if(n.path){["/pages/furniture_reception/furniture_reception","/pages-subpackage/furniture_customer/furniture_customer","/pages/furniture_top_sales/furniture_top_sales","/pages/ucenter/ucenter"].includes(n.path)?e.index.switchTab({url:n.path,fail:n=>{console.error("跳转失败:",n),e.index.showToast({title:"页面不存在",icon:"none"})}}):e.index.navigateTo({url:n.path,fail:n=>{console.error("跳转失败:",n),e.index.showToast({title:"页面不存在",icon:"none"})}})}else e.index.showToast({title:"页面路径未配置",icon:"none"})}}};if(!Array){(e.resolveComponent("uni-nav-bar")+e.resolveComponent("uni-icons"))()}Math||((()=>"../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"))();const o=e._export_sfc(n,[["render",function(n,o,t,i,a,s){return{a:e.o(s.goBack,"23"),b:e.p({fixed:!0,statusBar:!0,border:!1,title:a.sceneInfo.title,leftIcon:"left",color:"#333",backgroundColor:"#FFFFFF"}),c:e.f(a.sceneInfo.navItems,((n,o,t)=>({a:"d06f0ee7-1-"+t,b:e.t(n.title),c:"d06f0ee7-2-"+t,d:o,e:e.o((e=>s.navigateToPage(n)),o)}))),d:e.p({type:"right",size:"20",color:"#CCCCCC"}),e:e.p({type:"right",size:"16",color:"#CCCCCC"})}}],["__scopeId","data-v-d06f0ee7"]]);wx.createPage(o);
|
||||
"use strict";const e=require("../../common/vendor.js"),n={data:()=>({sceneInfo:{title:"",navItems:[]}}),onLoad(n){if(n.scene)try{this.sceneInfo=JSON.parse(decodeURIComponent(n.scene))}catch(o){console.error("解析场景信息失败:",o),e.index.showToast({title:"参数错误",icon:"none"}),setTimeout((()=>{e.index.navigateBack()}),1500)}},methods:{goBack(){e.index.navigateBack()},navigateToPage(n){if(n.path){const o=["/pages-subpackage/furniture_customer/furniture_customer","/pages/workbench/workbench","/pages/furniture_top_sales/furniture_top_sales","/pages/ucenter/ucenter"];"/pages/furniture_reception/furniture_reception"===n.path?e.index.navigateTo({url:n.path,fail:n=>{console.error("跳转失败:",n),e.index.showToast({title:"页面不存在",icon:"none"})}}):o.includes(n.path)?e.index.switchTab({url:n.path,fail:n=>{console.error("跳转失败:",n),e.index.showToast({title:"页面不存在",icon:"none"})}}):e.index.navigateTo({url:n.path,fail:n=>{console.error("跳转失败:",n),e.index.showToast({title:"页面不存在",icon:"none"})}})}else e.index.showToast({title:"页面路径未配置",icon:"none"})}}};if(!Array){(e.resolveComponent("uni-nav-bar")+e.resolveComponent("uni-icons"))()}Math||((()=>"../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"))();const o=e._export_sfc(n,[["render",function(n,o,t,i,a,r){return{a:e.o(r.goBack,"23"),b:e.p({fixed:!0,statusBar:!0,border:!1,title:a.sceneInfo.title,leftIcon:"left",color:"#333",backgroundColor:"#FFFFFF"}),c:e.f(a.sceneInfo.navItems,((n,o,t)=>({a:"8dd186f2-1-"+t,b:e.t(n.title),c:"8dd186f2-2-"+t,d:o,e:e.o((e=>r.navigateToPage(n)),o)}))),d:e.p({type:"right",size:"20",color:"#CCCCCC"}),e:e.p({type:"right",size:"16",color:"#CCCCCC"})}}],["__scopeId","data-v-8dd186f2"]]);wx.createPage(o);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="page data-v-d06f0ee7"><uni-nav-bar wx:if="{{b}}" class="data-v-d06f0ee7" bindclickLeft="{{a}}" u-i="d06f0ee7-0" bind:__l="__l" u-p="{{b}}"></uni-nav-bar><view class="content data-v-d06f0ee7"><view class="nav-list data-v-d06f0ee7"><view wx:for="{{c}}" wx:for-item="item" wx:key="d" class="nav-item data-v-d06f0ee7" bindtap="{{item.e}}"><view class="nav-item-content data-v-d06f0ee7"><view class="nav-item-icon data-v-d06f0ee7"><uni-icons wx:if="{{d}}" class="data-v-d06f0ee7" u-i="{{item.a}}" bind:__l="__l" u-p="{{d}}"></uni-icons></view><text class="nav-item-title data-v-d06f0ee7">{{item.b}}</text><view class="nav-item-arrow data-v-d06f0ee7"><uni-icons wx:if="{{e}}" class="data-v-d06f0ee7" u-i="{{item.c}}" bind:__l="__l" u-p="{{e}}"></uni-icons></view></view></view></view></view></view>
|
||||
<view class="page data-v-8dd186f2"><uni-nav-bar wx:if="{{b}}" class="data-v-8dd186f2" bindclickLeft="{{a}}" u-i="8dd186f2-0" bind:__l="__l" u-p="{{b}}"></uni-nav-bar><view class="content data-v-8dd186f2"><view class="nav-list data-v-8dd186f2"><view wx:for="{{c}}" wx:for-item="item" wx:key="d" class="nav-item data-v-8dd186f2" bindtap="{{item.e}}"><view class="nav-item-content data-v-8dd186f2"><view class="nav-item-icon data-v-8dd186f2"><uni-icons wx:if="{{d}}" class="data-v-8dd186f2" u-i="{{item.a}}" bind:__l="__l" u-p="{{d}}"></uni-icons></view><text class="nav-item-title data-v-8dd186f2">{{item.b}}</text><view class="nav-item-arrow data-v-8dd186f2"><uni-icons wx:if="{{e}}" class="data-v-8dd186f2" u-i="{{item.c}}" bind:__l="__l" u-p="{{e}}"></uni-icons></view></view></view></view></view></view>
|
||||
@@ -1 +1 @@
|
||||
.page.data-v-d06f0ee7{min-height:100vh;background-color:#f5f5f5}.content.data-v-d06f0ee7{padding:44px 16px 20px}.nav-list.data-v-d06f0ee7{background:#fff;border-radius:12px;overflow:hidden}.nav-item.data-v-d06f0ee7{border-bottom:1px solid #F0F0F0}.nav-item.data-v-d06f0ee7:last-child{border-bottom:none}.nav-item-content.data-v-d06f0ee7{display:flex;align-items:center;padding:20px 16px;transition:background-color .2s}.nav-item:active .nav-item-content.data-v-d06f0ee7{background-color:#f5f5f5}.nav-item-icon.data-v-d06f0ee7{margin-right:12px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#f5f5f5;border-radius:8px}.nav-item-title.data-v-d06f0ee7{flex:1;font-size:16px;color:#333;font-weight:500}.nav-item-arrow.data-v-d06f0ee7{margin-left:12px}
|
||||
.page.data-v-8dd186f2{min-height:100vh;background-color:#f5f5f5}.content.data-v-8dd186f2{padding:44px 16px 20px}.nav-list.data-v-8dd186f2{background:#fff;border-radius:12px;overflow:hidden}.nav-item.data-v-8dd186f2{border-bottom:1px solid #F0F0F0}.nav-item.data-v-8dd186f2:last-child{border-bottom:none}.nav-item-content.data-v-8dd186f2{display:flex;align-items:center;padding:20px 16px;transition:background-color .2s}.nav-item:active .nav-item-content.data-v-8dd186f2{background-color:#f5f5f5}.nav-item-icon.data-v-8dd186f2{margin-right:12px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#f5f5f5;border-radius:8px}.nav-item-title.data-v-8dd186f2{flex:1;font-size:16px;color:#333;font-weight:500}.nav-item-arrow.data-v-8dd186f2{margin-left:12px}
|
||||
|
||||
Reference in New Issue
Block a user