2020-09-23

This commit is contained in:
peihaoyu 2020-09-23 18:53:25 +08:00
parent f59bf05263
commit beb2c10506
47 changed files with 20594 additions and 1633 deletions

View File

@ -2,8 +2,10 @@
export default { export default {
onLaunch: function() { onLaunch: function() {
console.log('App Launch'); console.log('App Launch');
/**
setTimeout(() => { * 主页面tab标签红标显示
*/
/* setTimeout(() => {
uni.setTabBarBadge({ uni.setTabBarBadge({
index: 1, index: 1,
text: '31' text: '31'
@ -11,7 +13,7 @@ export default {
uni.showTabBarRedDot({ uni.showTabBarRedDot({
index: 3 index: 3
}); });
}, 1000); }, 1000); */
}, },
onShow: function() { onShow: function() {
console.log('App Show'); console.log('App Show');

View File

@ -0,0 +1,124 @@
<template>
<view :class="[circle === true || circle === 'true' ? 'uni-fav--circle' : '']" :style="[{ backgroundColor: checked ? bgColorChecked : bgColor }]"
@click="onClick" class="uni-fav">
<!-- #ifdef MP-ALIPAY -->
<view class="uni-fav-star" v-if="!checked && (star === true || star === 'true')">
<uni-icons :color="fgColor" :style="{color: checked ? fgColorChecked : fgColor}" size="14" type="star-filled" />
</view>
<!-- #endif -->
<!-- #ifndef MP-ALIPAY -->
<uni-icons :color="fgColor" :style="{color: checked ? fgColorChecked : fgColor}" class="uni-fav-star" size="14" type="star-filled"
v-if="!checked && (star === true || star === 'true')" />
<!-- #endif -->
<text :style="{color: checked ? fgColorChecked : fgColor}" class="uni-fav-text">{{ checked ? contentText.contentFav : contentText.contentDefault }}</text>
</view>
</template>
<script>
import uniIcons from "../uni-icons/uni-icons.vue";
export default {
name: "UniFav",
components: {
uniIcons
},
props: {
star: {
type: [Boolean, String],
default: true
},
bgColor: {
type: String,
default: "#eeeeee"
},
fgColor: {
type: String,
default: "#666666"
},
bgColorChecked: {
type: String,
default: "#007aff"
},
fgColorChecked: {
type: String,
default: "#FFFFFF"
},
circle: {
type: [Boolean, String],
default: false
},
checked: {
type: Boolean,
default: false
},
contentText: {
type: Object,
default () {
return {
contentDefault: "收藏",
contentFav: "已收藏"
};
}
}
},
watch: {
checked() {
if (uni.report) {
if (this.checked) {
uni.report("收藏", "收藏");
} else {
uni.report("取消收藏", "取消收藏");
}
}
}
},
methods: {
onClick() {
this.$emit("click");
}
}
};
</script>
<style lang="scss" scoped>
$fav-height: 25px;
.uni-fav {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: row;
align-items: center;
justify-content: center;
width: 60px;
height: $fav-height;
line-height: $fav-height;
text-align: center;
border-radius: 3px;
}
.uni-fav--circle {
border-radius: 30px;
}
.uni-fav-star {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
height: $fav-height;
line-height: 24px;
margin-right: 3px;
align-items: center;
justify-content: center;
}
.uni-fav-text {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
height: $fav-height;
line-height: $fav-height;
align-items: center;
justify-content: center;
font-size: $uni-font-size-base;
}
</style>

View File

@ -0,0 +1,96 @@
export default {
'contact': '\ue100',
'person': '\ue101',
'personadd': '\ue102',
'contact-filled': '\ue130',
'person-filled': '\ue131',
'personadd-filled': '\ue132',
'phone': '\ue200',
'email': '\ue201',
'chatbubble': '\ue202',
'chatboxes': '\ue203',
'phone-filled': '\ue230',
'email-filled': '\ue231',
'chatbubble-filled': '\ue232',
'chatboxes-filled': '\ue233',
'weibo': '\ue260',
'weixin': '\ue261',
'pengyouquan': '\ue262',
'chat': '\ue263',
'qq': '\ue264',
'videocam': '\ue300',
'camera': '\ue301',
'mic': '\ue302',
'location': '\ue303',
'mic-filled': '\ue332',
'speech': '\ue332',
'location-filled': '\ue333',
'micoff': '\ue360',
'image': '\ue363',
'map': '\ue364',
'compose': '\ue400',
'trash': '\ue401',
'upload': '\ue402',
'download': '\ue403',
'close': '\ue404',
'redo': '\ue405',
'undo': '\ue406',
'refresh': '\ue407',
'star': '\ue408',
'plus': '\ue409',
'minus': '\ue410',
'circle': '\ue411',
'checkbox': '\ue411',
'close-filled': '\ue434',
'clear': '\ue434',
'refresh-filled': '\ue437',
'star-filled': '\ue438',
'plus-filled': '\ue439',
'minus-filled': '\ue440',
'circle-filled': '\ue441',
'checkbox-filled': '\ue442',
'closeempty': '\ue460',
'refreshempty': '\ue461',
'reload': '\ue462',
'starhalf': '\ue463',
'spinner': '\ue464',
'spinner-cycle': '\ue465',
'search': '\ue466',
'plusempty': '\ue468',
'forward': '\ue470',
'back': '\ue471',
'left-nav': '\ue471',
'checkmarkempty': '\ue472',
'home': '\ue500',
'navigate': '\ue501',
'gear': '\ue502',
'paperplane': '\ue503',
'info': '\ue504',
'help': '\ue505',
'locked': '\ue506',
'more': '\ue507',
'flag': '\ue508',
'home-filled': '\ue530',
'gear-filled': '\ue532',
'info-filled': '\ue534',
'help-filled': '\ue535',
'more-filled': '\ue537',
'settings': '\ue560',
'list': '\ue562',
'bars': '\ue563',
'loop': '\ue565',
'paperclip': '\ue567',
'eye': '\ue568',
'arrowup': '\ue580',
'arrowdown': '\ue581',
'arrowleft': '\ue582',
'arrowright': '\ue583',
'arrowthinup': '\ue584',
'arrowthindown': '\ue585',
'arrowthinleft': '\ue586',
'arrowthinright': '\ue587',
'pulldown': '\ue588',
'closefill': '\ue589',
'sound': '\ue590',
'scan': '\ue612'
}

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
{ {
"name" : "家校通", "name" : "HSLink",
"appid" : "__UNI__7C9492E", "appid" : "__UNI__7C9492E",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.0",

View File

@ -43,7 +43,20 @@
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarTitleText": "发布",// "navigationBarTitleText": "发布",//
"navigationBarBackgroundColor": "#333",// "navigationBarBackgroundColor": "#333",//
"navigationBarTextStyle": "white" //whiteblack "navigationBarTextStyle": "white" ,//whiteblack
"app-plus": {
"bounce": "none", //
"titleNView": {
"buttons": [ //,
{
"type":"none",
"text":"发表 ",
"fontSize":"16px",
"float":"right"
}
]
}
}
} }
}, },
{ {
@ -110,7 +123,20 @@
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarTitleText": "个人主页",// "navigationBarTitleText": "个人主页",//
"navigationBarBackgroundColor": "#333",// "navigationBarBackgroundColor": "#333",//
"navigationBarTextStyle": "white" //whiteblack "navigationBarTextStyle": "white",//whiteblack
"app-plus": {
"bounce": "none", //
"titleNView": {
"buttons": [ //,
{
"type":"none",
"text":"私信 ",
"float":"right",
"fontSize":"16px"
}
]
}
}
} }
} }
,{ ,{
@ -131,6 +157,73 @@
"navigationBarTextStyle": "white" //whiteblack "navigationBarTextStyle": "white" //whiteblack
} }
} }
,{
"path" : "pages/tabbar/my/settings/settings",
"style": {
"enablePullDownRefresh": true,
"navigationBarTitleText": "设置",//
"navigationBarBackgroundColor": "#333",//
"navigationBarTextStyle": "white" //whiteblack
}
}
,{
"path" : "pages/tabbar/my/settings/account-security/account-security",
"style": {
"enablePullDownRefresh": true,
"navigationBarTitleText": "账号与安全",//
"navigationBarBackgroundColor": "#333",//
"navigationBarTextStyle": "white" //whiteblack
}
}
,{
"path" : "pages/tabbar/my/settings/agreement/agreement",
"style": {
"enablePullDownRefresh": true,
"navigationBarTitleText": "",//
"navigationBarBackgroundColor": "#333",//
"navigationBarTextStyle": "white" //whiteblack
}
}
,{
"path" : "pages/tabbar/my/settings/system-information/system-information",
"style": {
"enablePullDownRefresh": true,
"navigationBarTitleText": "系统信息",//
"navigationBarBackgroundColor": "#333",//
"navigationBarTextStyle": "white" //whiteblack
}
}
,{
"path" : "pages/tabbar/my/help/help",
"style": {
"enablePullDownRefresh": true,
"navigationBarTitleText": "帮助",//
"navigationBarBackgroundColor": "#333",//
"navigationBarTextStyle": "white" //whiteblack
}
}
,{
"path" : "pages/tabbar/my/edit-info/edit-info",
"style": {
"enablePullDownRefresh": true,
"navigationBarTitleText": "编辑信息",//
"navigationBarBackgroundColor": "#333",//
"navigationBarTextStyle": "white" ,//whiteblack
"app-plus": {
"bounce": "none", //
"titleNView": {
"buttons": [ //,
{
"type":"none",
"text":"保存 ",
"float":"right",
"fontSize":"16px"
}
]
}
}
}
}
], ],
"globalStyle": { "globalStyle": {
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",

View File

@ -55,7 +55,26 @@
this.username = uni.getStorageSync("userInfo").real_name; this.username = uni.getStorageSync("userInfo").real_name;
this.password = uni.getStorageSync("userInfo").pass_word; this.password = uni.getStorageSync("userInfo").pass_word;
}, },
onShow() {
this.getUserType();
},
methods: { methods: {
/**
* 获取字典项数据用户类型
*/
getUserType() {
request.post("/hs/getDictionariesData",{
code: "UserType"
}).then(res => {
console.log("用户类型",res);
this.roleList = [];
res.data.forEach(item => {
this.roleList.push(item.dd_detail)
});
},err => {
console.log("err",err);
})
},
/** /**
* 登录 * 登录
*/ */

View File

@ -151,5 +151,7 @@
.content textarea{ .content textarea{
text-indent: 40rpx; text-indent: 40rpx;
} }
.page{
background-color: #FFFFFF;
}
</style> </style>

View File

@ -95,6 +95,12 @@
onPullDownRefresh () { onPullDownRefresh () {
this.getUserInfo(); this.getUserInfo();
}, },
onNavigationBarButtonTap() {
uni.setStorageSync("otherInfo",this.userInfo);
uni.navigateTo({
url: "/pages/tabbar/message/chat-page"
})
},
methods: { methods: {
/** /**
* 加关注 * 加关注
@ -170,6 +176,7 @@
<style scoped> <style scoped>
.cu-item{ .cu-item{
background-color: #cfcfcf!important; background-color: #cfcfcf!important;
margin: 16rpx 0!important;
} }
.follow-button-ed{ .follow-button-ed{
width: 80%; width: 80%;

View File

@ -11,7 +11,7 @@
<noData :custom="true"><view class="title" @tap="update()">暂无数据,点击重新加载</view></noData> <noData :custom="true"><view class="title" @tap="update()">暂无数据,点击重新加载</view></noData>
</view> </view>
<view class="list cu-card article dynamic" v-else-if="noData === false"> <view class="list cu-card article dynamic" v-else-if="noData === false">
<view class="cu-item one" style="padding:0" v-for="(item,index) in followList" :key="index"> <view class="cu-item one" style="padding:0" v-for="(item,index) in followList" :key="index" @tap="goToUserInfo(item)">
<view class="one-left-two"> <view class="one-left-two">
<view class="one-left"> <view class="one-left">
{{item.headerPhoto}} {{item.headerPhoto}}
@ -64,10 +64,22 @@
onPullDownRefresh () { onPullDownRefresh () {
this.getFollowPeopleList(); this.getFollowPeopleList();
}, },
onShow() {
this.getAllData();
},
mounted() { mounted() {
this.getFollowPeopleList(); this.getFollowPeopleList();
}, },
methods: { methods: {
/**
* 跳转个人主页页面
* @param {Object} item
*/
goToUserInfo(item) {
uni.navigateTo({
url: `/pages/person-info-page/person-info-page?userId=${item.user_id}`
})
},
/** /**
* 取消关注 * 取消关注
* @param {Object} userInfo * @param {Object} userInfo
@ -110,7 +122,6 @@
item.headerPhoto = item.real_name.slice(0,1); item.headerPhoto = item.real_name.slice(0,1);
}); });
} }
},err => { },err => {
console.log("err",err) console.log("err",err)
}) })

View File

@ -30,7 +30,7 @@
</view> </view>
<view class="text-content" style="margin:10rpx 0 0 0;"> <view class="text-content" style="margin:10rpx 0 0 0;">
<text class="text-gray">发表人</text> <text class="text-gray">发表人</text>
<text class="">{{item.real_name}}</text> <text class="" @tap="goToUserInfo(item)">{{item.real_name}}</text>
<text class="cancel" @tap="cancelFollow(item)">取消关注</text> <text class="cancel" @tap="cancelFollow(item)">取消关注</text>
</view> </view>
<view class="text-content" style="margin:10rpx 0 0 0;"> <view class="text-content" style="margin:10rpx 0 0 0;">
@ -82,6 +82,15 @@ export default {
this.getAllData(); this.getAllData();
}, },
methods: { methods: {
/**
* 跳转个人主页页面
* @param {Object} item
*/
goToUserInfo(item) {
uni.navigateTo({
url: `/pages/person-info-page/person-info-page?userId=${item.user_id}`
})
},
/** /**
* 更新方法 * 更新方法
*/ */

View File

@ -8,7 +8,7 @@
{{noticeInfo.label}} {{noticeInfo.label}}
</view> </view>
<view class="author-and-time"> <view class="author-and-time">
<view class="author" @tap="goToUserInfo(noticeInfo)"> <view class="author" @tap="goToUserInfo(noticeInfo)" style="padding: 0;">
{{noticeInfo.real_name}} {{noticeInfo.real_name}}
</view> </view>
<view class="time"> <view class="time">
@ -28,9 +28,12 @@
阅读 245 阅读 245
</view> </view>
<view class="fabulous"> <view class="fabulous">
<image src="@/static/img/fabuloused.png" mode="" v-if="noticeInfo.fabulous === true"></image> <uni-fav :checked="checked"
<image src="@/static/img/fabulous.png" mode="" v-if="noticeInfo.fabulous === false"> class="favBtn"
<text>点赞 123</text> circle="true"
bg-color="#FFFFFF"
bg-color-checked="#1296DB"
@click="onClick"></uni-fav>
</view> </view>
</view> </view>
<view class="no-message" v-if="noMessage === true" @tap="addMessage"> <view class="no-message" v-if="noMessage === true" @tap="addMessage">
@ -59,44 +62,54 @@
</view> </view>
</view> </view>
</view> </view>
<view class="message-fabulous"> </view>
<image src="@/static/img/fabuloused.png" mode="" v-if="noticeInfo.messageFabulous === true"></image> </view>
<image src="@/static/img/fabulous.png" mode="" v-if="noticeInfo.messageFabulous === false"> <view class="cu-modal" :class="messageDialog ? 'show' : ''">
<text>123</text> <view class="cu-dialog">
<view class="cu-bar bg-white justify-end">
<view class="content">留言</view>
<view class="action" @tap="hideModal">
<text class="cuIcon-close text-red"></text>
</view>
</view>
<view class="padding-xl">
<input type="text" v-model="messageContent" placeholder="请输入留言"/>
</view>
<view class="cu-bar bg-white justify-end">
<view class="action">
<button class="cu-btn line-blue text-blue" @tap="hideModal">取消</button>
<button class="cu-btn bg-blue margin-left" @tap="clickPromptConfirm">确定</button>
</view>
</view> </view>
</view> </view>
</view> </view>
<prompt :visible.sync="promptVisible"
placeholder="请输入留言"
defaultValue=""
@confirm="clickPromptConfirm"
mainColor="#1296DB">
<!-- 这里放入slot内容-->
</prompt>
</view> </view>
</template> </template>
<script> <script>
import Prompt from '@/components/prompt/index.vue';
import request from '@/util/request.js'; import request from '@/util/request.js';
import uniFav from '@/components/uni-fav/uni-fav.vue';
export default { export default {
components: { components: {
Prompt: Prompt uniFav
}, },
data() { data() {
let noticeInfo = uni.getStorageSync('notice'); let noticeInfo = uni.getStorageSync('notice');
noticeInfo.fabulous = true; noticeInfo.fabulous = true;
noticeInfo.messageFabulous = true; noticeInfo.messageFabulous = true;
return { return {
//
checked: true,
// //
noticeInfo: noticeInfo, noticeInfo: noticeInfo,
// //
noMessage: false, noMessage: false,
// //
messageList: [], messageList: [],
// //
promptVisible: false, messageDialog: false,
//
messageContent: '',
} }
}, },
onLoad() { onLoad() {
@ -109,6 +122,12 @@
uni.startPullDownRefresh(); uni.startPullDownRefresh();
}, },
methods: { methods: {
/**
* 关闭留言窗口
*/
hideModal() {
this.messageDialog = false;
},
/** /**
* @param {Object} item * @param {Object} item
*/ */
@ -126,8 +145,8 @@
/** /**
* 点击留言弹出输入框确定 * 点击留言弹出输入框确定
*/ */
clickPromptConfirm(message) { clickPromptConfirm() {
if (message === '') { if (this.messageContent === '') {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '请输入留言,亲' title: '请输入留言,亲'
@ -136,11 +155,11 @@
request.post('/hs/addMessage',{ request.post('/hs/addMessage',{
noticeId: this.noticeInfo.id, noticeId: this.noticeInfo.id,
userId: uni.getStorageSync("userInfo").user_id, userId: uni.getStorageSync("userInfo").user_id,
content: message content: this.messageContent
}).then(res=>{ }).then(res=>{
console.log("新增留言结果",res); console.log("新增留言结果",res);
if (res.data === 1) { if (res.data === 1) {
this.promptVisible = false; this.messageDialog = false;
uni.showToast({ uni.showToast({
icon: 'loading', icon: 'loading',
title: '留言成功', title: '留言成功',
@ -171,7 +190,7 @@
* 新增留言打开弹框 * 新增留言打开弹框
*/ */
addMessage() { addMessage() {
this.promptVisible = true; this.messageDialog = true;
} }
} }
@ -179,18 +198,29 @@
</script> </script>
<style scoped> <style scoped>
.padding-xl input{
background-color: #FFFFFF;
text-align: left;
}
.one-message{
margin-bottom: 20rpx;
}
.page .top, .one-message{ .page .top, .one-message{
background-color: #FFFFFF; background-color: #FFFFFF;
border-radius: 10rpx; border-radius: 10rpx;
padding: 20rpx; padding: 20rpx;
} }
.content textarea{ .content {
background-color: #F1F1F1; background-color: #F1F1F1;
padding: 20rpx;
width: 100%; width: 100%;
padding: 20rpx;
border-radius: 10rpx; border-radius: 10rpx;
text-indent: 40rpx; }
min-height: 140rpx; textarea{
text-indent: 32rpx;
line-height: 1.5;
width: 100%;
height: 100%;
} }
.message-title .left{ .message-title .left{
color: #a7a7a7; color: #a7a7a7;
@ -244,7 +274,7 @@
display: inline-block; display: inline-block;
} }
.label{ .label{
margin: 20rpx 0 20rpx 20rpx; margin: 20rpx 0;
border-radius: 10rpx; border-radius: 10rpx;
width: 4rem; width: 4rem;
font-size: 30rpx; font-size: 30rpx;
@ -255,6 +285,11 @@
.content{ .content{
padding: 20rpx!important; padding: 20rpx!important;
} }
.feedback{
padding: 20rpx;
background-color: #FFFFFF;
margin-top: 20rpx;
}
.author-and-time, .feedback{ .author-and-time, .feedback{
display: flex; display: flex;
} }
@ -273,7 +308,7 @@
line-height: 60rpx; line-height: 60rpx;
} }
.title{ .title{
padding: 20rpx; padding: 20rpx 0;
font-size: 36rpx; font-size: 36rpx;
} }

View File

@ -82,6 +82,7 @@ export default {
}, },
methods: { methods: {
/** /**
* 跳转个人主页页面
* @param {Object} item * @param {Object} item
*/ */
goToUserInfo(item) { goToUserInfo(item) {

View File

@ -3,7 +3,7 @@
<view class="cu-chat" id="chart-page"> <view class="cu-chat" id="chart-page">
<view class="cu-item" :class="isMy(item,'self')" v-for="(item,index) in letterList" :key="index"> <view class="cu-item" :class="isMy(item,'self')" v-for="(item,index) in letterList" :key="index">
<view class="header-photo cu-avatar radius" v-if="item.send_id !== userInfo.user_id" @tap="goToOther(item)"> <view class="header-photo cu-avatar radius" v-if="item.send_id !== userInfo.user_id" @tap="goToOther(item)">
{{messageInfo.userInfo.real_name.slice(0,1)}} {{otherInfo.real_name.slice(0,1)}}
</view> </view>
<view class="main"> <view class="main">
<view class="content shadow" :class="isMy(item,'bg-green')"> <view class="content shadow" :class="isMy(item,'bg-green')">
@ -39,7 +39,7 @@
data() { data() {
return { return {
messageInfo: uni.getStorageSync("messageInfo"), otherInfo: uni.getStorageSync("otherInfo"),
userInfo: uni.getStorageSync('userInfo'), userInfo: uni.getStorageSync('userInfo'),
InputBottom: 0, InputBottom: 0,
// //
@ -66,7 +66,7 @@
}, },
onLoad() { onLoad() {
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: this.messageInfo.userInfo.real_name title: this.otherInfo.real_name
}); });
}, },
watch: { watch: {
@ -102,7 +102,7 @@
getTwoLetterApp() { getTwoLetterApp() {
request.post('/hs/getTwoLetterApp',{ request.post('/hs/getTwoLetterApp',{
userId: uni.getStorageSync("userInfo").user_id, userId: uni.getStorageSync("userInfo").user_id,
otherId: this.messageInfo.userInfo.user_id, otherId: this.otherInfo.user_id,
}).then(res => { }).then(res => {
console.log("获取两个人的私信",res); console.log("获取两个人的私信",res);
if (res.data !== null) { if (res.data !== null) {
@ -126,7 +126,7 @@
} else { } else {
request.post('/hs/sendLetter',{ request.post('/hs/sendLetter',{
sendId: uni.getStorageSync("userInfo").user_id, sendId: uni.getStorageSync("userInfo").user_id,
receiveId: this.messageInfo.userInfo.user_id, receiveId: this.otherInfo.user_id,
content: this.messageContent content: this.messageContent
}).then(res => { }).then(res => {
this.messageContent = ''; this.messageContent = '';
@ -146,7 +146,7 @@
updateRead() { updateRead() {
request.post('/hs/updateReadApp',{ request.post('/hs/updateReadApp',{
userId: uni.getStorageSync("userInfo").user_id, userId: uni.getStorageSync("userInfo").user_id,
otherId: this.messageInfo.userInfo.user_id otherId: this.otherInfo.user_id
}).then(res => { }).then(res => {
console.log("改为已读",res); console.log("改为已读",res);
},err=>{ },err=>{

View File

@ -44,6 +44,7 @@
}, },
onPullDownRefresh () { onPullDownRefresh () {
this.getPersonalPrivateLetter(); this.getPersonalPrivateLetter();
uni.startPullDownRefresh();
}, },
methods: { methods: {
/** /**
@ -51,7 +52,7 @@
* @param {Object} item * @param {Object} item
*/ */
goToMessage(item) { goToMessage(item) {
uni.setStorageSync("messageInfo",item); uni.setStorageSync("otherInfo",item.userInfo);
uni.navigateTo({ uni.navigateTo({
url: "/pages/tabbar/message/chat-page" url: "/pages/tabbar/message/chat-page"
}) })
@ -88,7 +89,6 @@
this.message.splice(index,1); this.message.splice(index,1);
} }
}); });
uni.startPullDownRefresh();
console.log("私信",res); console.log("私信",res);
},err=>{ },err=>{
console.log("err",err); console.log("err",err);

View File

@ -0,0 +1,154 @@
<template>
<view class="page">
<form>
<view class="cu-form-group">
<view class="title">姓名</view>
<input v-model="userInfo.real_name" disabled name="input"></input>
</view>
<view class="cu-form-group margin-top">
<view class="title">性别</view>
<picker @change="sexPickerChange" :value="sexIndex" :range="sexList">
<view class="picker">
{{sexIndex > -1 ? sexList[sexIndex] : (userInfo.sex === undefined ? "请选择性别" : userInfo.sex)}}
</view>
</picker>
</view>
<view class="cu-form-group">
<view class="title">生日</view>
<picker mode="date" :value="userInfo.birthday" start="1900-01-01" @change="DateChange">
<view class="picker">
{{userInfo.birthday === undefined ? "请选择生日" : userInfo.birthday}}
</view>
</picker>
</view>
<view class="cu-form-group">
<view class="title">地址</view>
<input placeholder="请输入地址" v-model="userInfo.address" name="input"></input>
</view>
<view class="cu-form-group margin-top signature">
<view class="cu-item">
<view class="action">
<text class="text-black">个性签名</text>
</view>
</view>
<view class="cu-item content margin-top">
<textarea placeholder="请输入个性签名"
v-model="userInfo.signature"
maxlength=2000
></textarea>
</view>
</view>
</form>
</view>
</template>
<script>
import request from "@/util/request.js";
import { updateUserInfo } from "@/static/js/public.js";
export default {
data() {
return {
sexIndex: -1,
sexList: [],
userInfo: uni.getStorageSync("userInfo")
}
},
onPullDownRefresh () {
uni.startPullDownRefresh();
},
onShow() {
this.getSexList();
console.log("用户信息",uni.getStorageSync("userInfo"));
},
/**
* 保存按钮
*/
onNavigationBarButtonTap() {
console.log("用户信息",this.userInfo);
request.post("/hs/updatePersonalInfo",{
sex: this.userInfo.sex,
birthday: this.userInfo.birthday,
address: this.userInfo.address,
signature: this.userInfo.signature,
userId: this.userInfo.user_id,
}).then(res => {
console.log("保存按钮",res);
if (res.data === 1) {
uni.showToast({
icon: "loading",
title: "保存成功"
});
updateUserInfo();
console.log("用户信息",this.userInfo);
}
},err => {
console.log("err",err);
})
},
methods: {
/**
* 获取字典项数据性别
*/
getSexList() {
request.post("/hs/getDictionariesData",{
code: "Sex"
}).then(res => {
console.log("性别",res);
this.sexList = [];
res.data.forEach(item => {
this.sexList.push(item.dd_detail)
});
},err => {
console.log("err",err);
})
},
/**
* 性别选择
* @param {Object} e
*/
sexPickerChange(e) {
this.sexIndex = e.detail.value;
this.userInfo.sex = this.sexList[this.sexIndex];
},
/**
* 生日选择
* @param {Object} e
*/
DateChange(e) {
this.$set(this.userInfo,"birthday",e.detail.value)
},
}
}
</script>
<style scoped>
.uni-input-input, .uni-input-placeholder{
text-align: right!important;
}
.content {
background-color: #F1F1F1;
width: 100%;
padding: 20rpx;
border-radius: 10rpx;
}
.cu-form-group uni-textarea{
margin: 0!important;
}
textarea{
width: 100%;
height: 100rpx;
}
.signature{
flex-flow: column!important;
align-items: flex-start;
padding: 20rpx;
text-align: inherit!important;
}
.uni-input-form, .uni-input-wrapper{
text-align: right!important;
}
.cu-form-group{
border-radius: 10rpx;
text-align: right;
}
</style>

View File

@ -0,0 +1,195 @@
<template>
<view class="page">
<view class="top">
<view class="cu-item maigin-bottom">
<view class="action">
<text class="text-black">提问内容</text>
</view>
</view>
<view class="cu-item content">
<textarea placeholder="请描述一下遇到的问题···"
v-model="content"
auto-height="true"
maxlength=2000
></textarea>
</view>
<view class="button">
<button type="default" @tap="submitHelp">提交</button>
</view>
</view>
<view class="bottom">
<view class="title">
历史帮助
</view>
<view class="no-data" v-if="noData">
暂无历史帮助
</view>
<view class="help-list" v-if="!noData">
<view class="one-help" v-for="(item,index) in historyHelpList" :key="index">
<view class="cu-item maigin-bottom">
<view class="action">
<text class="text-black">提问内容</text>
</view>
</view>
<view class="cu-item content maigin-bottom">
<textarea v-model="item.question"
auto-height="true"
maxlength=2000
disabled="true"
></textarea>
</view>
<view class="cu-item time maigin-bottom">
提问时间{{item.create_time}}
</view>
<view class="cu-item maigin-bottom">
<view class="action">
<text class="text-black">解决方案</text>
</view>
</view>
<view class="cu-item content maigin-bottom">
<view class="no-answer" v-if="item.answer === ''">
暂无解决方案
</view>
<textarea v-model="item.answer"
auto-height="true"
maxlength=2000
disabled="true"
v-if="item.answer !== ''"
></textarea>
</view>
<view class="cu-item time maigin-bottom" v-if="item.answer_time !== ''">
回答时间{{item.answer_time}}
</view>
<view class="cu-item time maigin-bottom" @tap="goToUserInfo(item)" v-if="item.real_name !== ''">
回答人{{item.real_name}}
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import request from '@/util/request.js';
export default {
data() {
return {
content: "",
historyHelpList: [],
noData: false
}
},
onLoad() {
this.getHistoryHelp();
},
onPullDownRefresh () {
uni.startPullDownRefresh();
},
methods: {
/**
* 跳转个人主页页面
* @param {Object} item
*/
goToUserInfo(item) {
uni.navigateTo({
url: `/pages/person-info-page/person-info-page?userId=${item.answer_id}`
})
},
/**
* 提交帮助
*/
submitHelp() {
if (this.content === "") {
uni.showToast({
icon: "none",
title: "请描述一下遇到的问题···"
})
} else {
request.post("/hs/addHelpQuestion",{
userId: uni.getStorageSync("userInfo").user_id,
question: this.content
}).then(res => {
console.log("提交帮助",res);
if (res.data === 1) {
uni.showToast({
icon: "loading",
title: "提交成功"
});
this.getHistoryHelp();
}
},err => {
console.log("err",err);
})
}
},
/**
* 获取历史帮助
*/
getHistoryHelp() {
request.post("/hs/getHistoryHelpList",{
userId: uni.getStorageSync("userInfo").user_id
}).then(res => {
this.historyHelpList = res.data;
this.historyHelpList.forEach(item => {
if (item.answer_id === undefined) {
item.answer_id = '';
item.answer = '';
item.answer_time = '';
item.real_name = '';
}
})
this.noData = res.data.length === 0 ? true : false;
console.log("历史帮助列表",res);
},err => {
console.log("err",err);
})
}
}
}
</script>
<style scoped>
.no-data{
text-align: center;
padding: 40rpx 0;
}
.one-help{
margin-bottom: 20rpx;
border-bottom: 5rpx dashed #969696;
}
.time{
font-size: 30rpx;
color: #b0b0b0;
}
.title{
text-align: center;
font-family: "楷体";
font-size: 48rpx;
font-weight: bold;
color: #969696;
padding-top: 20rpx;
}
.button{
padding: 40rpx 200rpx;
}
.maigin-bottom{
margin-bottom: 20rpx;
}
.content {
background-color: #F1F1F1;
width: 100%;
padding: 20rpx;
border-radius: 10rpx;
}
textarea{
line-height: 1.5;
width: 100%;
height: 100%;
}
.top, .bottom{
padding: 20rpx;
background-color: #FFFFFF;
margin-bottom: 20rpx;
}
</style>

View File

@ -26,6 +26,19 @@
</view> </view>
</view> </view>
</view> </view>
<view class="middle">
<view class="cu-item signature">
<view class="action">
<text class="text-black">个性签名</text>
</view>
</view>
<view class="cu-item content">
<textarea v-model="userInfo.signature"
auto-height="true"
maxlength=2000
></textarea>
</view>
</view>
<view class="bottom"> <view class="bottom">
<view class="cu-list grid" :class="['col-' + gridCol,gridBorder?'':'no-border']"> <view class="cu-list grid" :class="['col-' + gridCol,gridBorder?'':'no-border']">
<view class="cu-item" <view class="cu-item"
@ -44,6 +57,7 @@
<script> <script>
import request from '@/util/request.js'; import request from '@/util/request.js';
import { updateUserInfo } from "@/static/js/public.js";
export default { export default {
data() { data() {
return { return {
@ -82,12 +96,21 @@
code: 'help' code: 'help'
}, },
], ],
userInfo: uni.getStorageSync("userInfo"), userInfo: {},
userOtherInfo: {} userOtherInfo: {}
} }
}, },
onShow() { onShow() {
this.getUserInfo(); this.getUserInfo();
this.userInfo = uni.getStorageSync("userInfo");
let timesRun = 0;
let interval = setInterval(() => {
updateUserInfo();
timesRun += 1;
if(timesRun === 5){
clearInterval(interval);
}
}, 10000);
}, },
onLoad() { onLoad() {
}, },
@ -133,9 +156,9 @@
const FUNCTION_CODE = { const FUNCTION_CODE = {
'collection': '', 'collection': '',
'myArticle': '/pages/tabbar/my/my-article/my-article', 'myArticle': '/pages/tabbar/my/my-article/my-article',
'personInfo': '', 'personInfo': '/pages/tabbar/my/edit-info/edit-info',
'settings': '', 'settings': '/pages/tabbar/my/settings/settings',
'help': '' 'help': '/pages/tabbar/my/help/help'
}; };
uni.navigateTo({ uni.navigateTo({
url: `${FUNCTION_CODE[item.code]}` url: `${FUNCTION_CODE[item.code]}`
@ -146,6 +169,22 @@
</script> </script>
<style scoped> <style scoped>
.signature{
font-size: 30rpx;
font-weight: bold;
padding-bottom: 10rpx;
}
.content {
background-color: #F1F1F1;
width: 100%;
padding: 20rpx;
border-radius: 10rpx;
}
textarea{
line-height: 1.5;
width: 100%;
height: 100%;
}
.bottom{ .bottom{
display: flex; display: flex;
flex-flow: column; flex-flow: column;
@ -187,11 +226,15 @@
line-height: 180rpx; line-height: 180rpx;
margin: 20rpx; margin: 20rpx;
} }
.middle{
padding: 40rpx 20rpx;
border-top: 1rpx solid rgba(18,150,219,0.5);
border-bottom: 1rpx solid rgba(18,150,219,0.5);
}
.top{ .top{
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
padding-bottom: 40rpx; padding-bottom: 40rpx;
border-bottom: 1rpx solid rgba(18,150,219,0.5);
} }
.page{ .page{
padding: 20rpx; padding: 20rpx;

View File

@ -0,0 +1,225 @@
<template>
<view class="page">
<view class="cu-list menu sm-border">
<view class="cu-item arrow" @tap="updatePhone">
<view class="content">
<text class="cuIcon-phone text-grey"></text>
<text class="text-grey">手机号{{phone}}</text>
</view>
<view class="action">
<text class="text-grey text-sm">修改</text>
</view>
</view>
<view class="cu-item arrow" @tap="cancellation">
<view class="content">
<text class="cuIcon-info text-grey"></text>
<text class="text-grey">注销账号</text>
</view>
</view>
<view class="cu-item arrow" @tap="updatePassword">
<view class="content">
<text class="cuIcon-edit text-grey"></text>
<text class="text-grey">修改密码</text>
</view>
</view>
</view>
<view class="cu-modal" :class="phoneDialog ? 'show' : ''">
<view class="cu-dialog">
<view class="cu-bar bg-white justify-end">
<view class="content">修改手机号</view>
<view class="action" @tap="hideModal">
<text class="cuIcon-close text-red"></text>
</view>
</view>
<view class="padding-xl">
<input type="number" v-model="newPhone" placeholder="请输入手机号"/>
</view>
<view class="cu-bar bg-white justify-end">
<view class="action">
<button class="cu-btn line-blue text-blue" @tap="hideModal">取消</button>
<button class="cu-btn bg-blue margin-left" @tap="clickUpdatePhoneConfirm">确定</button>
</view>
</view>
</view>
</view>
<view class="cu-modal" :class="passwordDialog ? 'show' : ''">
<view class="cu-dialog">
<view class="cu-bar bg-white justify-end">
<view class="content">修改密码</view>
<view class="action" @tap="hideModal">
<text class="cuIcon-close text-red"></text>
</view>
</view>
<view class="padding-xl">
<input type="password" v-model="oldPassword" placeholder="请输入原始密码"/>
<input type="password" v-model="newPassword" placeholder="请输入新密码"/>
<input type="password" v-model="againPassword" placeholder="请确认密码"/>
</view>
<view class="cu-bar bg-white justify-end">
<view class="action">
<button class="cu-btn line-blue text-blue" @tap="hideModal">取消</button>
<button class="cu-btn bg-blue margin-left" @tap="clickUpdatePasswordConfirm">确定</button>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import request from '@/util/request.js';
export default {
data() {
return {
//
phone: uni.getStorageSync("userInfo").mobile,
//
newPhone: '',
//
phoneDialog: false,
//
passwordDialog: false,
//
oldPassword: '',
//
newPassword: '',
//
againPassword: ''
}
},
onPullDownRefresh () {
uni.startPullDownRefresh();
},
methods: {
/**
* 注销
*/
cancellation() {
uni.showToast({
icon: 'none',
title: '请联系管理员注销账号'
})
},
/**
* 修改密码接口
*/
clickUpdatePasswordConfirm() {
if (this.oldPassword === '') {
uni.showToast({
icon: 'none',
title: '请输入原始密码',
})
} else if (this.oldPassword !== uni.getStorageSync("userInfo").pass_word) {
uni.showToast({
icon: 'none',
title: '原始密码错误',
})
} else if (this.newPassword === '') {
uni.showToast({
icon: 'none',
title: '请输入新密码',
})
} else if (this.newPassword === this.oldPassword) {
uni.showToast({
icon: 'none',
title: '密码未改变',
})
}else if (this.againPassword === '') {
uni.showToast({
icon: 'none',
title: '请确认密码',
})
} else {
request.post("/hs/updatePassword",{
password: this.newPassword,
id: uni.getStorageSync("userInfo").user_id
}).then(res => {
console.log("修改密码",res);
if (res.data === 1) {
uni.showToast({
icon: 'loading',
title: `修改成功\r\n请重新登录`
});
setTimeout(() => {
uni.reLaunch({
url: '/pages/login/login'
});
},1000)
}
},err => {
console.log("err",err)
})
}
},
/**
* 修改手机号接口
*/
clickUpdatePhoneConfirm() {
if (this.newPhone === '') {
uni.showToast({
icon: 'none',
title: '请输入手机号',
})
} else if (this.newPhone === uni.getStorageSync("userInfo").mobile) {
uni.showToast({
icon: 'none',
title: '手机号未改变',
})
} else {
request.post("/hs/updatePhone",{
mobile: this.newPhone,
id: uni.getStorageSync("userInfo").user_id
}).then(res => {
console.log("修改手机号",res.data)
if (res.data === 1) {
uni.showToast({
icon: 'loading',
title: `修改成功\r\n请重新登录`
});
setTimeout(() => {
uni.reLaunch({
url: '/pages/login/login'
});
},1000)
}
},err => {
console.log("err",err)
})
}
},
/**
* 打开修改密码弹窗
*/
updatePassword() {
this.passwordDialog = true;
},
/**
* 打开修改手机号弹窗
*/
updatePhone() {
this.phoneDialog = true;
},
/**
* 关闭弹窗
*/
hideModal() {
this.phoneDialog = false;
this.passwordDialog = false;
}
}
}
</script>
<style scoped>
.padding-xl input{
background-color: #FFFFFF;
text-align: left;
margin: 20rpx 0;
border-radius: 10rpx;
font-size: 36rpx;
}
.cu-modal{
z-index: 998!important;
}
</style>

View File

@ -0,0 +1,61 @@
<template>
<view class="page">
<view class="content">
<textarea v-model="content"
auto-height="true"
disabled="true"
></textarea>
</view>
</view>
</template>
<script>
import request from '@/util/request.js';
export default {
data() {
return {
title: "",
content: ""
}
},
onLoad(option) {
const TITLE = {
"UserAgreement": "用户协议",
"PrivacyAgreement": "隐私协议"
};
uni.setNavigationBarTitle({
title: TITLE[option.title]
});
this.getDictionariesData(option.title)
},
onPullDownRefresh () {
uni.startPullDownRefresh();
},
methods: {
/**
* 获取协议内容
*/
getDictionariesData(code) {
request.post("/hs/getDictionariesData",{
code: code
}).then(res => {
console.log("协议内容",res);
this.content = res.data[0].dd_detail;
},err => {
console.log("err",err);
})
}
}
}
</script>
<style scoped>
.content{
padding: 20rpx!important;
background-color: #FFFFFF;
border-radius: 10rpx;
}
uni-textarea{
width: 100%!important;
}
</style>

View File

@ -0,0 +1,98 @@
<template>
<view class="page">
<view class="cu-list menu sm-border">
<view class="cu-item arrow" @tap="goToPage('account')">
<view class="content">
<text class="cuIcon-profile text-grey"></text>
<text class="text-grey">账户与安全</text>
</view>
</view>
<view class="cu-item arrow" @tap="goToPage('systemInformation')">
<view class="content">
<text class="cuIcon-question text-grey"></text>
<text class="text-grey">系统信息</text>
</view>
</view>
<view class="cu-item arrow" @tap="goToPage('userAgreement')">
<view class="content">
<text class="cuIcon-form text-grey"></text>
<text class="text-grey">用户协议</text>
</view>
</view>
<view class="cu-item arrow" @tap="goToPage('privacyAgreement')">
<view class="content">
<text class="cuIcon-form text-grey"></text>
<text class="text-grey">隐私协议</text>
</view>
</view>
</view>
<view class="button" @tap="signOut">
<button type="default">退出登录</button>
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
onPullDownRefresh () {
uni.startPullDownRefresh();
},
methods: {
/**
* 退出
*/
signOut() {
uni.showModal({
title: "退出登录",
content: "确认退出登录?",
success(res) {
if (res.confirm) {
uni.setStorageSync("userInfo",{});
uni.showToast({
icon: 'loading',
title: `退出成功`
});
setTimeout(() => {
uni.reLaunch({
url: '/pages/login/login'
});
},1000)
}
}
})
},
/**
* 跳转设置详情页面
* @param {Object} pageName
*/
goToPage(pageName) {
const FUNCTION_CODE = {
"account": "/pages/tabbar/my/settings/account-security/account-security",
"systemInformation": "/pages/tabbar/my/settings/system-information/system-information",
"userAgreement": "/pages/tabbar/my/settings/agreement/agreement?title=UserAgreement",
"privacyAgreement": "/pages/tabbar/my/settings/agreement/agreement?title=PrivacyAgreement",
};
uni.navigateTo({
url: `${FUNCTION_CODE[pageName]}`
})
}
}
}
</script>
<style scoped>
.button{
position: absolute;
width: 80%;
bottom: 80rpx;
left: 10%;
}
.cu-list{
border-radius: 10rpx;
}
</style>

View File

@ -0,0 +1,96 @@
<template>
<view class="page">
<view class="cu-list menu sm-border">
<view class="cu-item arrow" v-for="(item,index) in systemInfo" :key="index">
<view class="content">
<text class="text-grey">{{item.key}}</text>
</view>
<view class="action" v-if="typeof item.value !== 'object'">
<text class="text-grey text-sm">{{item.value}}</text>
</view>
<view class="action" v-if="typeof item.value === 'object'">
<view class="text-grey text-sm" v-for="(value,key,index) in item.value" :key="index">{{ATTRIBUTE_CODE[key]+":"+value}}</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
systemInfo: [],
//key
ATTRIBUTE_CODE: {
"left": "左",
"right": "右",
"top": "上",
"bottom": "下",
"width": "宽度",
"height": "高度",
},
//key
CODE_NAME: {
"brand": "手机品牌",
"model": "手机型号",
"pixelRatio": "设备像素比",
"screenWidth": "屏幕宽度",
"screenHeight": "屏幕高度",
"windowWidth": "可使用窗口宽度",
"windowHeight": "可使用窗口高度",
"windowTop": "可使用窗口的顶部位置",
"windowBottom": "可使用窗口的底部位置",
"statusBarHeight": "状态栏的高度",
"navigationBarHeight": "导航栏的高度",
"titleBarHeight": "标题栏高度",
"language": "应用设置的语言",
"version": "引擎版本号",
"titleBarHeight": "标题栏高度",
"storage": "设备磁盘容量",
"currentBattery": "当前电量百分比",
"appName": "宿主APP名称",
"AppPlatform": "App平台",
"host": "宿主平台",
"app": "当前运行的客户端",
"cacheLocation": "上一次缓存的位置信息",
"system": "操作系统版本",
"platform": "客户端平台",
"SDKVersion": "客户端基础库版本",
"swanNativeVersion": "宿主平台版本号",
"safeArea": "在竖屏正方向下的安全区域",
"safeAreaInsets": "在竖屏正方向下的安全区域插入位置2.5.3+",
}
}
},
onLoad() {
this.getSystemInfo();
},
onPullDownRefresh () {
uni.startPullDownRefresh();
},
methods: {
/**
* 获取系统信息
*/
getSystemInfo() {
let _this = this;
uni.getSystemInfo({
success(res) {
for(let item in res) {
_this.systemInfo.push({
key: _this.CODE_NAME[item],
value: res[item]
})
}
console.log("系统信息",_this.systemInfo)
}
})
}
}
}
</script>
<style>
</style>

View File

@ -27,16 +27,13 @@
<text class="text-black">文章内容</text> <text class="text-black">文章内容</text>
</view> </view>
</view> </view>
<view class="cu-item content"> <view class="cu-item content ">
<textarea placeholder="请输入文章内容" <textarea placeholder="请输入文章内容"
v-model="noticeInfo.content" v-model="noticeInfo.content"
auto-height="true" auto-height="true"
maxlength=2000 maxlength=2000
></textarea> ></textarea>
</view> </view>
<view class="button">
<button type="default" @tap="preservation">发表</button>
</view>
</view> </view>
</template> </template>
@ -55,7 +52,7 @@
}, },
} }
}, },
onShow() { onLoad() {
this.noticeInfo = { this.noticeInfo = {
title: '', title: '',
label: '', label: '',
@ -67,6 +64,9 @@
onPullDownRefresh () { onPullDownRefresh () {
uni.startPullDownRefresh(); uni.startPullDownRefresh();
}, },
onNavigationBarButtonTap() {
this.preservation()
},
methods: { methods: {
/** /**
* 发表 * 发表
@ -109,22 +109,29 @@
.page{ .page{
background-color: #FFFFFF; background-color: #FFFFFF;
border-radius: 10rpx; border-radius: 10rpx;
padding: 20rpx;
} }
.button{ .button{
padding: 40rpx 100rpx 80rpx; padding: 40rpx 100rpx 80rpx;
} }
.cu-item{ .cu-item{
padding: 20rpx; padding: 20rpx 0;
} }
.title{ .title{
padding-top: 0; padding-top: 0;
} }
.title textarea, .label textarea, .content textarea{ .title, .label, .content{
background-color: #F1F1F1; background-color: #F1F1F1;
padding: 20rpx;
width: 100%; width: 100%;
padding: 20rpx;
border-radius: 10rpx; border-radius: 10rpx;
} }
textarea{
text-indent: 32rpx;
line-height: 1.5;
width: 100%;
height: 100%;
}
.title textarea{ .title textarea{
height: 128rpx; height: 128rpx;
font-weight: bold; font-weight: bold;

View File

@ -2,8 +2,10 @@
import request from '@/util/request.js'; import request from '@/util/request.js';
//获取当前时间 /**
const getNowDate = function() { * 获取当前时间
*/
const getNowDate = () => {
const myDate = new Date(); const myDate = new Date();
let year = myDate.getFullYear(); let year = myDate.getFullYear();
let month = myDate.getMonth()+1 < 10 ? '0'+(myDate.getMonth()+1) : myDate.getMonth()+1; let month = myDate.getMonth()+1 < 10 ? '0'+(myDate.getMonth()+1) : myDate.getMonth()+1;
@ -12,8 +14,12 @@ const getNowDate = function() {
}; };
export { getNowDate } export { getNowDate }
//格式化时间方法 /**
const dateFormat = function (fmt, date) { * 格式化时间方法
* @param {Object} fmt 格式
* @param {Object} date 时间对象
*/
const dateFormat = (fmt, date) => {
let ret; let ret;
const opt = { const opt = {
"Y+": date.getFullYear().toString(), // 年 "Y+": date.getFullYear().toString(), // 年
@ -34,8 +40,12 @@ const dateFormat = function (fmt, date) {
}; };
export { dateFormat } export { dateFormat }
//排序方法 /**
const sortBy = function(attr,rev){ * 排序方法
* @param {Object} attr 数组
* @param {Object} rev 升序/降序
*/
const sortBy = (attr,rev) => {
//第二个参数没有传递 默认升序排列 //第二个参数没有传递 默认升序排列
if(rev === undefined){ if(rev === undefined){
rev = 1; rev = 1;
@ -55,3 +65,16 @@ const sortBy = function(attr,rev){
} }
}; };
export { sortBy } export { sortBy }
const updateUserInfo = () => {
request.post('/hs/login',{
role: uni.getStorageSync("userInfo").user_type,
username: uni.getStorageSync("userInfo").real_name,
password: uni.getStorageSync("userInfo").pass_word
}).then(res => {
console.log("刷新个人信息",res.data);
uni.setStorageSync("userInfo", res.data);
},err => {
})
}
export { updateUserInfo }

View File

@ -1,8 +1,8 @@
var isReady=false;var onReadyCallbacks=[]; var isReady=false;var onReadyCallbacks=[];
var isServiceReady=false;var onServiceReadyCallbacks=[]; var isServiceReady=false;var onServiceReadyCallbacks=[];
var __uniConfig = {"pages":["pages/login/login","pages/tabbar/homepage/homepage","pages/tabbar/homepage/data-details","pages/tabbar/follow/follow","pages/tabbar/release/release","pages/tabbar/message/message","pages/tabbar/my/my","pages/tabbar/my/my-article/my-article","pages/notice-edit/notice-edit","pages/tabbar/message/chat-page","pages/person-info-page/person-info-page","pages/tabbar/follow/follow-list","pages/tabbar/follow/fans-list"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8"},"tabBar":{"borderStyle":"black","backgroundColor":"#333","color":"#FFFFFF","selectedColor":"#f33e54","list":[{"pagePath":"pages/tabbar/homepage/homepage","iconPath":"static/img/tabbar/home.png","selectedIconPath":"static/img/tabbar/homeactive.png","text":"首页"},{"pagePath":"pages/tabbar/follow/follow","iconPath":"static/img/tabbar/guanzhu.png","selectedIconPath":"static/img/tabbar/guanzhuactive.png","text":"关注"},{"pagePath":"pages/tabbar/release/release","iconPath":"static/img/tabbar/add.png","selectedIconPath":"static/img/tabbar/addactive.png"},{"pagePath":"pages/tabbar/message/message","iconPath":"static/img/tabbar/news.png","selectedIconPath":"static/img/tabbar/newsactive.png","text":"消息"},{"pagePath":"pages/tabbar/my/my","iconPath":"static/img/tabbar/me.png","selectedIconPath":"static/img/tabbar/meactive.png","text":"我"}]},"nvueCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"家校通","compilerVersion":"2.8.11","entryPagePath":"pages/login/login","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}}; var __uniConfig = {"pages":["pages/login/login","pages/tabbar/homepage/homepage","pages/tabbar/homepage/data-details","pages/tabbar/follow/follow","pages/tabbar/release/release","pages/tabbar/message/message","pages/tabbar/my/my","pages/tabbar/my/my-article/my-article","pages/notice-edit/notice-edit","pages/tabbar/message/chat-page","pages/person-info-page/person-info-page","pages/tabbar/follow/follow-list","pages/tabbar/follow/fans-list","pages/tabbar/my/settings/settings","pages/tabbar/my/settings/account-security/account-security"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8"},"tabBar":{"borderStyle":"black","backgroundColor":"#333","color":"#FFFFFF","selectedColor":"#f33e54","list":[{"pagePath":"pages/tabbar/homepage/homepage","iconPath":"static/img/tabbar/home.png","selectedIconPath":"static/img/tabbar/homeactive.png","text":"首页"},{"pagePath":"pages/tabbar/follow/follow","iconPath":"static/img/tabbar/guanzhu.png","selectedIconPath":"static/img/tabbar/guanzhuactive.png","text":"关注"},{"pagePath":"pages/tabbar/release/release","iconPath":"static/img/tabbar/add.png","selectedIconPath":"static/img/tabbar/addactive.png"},{"pagePath":"pages/tabbar/message/message","iconPath":"static/img/tabbar/news.png","selectedIconPath":"static/img/tabbar/newsactive.png","text":"消息"},{"pagePath":"pages/tabbar/my/my","iconPath":"static/img/tabbar/me.png","selectedIconPath":"static/img/tabbar/meactive.png","text":"我"}]},"nvueCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"HSLink","compilerVersion":"2.8.11","entryPagePath":"pages/login/login","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/login/login","meta":{"isQuit":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"登录","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/homepage/homepage","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"首页","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/homepage/data-details","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"文章内容","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/follow/follow","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"关注","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/release/release","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"发布","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/message/message","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"消息","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/my/my","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"我","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/my/my-article/my-article","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"我的文章","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/notice-edit/notice-edit","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"编辑文章","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white","bounce":"none","titleNView":{"buttons":[{"type":"none","text":"删除 ","fontSize":"16px","float":"right"}]}}},{"path":"/pages/tabbar/message/chat-page","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/person-info-page/person-info-page","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"个人主页","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/follow/follow-list","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"关注列表","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/follow/fans-list","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"粉丝列表","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}}]; var __uniRoutes = [{"path":"/pages/login/login","meta":{"isQuit":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"登录","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/homepage/homepage","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"首页","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/homepage/data-details","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"文章内容","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/follow/follow","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"关注","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/release/release","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"发布","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/message/message","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"消息","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/my/my","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"我","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/my/my-article/my-article","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"我的文章","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/notice-edit/notice-edit","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"编辑文章","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white","bounce":"none","titleNView":{"buttons":[{"type":"none","text":"删除 ","fontSize":"16px","float":"right"}]}}},{"path":"/pages/tabbar/message/chat-page","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/person-info-page/person-info-page","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"个人主页","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white","bounce":"none","titleNView":{"buttons":[{"type":"none","text":"私信 ","float":"right","fontSize":"16px"}]}}},{"path":"/pages/tabbar/follow/follow-list","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"关注列表","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/follow/fans-list","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"粉丝列表","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/my/settings/settings","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"设置","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/my/settings/account-security/account-security","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"账号与安全","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}}];
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); __uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); __uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}}); service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__7C9492E","name":"家校通","version":{"name":"1.0.0","code":"100"},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#F8F8F8"},"usingComponents":true,"compilerVersion":3,"distribute":{"icons":{"android":{"hdpi":"unpackage/res/icons/72x72.png","xhdpi":"unpackage/res/icons/96x96.png","xxhdpi":"unpackage/res/icons/144x144.png","xxxhdpi":"unpackage/res/icons/192x192.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"}}},"splashscreen":{"androidStyle":"common"},"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.CALL_PHONE\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"]},"apple":{},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"safearea":{"background":"#333","bottom":{"offset":"auto"}},"uni-app":{"compilerVersion":"2.8.11","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"borderStyle":"rgba(0,0,0,0.4)","backgroundColor":"#333","color":"#FFFFFF","selectedColor":"#f33e54","list":[{"pagePath":"pages/tabbar/homepage/homepage","iconPath":"static/img/tabbar/home.png","selectedIconPath":"static/img/tabbar/homeactive.png","text":"首页"},{"pagePath":"pages/tabbar/follow/follow","iconPath":"static/img/tabbar/guanzhu.png","selectedIconPath":"static/img/tabbar/guanzhuactive.png","text":"关注"},{"pagePath":"pages/tabbar/release/release","iconPath":"static/img/tabbar/add.png","selectedIconPath":"static/img/tabbar/addactive.png"},{"pagePath":"pages/tabbar/message/message","iconPath":"static/img/tabbar/news.png","selectedIconPath":"static/img/tabbar/newsactive.png","text":"消息"},{"pagePath":"pages/tabbar/my/my","iconPath":"static/img/tabbar/me.png","selectedIconPath":"static/img/tabbar/meactive.png","text":"我"}],"height":"50px"},"launch_path":"__uniappview.html"}} {"@platforms":["android","iPhone","iPad"],"id":"__UNI__7C9492E","name":"HSLink","version":{"name":"1.0.0","code":"100"},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#F8F8F8"},"usingComponents":true,"compilerVersion":3,"distribute":{"icons":{"android":{"hdpi":"unpackage/res/icons/72x72.png","xhdpi":"unpackage/res/icons/96x96.png","xxhdpi":"unpackage/res/icons/144x144.png","xxxhdpi":"unpackage/res/icons/192x192.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"}}},"splashscreen":{"androidStyle":"common"},"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.CALL_PHONE\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"]},"apple":{},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"safearea":{"background":"#333","bottom":{"offset":"auto"}},"uni-app":{"compilerVersion":"2.8.11","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"borderStyle":"rgba(0,0,0,0.4)","backgroundColor":"#333","color":"#FFFFFF","selectedColor":"#f33e54","list":[{"pagePath":"pages/tabbar/homepage/homepage","iconPath":"static/img/tabbar/home.png","selectedIconPath":"static/img/tabbar/homeactive.png","text":"首页"},{"pagePath":"pages/tabbar/follow/follow","iconPath":"static/img/tabbar/guanzhu.png","selectedIconPath":"static/img/tabbar/guanzhuactive.png","text":"关注"},{"pagePath":"pages/tabbar/release/release","iconPath":"static/img/tabbar/add.png","selectedIconPath":"static/img/tabbar/addactive.png"},{"pagePath":"pages/tabbar/message/message","iconPath":"static/img/tabbar/news.png","selectedIconPath":"static/img/tabbar/newsactive.png","text":"消息"},{"pagePath":"pages/tabbar/my/my","iconPath":"static/img/tabbar/me.png","selectedIconPath":"static/img/tabbar/meactive.png","text":"我"}],"height":"50px"},"launch_path":"__uniappview.html"}}

View File

@ -1,8 +1,8 @@
var isReady=false;var onReadyCallbacks=[]; var isReady=false;var onReadyCallbacks=[];
var isServiceReady=false;var onServiceReadyCallbacks=[]; var isServiceReady=false;var onServiceReadyCallbacks=[];
var __uniConfig = {"pages":["pages/login/login","pages/tabbar/homepage/homepage","pages/tabbar/homepage/data-details","pages/tabbar/follow/follow","pages/tabbar/release/release","pages/tabbar/message/message","pages/tabbar/my/my","pages/release-detial/release-release/release-release","pages/release-detial/release-video/release-video","pages/release-detial/release-qa/release-qa"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8"},"tabBar":{"borderStyle":"black","backgroundColor":"#333","color":"#FFFFFF","selectedColor":"#f33e54","list":[{"pagePath":"pages/tabbar/homepage/homepage","iconPath":"static/img/tabbar/home.png","selectedIconPath":"static/img/tabbar/homeactive.png","text":"首页"},{"pagePath":"pages/tabbar/follow/follow","iconPath":"static/img/tabbar/guanzhu.png","selectedIconPath":"static/img/tabbar/guanzhuactive.png","text":"关注"},{"pagePath":"pages/tabbar/release/release","iconPath":"static/img/tabbar/add.png","selectedIconPath":"static/img/tabbar/addactive.png"},{"pagePath":"pages/tabbar/message/message","iconPath":"static/img/tabbar/news.png","selectedIconPath":"static/img/tabbar/newsactive.png","text":"消息"},{"pagePath":"pages/tabbar/my/my","iconPath":"static/img/tabbar/me.png","selectedIconPath":"static/img/tabbar/meactive.png","text":"我"}]},"nvueCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"peinikanxue","compilerVersion":"2.8.8","entryPagePath":"pages/login/login","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}}; var __uniConfig = {"pages":["pages/login/login","pages/tabbar/homepage/homepage","pages/tabbar/homepage/data-details","pages/tabbar/follow/follow","pages/tabbar/release/release","pages/tabbar/message/message","pages/tabbar/my/my","pages/tabbar/my/my-article/my-article","pages/notice-edit/notice-edit","pages/tabbar/message/chat-page","pages/person-info-page/person-info-page","pages/tabbar/follow/follow-list","pages/tabbar/follow/fans-list","pages/tabbar/my/settings/settings","pages/tabbar/my/settings/account-security/account-security"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8"},"tabBar":{"borderStyle":"black","backgroundColor":"#333","color":"#FFFFFF","selectedColor":"#f33e54","list":[{"pagePath":"pages/tabbar/homepage/homepage","iconPath":"static/img/tabbar/home.png","selectedIconPath":"static/img/tabbar/homeactive.png","text":"首页"},{"pagePath":"pages/tabbar/follow/follow","iconPath":"static/img/tabbar/guanzhu.png","selectedIconPath":"static/img/tabbar/guanzhuactive.png","text":"关注"},{"pagePath":"pages/tabbar/release/release","iconPath":"static/img/tabbar/add.png","selectedIconPath":"static/img/tabbar/addactive.png"},{"pagePath":"pages/tabbar/message/message","iconPath":"static/img/tabbar/news.png","selectedIconPath":"static/img/tabbar/newsactive.png","text":"消息"},{"pagePath":"pages/tabbar/my/my","iconPath":"static/img/tabbar/me.png","selectedIconPath":"static/img/tabbar/meactive.png","text":"我"}]},"nvueCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"HSLink","compilerVersion":"2.8.11","entryPagePath":"pages/login/login","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/login/login","meta":{"isQuit":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"登录","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/homepage/homepage","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"首页","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/homepage/data-details","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"文章内容","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/follow/follow","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"关注","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/release/release","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"发布","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/message/message","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"消息","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/my/my","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"我","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/release-detial/release-release/release-release","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"发图文","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/release-detial/release-video/release-video","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"发视频","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/release-detial/release-qa/release-qa","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"提问","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}}]; var __uniRoutes = [{"path":"/pages/login/login","meta":{"isQuit":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"登录","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/homepage/homepage","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"首页","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/homepage/data-details","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"文章内容","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/follow/follow","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"关注","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/release/release","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"发布","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/message/message","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"消息","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/my/my","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"我","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/my/my-article/my-article","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"我的文章","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/notice-edit/notice-edit","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"编辑文章","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white","bounce":"none","titleNView":{"buttons":[{"type":"none","text":"删除 ","fontSize":"16px","float":"right"}]}}},{"path":"/pages/tabbar/message/chat-page","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/person-info-page/person-info-page","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"个人主页","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white","bounce":"none","titleNView":{"buttons":[{"type":"none","text":"私信 ","float":"right","fontSize":"16px"}]}}},{"path":"/pages/tabbar/follow/follow-list","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"关注列表","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/follow/fans-list","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"粉丝列表","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/my/settings/settings","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"设置","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}},{"path":"/pages/tabbar/my/settings/account-security/account-security","meta":{},"window":{"enablePullDownRefresh":true,"navigationBarTitleText":"账号与安全","navigationBarBackgroundColor":"#333","navigationBarTextStyle":"white"}}];
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); __uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); __uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}}); service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}});

View File

@ -10,7 +10,7 @@
/******/ var moduleId, chunkId, i = 0, resolves = []; /******/ var moduleId, chunkId, i = 0, resolves = [];
/******/ for(;i < chunkIds.length; i++) { /******/ for(;i < chunkIds.length; i++) {
/******/ chunkId = chunkIds[i]; /******/ chunkId = chunkIds[i];
/******/ if(installedChunks[chunkId]) { /******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ resolves.push(installedChunks[chunkId][0]); /******/ resolves.push(installedChunks[chunkId][0]);
/******/ } /******/ }
/******/ installedChunks[chunkId] = 0; /******/ installedChunks[chunkId] = 0;
@ -46,6 +46,7 @@
/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); /******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
/******/ } /******/ }
/******/ } /******/ }
/******/
/******/ return result; /******/ return result;
/******/ } /******/ }
/******/ /******/

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__7C9492E","name":"peinikanxue","version":{"name":"1.0.0","code":"100"},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#F8F8F8"},"usingComponents":true,"compilerVersion":3,"distribute":{"google":{"permissions":["\u003cuses-permission android:name\u003d\"android.permission.CHANGE_NETWORK_STATE\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.READ_CONTACTS\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.VIBRATE\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.READ_LOGS\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.ACCESS_WIFI_STATE\"/\u003e","\u003cuses-feature android:name\u003d\"android.hardware.camera.autofocus\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.WRITE_CONTACTS\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.ACCESS_NETWORK_STATE\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.CAMERA\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.RECORD_AUDIO\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.GET_ACCOUNTS\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.MODIFY_AUDIO_SETTINGS\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.READ_PHONE_STATE\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.CHANGE_WIFI_STATE\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.WAKE_LOCK\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.CALL_PHONE\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.FLASHLIGHT\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.ACCESS_COARSE_LOCATION\"/\u003e","\u003cuses-feature android:name\u003d\"android.hardware.camera\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.ACCESS_FINE_LOCATION\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.WRITE_SETTINGS\"/\u003e"]},"apple":{},"plugins":{"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"safearea":{"background":"#333","bottom":{"offset":"auto"}},"uni-app":{"compilerVersion":"2.8.8","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"borderStyle":"rgba(0,0,0,0.4)","backgroundColor":"#333","color":"#FFFFFF","selectedColor":"#f33e54","list":[{"pagePath":"pages/tabbar/homepage/homepage","iconPath":"static/img/tabbar/home.png","selectedIconPath":"static/img/tabbar/homeactive.png","text":"首页"},{"pagePath":"pages/tabbar/follow/follow","iconPath":"static/img/tabbar/guanzhu.png","selectedIconPath":"static/img/tabbar/guanzhuactive.png","text":"关注"},{"pagePath":"pages/tabbar/release/release","iconPath":"static/img/tabbar/add.png","selectedIconPath":"static/img/tabbar/addactive.png"},{"pagePath":"pages/tabbar/message/message","iconPath":"static/img/tabbar/news.png","selectedIconPath":"static/img/tabbar/newsactive.png","text":"消息"},{"pagePath":"pages/tabbar/my/my","iconPath":"static/img/tabbar/me.png","selectedIconPath":"static/img/tabbar/meactive.png","text":"我"}],"height":"50px"},"launch_path":"__uniappview.html","arguments":"{\"pathName\":\"pages/login/login\",\"query\":\"\"}"}} {"@platforms":["android","iPhone","iPad"],"id":"__UNI__7C9492E","name":"HSLink","version":{"name":"1.0.0","code":"100"},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#F8F8F8"},"usingComponents":true,"compilerVersion":3,"distribute":{"icons":{"android":{"hdpi":"unpackage/res/icons/72x72.png","xhdpi":"unpackage/res/icons/96x96.png","xxhdpi":"unpackage/res/icons/144x144.png","xxxhdpi":"unpackage/res/icons/192x192.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"}}},"splashscreen":{"androidStyle":"common"},"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.CALL_PHONE\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"]},"apple":{},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"safearea":{"background":"#333","bottom":{"offset":"auto"}},"uni-app":{"compilerVersion":"2.8.11","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"borderStyle":"rgba(0,0,0,0.4)","backgroundColor":"#333","color":"#FFFFFF","selectedColor":"#f33e54","list":[{"pagePath":"pages/tabbar/homepage/homepage","iconPath":"static/img/tabbar/home.png","selectedIconPath":"static/img/tabbar/homeactive.png","text":"首页"},{"pagePath":"pages/tabbar/follow/follow","iconPath":"static/img/tabbar/guanzhu.png","selectedIconPath":"static/img/tabbar/guanzhuactive.png","text":"关注"},{"pagePath":"pages/tabbar/release/release","iconPath":"static/img/tabbar/add.png","selectedIconPath":"static/img/tabbar/addactive.png"},{"pagePath":"pages/tabbar/message/message","iconPath":"static/img/tabbar/news.png","selectedIconPath":"static/img/tabbar/newsactive.png","text":"消息"},{"pagePath":"pages/tabbar/my/my","iconPath":"static/img/tabbar/me.png","selectedIconPath":"static/img/tabbar/meactive.png","text":"我"}],"height":"50px"},"launch_path":"__uniappview.html"}}

View File

@ -1,75 +0,0 @@
.uni-list-item__content-title{
/* padding-bottom: 20rpx; */
/* border-bottom: 1rpx solid #F6F6F6; */
font-size: 30rpx!important;
}
.uni-list-item__content-note{
font-size: 30rpx!important;
}
.uni-list-item__container:after{
background-color: rgba(0,0,0,0)!important;
}
.uni-btn-icon{
color: #FFFFFF!important;
}
uni-page-body .content{
padding: 0!important;
}
uni-page-body .content .list{
background-color: #F1F1F1!important;
padding-top: 1rpx;
}
uni-page-body .content .list .one{
margin: 20rpx;
border-radius: 10rpx;
}
.uni-list-item{
padding: 20rpx!important;
margin: 20rpx!important;
background: #FFFFFF!important;
border-radius: 10rpx;
}
.uni-list{
background-color: #F1F1F1!important;
}
.content-top{
margin-top: 10rpx;
}
.green-button{
background-color: #1D9081!important;
color: #FFFFFF;
}
.uni-radio-input-checked{
background-color: rgb(113,217,177)!important;
border-color: rgb(113,217,177)!important;
}
.uni-checkbox-input{
border-color: rgb(165, 165, 165)!important;
}
uni-checkbox.checked .uni-checkbox-input{
background-color: rgb(113,217,177)!important;
border-color: rgb(113,217,177)!important;
}
.search{
z-index: 999;
padding: 20rpx 20rpx 68rpx 20rpx!important;
border-bottom: 0!important; }
.search .content{
padding-bottom: 0;
position: fixed;
z-index: 999;
width: 96%!important;
}
.uni-picker-container .uni-picker-action.uni-picker-action-confirm{
color: #1D9081;
}
.cu-list .cu-item .text-black{
position: absolute;
display: inline-block;
width: 450rpx!important;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

File diff suppressed because it is too large Load Diff

View File

@ -55,10 +55,3 @@ const sortBy = function(attr,rev){
} }
}; };
export { sortBy } export { sortBy }
//获取专业列表
const getMajorList = function() {
let majorList = request.get('/rest/v2/services/saftyedutrain_AppOnlineQAService/getMajor')
return majorList;
};
export { getMajorList }

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

File diff suppressed because one or more lines are too long

View File

@ -47,19 +47,26 @@ const post = (url, data) => {
let promise = new Promise(function(resolve, reject) { let promise = new Promise(function(resolve, reject) {
uni.request(httpDefaultOpts).then((res) => { uni.request(httpDefaultOpts).then((res) => {
if (res[1].data.success === true && res[1].data.data !== null) { if (res[1].data.success === true && res[1].data.data !== null) {
resolve(res[1].data) if (res[1].data.data === 0) {
} else { uni.showToast({
resolve({ icon: "none",
message: "服务器出现异常" title: "服务器出小差了,请稍后再试"
}) })
} else {
resolve(res[1].data)
} }
} } else {
).catch( resolve({
(response) => { message: "服务器出现异常"
reject(response) })
} }
) }
}) ).catch(
(response) => {
reject(response)
}
)
})
return promise return promise
}; };
//带Token请求 //带Token请求

View File

@ -225,7 +225,7 @@ public class HSController {
return result; return result;
} }
/**定时任务*/ /**更新个人积分*/
@RequestMapping(value = "/timingTask", method = {RequestMethod.POST,RequestMethod.GET}) @RequestMapping(value = "/timingTask", method = {RequestMethod.POST,RequestMethod.GET})
@ResponseBody @ResponseBody
public Map<String,Object> timingTask(@RequestBody Map<String,Object> param) { public Map<String,Object> timingTask(@RequestBody Map<String,Object> param) {
@ -326,7 +326,61 @@ public class HSController {
return result; return result;
} }
/**修改手机号*/
@RequestMapping(value = "/updatePhone", method = {RequestMethod.POST,RequestMethod.GET})
@ResponseBody
public Map<String,Object> updatePhone(@RequestBody Map<String,Object> param) {
Map<String,Object> result = hsService.updatePhone(param);
return result;
}
/**
* 获取字典项数据
* @param param
* @return
*/
@RequestMapping(value = "/getDictionariesData", method = {RequestMethod.POST,RequestMethod.GET})
@ResponseBody
public Map<String,Object> getDictionariesData(@RequestBody Map<String,Object> param) {
Map<String,Object> result = hsService.getDictionariesData(param);
return result;
}
/**
* 获取帮助历史提问列表
* @param param
* @return
*/
@RequestMapping(value = "/getHistoryHelpList", method = {RequestMethod.POST,RequestMethod.GET})
@ResponseBody
public Map<String,Object> getHistoryHelpList(@RequestBody Map<String,Object> param) {
Map<String,Object> result = hsService.getHistoryHelpList(param);
return result;
}
/**
* 新增一条帮助提问
* @param param
* @return
*/
@RequestMapping(value = "/addHelpQuestion", method = {RequestMethod.POST,RequestMethod.GET})
@ResponseBody
public Map<String,Object> addHelpQuestion(@RequestBody Map<String,Object> param) {
Map<String,Object> result = hsService.addHelpQuestion(param);
return result;
}
/**
* 编辑个人信息
* @param param
* @return
*/
@RequestMapping(value = "/updatePersonalInfo", method = {RequestMethod.POST,RequestMethod.GET})
@ResponseBody
public Map<String,Object> updatePersonalInfo(@RequestBody Map<String,Object> param) {
Map<String,Object> result = hsService.updatePersonalInfo(param);
return result;
}
/** /**
* 测试接口 * 测试接口

View File

@ -152,7 +152,7 @@ public interface HSLinkMapper {
/** /**
* 更新个人积分 * 更新个人积分
*/ */
int updateIntegral(Map<String,Object> param); int updateOneIntegral(Map<String,Object> param);
/** /**
* 保存文件路径 * 保存文件路径
@ -218,4 +218,45 @@ public interface HSLinkMapper {
* @return * @return
*/ */
List<Map<String, Object>> getFollowPeopleList(Map<String, Object> param); List<Map<String, Object>> getFollowPeopleList(Map<String, Object> param);
/**
* 修改手机号
* @param param
* @return
*/
int updatePhone(Map<String, Object> param);
/**
* 获取字典项数据
* @param param
* @return
*/
List<Map<String, Object>> getDictionariesData(Map<String, Object> param);
/**
* 获取帮助历史提问
* @param param
* @return
*/
List<Map<String, Object>> getHistoryHelpList(Map<String, Object> param);
/**
* 新增一条帮助提问
* @param param
* @return
*/
int addHelpQuestion(Map<String, Object> param);
/**
* 编辑个人信息
* @param param
* @return
*/
int updatePersonalInfo(Map<String, Object> param);
/**
* 定时更新积分
* @return
*/
int updateIntegral();
} }

View File

@ -305,13 +305,37 @@
send_id = #{otherId} and receive_id = #{userId} send_id = #{otherId} and receive_id = #{userId}
</update> </update>
<!--修改手机号-->
<update id="updatePhone" parameterType="map">
update hs_user set mobile = #{mobile} where user_id = #{id}
</update>
<!--编辑个人信息-->
<update id="updatePersonalInfo" parameterType="map">
update hs_user set
sex = #{sex},
birthday = #{birthday},
address = #{address},
signature = #{signature}
where user_id = #{userId}
</update>
<!--定时更新所有人积分-->
<update id="updateIntegral">
UPDATE hs_user u
SET integral = (
( ( SELECT count( * ) FROM hs_notice WHERE release_id = u.user_id ) * 100 ) +
( ( SELECT count( * ) FROM hs_leave_message WHERE messager_id = u.user_id ) * 10 )
)
</update>
<!--删除一条已读私信--> <!--删除一条已读私信-->
<delete id="deleteSentLetter" parameterType="map"> <delete id="deleteSentLetter" parameterType="map">
update hs_private_letter set send_status = "0" where id = #{id} update hs_private_letter set send_status = "0" where id = #{id}
</delete> </delete>
<!--更新个人积分--> <!--更新个人积分-->
<delete id="updateIntegral" parameterType="map"> <update id="updateOneIntegral" parameterType="map">
UPDATE hs_user UPDATE hs_user
SET integral = ( SET integral = (
( ( SELECT count( * ) FROM hs_notice WHERE release_id = #{userId} ) * 100 ) + ( ( SELECT count( * ) FROM hs_notice WHERE release_id = #{userId} ) * 100 ) +
@ -319,7 +343,7 @@
) )
WHERE WHERE
user_id = #{userId} user_id = #{userId}
</delete> </update>
<!--取消关注--> <!--取消关注-->
<delete id="cancelFollow" parameterType="map"> <delete id="cancelFollow" parameterType="map">
@ -355,6 +379,12 @@
( uuid(), #{userId}, #{followId}, now() ) ( uuid(), #{userId}, #{followId}, now() )
</insert> </insert>
<!--新增一条帮助问题-->
<insert id="addHelpQuestion" parameterType="map">
INSERT into hs_help (id,create_id,create_time,question)
VALUES (uuid(),#{userId},now(),#{question})
</insert>
<!--获取文件信息--> <!--获取文件信息-->
<select id="getFileList" resultType="java.util.Map"> <select id="getFileList" resultType="java.util.Map">
select select
@ -451,4 +481,14 @@
user_id IN ( SELECT follow_id FROM hs_follow WHERE user_id = #{userId} ) user_id IN ( SELECT follow_id FROM hs_follow WHERE user_id = #{userId} )
</select> </select>
<!--获取字典项数据-->
<select id="getDictionariesData" resultType="map" parameterType="map">
SELECT * from hs_dd where dd_code = #{code}
</select>
<!--获取帮助历史提问-->
<select id="getHistoryHelpList" resultType="map" parameterType="map">
SELECT h.*,u.real_name from hs_help h left join hs_user u on h.answer_id = u.user_id where create_id = #{userId}
</select>
</mapper> </mapper>

View File

@ -114,7 +114,7 @@ public interface HSService {
Map<String,Object> deleteLetter(Map<String,Object> param); Map<String,Object> deleteLetter(Map<String,Object> param);
/** /**
* 定时任务 * 更新个人积分
*/ */
Map<String,Object> timingTask(Map<String,Object> param); Map<String,Object> timingTask(Map<String,Object> param);
@ -183,4 +183,44 @@ public interface HSService {
* @return * @return
*/ */
Map<String, Object> getFollowPeopleList(Map<String, Object> param); Map<String, Object> getFollowPeopleList(Map<String, Object> param);
/**
* 修改手机号
* @param param
* @return
*/
Map<String, Object> updatePhone(Map<String, Object> param);
/**
* 获取字典项数据
* @param param
* @return
*/
Map<String, Object> getDictionariesData(Map<String, Object> param);
/**
* 获取帮助历史提问列表
* @param param
* @return
*/
Map<String, Object> getHistoryHelpList(Map<String, Object> param);
/**
* 新增一条帮助问题
* @param param
* @return
*/
Map<String, Object> addHelpQuestion(Map<String, Object> param);
/**
* 编辑个人信息
* @param param
* @return
*/
Map<String, Object> updatePersonalInfo(Map<String, Object> param);
/**
* 定时任务更新积分
*/
Map<String,Object> updateIntegral();
} }

View File

@ -337,7 +337,7 @@ public class HSServiceImpl implements HSService {
Map<String, Object> result = new HashMap<>(); Map<String, Object> result = new HashMap<>();
Map<String, Object> res = new HashMap<>(); Map<String, Object> res = new HashMap<>();
/**更新个人积分*/ /**更新个人积分*/
int res1 = hsLinkMapper.updateIntegral(param); int res1 = hsLinkMapper.updateOneIntegral(param);
if (res1 == 1) { if (res1 == 1) {
res.put("taskIntegral","更新个人积分成功"); res.put("taskIntegral","更新个人积分成功");
} else { } else {
@ -562,6 +562,81 @@ public class HSServiceImpl implements HSService {
return result; return result;
} }
@Override
public Map<String, Object> updatePhone(Map<String, Object> param) {
Map<String, Object> result = new HashMap<>();
int res = 0;
try {
res = hsLinkMapper.updatePhone(param);
} catch (Exception e) {
e.printStackTrace();
res = 0;
}
result.put("data",res);
result.put("success",true);
return result;
}
@Override
public Map<String, Object> getDictionariesData(Map<String, Object> param) {
Map<String, Object> result = new HashMap<>();
List<Map<String, Object>> res = hsLinkMapper.getDictionariesData(param);
result.put("data",res);
result.put("success",true);
return result;
}
@Override
public Map<String, Object> getHistoryHelpList(Map<String, Object> param) {
Map<String, Object> result = new HashMap<>();
List<Map<String, Object>> res = hsLinkMapper.getHistoryHelpList(param);
result.put("data",res);
result.put("success",true);
return result;
}
@Override
public Map<String, Object> addHelpQuestion(Map<String, Object> param) {
Map<String, Object> result = new HashMap<>();
int res = 0;
try {
res = hsLinkMapper.addHelpQuestion(param);
} catch (Exception e) {
e.printStackTrace();
res = 0;
}
result.put("data",res);
result.put("success",true);
return result;
}
@Override
public Map<String, Object> updatePersonalInfo(Map<String, Object> param) {
Map<String, Object> result = new HashMap<>();
int res = 0;
try {
res = hsLinkMapper.updatePersonalInfo(param);
} catch (Exception e) {
e.printStackTrace();
res = 0;
}
result.put("data",res);
result.put("success",true);
return result;
}
@Override
public Map<String, Object> updateIntegral() {
Map<String, Object> result = new HashMap<>();
int res1 = hsLinkMapper.updateIntegral();
if (res1 > 0) {
result.put("taskIntegral","更新个人积分成功");
} else {
result.put("taskIntegral","更新个人积分失败");
}
return result;
}
/** /**
* 返回参数 * 返回参数
* @param flag * @param flag

View File

@ -0,0 +1,41 @@
package com.qinxx.hslink.util;
import com.qinxx.hslink.service.HSService;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.Map;
/**
* 1.主要用于标记配置类兼备Component的效果
* @author PHY
*/
@Configuration
/**
* 2.开启定时任务
*/
@EnableScheduling
public class SaticScheduleTask {
@Resource
HSService hsService;
/**
* 3.添加定时任务
*/
@Scheduled(cron = "0/5 * * * * ?")
/**
* 或直接指定时间间隔例如5秒
*/
/*@Scheduled(fixedRate=5000)*/
private void configureTasks() {
Map<String, Object> map = new HashMap<>();
map = hsService.updateIntegral();
System.err.println(map.get("taskIntegral") + "" + LocalDateTime.now());
}
}

View File

@ -12,9 +12,10 @@ logging:
##数据源 ##数据源
spring: spring:
datasource: datasource:
url: jdbc:mysql://127.0.0.1:3306/hslink?serverTimezone=Hongkong&useUnicode=true&characterEncoding=utf8 # url: jdbc:mysql://127.0.0.1:3306/hslink?serverTimezone=Hongkong&useUnicode=true&characterEncoding=utf8
url: jdbc:mysql://106.53.113.158:3306/hslink?serverTimezone=Hongkong&useUnicode=true&characterEncoding=utf8
username: root username: root
password: 123456 password: Beater123
db-name: hslink db-name: hslink
filters: log4j,wall,mergeStat filters: log4j,wall,mergeStat
driverClassName: com.mysql.cj.jdbc.Driver driverClassName: com.mysql.cj.jdbc.Driver