feat(uniapp_v2): 二开功能迁移与小程序主包优化
- 从 uniapp 迁移 HJF 页面、API、组件及用户/订单相关改动 - queue、assets 使用独立分包以降低主包体积 - 修复首页单根节点与支付结果页 v-if 链 - 关闭 HjfDemoPanel 全局注册;uniNoticeBar 注释 $getAppWebview 避免 __webviewId__ 报错 - 配置域名与 manifest 应用名称;cache/store 防御性处理 Made-with: Cursor
This commit is contained in:
61
pro_v3.5.1/view/uniapp_v2/components/emptyPage.vue
Normal file
61
pro_v3.5.1/view/uniapp_v2/components/emptyPage.vue
Normal file
@@ -0,0 +1,61 @@
|
||||
<template>
|
||||
<!-- 无数据时显示 -->
|
||||
<view class="empty-page w-full flex-col flex-center pt-82 bg--w111-fff rd-24rpx">
|
||||
<image class="empty-img" :src="imgSrc"></image>
|
||||
<view v-if="!isLogin" class="fs-28 fw-500 text--w111-282828">暂未登录</view>
|
||||
<view class="fs-26 text--w111-999 lh-36rpx pt-16">{{title}}</view>
|
||||
<view class="w-360 h-72 rd-36rpx flex-center font-num fw-500 fs-26 theme-border mt-48"
|
||||
v-if="!isLogin" @tap="goLog">立即登录</view>
|
||||
<slot name="bottom"></slot>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {HTTP_REQUEST_URL} from '@/config/app';
|
||||
import { toLogin } from '@/libs/login.js';
|
||||
export default{
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
default: '暂无记录',
|
||||
},
|
||||
src:{
|
||||
type: String,
|
||||
default: '/statics/images/empty-box.gif',
|
||||
},
|
||||
isLogin:{
|
||||
type:Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
data(){
|
||||
return{
|
||||
imgHost:HTTP_REQUEST_URL
|
||||
}
|
||||
},
|
||||
computed:{
|
||||
imgSrc(){
|
||||
return HTTP_REQUEST_URL + this.src
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
goLog(){
|
||||
toLogin()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.pt-82{
|
||||
padding: 82rpx 0 160rpx;
|
||||
}
|
||||
.empty-img{
|
||||
width: 440rpx;
|
||||
height: 360rpx;
|
||||
}
|
||||
.theme-border{
|
||||
border: 1px solid var(--view-theme);
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user