微信小程序联调
This commit is contained in:
1
unpackage/dist/build/mp-weixin/pages/xixi/xixi.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/xixi/xixi.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js");function t(){if(void 0!==e.wx$1&&e.wx$1.getWindowInfo)try{const t=e.wx$1.getWindowInfo();return{statusBarHeight:t.statusBarHeight||20,windowWidth:t.windowWidth,windowHeight:t.windowHeight}}catch(t){console.warn("[Xixi] wx.getWindowInfo failed:",t)}try{const t=e.index.getSystemInfoSync();return{statusBarHeight:t.statusBarHeight||20,windowWidth:t.windowWidth,windowHeight:t.windowHeight}}catch(t){return{statusBarHeight:20,windowWidth:375,windowHeight:667}}}const i={who:"我是谁",meet:"约会准备",record:"幸福相遇",diag:"诊断结果",advice:"约会建议"},o={components:{},data:()=>({viewMode:"home",detailKey:null,contentTop:2*t().statusBarHeight+88+"rpx",contentBottom:"96rpx",diagTick:0,adviceRefreshTick:0}),computed:{computedContentTop:()=>2*t().statusBarHeight+88+"rpx",navTitle(){return"detail"===this.viewMode&&this.detailKey&&i[this.detailKey]?i[this.detailKey]:"喜喜"}},onLoad(){this.updateNavbarPosition(),setTimeout((()=>this.preloadSubpackage()),100)},onShow(){this.diagTick+=1,this.adviceRefreshTick+=1,this.$nextTick((()=>{this.updateNavbarPosition(),setTimeout((()=>this.updateNavbarPosition()),50)}))},onReady(){this.$nextTick((()=>{e.index.createSelectorQuery().in(this).select(".uni-navbar__content").boundingClientRect((e=>{if(e&&e.height){const t=Math.max(2*e.height-4,0);this.$set(this,"contentTop",t+"rpx")}else{const e=2*t().statusBarHeight+88;this.$set(this,"contentTop",Math.max(e-4,0)+"rpx")}})).exec();e.index.createSelectorQuery().in(this).select(".tabbar").boundingClientRect((e=>{if(e&&e.height){const t=Math.max(2*e.height-4,0);this.$set(this,"contentBottom",t+"rpx")}else this.$set(this,"contentBottom","96rpx")})).exec(),setTimeout((()=>{e.index.createSelectorQuery().in(this).select(".uni-navbar__content").boundingClientRect((e=>{if(e&&e.height){const t=Math.max(2*e.height-4,0);this.$set(this,"contentTop",t+"rpx")}})).exec();e.index.createSelectorQuery().in(this).select(".tabbar").boundingClientRect((e=>{if(e&&e.height){const t=Math.max(2*e.height-4,0);this.$set(this,"contentBottom",t+"rpx")}})).exec()}),200)}))},methods:{preloadSubpackage(){void 0!==e.wx$1&&e.wx$1.loadSubpackage&&e.wx$1.loadSubpackage({name:"pages-subpackage",success:()=>console.log("[Xixi] subpackage loaded"),fail:e=>console.warn("[Xixi] subpackage preload:",e)})},updateNavbarPosition(){const e=2*t().statusBarHeight+88;this.$set(this,"contentTop",e+"rpx"),this.$forceUpdate()},onNavLeftClick(){if("detail"===this.viewMode)return void this.backHome();getCurrentPages().length<=1||e.index.navigateBack({fail:e=>console.error("[Xixi] navigateBack:",e)})},openDetail(e){this.detailKey=e,this.viewMode="detail","diag"!==e&&"record"!==e||(this.diagTick+=1),"advice"===e&&(this.adviceRefreshTick+=1)},backHome(){this.viewMode="home",this.detailKey=null},onFormSaved(){},onRecordingsChanged(){this.diagTick+=1}}};if(!Array){(e.resolveComponent("uni-nav-bar")+e.resolveComponent("XixiWhoAmI")+e.resolveComponent("XixiFirstMeeting")+e.resolveComponent("XixiRecord")+e.resolveComponent("XixiDiagnosis")+e.resolveComponent("XixiDatingAdvice"))()}Math;const n=e._export_sfc(o,[["render",function(t,i,o,n,a,s){return{a:e.o(s.onNavLeftClick,"ee"),b:e.p({fixed:!0,statusBar:!0,border:!1,title:s.navTitle,leftIcon:"detail"===a.viewMode?"left":"",color:"#333",backgroundColor:"#FFFFFF"}),c:e.o((e=>s.openDetail("who")),"19"),d:e.o((e=>s.openDetail("meet")),"c2"),e:e.o((e=>s.openDetail("advice")),"1a"),f:e.o((e=>s.openDetail("record")),"31"),g:e.o((e=>s.openDetail("diag")),"0a"),h:"home"===a.viewMode,i:s.computedContentTop||a.contentTop,j:a.contentBottom||"96rpx",k:e.o(s.onFormSaved,"a3"),l:"who"===a.detailKey,m:e.o(s.onFormSaved,"aa"),n:"meet"===a.detailKey,o:e.o(s.onRecordingsChanged,"f1"),p:"record"===a.detailKey,q:e.p({"refresh-tick":a.diagTick}),r:"diag"===a.detailKey,s:e.p({"refresh-tick":a.adviceRefreshTick}),t:"advice"===a.detailKey,v:"detail"===a.viewMode,w:s.computedContentTop||a.contentTop,x:a.contentBottom||"96rpx"}}],["__scopeId","data-v-c063f8dd"]]);wx.createPage(n);
|
||||
6
unpackage/dist/build/mp-weixin/pages/xixi/xixi.json
vendored
Normal file
6
unpackage/dist/build/mp-weixin/pages/xixi/xixi.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"uni-nav-bar": "../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/xixi/xixi.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/xixi/xixi.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="page data-v-c063f8dd"><uni-nav-bar wx:if="{{b}}" class="data-v-c063f8dd" bindclickLeft="{{a}}" u-i="c063f8dd-0" bind:__l="__l" u-p="{{b}}"/><view class="content data-v-c063f8dd"><scroll-view hidden="{{!h}}" class="content-scroll data-v-c063f8dd" scroll-y="true" style="{{'top:' + i + ';' + ('bottom:' + j)}}"><view class="category-section two-column data-v-c063f8dd"><view class="category-header data-v-c063f8dd"><text class="category-icon data-v-c063f8dd">💕</text><text class="category-title data-v-c063f8dd">恋爱自画像</text></view><view class="function-grid data-v-c063f8dd"><view class="function-item data-v-c063f8dd" bindtap="{{c}}"><view class="function-icon data-v-c063f8dd">🪞</view><text class="function-name data-v-c063f8dd">我是谁</text><text class="function-desc data-v-c063f8dd">自我描述与对另一半的期待</text></view><view class="function-item data-v-c063f8dd" bindtap="{{d}}"><view class="function-icon data-v-c063f8dd">🌷</view><text class="function-name data-v-c063f8dd">约会准备</text><text class="function-desc data-v-c063f8dd">关系阶段与本次见面目标</text></view></view><view class="advice-full data-v-c063f8dd" bindtap="{{e}}"><view class="advice-full-inner data-v-c063f8dd"><view class="function-icon advice-full-icon data-v-c063f8dd">💡</view><view class="advice-full-texts data-v-c063f8dd"><text class="function-name data-v-c063f8dd">约会建议</text><text class="function-desc data-v-c063f8dd">根据「我是谁」与「约会准备」生成今日参考</text></view></view></view></view><view class="category-section two-column data-v-c063f8dd"><view class="category-header data-v-c063f8dd"><text class="category-icon data-v-c063f8dd">💬</text><text class="category-title data-v-c063f8dd">相处与复盘</text></view><view class="function-grid data-v-c063f8dd"><view class="function-item data-v-c063f8dd" bindtap="{{f}}"><view class="function-icon data-v-c063f8dd">🎉</view><text class="function-name data-v-c063f8dd">幸福相遇</text><text class="function-desc data-v-c063f8dd">录音记录与智能分析</text></view><view class="function-item data-v-c063f8dd" bindtap="{{g}}"><view class="function-icon data-v-c063f8dd">📋</view><text class="function-name data-v-c063f8dd">诊断结果</text><text class="function-desc data-v-c063f8dd">查看历史诊断与建议</text></view></view></view></scroll-view><view hidden="{{!v}}" class="detail-wrap data-v-c063f8dd" style="{{'top:' + w + ';' + ('bottom:' + x)}}"><view hidden="{{!l}}" class="detail-panel data-v-c063f8dd"><xixi-who-am-i class="data-v-c063f8dd" bindsaved="{{k}}" u-i="c063f8dd-1" bind:__l="__l"/></view><view hidden="{{!n}}" class="detail-panel data-v-c063f8dd"><xixi-first-meeting class="data-v-c063f8dd" bindsaved="{{m}}" u-i="c063f8dd-2" bind:__l="__l"/></view><view hidden="{{!p}}" class="detail-panel data-v-c063f8dd"><xixi-record class="data-v-c063f8dd" bindrecordingsChanged="{{o}}" u-i="c063f8dd-3" bind:__l="__l"/></view><view hidden="{{!r}}" class="detail-panel data-v-c063f8dd"><xixi-diagnosis wx:if="{{q}}" class="data-v-c063f8dd" u-i="c063f8dd-4" bind:__l="__l" u-p="{{q}}"/></view><view hidden="{{!t}}" class="detail-panel data-v-c063f8dd"><xixi-dating-advice wx:if="{{s}}" class="data-v-c063f8dd" u-i="c063f8dd-5" bind:__l="__l" u-p="{{s}}"/></view></view></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/xixi/xixi.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/xixi/xixi.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
page.data-v-c063f8dd{background-color:#f5f5f5}.page.data-v-c063f8dd{min-height:100vh;background-color:#f5f5f5}.content.data-v-c063f8dd{padding-top:0!important;margin-top:0!important;position:relative;min-height:100vh;top:0}.data-v-c063f8dd .uni-navbar__placeholder,.data-v-c063f8dd .uni-navbar__placeholder-view,.data-v-c063f8dd [class*=tabbar][class*=placeholder],.data-v-c063f8dd [class*=safe-area][class*=bottom],.data-v-c063f8dd [class*=bottom][class*=safe]{display:none!important;height:0!important}.content-scroll.data-v-c063f8dd{position:absolute;left:0;right:0;top:0;bottom:0;padding:0!important;margin:0!important;box-sizing:border-box}.detail-wrap.data-v-c063f8dd{position:absolute;left:0;right:0;overflow:hidden;box-sizing:border-box;background-color:#f5f5f5}.detail-panel.data-v-c063f8dd{height:100%;width:100%;box-sizing:border-box}.category-section.data-v-c063f8dd{margin:20rpx 30rpx;background:#fff;border-radius:16rpx;overflow:hidden;box-shadow:0 2rpx 8rpx rgba(0,0,0,.04)}.category-section.data-v-c063f8dd:first-child{margin-top:0}.category-section.data-v-c063f8dd:last-child{margin-bottom:0}.category-header.data-v-c063f8dd{display:flex;align-items:center;padding:30rpx;background:#fff;border-bottom:1rpx solid #f0f0f0}.category-icon.data-v-c063f8dd{font-size:32rpx;margin-right:20rpx}.category-title.data-v-c063f8dd{font-size:32rpx;font-weight:500;color:#333}.function-grid.data-v-c063f8dd{display:flex;flex-wrap:wrap;padding:10rpx}.two-column .function-item.data-v-c063f8dd{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-c063f8dd:active{transform:scale(.95);box-shadow:0 1rpx 2rpx rgba(0,0,0,.1)}.function-icon.data-v-c063f8dd{font-size:48rpx;margin-bottom:12rpx}.function-name.data-v-c063f8dd{display:block;font-size:28rpx;font-weight:500;color:#333;margin-bottom:8rpx}.function-desc.data-v-c063f8dd{display:block;font-size:24rpx;color:#666;line-height:1.4}.advice-full.data-v-c063f8dd{padding:0 15rpx 18rpx;box-sizing:border-box}.advice-full-inner.data-v-c063f8dd{display:flex;flex-direction:row;align-items:center;background:linear-gradient(135deg,#fff8fa,#fff);border-radius:12rpx;padding:24rpx 20rpx;margin:0 5rpx;border:1rpx solid #f5d0e0;box-shadow:0 2rpx 8rpx rgba(233,30,140,.08)}.advice-full:active .advice-full-inner.data-v-c063f8dd{transform:scale(.98);opacity:.96}.advice-full-icon.data-v-c063f8dd{margin-bottom:0;margin-right:20rpx;flex-shrink:0}.advice-full-texts.data-v-c063f8dd{flex:1;min-width:0;text-align:left}.advice-full-texts .function-name.data-v-c063f8dd,.advice-full-texts .function-desc.data-v-c063f8dd{text-align:left}
|
||||
Reference in New Issue
Block a user