baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
Executable
+97
@@ -0,0 +1,97 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<view class="p-title">
|
||||
<text>{{title}}</text>
|
||||
</view>
|
||||
<view class="p-sub-title">
|
||||
<text>{{brief}}</text>
|
||||
</view>
|
||||
<!-- <view class="p-top-date">
|
||||
<view>日期:{{date}}</view>
|
||||
</view> -->
|
||||
<view class="p-content">
|
||||
<view v-html="content"></view>
|
||||
<!-- <p> 已将常用的组件、JS API 封装到框架中,开发者按照
|
||||
uni-app 规范开发即可保证多平台兼容,大部分业务均可直接满足。
|
||||
但每个平台有自己的一些特性,因此会存在一些无法跨平台的情况。
|
||||
大量写 if else,会造成代码执行性能低下和管理混乱。
|
||||
编译到不同的工程后二次修改,会让后续升级变的很麻烦。</p> -->
|
||||
</view>
|
||||
<view class="p-top-date">
|
||||
<view>日期:{{date}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title:'',
|
||||
date:'',
|
||||
brief:'',
|
||||
content:'',
|
||||
subtitle:''
|
||||
}
|
||||
},
|
||||
onLoad:function(option){
|
||||
console.log(option)
|
||||
if(option.data)
|
||||
{
|
||||
var datas=JSON.parse(option.data);
|
||||
console.log(datas)
|
||||
this.title=datas.title
|
||||
this.date=datas.datetime
|
||||
this.content=datas.content
|
||||
}
|
||||
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.page{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.page view{
|
||||
display: flex;
|
||||
}
|
||||
.p-title{
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 35rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
.p-sub-title{
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 28rpx;
|
||||
color: #B2B2B2;
|
||||
font-weight: bold;
|
||||
text-align:justify;//两边对齐
|
||||
text-justify: inter-ideograph;
|
||||
text-indent: 56rpx; //段落首行缩进两个字符
|
||||
padding-left:5%;
|
||||
padding-right:5%;
|
||||
}
|
||||
.p-top-date{
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
padding-right: 40upx;
|
||||
color: #B2B2B2;
|
||||
}
|
||||
.p-content{
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
text-align:justify;
|
||||
text-justify: inter-ideograph;
|
||||
text-indent: 56rpx; //段落首行缩进两个字符
|
||||
padding-left:3%;
|
||||
padding-right:3%;
|
||||
}
|
||||
|
||||
</style>
|
||||
Executable
+156
@@ -0,0 +1,156 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<scroll-view scroll-y="true" scroll-top="100%">
|
||||
<view class="group">
|
||||
<view class="list-info-group" v-for="(item,index) in list" :key="index">
|
||||
<view class="list-info-item">
|
||||
<text class="list-title">{{item.FTitle}}</text>
|
||||
</view>
|
||||
<view class="list-info-item ">
|
||||
<text>发送人:{{item.user_name}}</text>
|
||||
</view>
|
||||
<view class="list-info-item list-border">
|
||||
<text>日期:{{item.FDateTime}}</text>
|
||||
</view>
|
||||
<view class="list-info-center" @click="Detail(item)">
|
||||
<text>查看详情</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
mapState
|
||||
} from 'vuex';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
list:[],
|
||||
pageIndex:1
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['hasLogin', 'userInfo'])
|
||||
},
|
||||
onLoad() {
|
||||
this.GetPrivateInfo()
|
||||
//隐藏TabBar红标
|
||||
this.$global.setUnReadObj({isShow:false})
|
||||
},
|
||||
methods: {
|
||||
GetPrivateInfo(){
|
||||
let requestParams = {
|
||||
"id": this.userInfo.token
|
||||
};
|
||||
|
||||
let tokenParam = this.userInfo.dbAlise+","+this.userInfo.UserID+","+ this.userInfo.UserName;
|
||||
|
||||
uni.showLoading({
|
||||
icon:'loading',
|
||||
title:'加载中……',
|
||||
mask:true
|
||||
});
|
||||
|
||||
this.$request.post(
|
||||
{
|
||||
data: {
|
||||
action: 'GetPrivateMessage',
|
||||
params: requestParams,
|
||||
data:{
|
||||
page:this.pageIndex
|
||||
}
|
||||
}
|
||||
},
|
||||
tokenParam
|
||||
).then(res => {
|
||||
uni.hideLoading();
|
||||
|
||||
let data=JSON.parse(res)
|
||||
for(let item of data)
|
||||
{
|
||||
this.list.push(item)
|
||||
}
|
||||
|
||||
}).catch(err=>{
|
||||
uni.hideLoading();
|
||||
let data=JSON.parse(err)
|
||||
})
|
||||
},
|
||||
Detail:function(item){
|
||||
console.log(item)
|
||||
var data = {};
|
||||
data.interId=item.FInterID
|
||||
data.datetime = item.FDateTime;
|
||||
data.title = item.FTitle
|
||||
data.article_type = 0;
|
||||
// data.source = this.userInfo.OrgStructures.FName.substr(0, 4)
|
||||
data.comment_count = 0
|
||||
data.content=item.FInfo
|
||||
uni.navigateTo({
|
||||
url: `/pages/home/detail/detail?data=${JSON.stringify(data)}`
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
page{
|
||||
background-color: #F2F2F2;
|
||||
}
|
||||
view{
|
||||
display: flex;
|
||||
}
|
||||
.page{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-bottom: 5%;
|
||||
}
|
||||
.list-info-group{
|
||||
background-color: #FFFFFF;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
border: 1upx solid #D8D8D8;
|
||||
border-radius: 10px;
|
||||
width: 80%;
|
||||
height: 250upx;
|
||||
margin-top: 5%;
|
||||
padding-top: 5px;
|
||||
}
|
||||
.list-info-item{
|
||||
align-items: center;
|
||||
padding-left: 5%;
|
||||
}
|
||||
.list-border{
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
border-bottom: 1upx solid #CCCCCC;
|
||||
}
|
||||
.list-info-center{
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.list-title{
|
||||
font-weight: bold;
|
||||
font-size: 16px;
|
||||
margin-right: 5%;
|
||||
/* 文字不换行 */
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap; //文本不换行,这样超出一行的部分被截取,显示...
|
||||
}
|
||||
|
||||
</style>
|
||||
Reference in new issue
Block a user