no message

cyl/job_im
jscyl13849007907 2 days ago
parent ec0e9d3ef1
commit 3202b8f47e

@ -22,11 +22,11 @@ export default {
// themeColor: "#00B666", // themeColor: "#00B666",
// themeBackgroundColor: "#00B66621", // themeBackgroundColor: "#00B66621",
themeColor: "#fea702", // themeColor: "#fea702",
themeBackgroundColor: "#fea70221", // themeBackgroundColor: "#fea70221",
// themeColor: "#2FC67D", themeColor: "#2FC67D",
// themeBackgroundColor: "#2FC67D21", themeBackgroundColor: "#2FC67D21",
logo: "", logo: "",
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN

@ -9,7 +9,7 @@
'padding-top': pt + 'rpx', 'padding-top': pt + 'rpx',
}" }"
> >
<rh-empty text="嘿,这里还没有数据呢" style="margin-top: 30px"></rh-empty> <rh-empty :text="emptyText" style="margin-top: 30px"></rh-empty>
</view> </view>
<view v-if="speed > 0" class="link"> <view v-if="speed > 0" class="link">
<view class=""> <view class="">

@ -137,7 +137,7 @@
"quickapp" : {}, "quickapp" : {},
/* */ /* */
"mp-weixin" : { "mp-weixin" : {
"appid" : "wx15bc9c758f4eb129", "appid" : "wxfab5320942daaafa",
"setting" : { "setting" : {
"urlCheck" : false, "urlCheck" : false,
"es6" : true, "es6" : true,

@ -854,38 +854,38 @@
"uniIdRouter": {}, "uniIdRouter": {},
"tabBar": { "tabBar": {
"color": "#606266", "color": "#606266",
"selectedColor": "#fea702", "selectedColor": "#2FC67D",
"borderStyle": "black", "borderStyle": "black",
"backgroundColor": "#ffffff", "backgroundColor": "#ffffff",
// "custom": true, // "custom": true,
"list": [ "list": [
{ {
"iconPath": "static/image/tabbar/home.png", "iconPath": "static/image/tabbar/home.png",
"selectedIconPath": "static/image/tabbar/home_yellow.png", "selectedIconPath": "static/image/tabbar/home_green.png",
"pagePath": "pages/home/index", "pagePath": "pages/home/index",
"text": "首页" "text": "首页"
}, },
{ {
"iconPath": "static/image/tabbar/message.png", "iconPath": "static/image/tabbar/message.png",
"selectedIconPath": "static/image/tabbar/message_yellow.png", "selectedIconPath": "static/image/tabbar/message_green.png",
"pagePath": "pages/message/index", "pagePath": "pages/message/index",
"text": "消息" "text": "消息"
}, },
{ {
"iconPath": "static/image/tabbar/plus-square.png", "iconPath": "static/image/tabbar/plus-square.png",
"selectedIconPath": "static/image/tabbar/plus-square_yellow.png", "selectedIconPath": "static/image/tabbar/plus-square_green.png",
"pagePath": "pages/apply/index", "pagePath": "pages/apply/index",
"text": "报名" "text": "报名"
}, },
{ {
"iconPath": "static/image/tabbar/order.png", "iconPath": "static/image/tabbar/order.png",
"selectedIconPath": "static/image/tabbar/order_yellow.png", "selectedIconPath": "static/image/tabbar/order_green.png",
"pagePath": "pages/order/index", "pagePath": "pages/order/index",
"text": "工单" "text": "工单"
}, },
{ {
"iconPath": "static/image/tabbar/user.png", "iconPath": "static/image/tabbar/user.png",
"selectedIconPath": "static/image/tabbar/user_yellow.png", "selectedIconPath": "static/image/tabbar/user_green.png",
"pagePath": "pages/person/index", "pagePath": "pages/person/index",
"text": "我的" "text": "我的"
} }

@ -402,12 +402,12 @@ export default {
setTimeout(() => { setTimeout(() => {
let _notice = uni.getStorageSync("miniApp-info").notice || '愿祖国繁荣富强,山河锦绣如画;盼华夏儿女同心,共筑盛世中华!'; let _notice = (uni.getStorageSync("miniApp-info") || {}).notice || '愿祖国繁荣富强,山河锦绣如画;盼华夏儿女同心,共筑盛世中华!';
if (_notice) { if (_notice) {
var reg = /[\r\n]/g; var reg = /[\r\n]/g;
_notice = _notice.replace(reg, ""); _notice = _notice.replace(reg, "");
that.noticList = [_notice]; that.noticList = [_notice];
that.noticeColor = uni.getStorageSync("miniApp-info").noticeColor; that.noticeColor = (uni.getStorageSync("miniApp-info") || {}).noticeColor;
that.showNotic = "play"; that.showNotic = "play";
} }
}, 100); }, 100);
@ -590,6 +590,7 @@ export default {
}, },
methods: { methods: {
themeColorRgba(alpha) { themeColorRgba(alpha) {
if (!this.themeColor) return `rgba(0,0,0,${alpha})`;
let hex = this.themeColor.replace('#', ''); let hex = this.themeColor.replace('#', '');
if (hex.length === 3) hex = hex.split('').map(c => c + c).join(''); if (hex.length === 3) hex = hex.split('').map(c => c + c).join('');
let r = parseInt(hex.substring(0, 2), 16); let r = parseInt(hex.substring(0, 2), 16);
@ -1036,7 +1037,7 @@ export default {
that.query.list = []; that.query.list = [];
uni.setStorageSync("lin-liu", 0); uni.setStorageSync("lin-liu", 0);
uni.setStorageSync("lin-bao", 0); uni.setStorageSync("lin-bao", 0);
that.query.list = resData.recordList.map((item, index) => { that.query.list = (resData.recordList || []).map((item, index) => {
item.liuNum = uni.getStorageSync("lin-liu") ? uni.getStorageSync("lin-liu") : Math.floor(Math.random() * 1000); item.liuNum = uni.getStorageSync("lin-liu") ? uni.getStorageSync("lin-liu") : Math.floor(Math.random() * 1000);
return { return {
@ -1131,7 +1132,7 @@ export default {
); );
} else { } else {
that.query.list = that.query.list.concat( that.query.list = that.query.list.concat(
resData.recordList.map((item, index) => { (resData.recordList || []).map((item, index) => {
return { return {
...item, ...item,
liuNum: item.liuNum, liuNum: item.liuNum,
@ -1151,8 +1152,8 @@ export default {
); );
} }
} }
that.speed = resData.recordCount; that.speed = resData.recordCount || 0;
that.query.isFinish = resData.recordList.length; that.query.isFinish = (resData.recordList || []).length;
resolve(); resolve();
}); });
// console.log("resData.recordList", resData.recordList); // console.log("resData.recordList", resData.recordList);
@ -1307,11 +1308,10 @@ export default {
}); });
}, },
getSearch(e) { getSearch(e) {
// console.log(e);
this.speed = -1; this.speed = -1;
this.isshowskit = false;
this.keyword = e || ""; this.keyword = e || "";
this.query.page = 1; this.query.page = 1;
// console.log(this.whichPage);
this.getList(); this.getList();
}, },
restoreActiveTab() { restoreActiveTab() {

Loading…
Cancel
Save