diff --git a/common/uni-ui.scss b/common/uni-ui.scss new file mode 100644 index 0000000000000000000000000000000000000000..6ba0990e19375953d8b035291a06be680dde6b51 --- /dev/null +++ b/common/uni-ui.scss @@ -0,0 +1,120 @@ + +.uni-flex { + display: flex; +} + +.uni-flex-row { + @extend .uni-flex; + flex-direction: row; + box-sizing: border-box; +} + +.uni-flex-column { + @extend .uni-flex; + flex-direction: column; +} + +.uni-color-gary { + color: #3b4144; +} + +/* 标题 */ +.uni-title { + display: flex; + margin-bottom: $uni-spacing-col-base; + font-size: $uni-font-size-lg; + font-weight: bold; + color: #3b4144; +} + +.uni-title-sub { + display: flex; + // margin-bottom: $uni-spacing-col-base; + font-size: $uni-font-size-base; + font-weight: 500; + color: #3b4144; +} + +/* 描述 额外文本 */ +.uni-note { + margin-top: 10px; + color: #999; + font-size: $uni-font-size-sm; +} + +/* 列表内容 */ +.uni-list-box { + @extend .uni-flex-row; + flex: 1; + margin-top: 10px; +} + +/* 略缩图 */ +.uni-thumb { + flex-shrink: 0; + margin-right: $uni-spacing-row-base; + width: 125px; + height: 75px; + border-radius: $uni-border-radius-lg; + overflow: hidden; + border: 1px #f5f5f5 solid; + image { + width: 100%; + height: 100%; + } +} + +.uni-media-box { + @extend .uni-flex-row; + // margin-bottom: $uni-spacing-col-base; + border-radius: $uni-border-radius-lg; + overflow: hidden; + .uni-thumb { + margin: 0; + margin-left: 4px; + flex-shrink: 1; + width: 33%; + border-radius:0; + &:first-child { + margin: 0; + } + } +} + +/* 内容 */ +.uni-content { + @extend .uni-flex-column; + justify-content: space-between; +} + +/* 列表footer */ +.uni-footer { + @extend .uni-flex-row; + justify-content: space-between; + margin-top: $uni-spacing-col-lg; +} +.uni-footer-text { + font-size: $uni-font-size-sm; + color: $uni-text-color-grey; + margin-left: 5px; +} + +/* 标签 */ + +.uni-tag { + flex-shrink: 0; + padding: 0 5px; + border: 1px $uni-border-color solid; + margin-right: $uni-spacing-row-sm; + border-radius: $uni-border-radius-base; + background: $uni-bg-color-grey; + color: $uni-text-color; + font-size: $uni-font-size-sm; +} + +/* 链接 */ +.uni-link { + margin-left: 10px; + color: $uni-text-color; + text-decoration: underline; +} diff --git a/manifest.json b/manifest.json index 28099827249858a7c293c3fcfa4b59b2b0a2c3b4..49decd7273adbe9e155570a5c9b9594fae35d845 100644 --- a/manifest.json +++ b/manifest.json @@ -1,109 +1,115 @@ -{ - "name" : "base-app", - "appid" : "__UNI__BC54A00", - "description" : "", - "versionName" : "1.0.0", - "versionCode" : "100", - "transformPx" : false, - "app-plus" : { - "usingComponents" : true, - "nvueCompiler" : "uni-app", - "compilerVersion" : 3, - "splashscreen" : { - "alwaysShowBeforeRender" : true, - "waiting" : true, - "autoclose" : true, - "delay" : 0 - }, - "modules" : { - "Share" : {}, - "Fingerprint" : {}, - "OAuth" : {} - }, - "distribute" : { - "android" : { - "permissions" : [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - /* ios打包配置 */ - "ios" : { - "capabilities" : { - "plists" : { - "DCloudConfig" : { - "miniServer" : true - } - }, - "entitlements" : { - "com.apple.developer.associated-domains" : [ - "applinks:uniapp.dcloud.io", - "applinks:static-7827e38b-7f40-4421-bca7-58331dcddc00.bspapp.com" - ] - } - }, - "privacyDescription" : { - "NSLocalNetworkUsageDescription" : "展示游戏页面" - } - }, - "sdkConfigs" : { - "oauth" : { - "apple" : {}, - "weixin" : { - "appid" : "wx0411fa6a39d61297", - "appsecret" : "", - "UniversalLinks" : "https://static-7827e38b-7f40-4421-bca7-58331dcddc00.bspapp.com/uni-universallinks/__UNI__BC54A00" - }, - "univerify" : {} - }, - "share" : { - "weixin" : { - "appid" : "wx0411fa6a39d61297", - "UniversalLinks" : "https://static-7827e38b-7f40-4421-bca7-58331dcddc00.bspapp.com/uni-universallinks/__UNI__BC54A00", - "_spaceID" : "7827e38b-7f40-4421-bca7-58331dcddc00" - } - }, - "payment" : { - "weixin" : { - "UniversalLinks" : "https://static-7827e38b-7f40-4421-bca7-58331dcddc00.bspapp.com/uni-universallinks/__UNI__BC54A00" - } - }, - "ad" : {} - } - } - }, - "quickapp" : {}, - "mp-weixin" : { - "appid" : "", - "setting" : { - "urlCheck" : false - }, - "usingComponents" : true - }, - "mp-alipay" : { - "usingComponents" : true - }, - "mp-baidu" : { - "usingComponents" : true - }, - "mp-toutiao" : { - "usingComponents" : true - }, - "uniStatistics" : { - "enable" : false - } +{ + "name": "base-app", + "appid": "__UNI__BC54A00", + "description": "", + "versionName": "1.0.0", + "versionCode": "100", + "transformPx": false, + "app-plus": { + "usingComponents": true, + "nvueCompiler": "uni-app", + "compilerVersion": 3, + "safearea": { //安全区域配置,仅iOS平台生效 + "background": "#FFFFFF", //安全区域外的背景颜色,默认值为"#FFFFFF" + "bottom": { // 底部安全区域配置 + "offset": "auto" // 底部安全区域偏移,"none"表示不空出安全区域,"auto"自动计算空出安全区域,默认值为"none" + } + }, + "splashscreen": { + "alwaysShowBeforeRender": true, + "waiting": true, + "autoclose": true, + "delay": 0 + }, + "modules": { + "Share": {}, + "Fingerprint": {}, + "OAuth": {} + }, + "distribute": { + "android": { + "permissions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + /* ios打包配置 */ + "ios": { + "capabilities": { + "plists": { + "DCloudConfig": { + "miniServer": true + } + }, + "entitlements": { + "com.apple.developer.associated-domains": [ + "applinks:uniapp.dcloud.io", + "applinks:static-7827e38b-7f40-4421-bca7-58331dcddc00.bspapp.com" + ] + } + }, + "privacyDescription": { + "NSLocalNetworkUsageDescription": "展示游戏页面" + } + }, + "sdkConfigs": { + "oauth": { + "apple": {}, + "weixin": { + "appid": "wx0411fa6a39d61297", + "appsecret": "", + "UniversalLinks": "https://static-7827e38b-7f40-4421-bca7-58331dcddc00.bspapp.com/uni-universallinks/__UNI__BC54A00" + }, + "univerify": {} + }, + "share": { + "weixin": { + "appid": "wx0411fa6a39d61297", + "UniversalLinks": "https://static-7827e38b-7f40-4421-bca7-58331dcddc00.bspapp.com/uni-universallinks/__UNI__BC54A00", + "_spaceID": "7827e38b-7f40-4421-bca7-58331dcddc00" + } + }, + "payment": { + "weixin": { + "UniversalLinks": "https://static-7827e38b-7f40-4421-bca7-58331dcddc00.bspapp.com/uni-universallinks/__UNI__BC54A00" + } + }, + "ad": {} + } + } + }, + "quickapp": {}, + "mp-weixin": { + "appid": "", + "setting": { + "urlCheck": false + }, + "usingComponents": true + }, + "mp-alipay": { + "usingComponents": true + }, + "mp-baidu": { + "usingComponents": true + }, + "mp-toutiao": { + "usingComponents": true + }, + "uniStatistics": { + "enable": false + } } diff --git a/pages.json b/pages.json index 9b7f130222fb9a33cc176e198b43e661339fab5f..214c2345b0c4bef1161c7b16e792dd363fbee57e 100644 --- a/pages.json +++ b/pages.json @@ -130,7 +130,6 @@ "path": "uni_modules/uni-login-page/pages/index/pwd-login", "style": { "navigationBarTitleText": "", - "navigationBarBackgroundColor": "#FFFFFF", "app-plus": { "titleNView": { "buttons": [{ @@ -146,7 +145,6 @@ "path": "uni_modules/uni-login-page/pages/index/pwd-retrieve", "style": { "navigationBarTitleText": "", - "navigationBarBackgroundColor": "#FFFFFF", "app-plus": { "titleNView": { "buttons": [{ @@ -162,7 +160,6 @@ "path": "uni_modules/uni-login-page/pages/index/phone-code", "style": { "navigationBarTitleText": "", - "navigationBarBackgroundColor": "#FFFFFF", "app-plus": { "titleNView": { "buttons": [{ @@ -187,14 +184,14 @@ "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "base-app", - "navigationBarBackgroundColor": "#F8F8F8", + "navigationBarBackgroundColor": "#FFFFFF", "backgroundColor": "#F8F8F8" }, "tabBar": { "color": "#7A7E83", "selectedColor": "#007AFF", "borderStyle": "black", - "backgroundColor": "#F8F8F8", + "backgroundColor": "#FFFFFF", "list": [{ "pagePath": "pages/list/list", "iconPath": "static/tabbar/list.png", diff --git a/pages/about/about.vue b/pages/about/about.vue index 5436278d5d67f6b4cd300c5291c543d4b361dafc..7f615eb7f327e6ad869b070abe0817b7a2655785 100644 --- a/pages/about/about.vue +++ b/pages/about/about.vue @@ -200,6 +200,7 @@ line-height: 80rpx; justify-content: center; color: #ccc; + text-align: center; } .source { diff --git a/pages/grid/banner.json b/pages/grid/banner.json deleted file mode 100644 index 359304a89361cc9e3fcbb8fe187a09742677117e..0000000000000000000000000000000000000000 --- a/pages/grid/banner.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "bannerfile":"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg", - "open_url":"https://www.dcloud.io/", - "title":"内容 A", - "sort":0, - "category_id":"grid", - "status":true, - "description":"备注" -} -{ - "bannerfile":"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg", - "open_url":"https://www.dcloud.io/", - "title":"内容 A", - "sort":0, - "category_id":"grid", - "status":true, - "description":"备注" -}{ - "bannerfile":"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg", - "open_url":"https://www.dcloud.io/", - "title":"内容 A", - "sort":0, - "category_id":"grid", - "status":true, - "description":"备注" -}{ - "bannerfile":"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg", - "open_url":"https://www.dcloud.io/", - "title":"内容 A", - "sort":0, - "category_id":"grid", - "status":true, - "description":"备注" -} \ No newline at end of file diff --git a/pages/list/detail.vue b/pages/list/detail.vue index 7403ee9f6995caaa7d507cad06fc6b3b2256310a..2a0a761c589d4df80be4376cdbb2591b1752cc73 100644 --- a/pages/list/detail.vue +++ b/pages/list/detail.vue @@ -16,7 +16,7 @@ {{data.author && data.author[0].username}} - 更新于 {{data.last_modify_date | beforTime}} + 更新于 @@ -45,7 +45,6 @@ - diff --git a/pages/uni-feedback/uni-feedback1.nvue b/pages/uni-feedback/uni-feedback1.nvue deleted file mode 100644 index 1e0db957b83b7a4d4096c3267159aec234c00bb9..0000000000000000000000000000000000000000 --- a/pages/uni-feedback/uni-feedback1.nvue +++ /dev/null @@ -1,236 +0,0 @@ - - - - - diff --git a/static/api.png b/static/api.png deleted file mode 100644 index 58f93e13a4eabd82f830e125521d315f8332cbe3..0000000000000000000000000000000000000000 Binary files a/static/api.png and /dev/null differ diff --git a/static/apiHL.png b/static/apiHL.png deleted file mode 100644 index f8cbd7d244729603bbaa68ad0981cbf450accc29..0000000000000000000000000000000000000000 Binary files a/static/apiHL.png and /dev/null differ diff --git a/static/component.png b/static/component.png deleted file mode 100644 index fbb116d59b9cbabc51476ce2ac48eb1fd15297da..0000000000000000000000000000000000000000 Binary files a/static/component.png and /dev/null differ diff --git a/static/componentHL.png b/static/componentHL.png deleted file mode 100644 index 31f83a029feca7066cbf6139a9524fcbf508582c..0000000000000000000000000000000000000000 Binary files a/static/componentHL.png and /dev/null differ diff --git a/static/images/top_2.png b/static/images/top_2.png deleted file mode 100644 index 7282b7cd7bc48407f46ecd8462ca62f6e520dc64..0000000000000000000000000000000000000000 Binary files a/static/images/top_2.png and /dev/null differ diff --git a/static/img/apple.png b/static/img/apple.png deleted file mode 100644 index 5fd31c621254aff8bfb08f497ff8cc04a063da5e..0000000000000000000000000000000000000000 Binary files a/static/img/apple.png and /dev/null differ diff --git a/static/img/home.png b/static/img/home.png deleted file mode 100644 index 3d9412aaf1dc1d5ad9823a875a4cd55a8cfa290b..0000000000000000000000000000000000000000 Binary files a/static/img/home.png and /dev/null differ diff --git a/static/img/homeHL.png b/static/img/homeHL.png deleted file mode 100644 index 553bedf0f80d328e1b36eab2c9e0ccc8df252423..0000000000000000000000000000000000000000 Binary files a/static/img/homeHL.png and /dev/null differ diff --git a/static/img/logo.png b/static/img/logo.png deleted file mode 100644 index 6cbdbb2167ba2fe7400ad42c5491b78e60886a8e..0000000000000000000000000000000000000000 Binary files a/static/img/logo.png and /dev/null differ diff --git a/static/img/more.png b/static/img/more.png deleted file mode 100644 index cdfe39223017f5ed522e36b30d80f22f80c9bf8e..0000000000000000000000000000000000000000 Binary files a/static/img/more.png and /dev/null differ diff --git a/static/img/qq.png b/static/img/qq.png deleted file mode 100644 index 961f83d0791b7a5fcf7aec1c69c4ac7e8807f500..0000000000000000000000000000000000000000 Binary files a/static/img/qq.png and /dev/null differ diff --git a/static/img/sinaweibo.png b/static/img/sinaweibo.png deleted file mode 100644 index 16a3a1b851ecc06d949dc657e035b6208fd59716..0000000000000000000000000000000000000000 Binary files a/static/img/sinaweibo.png and /dev/null differ diff --git a/static/img/univerify.png b/static/img/univerify.png deleted file mode 100644 index 37bc8f202634ba50e03fd016cd4f40f4a1f5b47d..0000000000000000000000000000000000000000 Binary files a/static/img/univerify.png and /dev/null differ diff --git a/static/img/user.png b/static/img/user.png deleted file mode 100644 index aa2d3b43787c35c051abcfae87b2555bf21fa0e6..0000000000000000000000000000000000000000 Binary files a/static/img/user.png and /dev/null differ diff --git a/static/img/userHL.png b/static/img/userHL.png deleted file mode 100644 index ffcb4fc0dbb112b9e13867b61e64f4ea3a65fe94..0000000000000000000000000000000000000000 Binary files a/static/img/userHL.png and /dev/null differ diff --git a/static/img/weixin.png b/static/img/weixin.png deleted file mode 100644 index c6f6076260e3688aaefaa3ce1ebe3ee3498d3ef9..0000000000000000000000000000000000000000 Binary files a/static/img/weixin.png and /dev/null differ diff --git a/static/template.png b/static/template.png deleted file mode 100644 index 409ec9b92b041d306115335da13dfdc0f4ac257a..0000000000000000000000000000000000000000 Binary files a/static/template.png and /dev/null differ diff --git a/static/templateHL.png b/static/templateHL.png deleted file mode 100644 index 4018448570ec27da1d0ab57496f094ffe028eab0..0000000000000000000000000000000000000000 Binary files a/static/templateHL.png and /dev/null differ diff --git a/static/uni.png b/static/uni.png deleted file mode 100644 index 8e3a80f4b84ca9dfad7bc1ab724810a1b3be3ba8..0000000000000000000000000000000000000000 Binary files a/static/uni.png and /dev/null differ diff --git a/store/modules/theme.js b/store/modules/theme.js new file mode 100644 index 0000000000000000000000000000000000000000..30bf1765d7a7a4407927053ad83e1bea43395635 --- /dev/null +++ b/store/modules/theme.js @@ -0,0 +1,42 @@ +// 上次启动时的用户信息 +let userHistory = uni.getStorageSync('userInfo') || null; + +let state = { + /** + * 是否需要强制登录 + */ + forcedLogin: false, + hasLogin: Boolean(userHistory), + info: userHistory + }, + getters = { + info(state) { + return state.info; + }, + hasLogin(state){ + return state.hasLogin; + } + }, + mutations = { + login(state, info) { + state.info = info; + state.hasLogin = true; + uni.setStorageSync('userInfo', info); + }, + logout(state) { + state.info = null; + state.hasLogin = false; + uni.setStorageSync('userInfo', null); + } + }, + actions = { + + } + + +export default { + state, + getters, + mutations, + actions +} diff --git a/uniCloud-aliyun/database/db_init.json b/uniCloud-aliyun/database/db_init.json index b62093a4d58efc81d8a19f19d0dd0bf31b7aae33..de2c7bc82755888da827f871261d3c8490fdd031 100644 --- a/uniCloud-aliyun/database/db_init.json +++ b/uniCloud-aliyun/database/db_init.json @@ -1,163 +1,198 @@ -// 在本文件中可配置云数据库初始化,数据格式见:https://uniapp.dcloud.io/uniCloud/cf-database?id=db_init -// 编写完毕后对本文件点右键,可按配置规则创建表和添加数据 -{ - "opendb-news-articles-detail": { - "data": [ - { - "article_status": 1, - "author_avatar": "https://pic.36krcnd.com/avatar/201804/11034847/2w2w8ix0d1x98939.jpg!120", - "author_name": "土土土槽", - "category_id": "223", - "comment_count": 1204, - "comment_status": 0, - "content": "

编者按:本文来自微信公众号“土土土槽”(ID:xtutux6),作者:林安,36氪经授权发布。

大家好,我是林安。今天想跟你们聊一聊自由职业者的五险一金问题。

因为这个是想做自由职业的朋友问我最多的问题,也是自由职业初期必须思考的问题,所以今天就展开给大家讲讲。

在成为自由职业者以前,我没有任何一次裸辞经历,基本都是找好下家才跳槽,所以你应该看得出来,我不是一名“冲动型”选手,做任何决定前一定会三思后行。

所以产生了辞职想法后,我着手准备的第一件事,就是“搞清楚社保和公积金怎么交”,“断交或不交会对我的生活产生哪些影响”。

这些也是想做自由职业的朋友问我最多的问题。下面我就结合自己的实际情况,分4部分给大家讲讲。

 一、自由职业后,还有必要交五险一金吗?

其实五险一金中最重要的是“养老险”和“医疗险”。

一般社保交满15年后养老保险终身有效,养老金也是“多缴多得、长缴多得”;

社保交满25年后,医疗保险终身有效,看病时医保可以报销一部分费用。

关于“五险一金”交或不交,要根据不同人的不同情况来看。

如果你在户口所在地的城市工作,且在本地已有房,那么交不交、交多少完全看你需求。

如果你已经购买了性价比更高的商业保险,并且没有在本地再买房的打算,那你可以不交五险一金。

当然,如果你还是想买一份国民保险,图个安心,或者害怕以后办理一些事情被社保拖住(毕竟不同城市的政策也是经常变动),也可以自己在当地的社保局缴纳。

但如果你是外地户口且没有当地房产,将来又想在所在地买房落户,那我建议你最好继续缴纳五险,因为社保和大部分城市的落户买房政策挂钩,交不满年限,就无法买房落户。

而且五险中除了养老保险可以断交之外,其他一旦停交则不能补缴,需要重新开始再次缴纳。

我当初就是考虑到应该会在上海定居,才决定继续在上海缴纳五险的。

至于公积金,如果你近1年内没有买房需求,可以暂时不缴,等到你决定买房了,再开始重新缴纳也不迟。

停缴的公积金账户会暂时封存,等你重新交的时候,再去公积金中心解封就可以了。

但如果你没有在所在地定居的打算,比如很多朋友想年轻的时候在一线城市工作生活,等年纪大了或结婚成家了再退居二三线城市工作,这种情况其实可以不在当地缴纳社保,在户籍所在地缴纳或者给自己买一份商业保险也是OK的。

 二、不交五险一金会有什么影响?

公积金断交只对已经存在公积金贷款者或者准备申请公积金贷款者存在影响,其他则无直接影响。

如果你还有房贷要还却断交公积金,那么剩余的贷款就会按照商业利率来计算了。

社保断交的影响主要有2点:

1.影响医疗报销和报销上限

很多城市社保只要断缴一个月,第二月就不能继续使用了。

而且有的城市政策是连续缴纳社保的时间越久,报销上限就越高。这个具体看不同城市的政策,你们可以自行上网查一下。

2.影响买房买车、积分落户、孩子上学

部分热门城市要求社保交够一定年份,才可以买房买车。

还有的一线城市会把社保缴纳的额度和积分落户、孩子上学捆绑在一起,比如北上广深。

我所在的上海,就是连续缴纳5年社保才有资格买房买车,交满7年,才有资格申请落户。

 三、自由职业者如何缴纳五险一金?

那么自由职业者应该如何缴纳五险一金呢?常见的方式有4种。

1.自己去社保局和公积金中心以灵活就业的方式缴纳

这种只适合本地户籍的人,社保部分也只能缴纳养老保险和医疗保险。

你们可以根据自身的需求和具体状况,自由选择社保和公积金的缴费级别。

2.如果你是外地户籍,可以找第三方机构代缴

通过这种方式缴纳的社保一般会像上班时一样把五险交齐,不同的是以前公司替员工缴纳的部分也要你自己承担。

现在网上类似的代理机构挺多的,支付宝、淘宝和小程序上有很多,一般每个月会收几十块的代理费。

记得一定要找正规、有名的机构,每次交完以后,也要登陆自己的账号查询是否有按时缴纳。

3.挂靠在朋友公司下缴纳

如果你有朋友本身就是开公司的,可以把你的社保挂靠在他们公司下缴纳,这种比找机构省点钱,但是公司缴纳的部分金额也完全是你自己承担的。

4.开一家公司自行缴纳

这种比较适合有稳定客户且业务量比较大的自由职业者,公司的用途除了可以帮你缴纳五险一金外,还可以给客户开正规发票。

但开一家公司又会面临很多税务上的问题,不太建议自由职业新人或收入不稳定的自由职业者开公司。具体原因我和自由税务师骆盈合开的课程里有详细讲到(传送门:不懂一点税务知识,你“敢”成为自由职业者吗?)。

以上,就是不同类型自由职业者交五险一金的方式了。我目前的情况是挂靠在朋友公司下缴纳五险,公积金暂时断交了,等到要买房的时候再重新开始交。

大家可以根据自己的实际情况选择交或不交,以及缴纳方式和数额。

", - "cover": "https://img.36krcdn.com/20200410/v2_d748f06964014bafbd0e9cd9371de6d1_img_000?x-oss-process=image/resize,m_mfit,w_432,h_288/crop,w_432,h_288,g_center", - "excerpt": "自由职业前,应该想清楚的问题。", - "is_essence": false, - "is_sticky": false, - "last_comment_user_id": "", - "last_modify_date": "2020-04-10 18:44:10", - "last_modify_ip": "", - "like_count": 4603, - "publish_date": "2020-04-10 18:39:00", - "publish_ip": "", - "title": "干货:自由职业者如何搞定五险一金?", - "user_id": 121321, - "user_name": "未来汽车日报", - "view_count": 32053 - } - ], - "schema": { - "bsonType": "object", - "required": [ - "user_id", - "title", - "content", - "article_status", - "view_count", - "like_count", - "is_sticky", - "is_essence", - "comment_status", - "comment_count", - "mode" - ], - "permission": { - "read": true, - "create": "auth.uid != null", - "update": "doc.uid == auth.uid", - "delete": "doc.uid == auth.uid" - }, - "properties": { - "_id": { - "description": "存储文档 ID(用户 ID),系统自动生成" - }, - "user_id": { - "bsonType": "string", - "description": "文章作者ID, 参考`uni-id-users` 表" - }, - "category_id": { - "bsonType": "string", - "description": "分类 id,参考`uni-news-categories`表" - }, - "title": { - "bsonType": "string", - "description": "标题", - "label": "标题" - }, - "content": { - "bsonType": "string", - "description": "文章内容", - "label": "文章内容" - }, - "excerpt": { - "bsonType": "string", - "description": "文章摘录", - "label": "摘要" - }, - "article_status": { - "bsonType": "int", - "minimum": 0, - "maximum": 1, - "description": "文章状态:0 草稿箱 1 已发布" - }, - "view_count": { - "bsonType": "int", - "description": "阅读数量", - "permission": { - "write": false - } - }, - "like_count": { - "bsonType": "int", - "description": "喜欢数、点赞数", - "permission": { - "write": false - } - }, - "is_sticky": { - "bsonType": "bool", - "description": "是否置顶", - "permission": { - "write": false - } - }, - "is_essence": { - "bsonType": "bool", - "description": "阅读加精", - "permission": { - "write": false - } - }, - "comment_status": { - "bsonType": "int", - "minimum": 0, - "maximum": 1, - "description": "评论状态:0 关闭 1 开放" - }, - "comment_count": { - "bsonType": "int", - "description": "评论数量", - "permission": { - "write": false - } - }, - "last_comment_user_id": { - "bsonType": "string", - "description": "最后回复用户 id,参考`uni-id-users` 表" - }, - "avatar": { - "bsonType": "string", - "description": "缩略图地址", - "label": "封面大图" - }, - "publish_date": { - "bsonType": "timestamp", - "description": "发表时间", - "defaultValue": { - "$env": "now" - } - }, - "publish_ip": { - "bsonType": "string", - "description": "发表时 IP 地址", - "forceDefaultValue": { - "$env": "clientIP" - } - }, - "last_modify_date": { - "bsonType": "timestamp", - "description": "最后修改时间" - }, - "last_modify_ip": { - "bsonType": "string", - "description": "最后修改时 IP 地址" - }, - "mode": { - "bsonType": "number", - "description": "排版显示模式" - } - } - } - } -} \ No newline at end of file +// 在本文件中可配置云数据库初始化,数据格式见:https://uniapp.dcloud.io/uniCloud/cf-database?id=db_init +// 编写完毕后对本文件点右键,可按配置规则创建表和添加数据 +{ + "opendb-banner": { + "data": [{ + "bannerfile": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg", + "open_url": "https://www.dcloud.io/", + "title": "内容 A", + "sort": 0, + "category_id": "grid", + "status": true, + "description": "备注" + }, + { + "bannerfile": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg", + "open_url": "https://www.dcloud.io/", + "title": "内容 B", + "sort": 0, + "category_id": "grid", + "status": true, + "description": "备注" + }, { + "bannerfile": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg", + "open_url": "https://www.dcloud.io/", + "title": "内容 C", + "sort": 0, + "category_id": "grid", + "status": true, + "description": "备注" + }, { + "bannerfile": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg", + "open_url": "https://www.dcloud.io/", + "title": "内容 D", + "sort": 0, + "category_id": "grid", + "status": true, + "description": "备注" + } + ] + }, + "opendb-news-articles-detail": { + "data": [{ + "article_status": 1, + "author_avatar": "https://pic.36krcnd.com/avatar/201804/11034847/2w2w8ix0d1x98939.jpg!120", + "author_name": "土土土槽", + "category_id": "223", + "comment_count": 1204, + "comment_status": 0, + "content": "

编者按:本文来自微信公众号“土土土槽”(ID:xtutux6),作者:林安,36氪经授权发布。

大家好,我是林安。今天想跟你们聊一聊自由职业者的五险一金问题。

因为这个是想做自由职业的朋友问我最多的问题,也是自由职业初期必须思考的问题,所以今天就展开给大家讲讲。

在成为自由职业者以前,我没有任何一次裸辞经历,基本都是找好下家才跳槽,所以你应该看得出来,我不是一名“冲动型”选手,做任何决定前一定会三思后行。

所以产生了辞职想法后,我着手准备的第一件事,就是“搞清楚社保和公积金怎么交”,“断交或不交会对我的生活产生哪些影响”。

这些也是想做自由职业的朋友问我最多的问题。下面我就结合自己的实际情况,分4部分给大家讲讲。

 一、自由职业后,还有必要交五险一金吗?

其实五险一金中最重要的是“养老险”和“医疗险”。

一般社保交满15年后养老保险终身有效,养老金也是“多缴多得、长缴多得”;

社保交满25年后,医疗保险终身有效,看病时医保可以报销一部分费用。

关于“五险一金”交或不交,要根据不同人的不同情况来看。

如果你在户口所在地的城市工作,且在本地已有房,那么交不交、交多少完全看你需求。

如果你已经购买了性价比更高的商业保险,并且没有在本地再买房的打算,那你可以不交五险一金。

当然,如果你还是想买一份国民保险,图个安心,或者害怕以后办理一些事情被社保拖住(毕竟不同城市的政策也是经常变动),也可以自己在当地的社保局缴纳。

但如果你是外地户口且没有当地房产,将来又想在所在地买房落户,那我建议你最好继续缴纳五险,因为社保和大部分城市的落户买房政策挂钩,交不满年限,就无法买房落户。

而且五险中除了养老保险可以断交之外,其他一旦停交则不能补缴,需要重新开始再次缴纳。

我当初就是考虑到应该会在上海定居,才决定继续在上海缴纳五险的。

至于公积金,如果你近1年内没有买房需求,可以暂时不缴,等到你决定买房了,再开始重新缴纳也不迟。

停缴的公积金账户会暂时封存,等你重新交的时候,再去公积金中心解封就可以了。

但如果你没有在所在地定居的打算,比如很多朋友想年轻的时候在一线城市工作生活,等年纪大了或结婚成家了再退居二三线城市工作,这种情况其实可以不在当地缴纳社保,在户籍所在地缴纳或者给自己买一份商业保险也是OK的。

 二、不交五险一金会有什么影响?

公积金断交只对已经存在公积金贷款者或者准备申请公积金贷款者存在影响,其他则无直接影响。

如果你还有房贷要还却断交公积金,那么剩余的贷款就会按照商业利率来计算了。

社保断交的影响主要有2点:

1.影响医疗报销和报销上限

很多城市社保只要断缴一个月,第二月就不能继续使用了。

而且有的城市政策是连续缴纳社保的时间越久,报销上限就越高。这个具体看不同城市的政策,你们可以自行上网查一下。

2.影响买房买车、积分落户、孩子上学

部分热门城市要求社保交够一定年份,才可以买房买车。

还有的一线城市会把社保缴纳的额度和积分落户、孩子上学捆绑在一起,比如北上广深。

我所在的上海,就是连续缴纳5年社保才有资格买房买车,交满7年,才有资格申请落户。

 三、自由职业者如何缴纳五险一金?

那么自由职业者应该如何缴纳五险一金呢?常见的方式有4种。

1.自己去社保局和公积金中心以灵活就业的方式缴纳

这种只适合本地户籍的人,社保部分也只能缴纳养老保险和医疗保险。

你们可以根据自身的需求和具体状况,自由选择社保和公积金的缴费级别。

2.如果你是外地户籍,可以找第三方机构代缴

通过这种方式缴纳的社保一般会像上班时一样把五险交齐,不同的是以前公司替员工缴纳的部分也要你自己承担。

现在网上类似的代理机构挺多的,支付宝、淘宝和小程序上有很多,一般每个月会收几十块的代理费。

记得一定要找正规、有名的机构,每次交完以后,也要登陆自己的账号查询是否有按时缴纳。

3.挂靠在朋友公司下缴纳

如果你有朋友本身就是开公司的,可以把你的社保挂靠在他们公司下缴纳,这种比找机构省点钱,但是公司缴纳的部分金额也完全是你自己承担的。

4.开一家公司自行缴纳

这种比较适合有稳定客户且业务量比较大的自由职业者,公司的用途除了可以帮你缴纳五险一金外,还可以给客户开正规发票。

但开一家公司又会面临很多税务上的问题,不太建议自由职业新人或收入不稳定的自由职业者开公司。具体原因我和自由税务师骆盈合开的课程里有详细讲到(传送门:不懂一点税务知识,你“敢”成为自由职业者吗?)。

以上,就是不同类型自由职业者交五险一金的方式了。我目前的情况是挂靠在朋友公司下缴纳五险,公积金暂时断交了,等到要买房的时候再重新开始交。

大家可以根据自己的实际情况选择交或不交,以及缴纳方式和数额。

", + "cover": "https://img.36krcdn.com/20200410/v2_d748f06964014bafbd0e9cd9371de6d1_img_000?x-oss-process=image/resize,m_mfit,w_432,h_288/crop,w_432,h_288,g_center", + "excerpt": "自由职业前,应该想清楚的问题。", + "is_essence": false, + "is_sticky": false, + "last_comment_user_id": "", + "last_modify_date": "2020-04-10 18:44:10", + "last_modify_ip": "", + "like_count": 4603, + "publish_date": "2020-04-10 18:39:00", + "publish_ip": "", + "title": "干货:自由职业者如何搞定五险一金?", + "user_id": 121321, + "user_name": "未来汽车日报", + "view_count": 32053 + }], + "schema": { + "bsonType": "object", + "required": [ + "user_id", + "title", + "content", + "article_status", + "view_count", + "like_count", + "is_sticky", + "is_essence", + "comment_status", + "comment_count", + "mode" + ], + "permission": { + "read": true, + "create": "auth.uid != null", + "update": "doc.uid == auth.uid", + "delete": "doc.uid == auth.uid" + }, + "properties": { + "_id": { + "description": "存储文档 ID(用户 ID),系统自动生成" + }, + "user_id": { + "bsonType": "string", + "description": "文章作者ID, 参考`uni-id-users` 表" + }, + "category_id": { + "bsonType": "string", + "description": "分类 id,参考`uni-news-categories`表" + }, + "title": { + "bsonType": "string", + "description": "标题", + "label": "标题" + }, + "content": { + "bsonType": "string", + "description": "文章内容", + "label": "文章内容" + }, + "excerpt": { + "bsonType": "string", + "description": "文章摘录", + "label": "摘要" + }, + "article_status": { + "bsonType": "int", + "minimum": 0, + "maximum": 1, + "description": "文章状态:0 草稿箱 1 已发布" + }, + "view_count": { + "bsonType": "int", + "description": "阅读数量", + "permission": { + "write": false + } + }, + "like_count": { + "bsonType": "int", + "description": "喜欢数、点赞数", + "permission": { + "write": false + } + }, + "is_sticky": { + "bsonType": "bool", + "description": "是否置顶", + "permission": { + "write": false + } + }, + "is_essence": { + "bsonType": "bool", + "description": "阅读加精", + "permission": { + "write": false + } + }, + "comment_status": { + "bsonType": "int", + "minimum": 0, + "maximum": 1, + "description": "评论状态:0 关闭 1 开放" + }, + "comment_count": { + "bsonType": "int", + "description": "评论数量", + "permission": { + "write": false + } + }, + "last_comment_user_id": { + "bsonType": "string", + "description": "最后回复用户 id,参考`uni-id-users` 表" + }, + "avatar": { + "bsonType": "string", + "description": "缩略图地址", + "label": "封面大图" + }, + "publish_date": { + "bsonType": "timestamp", + "description": "发表时间", + "defaultValue": { + "$env": "now" + } + }, + "publish_ip": { + "bsonType": "string", + "description": "发表时 IP 地址", + "forceDefaultValue": { + "$env": "clientIP" + } + }, + "last_modify_date": { + "bsonType": "timestamp", + "description": "最后修改时间" + }, + "last_modify_ip": { + "bsonType": "string", + "description": "最后修改时 IP 地址" + }, + "mode": { + "bsonType": "number", + "description": "排版显示模式" + } + } + } + } +}