Skip to content

Commit

Permalink
v3.3.6 取消使用七牛云CDN&更新考证助手
Browse files Browse the repository at this point in the history
1. 取消使用自由的七牛云CDN太贵了,用不起
2. 更新考证助手数据
3. 成绩分享海报绘制修复
4. app.js使用统一灰色头像
  • Loading branch information
Airmole committed Oct 17, 2022
1 parent f2f82ca commit f96770d
Show file tree
Hide file tree
Showing 31 changed files with 87 additions and 124 deletions.
1 change: 1 addition & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ App({
domain: 'https://shellbox.airmole.cn/api',
_amap_key: '66a87160f8db2a9a76431c954b4f52a5', // 高德导航API秘钥
requestTimeout: 120 * 1000, // 网络请求最长时间120s
defaultGrayAvatar: 'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0',
openid: '',
session_key: '',
userInfo: {},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shellbox",
"version": "3.3.5",
"description": "图床、图片上传改用七牛云CDN接口",
"version": "3.3.6",
"description": "取消使用七牛云,太贵了用不起&修复成绩单分享绘图",
"author": "Airmole"
}
4 changes: 2 additions & 2 deletions pages/books/bind.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
</view>
<block wx:else>
<view>
<image class="title" src="https://cdn.airmole.cn/static/opac_bind_title.png"></image>
<image class="title" src="https://upload-images.jianshu.io/upload_images/4697920-e17d3ca1a6cdbadc.png"></image>
<view class="content">
<view class="hd" style="transform:rotateZ({{angle}}deg);">
<image class="logo" src="https://cdn.airmole.cn/static/book_icon.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240"></image>
<image class="logo" src="https://upload-images.jianshu.io/upload_images/4697920-07c3655a91520a4d.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240"></image>
<image class="wave" src="/images/wave.png" mode="aspectFill"></image>
<image class="wave wave-bg" src="/images/wave.png" mode="aspectFill"></image>
</view>
Expand Down
6 changes: 3 additions & 3 deletions pages/course/search.wxss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
height: 100px;
opacity: 0.9;
margin: 100rpx 0 30rpx;
background-image: url('https://cdn.airmole.cn/static/teachers_icon.png');
background-image: url('https://upload-images.jianshu.io/upload_images/4697920-84d9dc09f1d008ad.png');
}

.home .search-input {
Expand Down Expand Up @@ -374,13 +374,13 @@ button::after {
}

.ul-li-kb {
background: url('https://cdn.airmole.cn/static/table_icon.png') no-repeat;
background: url('https://upload-images.jianshu.io/upload_images/4697920-d983b3e897acc619.png') no-repeat;
background-size: 30rpx 30rpx;
background-position: 0 50%;
}

.ul-li-ks {
background: url('https://cdn.airmole.cn/static/pen_icon.png') no-repeat;
background: url('https://upload-images.jianshu.io/upload_images/4697920-289fecabc0b70761.png') no-repeat;
background-size: 30rpx 30rpx;
background-position: 0 50%;
}
Expand Down
2 changes: 1 addition & 1 deletion pages/elesys/bind.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Page({
building_focus: false,
room_focus: false,
room: '',
bgimg: 'https://cdn.airmole.cn/static/elefare_bind_title.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240',
bgimg: 'https://upload-images.jianshu.io/upload_images/4697920-32f0ab8c6c36493e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240',
angle: 0
},
onLoad: function (){
Expand Down
4 changes: 2 additions & 2 deletions pages/index/feature.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Page({
userInfo: {},
isTeacher: false,
clickAvatarCount: 1,
backgroundImage: 'https://cdn.airmole.cn/static/green_girl_background.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240',
defaultAvatar: 'https://cdn.airmole.cn/static/default_gray_avatar.png',
backgroundImage: 'https://upload-images.jianshu.io/upload_images/4697920-48dab9eddafb6ce3.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240',
defaultAvatar: app.globalData.defaultGrayAvatar,
canShake: false,
iconList: [
{
Expand Down
2 changes: 1 addition & 1 deletion pages/index/feature.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</view>
<view>您尚未登录</view>
</view>
<image src="https://cdn.airmole.cn/static/water_wave.gif" mode="scaleToFill" class="gif-wave"></image>
<image src="https://upload-images.jianshu.io/upload_images/4697920-bf033361b1498e88.gif" mode="scaleToFill" class="gif-wave"></image>
</view>

<!-- 功能菜单 -->
Expand Down
2 changes: 1 addition & 1 deletion pages/index/login.wxml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--login.wxml-->
<view class="container">
<view class="remind-box" wx:if="{{remind}}">
<image class="remind-img" src="https://cdn.airmole.cn/static/bluecat_loading.gif?imageMogr2/auto-orient/strip"></image>
<image class="remind-img" src="https://upload-images.jianshu.io/upload_images/4697920-3401f7949a9e8b5c.gif?imageMogr2/auto-orient/strip"></image>
<view class="text-white text-xl">正在登录,请耐心等候...</view>
<view class="cu-progress bg-white round margin-top">
<view class="bg-green" style="width:{{remind?(percent+'%'):''}};">{{percent}}%</view>
Expand Down
5 changes: 2 additions & 3 deletions pages/index/setting.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// pages/index/setting.js
const app = getApp()
const defaultAvatar = 'https://cdn.airmole.cn/static/default_gray_avatar.png'
Page({
data: {
avatarUrl: 'https://cdn.airmole.cn/static/default_gray_avatar.png',
avatarUrl: app.globalData.defaultGrayAvatar,
nickname: ''
},
onLoad () {
Expand All @@ -25,7 +24,7 @@ Page({
timeout: app.globalData.requestTimeout,
success: function(res){
if (res.statusCode == 200 && res.data.code == 200) {
const avatarUrl = res.data.data.avatar ? res.data.data.avatar : defaultAvatar
const avatarUrl = res.data.data.avatar ? res.data.data.avatar : app.globalData.defaultGrayAvatar
const nickName = res.data.data.nickname ? res.data.data.nickname : uid
_this.setData({ avatarUrl: avatarUrl, nickname: nickName })
let userInfo = { avatarUrl: avatarUrl, nickName: nickName }
Expand Down
2 changes: 1 addition & 1 deletion pages/netsys/bind.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Page({
passwd_focus: false,
netid: '',
passwd: '',
bgimg: 'https://cdn.airmole.cn/static/netsys_bind_title.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240',
bgimg: 'https://upload-images.jianshu.io/upload_images/4697920-61be38713bbefa8c.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240',
angle: 0
},
onLoad: function (){
Expand Down
10 changes: 5 additions & 5 deletions pages/school/aboutus.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ Page({
version: '',
QGroupModal: false,
showFreedomFunc: false,
weappCodeImage: 'https://cdn.airmole.cn/static/shellbox_miniprogram_codes.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240',
weappCodeImage: 'https://upload-images.jianshu.io/upload_images/4697920-92c8f24e739051d3.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240',
coder: [{
avatar: 'https://cdn.airmole.cn/static/airmole_avatar.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/128',
avatar: 'https://upload-images.jianshu.io/upload_images/4697920-4bbd851e6b007d72.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/128',
nickName: 'Airmole',
weibo: 'pages/profile/profile?objectUid=2423156830&nickname=Airmole'
}, {
avatar: 'https://cdn.airmole.cn/static/henbf_avatar.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/128',
avatar: 'https://upload-images.jianshu.io/upload_images/4697920-54c15375dfd9568e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/128',
nickName: '很奔放',
weibo: ''
}, {
avatar: 'https://cdn.airmole.cn/static/fish_avatar.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/128',
avatar: 'https://upload-images.jianshu.io/upload_images/4697920-5b0f0ef862d2e5e8.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/128',
nickName: '秃头程序媛',
weibo: ''
}],
otherApps: [{
appid: 'wx183616af30e5723d',
icon: 'https://cdn.airmole.cn/static/tjustb_schoolbus_icon.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/128',
icon: 'https://upload-images.jianshu.io/upload_images/4697920-9f02095775140703.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/128',
name: '贝壳班车订票'
}]
},
Expand Down
4 changes: 2 additions & 2 deletions pages/school/aboutus.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<view class="header">
<view class="black-cover">
</view>
<image class="logo" src="https://cdn.airmole.cn/static/school_about_background.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240">
<image class="logo" src="https://upload-images.jianshu.io/upload_images/4697920-377a329782f5ea1f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240">
</image>
<image class="title" src="/images/title.png">
</image>
Expand Down Expand Up @@ -92,7 +92,7 @@
<view class="cu-modal {{QGroupModal?'show':''}}">
<view class="cu-dialog">
<view class="bg-img"
style="background-image: url('https://cdn.airmole.cn/static/shellbox_qqgroup_qrcode.png');height:550px;">
style="background-image: url('https://upload-images.jianshu.io/upload_images/4697920-d843326d24a640da.png');height:550px;">
<view class="cu-bar justify-end text-white">
<view class="action" bindtap="hideModal">
<text class="cuIcon-close "></text>
Expand Down
4 changes: 2 additions & 2 deletions pages/school/board/detail.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<view class="cu-item shadow">
<view class="cu-list menu-avatar">
<view class="cu-item">
<view class="cu-avatar round lg bg-cyan" style="background-image:url(https://cdn.airmole.cn/static/quanyi_avatar.png);"></view>
<view class="cu-avatar round lg bg-cyan" style="background-image:url(https://upload-images.jianshu.io/upload_images/4697920-5a559d389ef75773.png);"></view>
<view class="content flex-sub">
<view>{{data.content.id}}</view>
<view class="text-gray text-sm flex justify-between">{{data.content.created_at}}</view>
Expand Down Expand Up @@ -93,7 +93,7 @@
<view class="cu-item shadow solid-bottom" wx:for="{{data.replay}}" wx:key="board">
<view class="cu-list menu-avatar">
<view class="cu-item">
<view class="cu-avatar round lg bg-cyan" style="background-image:url(https://cdn.airmole.cn/static/quanyi_logo.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/128);"></view>
<view class="cu-avatar round lg bg-cyan" style="background-image:url(https://upload-images.jianshu.io/upload_images/4697920-c9b94a8b22d5ee7e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/128);"></view>
<view class="content flex-sub">
<view>权益中心工作人员 - {{item.nickname}}</view>
<view class="text-gray text-sm flex justify-between">{{item.created_at}}</view>
Expand Down
2 changes: 1 addition & 1 deletion pages/school/board/faq.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Page({
isLoading: true,
isAdminer: false,
uid: 0,
qrcode: 'https://cdn.airmole.cn/static/quanyi_qrcode.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/512',
qrcode: 'https://upload-images.jianshu.io/upload_images/4697920-03629fe77465b1b5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/512',
datalist: [],
tags: ['其他', '食堂', '宿舍', '教学楼', '老师']
},
Expand Down
2 changes: 1 addition & 1 deletion pages/school/board/faq.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<view class="cu-item shadow">
<view class="cu-list menu-avatar">
<view class="cu-item">
<view class="cu-avatar round lg bg-cyan" style="background-image:url(https://cdn.airmole.cn/static/quanyi_avatar.png);"></view>
<view class="cu-avatar round lg bg-cyan" style="background-image:url(https://upload-images.jianshu.io/upload_images/4697920-5a559d389ef75773.png);"></view>
<view class="content flex-sub">
<view>{{item.id}}</view>
<view class="text-gray text-sm flex justify-between">{{item.created_at}}</view>
Expand Down
2 changes: 1 addition & 1 deletion pages/school/board/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Page({
isLoading: true,
isAdminer: false,
uid: 0,
qrcode: 'https://cdn.airmole.cn/static/quanyi_qrcode.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/512',
qrcode: 'https://upload-images.jianshu.io/upload_images/4697920-03629fe77465b1b5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/512',
datalist: [],
hotDatalist: [],
tags: ['其他', '食堂', '宿舍', '教学楼', '老师'],
Expand Down
2 changes: 1 addition & 1 deletion pages/school/board/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<view class="cu-item shadow">
<view class="cu-list menu-avatar">
<view class="cu-item">
<view class="cu-avatar round lg bg-cyan" style="background-image:url(https://cdn.airmole.cn/static/quanyi_avatar.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/128);"></view>
<view class="cu-avatar round lg bg-cyan" style="background-image:url(https://upload-images.jianshu.io/upload_images/4697920-5a559d389ef75773.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/128);"></view>
<view class="content flex-sub">
<view>{{item.id}}</view>
<view class="text-gray text-sm flex justify-between">{{item.created_at}}</view>
Expand Down
2 changes: 1 addition & 1 deletion pages/school/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Page({
* 页面的初始数据
*/
data: {
calendarImage: 'https://cdn.airmole.cn/image/calendar/2022-2023-1.jpeg',
calendarImage: 'https://upload-images.jianshu.io/upload_images/4697920-f91669d4f0f98ca1.jpeg',
isLoading: true,
screenHeight: '900',
colorArr: ['red','orange','yellow','olive','green','cyan','blue','purple','mauve','pink','brown','grey','gray'],
Expand Down
2 changes: 1 addition & 1 deletion pages/school/card/bind.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Page({
* 页面的初始数据
*/
data: {
webImage: 'https://cdn.airmole.cn/static/ehall_tips.png',
webImage: 'https://upload-images.jianshu.io/upload_images/4697920-b9667ae84f3059d7.png',
uid: '',
password: ''
},
Expand Down
53 changes: 9 additions & 44 deletions pages/school/cert.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,20 +79,17 @@ Page({
content: [{
subtitle: '官网',
url: 'http://kzp.mof.gov.cn/index.jsp'
}, {
subtitle: '报名',
url: 'http://kjbm.mof.gov.cn/index-sf_cg.jsp'
}, {
subtitle: '成绩查询',
url: 'http://kzp.mof.gov.cn/cjcx/cjcx.jsp'
}]
},
{
title: '普通话水平测试(天津)',
title: '普通话水平测试',
hookId: 'cltt',
content: [{
subtitle: '报名',
url: 'http://tj.cltt.org/Web/SignUpOnLine/Default.aspx'
url: 'http://bm.cltt.org/'
}]
},
{
Expand All @@ -104,26 +101,6 @@ Page({
}, {
subtitle: '报名',
url: 'https://bm.ruankao.org.cn/sign/welcome'
}, {
subtitle: '准考证',
url: 'https://bm.ruankao.org.cn/shortCut/searchCard'
}, {
subtitle: '成绩查询',
url: 'https://query.ruankao.org.cn/score'
}]
},
{
title: '导游资格考试',
hookId: 'daoyou',
content: [{
subtitle: '官网',
url: 'https://c-dy.exam-sp.com/'
}, {
subtitle: '报名',
url: 'https://c-dy.exam-sp.com/#/default/examReg/chooseBatch'
}, {
subtitle: '准考证',
url: 'https://c-dy.exam-sp.com/#/default/print'
}]
},
{
Expand All @@ -132,29 +109,23 @@ Page({
content: [{
subtitle: '官网',
url: 'https://www.sac.net.cn/cyry/kspt/kstz/'
}, {
subtitle: '报名',
url: 'https://www.sac.net.cn/cyry/kspt/ksbm/'
}, {
subtitle: '准考证',
url: 'https://www.sac.net.cn/cyry/kspt/zkzdy/'
}, {
subtitle: '成绩',
url: 'https://www.sac.net.cn/cyry/kspt/kscjcx/'
}]
},
{
title: '基金从业资格考试',
hookId: 'jijin',
content: [{
subtitle: '报名',
url: 'http://baoming.amac.org.cn:10080/JJKSreg/page.htm'
url: 'https://www.amac.org.cn/'
}]
},
{
title: '银行从业资格考试',
hookId: 'bank',
content: [{
subtitle: '官网',
url: 'https://www.china-cba.net/Index/lists/catid/31.html'
},{
subtitle: '报名',
url: 'http://cj.ccbp.org.cn/apply/'
}]
Expand All @@ -163,9 +134,6 @@ Page({
title: '期货从业资格考试',
hookId: 'qihuo',
content: [{
subtitle: '官网',
url: 'http://cfa.ata.net.cn/Portal/'
}, {
subtitle: '报名',
url: 'http://cfa.ata.net.cn/site/#/default/login'
}]
Expand All @@ -175,21 +143,18 @@ Page({
hookId: 'cpa',
content: [{
subtitle: '官网',
url: 'http://cpaexam.cicpa.org.cn/default.shtml'
url: 'https://www.cicpa.org.cn/'
}, {
subtitle: '报名',
url: 'http://cpaexam.cicpa.org.cn/login'
}, {
subtitle: '成绩查询',
url: 'http://cpaexam.cicpa.org.cn/scorequeryhis'
url: 'https://www.cicpa.org.cn/ztzl1/exam/'
}]
},
{
title: '法律职业资格考试',
hookId: 'laywer',
content: [{
subtitle: '官网',
url: 'http://sfks.bjsf.gov.cn/jeplatform/websitebj/index.jsp'
url: 'http://www.moj.gov.cn/jgsz/jgszzsdw/zsdwgjsfkszx/'
}]
},
{
Expand Down
2 changes: 0 additions & 2 deletions pages/school/cert.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
wx:key="contentKey">
<view class="desc-title">{{subItem.subtitle}}:</view>
<view class="desc-content" data-url="{{subItem.url}}" bindtap="copyUrl"> - {{subItem.url}}</view>
<view wx:if="{{subItem.url=='http://cet.neea.edu.cn/cet/'}}" class="desc-content" data-url="{{subItem.url}}"
bindtap="goToOtherWeapp"> - 直接前往查询</view>
</view>
</view>
</block>
Expand Down
4 changes: 2 additions & 2 deletions pages/school/finance/bind.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
</view>
<block wx:else>
<view>
<image class="title" src="https://cdn.airmole.cn/static/finance_bind_title.png"></image>
<image class="title" src="https://upload-images.jianshu.io/upload_images/4697920-3fab34adc9ce45b7.png"></image>
<view class="content">
<view class="hd" style="transform:rotateZ({{angle}}deg);">
<image class="logo" src="https://cdn.airmole.cn/static/finance_icon.png"></image>
<image class="logo" src="https://upload-images.jianshu.io/upload_images/4697920-2a921a218f8bcd53.png"></image>
<image class="wave" src="/images/wave.png" mode="aspectFill"></image>
<image class="wave wave-bg" src="/images/wave.png" mode="aspectFill"></image>
</view>
Expand Down
2 changes: 1 addition & 1 deletion pages/school/lost/detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Page({
*/
data: {
env: 'develop',
defaultAvatar: 'https://cdn.airmole.cn/static/default_gray_avatar.png',
defaultAvatar: app.globalData.defaultGrayAvatar,
isLoading: true,
isPublisher: false,
isRecevicer: false,
Expand Down
Loading

0 comments on commit f96770d

Please sign in to comment.