2025/2/8第一次更新

This commit is contained in:
爱吃咸鱼小猫咪
2025-02-08 18:50:38 +08:00
commit d7af560866
26519 changed files with 5046029 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
"use strict";const e=require("../../common/vendor.js"),o=require("../../composables/useCommon.js"),n=require("../../stores/appStore.js"),s=require("../../composables/useWorkFlow.js"),t=require("../../utils/emitter.js"),i=require("../../types/event.types.js");if(!Array){(e.resolveComponent("up-status-bar")+e.resolveComponent("up-avatar")+e.resolveComponent("up-icon")+e.resolveComponent("up-cell")+e.resolveComponent("up-cell-group"))()}Math||(r+(()=>"../../node-modules/uview-plus/components/u-status-bar/u-status-bar.js")+(()=>"../../node-modules/uview-plus/components/u-avatar/u-avatar.js")+l+a+(()=>"../../node-modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../node-modules/uview-plus/components/u-cell/u-cell.js")+(()=>"../../node-modules/uview-plus/components/u-cell-group/u-cell-group.js")+c+u)();const r=()=>"../../components/common/MyNavbar.js",u=()=>"../../layouts/BaseLayout.js",a=()=>"../../components/GetUserInfoPopup.js",c=()=>"../../node-modules/@tuniao/tnui-vue3-uniapp/components/icon/src/icon.js",l=()=>"../../components/home/UserMemberInfo.js",p=e.defineComponent({__name:"setting",setup(r){const{user:u}=e.storeToRefs(n.useAppStore());function a(){e.index.navigateTo({url:"/pages/history/history"})}e.ref(!0),e.ref("");const c=async()=>{if(o.isLogin.value)return;e.index.showLoading({title:"正在登录...",mask:!0});const{uniPlatform:n}=e.index.getSystemInfoSync();if("web"!==n)l();else{console.log("dev");const n=await o.loginByUsername({username:"test456",password:"123456"});o.saveLoginInfo(n),e.index.hideLoading()}},l=()=>{e.index.login({success:async function({code:n}){const s=await o.loginByWechatCode(n);o.saveLoginInfo(s),e.index.hideLoading()},fail:function(o){e.index.showToast({title:"登录错误",icon:"none"})}})},{socketInit:p}=s.useWorkFlow();e.onReady((()=>{p(),t.on(i.EventType.PAY_SUCCESS,(({order_id:e})=>m(e)))}));const m=async n=>{console.log("收到支付成功消息",n);const s=await o.getOrderInfoById(n);s[0]&&1===s[0].order_status&&(e.index.showToast({title:"支付成功",icon:"none"}),o.refreshUserInfo())},d=()=>{e.index.showLoading({title:"正在退出登录...",mask:!0}),o.loginOut(),e.index.hideLoading(),e.index.showToast({title:"退出成功",icon:"none"})},{showPay:g}=e.storeToRefs(n.useAppStore());return(n,s)=>e.e({a:e.o(c),b:e.p({src:e.unref(u).avatar_url,size:"80"}),c:!e.unref(o.isLogin)},(e.unref(o.isLogin),{}),{d:e.unref(o.isLogin)},e.unref(o.isLogin)?{e:e.t(e.unref(u).nickname)}:{},{f:e.unref(o.isLogin)},e.unref(o.isLogin)?{g:e.t(e.unref(u).balance)}:{},{h:e.p({name:"scan",color:"#969799",size:"28"}),i:e.p({name:"arrow-right",color:"#969799",size:"28"}),j:e.o((e=>g.value=!0)),k:e.p({icon:"rmb-circle",title:"成为会员"}),l:e.o(a),m:e.p({icon:"photo",title:"绘图历史"}),n:e.p({name:"logout"}),o:e.o(d),p:e.p({icon:"setting",title:"退出登录"})})}});wx.createPage(p);
+15
View File
@@ -0,0 +1,15 @@
{
"navigationBarTitleText": "Fuzi-AI",
"usingComponents": {
"up-status-bar": "../../node-modules/uview-plus/components/u-status-bar/u-status-bar",
"up-avatar": "../../node-modules/uview-plus/components/u-avatar/u-avatar",
"up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon",
"up-cell": "../../node-modules/uview-plus/components/u-cell/u-cell",
"up-cell-group": "../../node-modules/uview-plus/components/u-cell-group/u-cell-group",
"my-navbar": "../../components/common/MyNavbar",
"base-layout": "../../layouts/BaseLayout",
"get-user-info-popup": "../../components/GetUserInfoPopup",
"tn-icon": "../../node-modules/@tuniao/tnui-vue3-uniapp/components/icon/src/icon",
"user-member-info": "../../components/home/UserMemberInfo"
}
}
+1
View File
@@ -0,0 +1 @@
<base-layout u-s="{{['d']}}" u-i="50337cbc-0" bind:__l="__l" class="{{[virtualHostClass]}}" virtualHostClass="{{[virtualHostClass]}}" style="{{virtualHostStyle}}" virtualHostStyle="{{virtualHostStyle}}"><view><my-navbar u-i="50337cbc-1,50337cbc-0" bind:__l="__l"/><up-status-bar u-i="50337cbc-2,50337cbc-0" bind:__l="__l"/><view class="u-flex u-row-right" style="width:100%"><view class="camera u-flex u-row-center"></view></view><view class="u-flex u-flex-y-center u-flex-around user-box u-p-l-30 u-p-r-20 u-p-b-30"><view class="u-m-r-10"><up-avatar wx:if="{{b}}" bindclick="{{a}}" u-i="50337cbc-3,50337cbc-0" bind:__l="__l" u-p="{{b}}"></up-avatar><view wx:if="{{c}}" class="tn-text-center tn-text-sm tn-gray-dark_text" style="position:relative;bottom:0">点击头像登录</view></view><view class="u-flex-1"><view wx:if="{{d}}" class="u-font-18 u-p-b-10 tn-text">昵称:{{e}}</view><view wx:else class="u-font-18 u-p-b-10 tn-gray-dark_text">未登录</view><view><user-member-info u-i="50337cbc-4,50337cbc-0" bind:__l="__l"></user-member-info></view><view wx:if="{{f}}" class="tn-text-xs tn-gray-dark_text">余额:{{g}}</view><get-user-info-popup u-i="50337cbc-5,50337cbc-0" bind:__l="__l"/></view><view class="u-m-l-10 u-p-10"><up-icon wx:if="{{h}}" u-i="50337cbc-6,50337cbc-0" bind:__l="__l" u-p="{{h}}"></up-icon></view><view class="u-m-l-10 u-p-10"><up-icon wx:if="{{i}}" u-i="50337cbc-7,50337cbc-0" bind:__l="__l" u-p="{{i}}"></up-icon></view></view><view class="u-m-t-20"><up-cell-group u-s="{{['d']}}" u-i="50337cbc-8,50337cbc-0" bind:__l="__l"><up-cell wx:if="{{k}}" bindclick="{{j}}" u-i="50337cbc-9,50337cbc-8" bind:__l="__l" u-p="{{k}}"></up-cell></up-cell-group></view><view class="u-m-t-20"><up-cell-group u-s="{{['d']}}" u-i="50337cbc-10,50337cbc-0" bind:__l="__l"><up-cell wx:if="{{m}}" bindclick="{{l}}" u-i="50337cbc-11,50337cbc-10" bind:__l="__l" u-p="{{m}}"></up-cell><up-cell wx:if="{{p}}" u-s="{{['icon']}}" bindclick="{{o}}" u-i="50337cbc-12,50337cbc-10" bind:__l="__l" u-p="{{p}}"><tn-icon u-i="50337cbc-13,50337cbc-12" bind:__l="__l" u-p="{{n}}" slot="icon"/></up-cell></up-cell-group></view><view class="u-m-t-20"><up-cell-group u-i="50337cbc-14,50337cbc-0" bind:__l="__l"></up-cell-group></view></view></base-layout>
+1
View File
@@ -0,0 +1 @@
page{background-color:#ededed}.camera{width:54px;height:44px}.camera:active{background-color:#ededed}.user-box,.u-cell-group{background-color:#fff}