Compare commits
74 Commits
15b7c46e35
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4c0d840705 | ||
|
|
2b2bd9da53 | ||
|
|
f6091b0b28 | ||
|
|
170ba990fa | ||
|
|
bc299037e5 | ||
|
|
1d0d54e445 | ||
|
|
00f30db09e | ||
|
|
ca024d9a16 | ||
|
|
44aeb78e4f | ||
|
|
70f4c35039 | ||
|
|
380dde983a | ||
|
|
a7deaea24e | ||
|
|
cc4295f008 | ||
|
|
3ee03375b8 | ||
|
|
3589d6a3f0 | ||
|
|
f0de39f135 | ||
|
|
399922bb77 | ||
|
|
11056a74a4 | ||
|
|
98301d80fe | ||
|
|
25e15aa336 | ||
|
|
deffec9e26 | ||
|
|
1abc53b06d | ||
|
|
e29e0e36b9 | ||
|
|
7563c6c30e | ||
|
|
4d520f5665 | ||
|
|
6501d55e4f | ||
|
|
da5e80313b | ||
|
|
22ff67243f | ||
|
|
094aac1ac7 | ||
|
|
3df8333302 | ||
|
|
983ec684ce | ||
|
|
725786811a | ||
|
|
4e3046596e | ||
|
|
0425959db4 | ||
|
|
c791f02ee4 | ||
|
|
46a14bea6c | ||
|
|
e0af963c4a | ||
|
|
1138eac28f | ||
|
|
72aa4006b7 | ||
|
|
3c35324cfa | ||
|
|
b7fc627226 | ||
|
|
59d40d3609 | ||
|
|
bc778c3a48 | ||
|
|
bd0beb426b | ||
|
|
c0bc6c5431 | ||
|
|
442ad9ff31 | ||
|
|
462aefb7b9 | ||
|
|
98d53ad45e | ||
|
|
07b7eb2471 | ||
|
|
562481d08c | ||
|
|
7dc3c78715 | ||
|
|
9fe6c9046b | ||
|
|
4b9614be25 | ||
|
|
2c601cf573 | ||
|
|
7d3a84d6ae | ||
|
|
517d4803c3 | ||
|
|
126fb7355c | ||
|
|
e1bcfc00c5 | ||
|
|
787f4e8094 | ||
|
|
2f3e1198e6 | ||
|
|
25b6e6128d | ||
|
|
79405f8853 | ||
|
|
261a6c61c4 | ||
|
|
bcfaa0b260 | ||
|
|
39456715c8 | ||
|
|
7b2c4584b4 | ||
|
|
4e228cadd1 | ||
|
|
808baf798b | ||
|
|
34d052255f | ||
|
|
1ecc639410 | ||
|
|
bb952fc553 | ||
|
|
d5ab2ca459 | ||
|
|
fb44b267bd | ||
|
|
3e8dba7d4b |
2
.gitignore
vendored
@@ -3,5 +3,5 @@ logs
|
|||||||
*.log
|
*.log
|
||||||
node_modules
|
node_modules
|
||||||
.DS_Store
|
.DS_Store
|
||||||
dist
|
# dist
|
||||||
*.local
|
*.local
|
||||||
|
|||||||
4
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"editor.suggest.snippetsPreventQuickSuggestions": false,
|
||||||
|
"aiXcoder.showTrayIcon": true
|
||||||
|
}
|
||||||
21
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [{
|
||||||
|
"label": "save",
|
||||||
|
"command": "git",
|
||||||
|
"type": "shell",
|
||||||
|
"args": [
|
||||||
|
"commit",
|
||||||
|
"-a",
|
||||||
|
"-m",
|
||||||
|
"auto commit",
|
||||||
|
"&&",
|
||||||
|
"git",
|
||||||
|
"push",
|
||||||
|
"origin",
|
||||||
|
"master"
|
||||||
|
],
|
||||||
|
"problemMatcher": []
|
||||||
|
}],
|
||||||
|
"preShutdownTask": "save"
|
||||||
|
}
|
||||||
1
dist/css/124.fd7ddcad.css
vendored
Normal file
1
dist/css/217.0fc0e835.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.path-box[data-v-07dc0a79]{display:flex;flex-direction:row;height:1.28rem;line-height:1.28rem;margin:.5rem .35rem 0;padding:0 .4rem;border-radius:1.68rem 1.68rem 0 1.68rem;background-color:#fff;font-size:.32rem;box-shadow:0 0 .16rem rgba(0,0,0,.1);position:relative}.path-box .path-slash[data-v-07dc0a79]{color:#d7d7d7;font-size:.32rem;margin:0 .18rem}.path-box div[data-v-07dc0a79]{color:#7f7f7f;max-width:2.5rem}.path-box div[data-v-07dc0a79]:last-child{max-width:50%;color:#000;font-weight:700}.path-box[data-v-07dc0a79]:after{content:"";width:0;height:0;position:absolute;bottom:0;right:0;border-top:.24rem solid #62b1ff;border-left:.24rem solid transparent;transform:rotateX(180deg);margin:0 .09rem .09rem 0}.result-empty-box[data-v-02de74be]{height:10.3333rem}.allSections[data-v-02de74be]{display:flex;flex-direction:row;margin-top:.666667rem;filter:drop-shadow(.05rem 0 .09rem rgba(0,0,0,.1));margin:.64rem .35rem;height:calc(100vh - 3rem);position:relative}.allSections[data-v-02de74be]:after{content:"";top:0;left:.17rem;width:3.4rem;height:100%;border-radius:.32rem 0 0 .32rem;border-left:.013333rem solid #ddd;background-color:hsla(0,0%,92%,.557);position:absolute;z-index:-1}.allSections-left[data-v-02de74be]{width:3.57rem;border-radius:.32rem 0 0 .32rem;display:flex;flex-direction:column;text-align:center;-ms-overflow-style:none;overflow:-moz-scrollbars-none;-webkit-overflow-scrolling:touch;position:relative;overflow-x:hidden;overflow-y:auto}.allSections-left[data-v-02de74be]::-webkit-scrollbar{display:none}.allSections-left span[data-v-02de74be]{height:1.28rem;line-height:1.28rem;border-radius:.32rem;font-size:.32rem;position:relative}.allSections-left span.active[data-v-02de74be]{background-color:#fff;font-weight:bolder;border-radius:.32rem 0 0 .32rem;color:#000;width:101%;filter:drop-shadow(0 0 .08rem rgba(0,0,0,.1))}.allSections-left span.active[data-v-02de74be]:before{content:"";width:.36rem;height:101%;position:absolute;right:0;top:-100%;box-shadow:.14rem .14rem #fff;border-radius:0 0 .32rem 0}.allSections-left span.active[data-v-02de74be]:after{content:"";width:.36rem;height:101%;position:absolute;right:0;bottom:-100%;box-shadow:.14rem -.14rem #fff;border-radius:0 .32rem 0 0}.allSections-left span:first-child.active[data-v-02de74be]:before,.allSections-left span:last-child.active[data-v-02de74be]:after{display:none}.allSections-right[data-v-02de74be]{flex:1;background-color:#fff;border-radius:0 .32rem .32rem 0;display:flex;flex-direction:column;z-index:1;padding-bottom:.4rem;overflow-x:hidden;overflow-y:auto}.allSections-right.active[data-v-02de74be]{display:block}.allSections-right .allSections-right-item[data-v-02de74be]{padding:.4rem 0;margin:0 .32rem 0 .7rem;border-bottom:.013333rem solid #ddd;display:flex;justify-content:space-between;position:relative}.allSections-right .allSections-right-item .item-content[data-v-02de74be]{width:80%}.allSections-right .allSections-right-item .item-title[data-v-02de74be]{color:#000;font-size:.32rem}.allSections-right .allSections-right-item .item-text[data-v-02de74be]{margin:.266667rem 0;color:#aaa;font-size:.28rem;word-wrap:break-word}.allSections-right .allSections-right-item .item-star[data-v-02de74be]{display:flex;align-items:center}.allSections-right .allSections-right-item .item-star img[data-v-02de74be]{width:.48rem;height:.46rem}.allSections-right .allSections-right-item[data-v-02de74be]:before{content:"";width:.12rem;height:.32rem;border-radius:.16rem;position:absolute;top:.48rem;left:-.35rem;background-color:#62b1ff}.paging[data-v-02de74be]{margin-top:.48rem}.paging[data-v-02de74be] .el-pagination.is-background .el-pager li:not(.disabled).active{background:#62b1ff;border-radius:50%}.paging[data-v-02de74be] .el-pagination .btn-next .el-icon,.paging[data-v-02de74be] .el-pagination .btn-prev .el-icon{font-size:.4rem}
|
||||||
1
dist/css/280.0915ca91.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.path-box[data-v-07dc0a79]{display:flex;flex-direction:row;height:1.28rem;line-height:1.28rem;margin:.5rem .35rem 0;padding:0 .4rem;border-radius:1.68rem 1.68rem 0 1.68rem;background-color:#fff;font-size:.32rem;box-shadow:0 0 .16rem rgba(0,0,0,.1);position:relative}.path-box .path-slash[data-v-07dc0a79]{color:#d7d7d7;font-size:.32rem;margin:0 .18rem}.path-box div[data-v-07dc0a79]{color:#7f7f7f;max-width:2.5rem}.path-box div[data-v-07dc0a79]:last-child{max-width:50%;color:#000;font-weight:700}.path-box[data-v-07dc0a79]:after{content:"";width:0;height:0;position:absolute;bottom:0;right:0;border-top:.24rem solid #62b1ff;border-left:.24rem solid transparent;transform:rotateX(180deg);margin:0 .09rem .09rem 0}.paging[data-v-28440cd8]{margin-top:.48rem;padding-bottom:1rem}.paging[data-v-28440cd8] .el-pagination.is-background .el-pager li.active{background:#62b1ff;border-radius:50%}.paging[data-v-28440cd8] .el-pagination .btn-next .el-icon,.paging[data-v-28440cd8] .el-pagination .btn-prev .el-icon{font-size:.4rem}.paging[data-v-28440cd8] .is-background.el-pagination--small .el-pager li{border-radius:50%!important}.paging[data-v-28440cd8] .el-pagination.is-background.el-pagination--small .btn-next,.paging[data-v-28440cd8] .el-pagination.is-background.el-pagination--small .btn-prev,.paging[data-v-28440cd8] .el-pagination.is-background.el-pagination--small .el-pager li{border-radius:50%}section[data-v-28440cd8]{padding-top:.45rem}
|
||||||
1
dist/css/336.7f7c43de.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.container[data-v-5e99c0b6]{padding-top:1.3rem}.container .header[data-v-5e99c0b6]{padding:1rem 0 .8rem}.container .header .portrait[data-v-5e99c0b6]{width:2rem;height:2rem;border-radius:50%;background-color:#fff;position:relative}.container .header .portrait-icom[data-v-5e99c0b6]{width:1.8rem;height:1.8rem;border-radius:50%}.container .header .header-username[data-v-5e99c0b6]{color:#000;font-size:.48rem;line-height:normal;margin-top:.24rem;font-weight:650}.container .header .header-uid[data-v-5e99c0b6]{color:#7f7f7f;font-weight:400;margin-top:.12rem}.container .operation-box[data-v-5e99c0b6]{background-color:#fff;margin:0 .2933rem .4rem;border-radius:.4rem}.container .operation-box .operation-item[data-v-5e99c0b6]{height:1.8rem;justify-content:space-between;padding:0 .4rem}.container .operation-box .operation-item[data-v-5e99c0b6]:not(:first-of-type){border-top:.0133rem dotted #d7d7d7}.container .operation-box .operation-item .operation-left[data-v-5e99c0b6]{color:#333;font-size:.36rem;line-height:.6rem}.container .operation-box .operation-item .operation-icom[data-v-5e99c0b6]{width:.48rem;margin-right:.32rem}.container .operation-box .operation-item .operation-data[data-v-5e99c0b6]{background-color:#f6f6f6;border-radius:.64rem;font-size:.28rem;color:#555;min-width:.9rem;text-align:center;padding:0 .2rem;box-sizing:border-box}.container .operation-box .operation-item .unread-info[data-v-5e99c0b6]{background:#fd3f5d;height:.42rem;border-radius:.64rem;color:#fff;font-size:.28rem;text-align:center;padding:0 .1rem;box-sizing:border-box}.container .operation-box .operation-item .operation-right-icom[data-v-5e99c0b6]{width:.12rem;height:.22rem;margin-left:.2rem}.container .operation-box.data-presentation[data-v-5e99c0b6]{padding-top:.4rem;padding-bottom:.4rem}.container .operation-box.data-presentation .data-presentation-item[data-v-5e99c0b6]{flex-direction:column}.container .operation-box.data-presentation .data-presentation-item[data-v-5e99c0b6]:not(:last-of-type){border-right:.0133rem solid #ebebeb}.container .operation-box.data-presentation .data-presentation-item .data-presentation-number[data-v-5e99c0b6]{color:#000;line-height:.6rem;font-size:.4rem;font-weight:900}.container .operation-box.data-presentation .data-presentation-item .data-presentation-name[data-v-5e99c0b6]{color:#333;line-height:.6rem;font-size:.32rem}.container .log-out[data-v-5e99c0b6]{font-size:.36rem;line-height:.6rem;color:#555;border-bottom:.0133rem solid #797979;width:1.46rem;margin:.6rem auto 1rem}
|
||||||
1
dist/css/337.fd7ddcad.css
vendored
Normal file
1
dist/css/354.fd7ddcad.css
vendored
Normal file
1
dist/css/356.f7682b16.css
vendored
Normal file
1
dist/css/831.25be828c.css
vendored
Normal file
1
dist/css/878.0c2853cd.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.container[data-v-500ea229]{padding-top:1.3rem;padding-bottom:1.3rem}.container .search-input-box[data-v-500ea229]{margin-left:.32rem}.container .search-input-box .search-input[data-v-500ea229]{width:8.2rem;height:.96rem;border-radius:2.56rem;background:#ebebeb}.container .search-input-box .search-input .search-input-cross[data-v-500ea229],.container .search-input-box .search-input .search-input-icon[data-v-500ea229]{width:.4rem;height:.4rem}.container .search-input-box .search-input .search-input-icon[data-v-500ea229]{padding:0 .4rem}.container .search-input-box .search-input .search-input-cross[data-v-500ea229]{padding-right:.4rem}.container .search-input-box .search-input .search-input-input[data-v-500ea229]{height:100%;font-size:.4rem}.container .search-input-box .search-input-cancel[data-v-500ea229]{color:#000;font-size:.36rem;padding-left:.46rem;width:.74rem}.container .numberResults[data-v-500ea229]{font-size:.32rem;color:#555;margin:.64rem .32rem .48rem}.container .numberResults .number[data-v-500ea229]{color:#000;font-weight:650;margin:0 .1667rem}.container .result-box[data-v-500ea229]{justify-content:center;flex-direction:column;overflow:auto}.container .result-box .result-item[data-v-500ea229]{margin-bottom:.32rem;width:9.36rem;height:3.96rem;background-color:#fff;border:none;border-radius:.32rem;box-shadow:0 0 .16rem rgba(0,0,0,.08);padding:.4rem;box-sizing:border-box;flex-direction:column;position:relative}.container .result-box .result-item .result-header[data-v-500ea229]{margin-bottom:.32rem}.container .result-box .result-item .result-header .result-label[data-v-500ea229]{font-size:.28rem;height:.52rem;line-height:.52rem;background:#333;color:#fff;display:inline-block;border-radius:.16rem;padding:0 .12rem;margin-right:.12rem}.container .result-box .result-item .result-header .result-title[data-v-500ea229]{color:#000;font-size:.37333rem;line-height:.65rem;display:inline}.container .result-box .result-item .result-header .result-title[data-v-500ea229] em{color:#f95d5d}.container .result-box .result-item .result-content[data-v-500ea229]{line-height:.52rem;font-size:.3rem;color:#7f7f7f;height:1.04rem}.container .result-box .result-item .reply-visible[data-v-500ea229]{font-size:.32rem;height:1.04rem;background:hsla(0,0%,95%,.7)}.container .result-box .result-item .result-info[data-v-500ea229]{align-items:self-end;justify-content:space-between}.container .result-box .result-item .result-info .user-info .icon-head[data-v-500ea229]{width:.64rem;height:.64rem;border-radius:50%}.container .result-box .result-item .result-info .user-info .user-name[data-v-500ea229]{font-size:.32rem;color:#333;margin-left:.2rem}.container .result-box .result-item .result-info .item-data[data-v-500ea229]{font-size:.28rem}.container .result-box .result-item .result-info .item-data .item-data-item[data-v-500ea229]:last-of-type{margin-left:.4rem}.container .result-box .result-item .result-info .item-data .item-data-item .icon-look[data-v-500ea229]{width:.4267rem;height:.18rem;margin-right:.16rem}.container .result-box .result-item .result-info .item-data .item-data-item .icon-msg[data-v-500ea229]{width:.32rem;height:.28rem;margin-right:.16rem}.container .paging[data-v-500ea229]{margin-top:.48rem}.container .paging[data-v-500ea229] .el-pagination.is-background .el-pager li:not(.disabled).active{background:#62b1ff;border-radius:50%}.container .paging[data-v-500ea229] .el-pagination .btn-next .el-icon,.container .paging[data-v-500ea229] .el-pagination .btn-prev .el-icon{font-size:.4rem}.container .result-empty-box[data-v-500ea229]{height:70vh;width:9.36rem;background:#fff;margin:0 auto;border-radius:.32rem}.container .result-empty-box .result-empty-icon[data-v-500ea229]{width:2.04rem;height:2.4rem}
|
||||||
1
dist/css/884.9aa3ed80.css
vendored
Normal file
1
dist/css/app~189e7968.8b7662a1.css
vendored
Normal file
1
dist/css/chunk-vendors~7b6a7b5f.8608dd3a.css
vendored
Normal file
BIN
dist/fonts/element-icons.f1a45d74.ttf
vendored
Normal file
BIN
dist/fonts/element-icons.ff18efd1.woff
vendored
Normal file
BIN
dist/img/defaultAvatar.jpg
vendored
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
dist/img/empty.698c52d4.png
vendored
Normal file
|
After Width: | Height: | Size: 82 KiB |
BIN
dist/img/favicon.ico
vendored
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
dist/img/notCollect.698c52d4.png
vendored
Normal file
|
After Width: | Height: | Size: 82 KiB |
0
src/assets/img/detail/unlock.png → dist/img/unlock.png
vendored
Executable file → Normal file
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
BIN
dist/img/user/avatarsetting.png
vendored
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
dist/img/user/bindemail.png
vendored
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
0
src/assets/img/user/bindingthird-party .png → dist/img/user/bindingthird-party.png
vendored
Executable file → Normal file
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
BIN
dist/img/user/bindmobile.png
vendored
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
dist/img/user/changepassword.png
vendored
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
dist/img/user/collect.png
vendored
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
0
src/assets/img/user/information.png → dist/img/user/information.png
vendored
Executable file → Normal file
|
Before Width: | Height: | Size: 1011 B After Width: | Height: | Size: 1011 B |
BIN
dist/img/user/mystatus.png
vendored
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
dist/img/user/personaldata.png
vendored
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
dist/img/user/postmessage.png
vendored
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
dist/img/user/replymessage.png
vendored
Normal file
|
After Width: | Height: | Size: 968 B |
BIN
dist/img/user/visithomepage.png
vendored
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
12
dist/index.html
vendored
Normal file
1
dist/js/124.79130f1c.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
"use strict";(self["webpackChunkninepage"]=self["webpackChunkninepage"]||[]).push([[124],{9143:function(e,t,n){n.r(t),n.d(t,{default:function(){return l}});var a=function(){var e=this,t=e._self._c;return t("div",[t("header-nav",{attrs:{issearch:!0,needgetuser:!0}},[t("template",{slot:"header-title"},[e._v("帖子详情")])],2),t("router-view",{key:e.key})],1)},r=[],u=n(517),s={name:"detail",data(){return{}},computed:{key(){return this.$route.path+Math.random()}},mounted(){},methods:{},components:{HeaderNav:u.Z}},d=s,i=n(1001),o=(0,i.Z)(d,a,r,!1,null,"10593ad7",null),l=o.exports}}]);
|
||||||
1
dist/js/217.d1ddcd5f.js
vendored
Normal file
1
dist/js/280.ed574ed9.js
vendored
Normal file
1
dist/js/336.52ad8d34.js
vendored
Normal file
1
dist/js/337.4b2508a0.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
"use strict";(self["webpackChunkninepage"]=self["webpackChunkninepage"]||[]).push([[337],{5817:function(e,t,n){n.r(t),n.d(t,{default:function(){return h}});var r=function(){var e=this,t=e._self._c;return t("div",[t("header-nav",{attrs:{issearch:!1,needgetuser:!0}},[t("template",{slot:"header-title"},[e._v("搜索帖子")])],2),t("router-view",{key:e.key})],1)},a=[],u=n(517),s={name:"search",data(){return{}},computed:{key(){return this.$route.path+Math.random()}},mounted(){},methods:{},components:{HeaderNav:u.Z}},o=s,c=n(1001),d=(0,c.Z)(o,r,a,!1,null,"24c9f798",null),h=d.exports}}]);
|
||||||
1
dist/js/354.bc2d16ec.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
"use strict";(self["webpackChunkninepage"]=self["webpackChunkninepage"]||[]).push([[354],{6170:function(e,t,n){n.r(t),n.d(t,{default:function(){return o}});var r=function(){var e=this,t=e._self._c;return t("div",[t("header-nav",{attrs:{issearch:!0,needgetuser:!0}},[t("template",{slot:"header-title"},[e._v("我的寄托")])],2),t("router-view")],1)},a=[],u=n(517),s={name:"user",data(){return{}},mounted(){},methods:{},components:{HeaderNav:u.Z}},d=s,i=n(1001),l=(0,i.Z)(d,r,a,!1,null,"7090fd6a",null),o=l.exports}}]);
|
||||||
1
dist/js/517.b66c61bd.js
vendored
Normal file
1
dist/js/718.165fc1ef.js
vendored
Normal file
1
dist/js/831.6fddd3bb.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
"use strict";(self["webpackChunkninepage"]=self["webpackChunkninepage"]||[]).push([[831],{2013:function(e,t,n){n.r(t),n.d(t,{default:function(){return u}});var a=function(){var e=this,t=e._self._c;return t("div",[t("header-nav",{attrs:{issearch:!0,needgetuser:!0}},[t("template",{slot:"header-title"},[e._v("寄托天下论坛")])],2),t("nav",[t("router-link",{attrs:{to:e.recommendURl,exact:""}},[e._v("推荐阅读")]),t("router-link",{attrs:{to:e.collect,exact:""}},[e._v("收藏的版块")]),t("router-link",{attrs:{to:e.allSections,exact:""}},[e._v("全部版块")])],1),t("div",{staticClass:"publish flexcolumn flexcenter",on:{click:function(t){return t.stopPropagation(),e.$skipUrl(e.invitationPost)}}},[t("svg-icon",{attrs:{"icon-class":"add","class-name":"icon-publish"}}),e._v(" 发帖 ")],1),t("router-view",{key:e.key})],1)},l=[],o=n(517),i=n(6799),r={name:"Index",data(){return{favorite:[],recommend:[],fid:null,allSections:"/allSections",collect:"/collect",recommendURl:"/recommend",invitationPost:i.a}},computed:{key(){return this.$route.path+Math.random()}},watch:{"$store.state.homeRequestState":{handler(e,t){let{favoriteList:n,recommendList:a}=this.$store.state;this.favorite=n,this.recommend=a},immediate:!0},$route:{handler(e,t){let n=e.fullPath;-1!=n.indexOf("allSections")&&(this.allSections=n),-1!=n.indexOf("collect")&&(this.collect=n),-1!=n.indexOf("recommend")&&(this.recommendURl=n)},immediate:!0}},mounted(){},components:{HeaderNav:o.Z},methods:{}},s=r,c=n(1001),d=(0,c.Z)(s,a,l,!1,null,null,null),u=d.exports}}]);
|
||||||
1
dist/js/878.25f811f5.js
vendored
Normal file
1
dist/js/884.b48d5ca7.js
vendored
Normal file
1
dist/js/app~42f9d7e6.9764086e.js
vendored
Normal file
1
dist/js/app~449a49d2.7db7a012.js
vendored
Normal file
1
dist/js/app~d363ae0c.bcaf0192.js
vendored
Normal file
1
dist/js/app~d92c34c1.f3d32b35.js
vendored
Normal file
1
dist/js/chunk-vendors~060599a5.24f19e49.js
vendored
Normal file
1
dist/js/chunk-vendors~200a565d.39847fe1.js
vendored
Normal file
1
dist/js/chunk-vendors~25e64ae6.c55fb344.js
vendored
Normal file
1
dist/js/chunk-vendors~2882e66b.2c8093d6.js
vendored
Normal file
1
dist/js/chunk-vendors~3430543d.cf0009ef.js
vendored
Normal file
1
dist/js/chunk-vendors~439af1fa.860dcae1.js
vendored
Normal file
1
dist/js/chunk-vendors~5551fa64.bd95ba0f.js
vendored
Normal file
1
dist/js/chunk-vendors~5c533fba.9bf46ea1.js
vendored
Normal file
1
dist/js/chunk-vendors~6012a5e8.fad4069d.js
vendored
Normal file
1
dist/js/chunk-vendors~61c4e7a6.414f2dab.js
vendored
Normal file
1
dist/js/chunk-vendors~7a6313df.5ee224e3.js
vendored
Normal file
1
dist/js/chunk-vendors~7bad1921.83749175.js
vendored
Normal file
1
dist/js/chunk-vendors~842dc778.64dc62a7.js
vendored
Normal file
1
dist/js/chunk-vendors~8787c537.316fdd09.js
vendored
Normal file
16
dist/js/chunk-vendors~89d5c698.efc5b497.js
vendored
Normal file
1
dist/js/chunk-vendors~8e64475f.812b7299.js
vendored
Normal file
1
dist/js/chunk-vendors~92ecdc2e.3a846b57.js
vendored
Normal file
1
dist/js/chunk-vendors~9b5e7775.6adfbd8e.js
vendored
Normal file
1
dist/js/chunk-vendors~b64a843a.c93ce69d.js
vendored
Normal file
1
dist/js/chunk-vendors~bb5633b7.bff7c084.js
vendored
Normal file
1
dist/js/chunk-vendors~bc050c32.2a84bea8.js
vendored
Normal file
1
dist/js/chunk-vendors~c08e88ca.200eba88.js
vendored
Normal file
7
dist/js/chunk-vendors~c3943e85.8bc853d5.js
vendored
Normal file
9
dist/js/chunk-vendors~c7cbfa4b.cdfe4d69.js
vendored
Normal file
5
dist/js/chunk-vendors~eb2fbf4c.11aa1638.js
vendored
Normal file
1
dist/js/chunk-vendors~f1d6293b.12e3b1ae.js
vendored
Normal file
1
dist/js/chunk-vendors~f7b4906f.b7dd6763.js
vendored
Normal file
545
dist/js/jweixin-1.3.2.js
vendored
Normal file
@@ -0,0 +1,545 @@
|
|||||||
|
;((e, n) => {
|
||||||
|
"function" == typeof define && (define.amd || define.cmd)
|
||||||
|
? define(function () {
|
||||||
|
return n(e)
|
||||||
|
})
|
||||||
|
: n(e, !0)
|
||||||
|
})(this, function (r, e) {
|
||||||
|
var a, c, n, i, t, s, d, o, l, u, p, f, m, g, h, I, S, y, v, _, w, T
|
||||||
|
if (!r.jWeixin)
|
||||||
|
return (
|
||||||
|
(a = { config: "preVerifyJSAPI", onMenuShareTimeline: "menu:share:timeline", onMenuShareAppMessage: "menu:share:appmessage", onMenuShareQQ: "menu:share:qq", onMenuShareWeibo: "menu:share:weiboApp", onMenuShareQZone: "menu:share:QZone", previewImage: "imagePreview", getLocation: "geoLocation", openProductSpecificView: "openProductViewWithPid", addCard: "batchAddCard", openCard: "batchViewCard", chooseWXPay: "getBrandWCPayRequest", openEnterpriseRedPacket: "getRecevieBizHongBaoRequest", startSearchBeacons: "startMonitoringBeacons", stopSearchBeacons: "stopMonitoringBeacons", onSearchBeacons: "onBeaconsInRange", consumeAndShareCard: "consumedShareCard", openAddress: "editAddress" }),
|
||||||
|
(c = (() => {
|
||||||
|
var e,
|
||||||
|
n = {}
|
||||||
|
for (e in a) n[a[e]] = e
|
||||||
|
return n
|
||||||
|
})()),
|
||||||
|
(i = (n = r.document).title),
|
||||||
|
(t = navigator.userAgent.toLowerCase()),
|
||||||
|
(f = navigator.platform.toLowerCase()),
|
||||||
|
(s = !(!f.match("mac") && !f.match("win"))),
|
||||||
|
(d = -1 != t.indexOf("wxdebugger")),
|
||||||
|
(o = -1 != t.indexOf("micromessenger")),
|
||||||
|
(l = -1 != t.indexOf("android")),
|
||||||
|
(u = -1 != t.indexOf("iphone") || -1 != t.indexOf("ipad")),
|
||||||
|
(p = (f = t.match(/micromessenger\/(\d+\.\d+\.\d+)/) || t.match(/micromessenger\/(\d+\.\d+)/)) ? f[1] : ""),
|
||||||
|
(m = { initStartTime: L(), initEndTime: 0, preVerifyStartTime: 0, preVerifyEndTime: 0 }),
|
||||||
|
(g = { version: 1, appId: "", initTime: 0, preVerifyTime: 0, networkType: "", isPreVerifyOk: 1, systemType: u ? 1 : l ? 2 : -1, clientVersion: p, url: encodeURIComponent(location.href) }),
|
||||||
|
(h = {}),
|
||||||
|
(I = { _completes: [] }),
|
||||||
|
(S = { state: 0, data: {} }),
|
||||||
|
B(function () {
|
||||||
|
m.initEndTime = L()
|
||||||
|
}),
|
||||||
|
(y = !1),
|
||||||
|
(v = []),
|
||||||
|
(_ = {
|
||||||
|
config: function (e) {
|
||||||
|
C("config", (h = e))
|
||||||
|
var o = !1 !== h.check
|
||||||
|
B(function () {
|
||||||
|
if (o)
|
||||||
|
k(
|
||||||
|
a.config,
|
||||||
|
{ verifyJsApiList: V(h.jsApiList) },
|
||||||
|
((I._complete = function (e) {
|
||||||
|
;(m.preVerifyEndTime = L()), (S.state = 1), (S.data = e)
|
||||||
|
}),
|
||||||
|
(I.success = function (e) {
|
||||||
|
g.isPreVerifyOk = 0
|
||||||
|
}),
|
||||||
|
(I.fail = function (e) {
|
||||||
|
I._fail ? I._fail(e) : (S.state = -1)
|
||||||
|
}),
|
||||||
|
(t = I._completes).push(function () {
|
||||||
|
var n
|
||||||
|
s ||
|
||||||
|
d ||
|
||||||
|
h.debug ||
|
||||||
|
p < "6.0.2" ||
|
||||||
|
g.systemType < 0 ||
|
||||||
|
((n = new Image()),
|
||||||
|
(g.appId = h.appId),
|
||||||
|
(g.initTime = m.initEndTime - m.initStartTime),
|
||||||
|
(g.preVerifyTime = m.preVerifyEndTime - m.preVerifyStartTime),
|
||||||
|
_.getNetworkType({
|
||||||
|
isInnerInvoke: !0,
|
||||||
|
success: function (e) {
|
||||||
|
;(g.networkType = e.networkType), (n.src = "https://open.weixin.qq.com/sdk/report?v=" + g.version + "&o=" + g.isPreVerifyOk + "&s=" + g.systemType + "&c=" + g.clientVersion + "&a=" + g.appId + "&n=" + g.networkType + "&i=" + g.initTime + "&p=" + g.preVerifyTime + "&u=" + g.url)
|
||||||
|
},
|
||||||
|
}))
|
||||||
|
}),
|
||||||
|
(I.complete = function (e) {
|
||||||
|
for (var n = 0, i = t.length; n < i; ++n) t[n]()
|
||||||
|
I._completes = []
|
||||||
|
}),
|
||||||
|
I)
|
||||||
|
),
|
||||||
|
(m.preVerifyStartTime = L())
|
||||||
|
else {
|
||||||
|
S.state = 1
|
||||||
|
for (var e = I._completes, n = 0, i = e.length; n < i; ++n) e[n]()
|
||||||
|
I._completes = []
|
||||||
|
}
|
||||||
|
var t
|
||||||
|
}),
|
||||||
|
_.invoke ||
|
||||||
|
((_.invoke = function (e, n, i) {
|
||||||
|
r.WeixinJSBridge && WeixinJSBridge.invoke(e, P(n), i)
|
||||||
|
}),
|
||||||
|
(_.on = function (e, n) {
|
||||||
|
r.WeixinJSBridge && WeixinJSBridge.on(e, n)
|
||||||
|
}))
|
||||||
|
},
|
||||||
|
ready: function (e) {
|
||||||
|
;(0 != S.state || (I._completes.push(e), !o && h.debug)) && e()
|
||||||
|
},
|
||||||
|
error: function (e) {
|
||||||
|
p < "6.0.2" || (-1 == S.state ? e(S.data) : (I._fail = e))
|
||||||
|
},
|
||||||
|
checkJsApi: function (e) {
|
||||||
|
k(
|
||||||
|
"checkJsApi",
|
||||||
|
{ jsApiList: V(e.jsApiList) },
|
||||||
|
((e._complete = function (e) {
|
||||||
|
l && (i = e.checkResult) && (e.checkResult = JSON.parse(i))
|
||||||
|
var n,
|
||||||
|
i = e,
|
||||||
|
t = i.checkResult
|
||||||
|
for (n in t) {
|
||||||
|
var o = c[n]
|
||||||
|
o && ((t[o] = t[n]), delete t[n])
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
e)
|
||||||
|
)
|
||||||
|
},
|
||||||
|
onMenuShareTimeline: function (e) {
|
||||||
|
M(
|
||||||
|
a.onMenuShareTimeline,
|
||||||
|
{
|
||||||
|
complete: function () {
|
||||||
|
k("shareTimeline", { title: e.title || i, desc: e.title || i, img_url: e.imgUrl || "", link: e.link || location.href, type: e.type || "link", data_url: e.dataUrl || "" }, e)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
e
|
||||||
|
)
|
||||||
|
},
|
||||||
|
onMenuShareAppMessage: function (n) {
|
||||||
|
M(
|
||||||
|
a.onMenuShareAppMessage,
|
||||||
|
{
|
||||||
|
complete: function (e) {
|
||||||
|
"favorite" === e.scene ? k("sendAppMessage", { title: n.title || i, desc: n.desc || "", link: n.link || location.href, img_url: n.imgUrl || "", type: n.type || "link", data_url: n.dataUrl || "" }) : k("sendAppMessage", { title: n.title || i, desc: n.desc || "", link: n.link || location.href, img_url: n.imgUrl || "", type: n.type || "link", data_url: n.dataUrl || "" }, n)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
n
|
||||||
|
)
|
||||||
|
},
|
||||||
|
onMenuShareQQ: function (e) {
|
||||||
|
M(
|
||||||
|
a.onMenuShareQQ,
|
||||||
|
{
|
||||||
|
complete: function () {
|
||||||
|
k("shareQQ", { title: e.title || i, desc: e.desc || "", img_url: e.imgUrl || "", link: e.link || location.href }, e)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
e
|
||||||
|
)
|
||||||
|
},
|
||||||
|
onMenuShareWeibo: function (e) {
|
||||||
|
M(
|
||||||
|
a.onMenuShareWeibo,
|
||||||
|
{
|
||||||
|
complete: function () {
|
||||||
|
k("shareWeiboApp", { title: e.title || i, desc: e.desc || "", img_url: e.imgUrl || "", link: e.link || location.href }, e)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
e
|
||||||
|
)
|
||||||
|
},
|
||||||
|
onMenuShareQZone: function (e) {
|
||||||
|
M(
|
||||||
|
a.onMenuShareQZone,
|
||||||
|
{
|
||||||
|
complete: function () {
|
||||||
|
k("shareQZone", { title: e.title || i, desc: e.desc || "", img_url: e.imgUrl || "", link: e.link || location.href }, e)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
e
|
||||||
|
)
|
||||||
|
},
|
||||||
|
startRecord: function (e) {
|
||||||
|
k("startRecord", {}, e)
|
||||||
|
},
|
||||||
|
stopRecord: function (e) {
|
||||||
|
k("stopRecord", {}, e)
|
||||||
|
},
|
||||||
|
onVoiceRecordEnd: function (e) {
|
||||||
|
M("onVoiceRecordEnd", e)
|
||||||
|
},
|
||||||
|
playVoice: function (e) {
|
||||||
|
k("playVoice", { localId: e.localId }, e)
|
||||||
|
},
|
||||||
|
pauseVoice: function (e) {
|
||||||
|
k("pauseVoice", { localId: e.localId }, e)
|
||||||
|
},
|
||||||
|
stopVoice: function (e) {
|
||||||
|
k("stopVoice", { localId: e.localId }, e)
|
||||||
|
},
|
||||||
|
onVoicePlayEnd: function (e) {
|
||||||
|
M("onVoicePlayEnd", e)
|
||||||
|
},
|
||||||
|
uploadVoice: function (e) {
|
||||||
|
k("uploadVoice", { localId: e.localId, isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1 }, e)
|
||||||
|
},
|
||||||
|
downloadVoice: function (e) {
|
||||||
|
k("downloadVoice", { serverId: e.serverId, isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1 }, e)
|
||||||
|
},
|
||||||
|
translateVoice: function (e) {
|
||||||
|
k("translateVoice", { localId: e.localId, isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1 }, e)
|
||||||
|
},
|
||||||
|
chooseImage: function (e) {
|
||||||
|
k(
|
||||||
|
"chooseImage",
|
||||||
|
{ scene: "1|2", count: e.count || 9, sizeType: e.sizeType || ["original", "compressed"], sourceType: e.sourceType || ["album", "camera"] },
|
||||||
|
((e._complete = function (e) {
|
||||||
|
if (l) {
|
||||||
|
var n = e.localIds
|
||||||
|
try {
|
||||||
|
n && (e.localIds = JSON.parse(n))
|
||||||
|
} catch (e) {}
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
e)
|
||||||
|
)
|
||||||
|
},
|
||||||
|
getLocation: function (e) {},
|
||||||
|
getLocation: function (e) {
|
||||||
|
;(e = e || {}),
|
||||||
|
k(
|
||||||
|
a.getLocation,
|
||||||
|
{ type: e.type || "wgs84" },
|
||||||
|
((e._complete = function (e) {
|
||||||
|
delete e.type
|
||||||
|
}),
|
||||||
|
e)
|
||||||
|
)
|
||||||
|
},
|
||||||
|
previewImage: function (e) {
|
||||||
|
k(a.previewImage, { current: e.current, urls: e.urls }, e)
|
||||||
|
},
|
||||||
|
uploadImage: function (e) {
|
||||||
|
k("uploadImage", { localId: e.localId, isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1 }, e)
|
||||||
|
},
|
||||||
|
downloadImage: function (e) {
|
||||||
|
k("downloadImage", { serverId: e.serverId, isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1 }, e)
|
||||||
|
},
|
||||||
|
getLocalImgData: function (e) {
|
||||||
|
!1 === y
|
||||||
|
? ((y = !0),
|
||||||
|
k(
|
||||||
|
"getLocalImgData",
|
||||||
|
{ localId: e.localId },
|
||||||
|
((e._complete = function (e) {
|
||||||
|
var n
|
||||||
|
;(y = !1), 0 < v.length && ((n = v.shift()), wx.getLocalImgData(n))
|
||||||
|
}),
|
||||||
|
e)
|
||||||
|
))
|
||||||
|
: v.push(e)
|
||||||
|
},
|
||||||
|
getNetworkType: function (e) {
|
||||||
|
k(
|
||||||
|
"getNetworkType",
|
||||||
|
{},
|
||||||
|
((e._complete = function (e) {
|
||||||
|
var n = e,
|
||||||
|
e = n.errMsg,
|
||||||
|
i = ((n.errMsg = "getNetworkType:ok"), n.subtype)
|
||||||
|
if ((delete n.subtype, i)) n.networkType = i
|
||||||
|
else {
|
||||||
|
var i = e.indexOf(":"),
|
||||||
|
t = e.substring(i + 1)
|
||||||
|
switch (t) {
|
||||||
|
case "wifi":
|
||||||
|
case "edge":
|
||||||
|
case "wwan":
|
||||||
|
n.networkType = t
|
||||||
|
break
|
||||||
|
default:
|
||||||
|
n.errMsg = "getNetworkType:fail"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
e)
|
||||||
|
)
|
||||||
|
},
|
||||||
|
openLocation: function (e) {
|
||||||
|
k("openLocation", { latitude: e.latitude, longitude: e.longitude, name: e.name || "", address: e.address || "", scale: e.scale || 28, infoUrl: e.infoUrl || "" }, e)
|
||||||
|
},
|
||||||
|
hideOptionMenu: function (e) {
|
||||||
|
k("hideOptionMenu", {}, e)
|
||||||
|
},
|
||||||
|
showOptionMenu: function (e) {
|
||||||
|
k("showOptionMenu", {}, e)
|
||||||
|
},
|
||||||
|
closeWindow: function (e) {
|
||||||
|
k("closeWindow", {}, (e = e || {}))
|
||||||
|
},
|
||||||
|
hideMenuItems: function (e) {
|
||||||
|
k("hideMenuItems", { menuList: e.menuList }, e)
|
||||||
|
},
|
||||||
|
showMenuItems: function (e) {
|
||||||
|
k("showMenuItems", { menuList: e.menuList }, e)
|
||||||
|
},
|
||||||
|
hideAllNonBaseMenuItem: function (e) {
|
||||||
|
k("hideAllNonBaseMenuItem", {}, e)
|
||||||
|
},
|
||||||
|
showAllNonBaseMenuItem: function (e) {
|
||||||
|
k("showAllNonBaseMenuItem", {}, e)
|
||||||
|
},
|
||||||
|
scanQRCode: function (e) {
|
||||||
|
k(
|
||||||
|
"scanQRCode",
|
||||||
|
{ needResult: (e = e || {}).needResult || 0, scanType: e.scanType || ["qrCode", "barCode"] },
|
||||||
|
((e._complete = function (e) {
|
||||||
|
var n
|
||||||
|
u && (n = e.resultStr) && ((n = JSON.parse(n)), (e.resultStr = n && n.scan_code && n.scan_code.scan_result))
|
||||||
|
}),
|
||||||
|
e)
|
||||||
|
)
|
||||||
|
},
|
||||||
|
openAddress: function (e) {
|
||||||
|
k(
|
||||||
|
a.openAddress,
|
||||||
|
{},
|
||||||
|
((e._complete = function (e) {
|
||||||
|
;((e = e).postalCode = e.addressPostalCode), delete e.addressPostalCode, (e.provinceName = e.proviceFirstStageName), delete e.proviceFirstStageName, (e.cityName = e.addressCitySecondStageName), delete e.addressCitySecondStageName, (e.countryName = e.addressCountiesThirdStageName), delete e.addressCountiesThirdStageName, (e.detailInfo = e.addressDetailInfo), delete e.addressDetailInfo
|
||||||
|
}),
|
||||||
|
e)
|
||||||
|
)
|
||||||
|
},
|
||||||
|
openProductSpecificView: function (e) {
|
||||||
|
k(a.openProductSpecificView, { pid: e.productId, view_type: e.viewType || 0, ext_info: e.extInfo }, e)
|
||||||
|
},
|
||||||
|
addCard: function (e) {
|
||||||
|
for (var n = e.cardList, i = [], t = 0, o = n.length; t < o; ++t) {
|
||||||
|
var r = n[t],
|
||||||
|
r = { card_id: r.cardId, card_ext: r.cardExt }
|
||||||
|
i.push(r)
|
||||||
|
}
|
||||||
|
k(
|
||||||
|
a.addCard,
|
||||||
|
{ card_list: i },
|
||||||
|
((e._complete = function (e) {
|
||||||
|
if ((n = e.card_list)) {
|
||||||
|
for (var n, i = 0, t = (n = JSON.parse(n)).length; i < t; ++i) {
|
||||||
|
var o = n[i]
|
||||||
|
;(o.cardId = o.card_id), (o.cardExt = o.card_ext), (o.isSuccess = !!o.is_succ), delete o.card_id, delete o.card_ext, delete o.is_succ
|
||||||
|
}
|
||||||
|
;(e.cardList = n), delete e.card_list
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
e)
|
||||||
|
)
|
||||||
|
},
|
||||||
|
chooseCard: function (e) {
|
||||||
|
k(
|
||||||
|
"chooseCard",
|
||||||
|
{ app_id: h.appId, location_id: e.shopId || "", sign_type: e.signType || "SHA1", card_id: e.cardId || "", card_type: e.cardType || "", card_sign: e.cardSign, time_stamp: e.timestamp + "", nonce_str: e.nonceStr },
|
||||||
|
((e._complete = function (e) {
|
||||||
|
;(e.cardList = e.choose_card_info), delete e.choose_card_info
|
||||||
|
}),
|
||||||
|
e)
|
||||||
|
)
|
||||||
|
},
|
||||||
|
openCard: function (e) {
|
||||||
|
for (var n = e.cardList, i = [], t = 0, o = n.length; t < o; ++t) {
|
||||||
|
var r = n[t],
|
||||||
|
r = { card_id: r.cardId, code: r.code }
|
||||||
|
i.push(r)
|
||||||
|
}
|
||||||
|
k(a.openCard, { card_list: i }, e)
|
||||||
|
},
|
||||||
|
consumeAndShareCard: function (e) {
|
||||||
|
k(a.consumeAndShareCard, { consumedCardId: e.cardId, consumedCode: e.code }, e)
|
||||||
|
},
|
||||||
|
chooseWXPay: function (e) {
|
||||||
|
k(a.chooseWXPay, x(e), e)
|
||||||
|
},
|
||||||
|
openEnterpriseRedPacket: function (e) {
|
||||||
|
k(a.openEnterpriseRedPacket, x(e), e)
|
||||||
|
},
|
||||||
|
startSearchBeacons: function (e) {
|
||||||
|
k(a.startSearchBeacons, { ticket: e.ticket }, e)
|
||||||
|
},
|
||||||
|
stopSearchBeacons: function (e) {
|
||||||
|
k(a.stopSearchBeacons, {}, e)
|
||||||
|
},
|
||||||
|
onSearchBeacons: function (e) {
|
||||||
|
M(a.onSearchBeacons, e)
|
||||||
|
},
|
||||||
|
openEnterpriseChat: function (e) {
|
||||||
|
k("openEnterpriseChat", { useridlist: e.userIds, chatname: e.groupName }, e)
|
||||||
|
},
|
||||||
|
launchMiniProgram: function (e) {
|
||||||
|
k(
|
||||||
|
"launchMiniProgram",
|
||||||
|
{
|
||||||
|
targetAppId: e.targetAppId,
|
||||||
|
path: (e => {
|
||||||
|
var n
|
||||||
|
if ("string" == typeof e && 0 < e.length) return (n = e.split("?")[0]), (n += ".html"), void 0 !== (e = e.split("?")[1]) ? n + "?" + e : n
|
||||||
|
})(e.path),
|
||||||
|
envVersion: e.envVersion,
|
||||||
|
},
|
||||||
|
e
|
||||||
|
)
|
||||||
|
},
|
||||||
|
miniProgram: {
|
||||||
|
navigateBack: function (e) {
|
||||||
|
;(e = e || {}),
|
||||||
|
B(function () {
|
||||||
|
k("invokeMiniProgramAPI", { name: "navigateBack", arg: { delta: e.delta || 1 } }, e)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
navigateTo: function (e) {
|
||||||
|
B(function () {
|
||||||
|
k("invokeMiniProgramAPI", { name: "navigateTo", arg: { url: e.url } }, e)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
redirectTo: function (e) {
|
||||||
|
B(function () {
|
||||||
|
k("invokeMiniProgramAPI", { name: "redirectTo", arg: { url: e.url } }, e)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
switchTab: function (e) {
|
||||||
|
B(function () {
|
||||||
|
k("invokeMiniProgramAPI", { name: "switchTab", arg: { url: e.url } }, e)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
reLaunch: function (e) {
|
||||||
|
B(function () {
|
||||||
|
k("invokeMiniProgramAPI", { name: "reLaunch", arg: { url: e.url } }, e)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
postMessage: function (e) {
|
||||||
|
B(function () {
|
||||||
|
k("invokeMiniProgramAPI", { name: "postMessage", arg: e.data || {} }, e)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getEnv: function (e) {
|
||||||
|
B(function () {
|
||||||
|
e({ miniprogram: "miniprogram" === r.__wxjs_environment })
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
(w = 1),
|
||||||
|
(T = {}),
|
||||||
|
n.addEventListener(
|
||||||
|
"error",
|
||||||
|
function (e) {
|
||||||
|
var n, i, t
|
||||||
|
l ||
|
||||||
|
((t = (n = e.target).tagName), (i = n.src), "IMG" != t && "VIDEO" != t && "AUDIO" != t && "SOURCE" != t) ||
|
||||||
|
(-1 != i.indexOf("wxlocalresource://") &&
|
||||||
|
(e.preventDefault(),
|
||||||
|
e.stopPropagation(),
|
||||||
|
(t = n["wx-id"]) || ((t = w++), (n["wx-id"] = t)),
|
||||||
|
T[t] ||
|
||||||
|
((T[t] = !0),
|
||||||
|
wx.ready(function () {
|
||||||
|
wx.getLocalImgData({
|
||||||
|
localId: i,
|
||||||
|
success: function (e) {
|
||||||
|
n.src = e.localData
|
||||||
|
},
|
||||||
|
})
|
||||||
|
}))))
|
||||||
|
},
|
||||||
|
!0
|
||||||
|
),
|
||||||
|
n.addEventListener(
|
||||||
|
"load",
|
||||||
|
function (e) {
|
||||||
|
var n
|
||||||
|
l || ((n = (e = e.target).tagName), "IMG" != n && "VIDEO" != n && "AUDIO" != n && "SOURCE" != n) || ((n = e["wx-id"]) && (T[n] = !1))
|
||||||
|
},
|
||||||
|
!0
|
||||||
|
),
|
||||||
|
e && (r.wx = r.jWeixin = _),
|
||||||
|
_
|
||||||
|
)
|
||||||
|
function k(n, e, i) {
|
||||||
|
r.WeixinJSBridge
|
||||||
|
? WeixinJSBridge.invoke(n, P(e), function (e) {
|
||||||
|
A(n, e, i)
|
||||||
|
})
|
||||||
|
: C(n, i)
|
||||||
|
}
|
||||||
|
function M(n, i, t) {
|
||||||
|
r.WeixinJSBridge
|
||||||
|
? WeixinJSBridge.on(n, function (e) {
|
||||||
|
t && t.trigger && t.trigger(e), A(n, e, i)
|
||||||
|
})
|
||||||
|
: C(n, t || i)
|
||||||
|
}
|
||||||
|
function P(e) {
|
||||||
|
return ((e = e || {}).appId = h.appId), (e.verifyAppId = h.appId), (e.verifySignType = "sha1"), (e.verifyTimestamp = h.timestamp + ""), (e.verifyNonceStr = h.nonceStr), (e.verifySignature = h.signature), e
|
||||||
|
}
|
||||||
|
function x(e) {
|
||||||
|
return { timeStamp: e.timestamp + "", nonceStr: e.nonceStr, package: e.package, paySign: e.paySign, signType: e.signType || "SHA1" }
|
||||||
|
}
|
||||||
|
function A(e, n, i) {
|
||||||
|
"openEnterpriseChat" == e && (n.errCode = n.err_code), delete n.err_code, delete n.err_desc, delete n.err_detail
|
||||||
|
var t = n.errMsg,
|
||||||
|
e =
|
||||||
|
(t ||
|
||||||
|
((t = n.err_msg),
|
||||||
|
delete n.err_msg,
|
||||||
|
(t = ((e, n) => {
|
||||||
|
var i,
|
||||||
|
t = c[e]
|
||||||
|
return t && (e = t), (t = "ok"), n && ((i = n.indexOf(":")), ("access denied" != (t = (t = (t = -1 != (t = -1 != (t = "failed" == (t = "confirm" == (t = n.substring(i + 1)) ? "ok" : t) ? "fail" : t).indexOf("failed_") ? t.substring(7) : t).indexOf("fail_") ? t.substring(5) : t).replace(/_/g, " ")).toLowerCase()) && "no permission to execute" != t) || (t = "permission denied"), "" == (t = "config" == e && "function not exist" == t ? "ok" : t)) && (t = "fail"), (n = e + ":" + t)
|
||||||
|
})(e, t)),
|
||||||
|
(n.errMsg = t)),
|
||||||
|
(i = i || {})._complete && (i._complete(n), delete i._complete),
|
||||||
|
(t = n.errMsg || ""),
|
||||||
|
h.debug && !i.isInnerInvoke && alert(JSON.stringify(n)),
|
||||||
|
t.indexOf(":"))
|
||||||
|
switch (t.substring(e + 1)) {
|
||||||
|
case "ok":
|
||||||
|
i.success && i.success(n)
|
||||||
|
break
|
||||||
|
case "cancel":
|
||||||
|
i.cancel && i.cancel(n)
|
||||||
|
break
|
||||||
|
default:
|
||||||
|
i.fail && i.fail(n)
|
||||||
|
}
|
||||||
|
i.complete && i.complete(n)
|
||||||
|
}
|
||||||
|
function V(e) {
|
||||||
|
if (e) {
|
||||||
|
for (var n = 0, i = e.length; n < i; ++n) {
|
||||||
|
var t = e[n],
|
||||||
|
t = a[t]
|
||||||
|
t && (e[n] = t)
|
||||||
|
}
|
||||||
|
return e
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function C(e, n) {
|
||||||
|
var i
|
||||||
|
!h.debug || (n && n.isInnerInvoke) || ((i = c[e]) && (e = i), n && n._complete && delete n._complete, console.log('"' + e + '",', n || ""))
|
||||||
|
}
|
||||||
|
function L() {
|
||||||
|
return new Date().getTime()
|
||||||
|
}
|
||||||
|
function B(e) {
|
||||||
|
o && (r.WeixinJSBridge ? e() : n.addEventListener && n.addEventListener("WeixinJSBridgeReady", e, !1))
|
||||||
|
}
|
||||||
|
})
|
||||||
17111
package-lock.json
generated
Executable file → Normal file
@@ -14,7 +14,6 @@
|
|||||||
"svg-sprite-loader": "^6.0.11",
|
"svg-sprite-loader": "^6.0.11",
|
||||||
"vue": "^2.6.14",
|
"vue": "^2.6.14",
|
||||||
"vue-router": "^3.5.1",
|
"vue-router": "^3.5.1",
|
||||||
"vue-sanitize": "^0.2.3",
|
|
||||||
"vuex": "^3.6.2"
|
"vuex": "^3.6.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -22,9 +21,11 @@
|
|||||||
"@vue/cli-plugin-router": "~5.0.0",
|
"@vue/cli-plugin-router": "~5.0.0",
|
||||||
"@vue/cli-plugin-vuex": "~5.0.0",
|
"@vue/cli-plugin-vuex": "~5.0.0",
|
||||||
"@vue/cli-service": "~5.0.0",
|
"@vue/cli-service": "~5.0.0",
|
||||||
|
"postcss": "^8.4.21",
|
||||||
"sass-loader": "^13.2.0",
|
"sass-loader": "^13.2.0",
|
||||||
"vue-template-compiler": "^2.6.14",
|
"vue-template-compiler": "^2.6.14",
|
||||||
"vue2-svg-icon": "^1.3.2"
|
"vue2-svg-icon": "^1.3.2",
|
||||||
|
"webpack-bundle-analyzer": "^4.8.0"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"> 1%",
|
"> 1%",
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 4.2 KiB |
BIN
public/img/defaultAvatar.jpg
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
public/img/favicon.ico
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
public/img/user/avatarsetting.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
public/img/user/bindemail.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
public/img/user/bindingthird-party.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
public/img/user/bindmobile.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
public/img/user/changepassword.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
public/img/user/collect.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
public/img/user/information.png
Normal file
|
After Width: | Height: | Size: 1011 B |
BIN
public/img/user/mystatus.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
public/img/user/personaldata.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
public/img/user/postmessage.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
public/img/user/replymessage.png
Normal file
|
After Width: | Height: | Size: 968 B |
BIN
public/img/user/visithomepage.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
@@ -1,17 +1,51 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="">
|
<html lang="">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"/>
|
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
<!-- <link rel="icon" href="<%= BASE_URL %>/img/favicon.ico"> -->
|
||||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
<!-- <link rel="icon" href="<%= BASE_URL %>/img/favicon.ico"> -->
|
||||||
</head>
|
<link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/forum/img/favicon.ico" />
|
||||||
<body>
|
<!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
|
||||||
<noscript>
|
<title>寄托家园留学论坛_出国留学经验分享|留学申请|留学考试|DIY留学</title>
|
||||||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
<meta name="application-name" content="寄托家园留学论坛" />
|
||||||
</noscript>
|
<meta name="msapplication-tooltip" content="寄托家园留学论坛" />
|
||||||
<div id="app"></div>
|
<meta name="Keywords" content="美国留学,加拿大留学,香港留学,新加坡留学,英国留学,欧洲留学, 留学经验分享,DIY留学,留学申请,留学流程,留学费用,出国留学,留学论坛, 留学网站,留学考试,GRE,TOEFL,IBT,GMAT,IELTS,SAT,VISA,文书,签证" />
|
||||||
<!-- built files will be auto injected -->
|
<meta name="Description" content="提供最有用的出国留学资讯和最热心的留学交流论坛。在BBS上,你可以咨询签证,面试,机经,offer,奖学金,名校专业等,也可以分享雅思、托福、GRE的学习心得。无论你留学在美国、加拿大、英国还是澳洲,都能在留学论坛上找到寄托情感的归宿。" />
|
||||||
</body>
|
|
||||||
|
<title>寄托论坛</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<noscript>
|
||||||
|
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||||
|
</noscript>
|
||||||
|
<div id="app"></div>
|
||||||
|
<div style="display: none">
|
||||||
|
<!-- <script type="text/javascript" src="//v1.cnzz.com/z_stat.php?id=1281224882&web_id=1281224882"></script> -->
|
||||||
|
<script>
|
||||||
|
let $baseURL = "https://framework.x-php.com/forum/"
|
||||||
|
document.addEventListener("DOMContentLoaded", function () {
|
||||||
|
const script = document.createElement("script")
|
||||||
|
script.src = (["localhost"].includes(location.hostname) ? "" : $baseURL) + "/js/jweixin-1.3.2.js"
|
||||||
|
document.head.appendChild(script)
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script defer src="//stat.gter.net/script.js" data-website-id="28aa17dc7c163e7e7cf88d0c556a729b"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var _hmt = _hmt || []
|
||||||
|
;(function () {
|
||||||
|
var hm = document.createElement("script")
|
||||||
|
hm.src = "//hm.baidu.com/hm.js?4bd66cbe45a640b607fe46c48f658746"
|
||||||
|
var s = document.getElementsByTagName("script")[0]
|
||||||
|
s.parentNode.insertBefore(hm, s)
|
||||||
|
})()
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 这个统计代码 明天加在H5论坛页面 -->
|
||||||
|
<!-- built files will be auto injected -->
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
545
public/js/jweixin-1.3.2.js
Normal file
@@ -0,0 +1,545 @@
|
|||||||
|
;((e, n) => {
|
||||||
|
"function" == typeof define && (define.amd || define.cmd)
|
||||||
|
? define(function () {
|
||||||
|
return n(e)
|
||||||
|
})
|
||||||
|
: n(e, !0)
|
||||||
|
})(this, function (r, e) {
|
||||||
|
var a, c, n, i, t, s, d, o, l, u, p, f, m, g, h, I, S, y, v, _, w, T
|
||||||
|
if (!r.jWeixin)
|
||||||
|
return (
|
||||||
|
(a = { config: "preVerifyJSAPI", onMenuShareTimeline: "menu:share:timeline", onMenuShareAppMessage: "menu:share:appmessage", onMenuShareQQ: "menu:share:qq", onMenuShareWeibo: "menu:share:weiboApp", onMenuShareQZone: "menu:share:QZone", previewImage: "imagePreview", getLocation: "geoLocation", openProductSpecificView: "openProductViewWithPid", addCard: "batchAddCard", openCard: "batchViewCard", chooseWXPay: "getBrandWCPayRequest", openEnterpriseRedPacket: "getRecevieBizHongBaoRequest", startSearchBeacons: "startMonitoringBeacons", stopSearchBeacons: "stopMonitoringBeacons", onSearchBeacons: "onBeaconsInRange", consumeAndShareCard: "consumedShareCard", openAddress: "editAddress" }),
|
||||||
|
(c = (() => {
|
||||||
|
var e,
|
||||||
|
n = {}
|
||||||
|
for (e in a) n[a[e]] = e
|
||||||
|
return n
|
||||||
|
})()),
|
||||||
|
(i = (n = r.document).title),
|
||||||
|
(t = navigator.userAgent.toLowerCase()),
|
||||||
|
(f = navigator.platform.toLowerCase()),
|
||||||
|
(s = !(!f.match("mac") && !f.match("win"))),
|
||||||
|
(d = -1 != t.indexOf("wxdebugger")),
|
||||||
|
(o = -1 != t.indexOf("micromessenger")),
|
||||||
|
(l = -1 != t.indexOf("android")),
|
||||||
|
(u = -1 != t.indexOf("iphone") || -1 != t.indexOf("ipad")),
|
||||||
|
(p = (f = t.match(/micromessenger\/(\d+\.\d+\.\d+)/) || t.match(/micromessenger\/(\d+\.\d+)/)) ? f[1] : ""),
|
||||||
|
(m = { initStartTime: L(), initEndTime: 0, preVerifyStartTime: 0, preVerifyEndTime: 0 }),
|
||||||
|
(g = { version: 1, appId: "", initTime: 0, preVerifyTime: 0, networkType: "", isPreVerifyOk: 1, systemType: u ? 1 : l ? 2 : -1, clientVersion: p, url: encodeURIComponent(location.href) }),
|
||||||
|
(h = {}),
|
||||||
|
(I = { _completes: [] }),
|
||||||
|
(S = { state: 0, data: {} }),
|
||||||
|
B(function () {
|
||||||
|
m.initEndTime = L()
|
||||||
|
}),
|
||||||
|
(y = !1),
|
||||||
|
(v = []),
|
||||||
|
(_ = {
|
||||||
|
config: function (e) {
|
||||||
|
C("config", (h = e))
|
||||||
|
var o = !1 !== h.check
|
||||||
|
B(function () {
|
||||||
|
if (o)
|
||||||
|
k(
|
||||||
|
a.config,
|
||||||
|
{ verifyJsApiList: V(h.jsApiList) },
|
||||||
|
((I._complete = function (e) {
|
||||||
|
;(m.preVerifyEndTime = L()), (S.state = 1), (S.data = e)
|
||||||
|
}),
|
||||||
|
(I.success = function (e) {
|
||||||
|
g.isPreVerifyOk = 0
|
||||||
|
}),
|
||||||
|
(I.fail = function (e) {
|
||||||
|
I._fail ? I._fail(e) : (S.state = -1)
|
||||||
|
}),
|
||||||
|
(t = I._completes).push(function () {
|
||||||
|
var n
|
||||||
|
s ||
|
||||||
|
d ||
|
||||||
|
h.debug ||
|
||||||
|
p < "6.0.2" ||
|
||||||
|
g.systemType < 0 ||
|
||||||
|
((n = new Image()),
|
||||||
|
(g.appId = h.appId),
|
||||||
|
(g.initTime = m.initEndTime - m.initStartTime),
|
||||||
|
(g.preVerifyTime = m.preVerifyEndTime - m.preVerifyStartTime),
|
||||||
|
_.getNetworkType({
|
||||||
|
isInnerInvoke: !0,
|
||||||
|
success: function (e) {
|
||||||
|
;(g.networkType = e.networkType), (n.src = "https://open.weixin.qq.com/sdk/report?v=" + g.version + "&o=" + g.isPreVerifyOk + "&s=" + g.systemType + "&c=" + g.clientVersion + "&a=" + g.appId + "&n=" + g.networkType + "&i=" + g.initTime + "&p=" + g.preVerifyTime + "&u=" + g.url)
|
||||||
|
},
|
||||||
|
}))
|
||||||
|
}),
|
||||||
|
(I.complete = function (e) {
|
||||||
|
for (var n = 0, i = t.length; n < i; ++n) t[n]()
|
||||||
|
I._completes = []
|
||||||
|
}),
|
||||||
|
I)
|
||||||
|
),
|
||||||
|
(m.preVerifyStartTime = L())
|
||||||
|
else {
|
||||||
|
S.state = 1
|
||||||
|
for (var e = I._completes, n = 0, i = e.length; n < i; ++n) e[n]()
|
||||||
|
I._completes = []
|
||||||
|
}
|
||||||
|
var t
|
||||||
|
}),
|
||||||
|
_.invoke ||
|
||||||
|
((_.invoke = function (e, n, i) {
|
||||||
|
r.WeixinJSBridge && WeixinJSBridge.invoke(e, P(n), i)
|
||||||
|
}),
|
||||||
|
(_.on = function (e, n) {
|
||||||
|
r.WeixinJSBridge && WeixinJSBridge.on(e, n)
|
||||||
|
}))
|
||||||
|
},
|
||||||
|
ready: function (e) {
|
||||||
|
;(0 != S.state || (I._completes.push(e), !o && h.debug)) && e()
|
||||||
|
},
|
||||||
|
error: function (e) {
|
||||||
|
p < "6.0.2" || (-1 == S.state ? e(S.data) : (I._fail = e))
|
||||||
|
},
|
||||||
|
checkJsApi: function (e) {
|
||||||
|
k(
|
||||||
|
"checkJsApi",
|
||||||
|
{ jsApiList: V(e.jsApiList) },
|
||||||
|
((e._complete = function (e) {
|
||||||
|
l && (i = e.checkResult) && (e.checkResult = JSON.parse(i))
|
||||||
|
var n,
|
||||||
|
i = e,
|
||||||
|
t = i.checkResult
|
||||||
|
for (n in t) {
|
||||||
|
var o = c[n]
|
||||||
|
o && ((t[o] = t[n]), delete t[n])
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
e)
|
||||||
|
)
|
||||||
|
},
|
||||||
|
onMenuShareTimeline: function (e) {
|
||||||
|
M(
|
||||||
|
a.onMenuShareTimeline,
|
||||||
|
{
|
||||||
|
complete: function () {
|
||||||
|
k("shareTimeline", { title: e.title || i, desc: e.title || i, img_url: e.imgUrl || "", link: e.link || location.href, type: e.type || "link", data_url: e.dataUrl || "" }, e)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
e
|
||||||
|
)
|
||||||
|
},
|
||||||
|
onMenuShareAppMessage: function (n) {
|
||||||
|
M(
|
||||||
|
a.onMenuShareAppMessage,
|
||||||
|
{
|
||||||
|
complete: function (e) {
|
||||||
|
"favorite" === e.scene ? k("sendAppMessage", { title: n.title || i, desc: n.desc || "", link: n.link || location.href, img_url: n.imgUrl || "", type: n.type || "link", data_url: n.dataUrl || "" }) : k("sendAppMessage", { title: n.title || i, desc: n.desc || "", link: n.link || location.href, img_url: n.imgUrl || "", type: n.type || "link", data_url: n.dataUrl || "" }, n)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
n
|
||||||
|
)
|
||||||
|
},
|
||||||
|
onMenuShareQQ: function (e) {
|
||||||
|
M(
|
||||||
|
a.onMenuShareQQ,
|
||||||
|
{
|
||||||
|
complete: function () {
|
||||||
|
k("shareQQ", { title: e.title || i, desc: e.desc || "", img_url: e.imgUrl || "", link: e.link || location.href }, e)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
e
|
||||||
|
)
|
||||||
|
},
|
||||||
|
onMenuShareWeibo: function (e) {
|
||||||
|
M(
|
||||||
|
a.onMenuShareWeibo,
|
||||||
|
{
|
||||||
|
complete: function () {
|
||||||
|
k("shareWeiboApp", { title: e.title || i, desc: e.desc || "", img_url: e.imgUrl || "", link: e.link || location.href }, e)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
e
|
||||||
|
)
|
||||||
|
},
|
||||||
|
onMenuShareQZone: function (e) {
|
||||||
|
M(
|
||||||
|
a.onMenuShareQZone,
|
||||||
|
{
|
||||||
|
complete: function () {
|
||||||
|
k("shareQZone", { title: e.title || i, desc: e.desc || "", img_url: e.imgUrl || "", link: e.link || location.href }, e)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
e
|
||||||
|
)
|
||||||
|
},
|
||||||
|
startRecord: function (e) {
|
||||||
|
k("startRecord", {}, e)
|
||||||
|
},
|
||||||
|
stopRecord: function (e) {
|
||||||
|
k("stopRecord", {}, e)
|
||||||
|
},
|
||||||
|
onVoiceRecordEnd: function (e) {
|
||||||
|
M("onVoiceRecordEnd", e)
|
||||||
|
},
|
||||||
|
playVoice: function (e) {
|
||||||
|
k("playVoice", { localId: e.localId }, e)
|
||||||
|
},
|
||||||
|
pauseVoice: function (e) {
|
||||||
|
k("pauseVoice", { localId: e.localId }, e)
|
||||||
|
},
|
||||||
|
stopVoice: function (e) {
|
||||||
|
k("stopVoice", { localId: e.localId }, e)
|
||||||
|
},
|
||||||
|
onVoicePlayEnd: function (e) {
|
||||||
|
M("onVoicePlayEnd", e)
|
||||||
|
},
|
||||||
|
uploadVoice: function (e) {
|
||||||
|
k("uploadVoice", { localId: e.localId, isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1 }, e)
|
||||||
|
},
|
||||||
|
downloadVoice: function (e) {
|
||||||
|
k("downloadVoice", { serverId: e.serverId, isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1 }, e)
|
||||||
|
},
|
||||||
|
translateVoice: function (e) {
|
||||||
|
k("translateVoice", { localId: e.localId, isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1 }, e)
|
||||||
|
},
|
||||||
|
chooseImage: function (e) {
|
||||||
|
k(
|
||||||
|
"chooseImage",
|
||||||
|
{ scene: "1|2", count: e.count || 9, sizeType: e.sizeType || ["original", "compressed"], sourceType: e.sourceType || ["album", "camera"] },
|
||||||
|
((e._complete = function (e) {
|
||||||
|
if (l) {
|
||||||
|
var n = e.localIds
|
||||||
|
try {
|
||||||
|
n && (e.localIds = JSON.parse(n))
|
||||||
|
} catch (e) {}
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
e)
|
||||||
|
)
|
||||||
|
},
|
||||||
|
getLocation: function (e) {},
|
||||||
|
getLocation: function (e) {
|
||||||
|
;(e = e || {}),
|
||||||
|
k(
|
||||||
|
a.getLocation,
|
||||||
|
{ type: e.type || "wgs84" },
|
||||||
|
((e._complete = function (e) {
|
||||||
|
delete e.type
|
||||||
|
}),
|
||||||
|
e)
|
||||||
|
)
|
||||||
|
},
|
||||||
|
previewImage: function (e) {
|
||||||
|
k(a.previewImage, { current: e.current, urls: e.urls }, e)
|
||||||
|
},
|
||||||
|
uploadImage: function (e) {
|
||||||
|
k("uploadImage", { localId: e.localId, isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1 }, e)
|
||||||
|
},
|
||||||
|
downloadImage: function (e) {
|
||||||
|
k("downloadImage", { serverId: e.serverId, isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1 }, e)
|
||||||
|
},
|
||||||
|
getLocalImgData: function (e) {
|
||||||
|
!1 === y
|
||||||
|
? ((y = !0),
|
||||||
|
k(
|
||||||
|
"getLocalImgData",
|
||||||
|
{ localId: e.localId },
|
||||||
|
((e._complete = function (e) {
|
||||||
|
var n
|
||||||
|
;(y = !1), 0 < v.length && ((n = v.shift()), wx.getLocalImgData(n))
|
||||||
|
}),
|
||||||
|
e)
|
||||||
|
))
|
||||||
|
: v.push(e)
|
||||||
|
},
|
||||||
|
getNetworkType: function (e) {
|
||||||
|
k(
|
||||||
|
"getNetworkType",
|
||||||
|
{},
|
||||||
|
((e._complete = function (e) {
|
||||||
|
var n = e,
|
||||||
|
e = n.errMsg,
|
||||||
|
i = ((n.errMsg = "getNetworkType:ok"), n.subtype)
|
||||||
|
if ((delete n.subtype, i)) n.networkType = i
|
||||||
|
else {
|
||||||
|
var i = e.indexOf(":"),
|
||||||
|
t = e.substring(i + 1)
|
||||||
|
switch (t) {
|
||||||
|
case "wifi":
|
||||||
|
case "edge":
|
||||||
|
case "wwan":
|
||||||
|
n.networkType = t
|
||||||
|
break
|
||||||
|
default:
|
||||||
|
n.errMsg = "getNetworkType:fail"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
e)
|
||||||
|
)
|
||||||
|
},
|
||||||
|
openLocation: function (e) {
|
||||||
|
k("openLocation", { latitude: e.latitude, longitude: e.longitude, name: e.name || "", address: e.address || "", scale: e.scale || 28, infoUrl: e.infoUrl || "" }, e)
|
||||||
|
},
|
||||||
|
hideOptionMenu: function (e) {
|
||||||
|
k("hideOptionMenu", {}, e)
|
||||||
|
},
|
||||||
|
showOptionMenu: function (e) {
|
||||||
|
k("showOptionMenu", {}, e)
|
||||||
|
},
|
||||||
|
closeWindow: function (e) {
|
||||||
|
k("closeWindow", {}, (e = e || {}))
|
||||||
|
},
|
||||||
|
hideMenuItems: function (e) {
|
||||||
|
k("hideMenuItems", { menuList: e.menuList }, e)
|
||||||
|
},
|
||||||
|
showMenuItems: function (e) {
|
||||||
|
k("showMenuItems", { menuList: e.menuList }, e)
|
||||||
|
},
|
||||||
|
hideAllNonBaseMenuItem: function (e) {
|
||||||
|
k("hideAllNonBaseMenuItem", {}, e)
|
||||||
|
},
|
||||||
|
showAllNonBaseMenuItem: function (e) {
|
||||||
|
k("showAllNonBaseMenuItem", {}, e)
|
||||||
|
},
|
||||||
|
scanQRCode: function (e) {
|
||||||
|
k(
|
||||||
|
"scanQRCode",
|
||||||
|
{ needResult: (e = e || {}).needResult || 0, scanType: e.scanType || ["qrCode", "barCode"] },
|
||||||
|
((e._complete = function (e) {
|
||||||
|
var n
|
||||||
|
u && (n = e.resultStr) && ((n = JSON.parse(n)), (e.resultStr = n && n.scan_code && n.scan_code.scan_result))
|
||||||
|
}),
|
||||||
|
e)
|
||||||
|
)
|
||||||
|
},
|
||||||
|
openAddress: function (e) {
|
||||||
|
k(
|
||||||
|
a.openAddress,
|
||||||
|
{},
|
||||||
|
((e._complete = function (e) {
|
||||||
|
;((e = e).postalCode = e.addressPostalCode), delete e.addressPostalCode, (e.provinceName = e.proviceFirstStageName), delete e.proviceFirstStageName, (e.cityName = e.addressCitySecondStageName), delete e.addressCitySecondStageName, (e.countryName = e.addressCountiesThirdStageName), delete e.addressCountiesThirdStageName, (e.detailInfo = e.addressDetailInfo), delete e.addressDetailInfo
|
||||||
|
}),
|
||||||
|
e)
|
||||||
|
)
|
||||||
|
},
|
||||||
|
openProductSpecificView: function (e) {
|
||||||
|
k(a.openProductSpecificView, { pid: e.productId, view_type: e.viewType || 0, ext_info: e.extInfo }, e)
|
||||||
|
},
|
||||||
|
addCard: function (e) {
|
||||||
|
for (var n = e.cardList, i = [], t = 0, o = n.length; t < o; ++t) {
|
||||||
|
var r = n[t],
|
||||||
|
r = { card_id: r.cardId, card_ext: r.cardExt }
|
||||||
|
i.push(r)
|
||||||
|
}
|
||||||
|
k(
|
||||||
|
a.addCard,
|
||||||
|
{ card_list: i },
|
||||||
|
((e._complete = function (e) {
|
||||||
|
if ((n = e.card_list)) {
|
||||||
|
for (var n, i = 0, t = (n = JSON.parse(n)).length; i < t; ++i) {
|
||||||
|
var o = n[i]
|
||||||
|
;(o.cardId = o.card_id), (o.cardExt = o.card_ext), (o.isSuccess = !!o.is_succ), delete o.card_id, delete o.card_ext, delete o.is_succ
|
||||||
|
}
|
||||||
|
;(e.cardList = n), delete e.card_list
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
e)
|
||||||
|
)
|
||||||
|
},
|
||||||
|
chooseCard: function (e) {
|
||||||
|
k(
|
||||||
|
"chooseCard",
|
||||||
|
{ app_id: h.appId, location_id: e.shopId || "", sign_type: e.signType || "SHA1", card_id: e.cardId || "", card_type: e.cardType || "", card_sign: e.cardSign, time_stamp: e.timestamp + "", nonce_str: e.nonceStr },
|
||||||
|
((e._complete = function (e) {
|
||||||
|
;(e.cardList = e.choose_card_info), delete e.choose_card_info
|
||||||
|
}),
|
||||||
|
e)
|
||||||
|
)
|
||||||
|
},
|
||||||
|
openCard: function (e) {
|
||||||
|
for (var n = e.cardList, i = [], t = 0, o = n.length; t < o; ++t) {
|
||||||
|
var r = n[t],
|
||||||
|
r = { card_id: r.cardId, code: r.code }
|
||||||
|
i.push(r)
|
||||||
|
}
|
||||||
|
k(a.openCard, { card_list: i }, e)
|
||||||
|
},
|
||||||
|
consumeAndShareCard: function (e) {
|
||||||
|
k(a.consumeAndShareCard, { consumedCardId: e.cardId, consumedCode: e.code }, e)
|
||||||
|
},
|
||||||
|
chooseWXPay: function (e) {
|
||||||
|
k(a.chooseWXPay, x(e), e)
|
||||||
|
},
|
||||||
|
openEnterpriseRedPacket: function (e) {
|
||||||
|
k(a.openEnterpriseRedPacket, x(e), e)
|
||||||
|
},
|
||||||
|
startSearchBeacons: function (e) {
|
||||||
|
k(a.startSearchBeacons, { ticket: e.ticket }, e)
|
||||||
|
},
|
||||||
|
stopSearchBeacons: function (e) {
|
||||||
|
k(a.stopSearchBeacons, {}, e)
|
||||||
|
},
|
||||||
|
onSearchBeacons: function (e) {
|
||||||
|
M(a.onSearchBeacons, e)
|
||||||
|
},
|
||||||
|
openEnterpriseChat: function (e) {
|
||||||
|
k("openEnterpriseChat", { useridlist: e.userIds, chatname: e.groupName }, e)
|
||||||
|
},
|
||||||
|
launchMiniProgram: function (e) {
|
||||||
|
k(
|
||||||
|
"launchMiniProgram",
|
||||||
|
{
|
||||||
|
targetAppId: e.targetAppId,
|
||||||
|
path: (e => {
|
||||||
|
var n
|
||||||
|
if ("string" == typeof e && 0 < e.length) return (n = e.split("?")[0]), (n += ".html"), void 0 !== (e = e.split("?")[1]) ? n + "?" + e : n
|
||||||
|
})(e.path),
|
||||||
|
envVersion: e.envVersion,
|
||||||
|
},
|
||||||
|
e
|
||||||
|
)
|
||||||
|
},
|
||||||
|
miniProgram: {
|
||||||
|
navigateBack: function (e) {
|
||||||
|
;(e = e || {}),
|
||||||
|
B(function () {
|
||||||
|
k("invokeMiniProgramAPI", { name: "navigateBack", arg: { delta: e.delta || 1 } }, e)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
navigateTo: function (e) {
|
||||||
|
B(function () {
|
||||||
|
k("invokeMiniProgramAPI", { name: "navigateTo", arg: { url: e.url } }, e)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
redirectTo: function (e) {
|
||||||
|
B(function () {
|
||||||
|
k("invokeMiniProgramAPI", { name: "redirectTo", arg: { url: e.url } }, e)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
switchTab: function (e) {
|
||||||
|
B(function () {
|
||||||
|
k("invokeMiniProgramAPI", { name: "switchTab", arg: { url: e.url } }, e)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
reLaunch: function (e) {
|
||||||
|
B(function () {
|
||||||
|
k("invokeMiniProgramAPI", { name: "reLaunch", arg: { url: e.url } }, e)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
postMessage: function (e) {
|
||||||
|
B(function () {
|
||||||
|
k("invokeMiniProgramAPI", { name: "postMessage", arg: e.data || {} }, e)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getEnv: function (e) {
|
||||||
|
B(function () {
|
||||||
|
e({ miniprogram: "miniprogram" === r.__wxjs_environment })
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
(w = 1),
|
||||||
|
(T = {}),
|
||||||
|
n.addEventListener(
|
||||||
|
"error",
|
||||||
|
function (e) {
|
||||||
|
var n, i, t
|
||||||
|
l ||
|
||||||
|
((t = (n = e.target).tagName), (i = n.src), "IMG" != t && "VIDEO" != t && "AUDIO" != t && "SOURCE" != t) ||
|
||||||
|
(-1 != i.indexOf("wxlocalresource://") &&
|
||||||
|
(e.preventDefault(),
|
||||||
|
e.stopPropagation(),
|
||||||
|
(t = n["wx-id"]) || ((t = w++), (n["wx-id"] = t)),
|
||||||
|
T[t] ||
|
||||||
|
((T[t] = !0),
|
||||||
|
wx.ready(function () {
|
||||||
|
wx.getLocalImgData({
|
||||||
|
localId: i,
|
||||||
|
success: function (e) {
|
||||||
|
n.src = e.localData
|
||||||
|
},
|
||||||
|
})
|
||||||
|
}))))
|
||||||
|
},
|
||||||
|
!0
|
||||||
|
),
|
||||||
|
n.addEventListener(
|
||||||
|
"load",
|
||||||
|
function (e) {
|
||||||
|
var n
|
||||||
|
l || ((n = (e = e.target).tagName), "IMG" != n && "VIDEO" != n && "AUDIO" != n && "SOURCE" != n) || ((n = e["wx-id"]) && (T[n] = !1))
|
||||||
|
},
|
||||||
|
!0
|
||||||
|
),
|
||||||
|
e && (r.wx = r.jWeixin = _),
|
||||||
|
_
|
||||||
|
)
|
||||||
|
function k(n, e, i) {
|
||||||
|
r.WeixinJSBridge
|
||||||
|
? WeixinJSBridge.invoke(n, P(e), function (e) {
|
||||||
|
A(n, e, i)
|
||||||
|
})
|
||||||
|
: C(n, i)
|
||||||
|
}
|
||||||
|
function M(n, i, t) {
|
||||||
|
r.WeixinJSBridge
|
||||||
|
? WeixinJSBridge.on(n, function (e) {
|
||||||
|
t && t.trigger && t.trigger(e), A(n, e, i)
|
||||||
|
})
|
||||||
|
: C(n, t || i)
|
||||||
|
}
|
||||||
|
function P(e) {
|
||||||
|
return ((e = e || {}).appId = h.appId), (e.verifyAppId = h.appId), (e.verifySignType = "sha1"), (e.verifyTimestamp = h.timestamp + ""), (e.verifyNonceStr = h.nonceStr), (e.verifySignature = h.signature), e
|
||||||
|
}
|
||||||
|
function x(e) {
|
||||||
|
return { timeStamp: e.timestamp + "", nonceStr: e.nonceStr, package: e.package, paySign: e.paySign, signType: e.signType || "SHA1" }
|
||||||
|
}
|
||||||
|
function A(e, n, i) {
|
||||||
|
"openEnterpriseChat" == e && (n.errCode = n.err_code), delete n.err_code, delete n.err_desc, delete n.err_detail
|
||||||
|
var t = n.errMsg,
|
||||||
|
e =
|
||||||
|
(t ||
|
||||||
|
((t = n.err_msg),
|
||||||
|
delete n.err_msg,
|
||||||
|
(t = ((e, n) => {
|
||||||
|
var i,
|
||||||
|
t = c[e]
|
||||||
|
return t && (e = t), (t = "ok"), n && ((i = n.indexOf(":")), ("access denied" != (t = (t = (t = -1 != (t = -1 != (t = "failed" == (t = "confirm" == (t = n.substring(i + 1)) ? "ok" : t) ? "fail" : t).indexOf("failed_") ? t.substring(7) : t).indexOf("fail_") ? t.substring(5) : t).replace(/_/g, " ")).toLowerCase()) && "no permission to execute" != t) || (t = "permission denied"), "" == (t = "config" == e && "function not exist" == t ? "ok" : t)) && (t = "fail"), (n = e + ":" + t)
|
||||||
|
})(e, t)),
|
||||||
|
(n.errMsg = t)),
|
||||||
|
(i = i || {})._complete && (i._complete(n), delete i._complete),
|
||||||
|
(t = n.errMsg || ""),
|
||||||
|
h.debug && !i.isInnerInvoke && alert(JSON.stringify(n)),
|
||||||
|
t.indexOf(":"))
|
||||||
|
switch (t.substring(e + 1)) {
|
||||||
|
case "ok":
|
||||||
|
i.success && i.success(n)
|
||||||
|
break
|
||||||
|
case "cancel":
|
||||||
|
i.cancel && i.cancel(n)
|
||||||
|
break
|
||||||
|
default:
|
||||||
|
i.fail && i.fail(n)
|
||||||
|
}
|
||||||
|
i.complete && i.complete(n)
|
||||||
|
}
|
||||||
|
function V(e) {
|
||||||
|
if (e) {
|
||||||
|
for (var n = 0, i = e.length; n < i; ++n) {
|
||||||
|
var t = e[n],
|
||||||
|
t = a[t]
|
||||||
|
t && (e[n] = t)
|
||||||
|
}
|
||||||
|
return e
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function C(e, n) {
|
||||||
|
var i
|
||||||
|
!h.debug || (n && n.isInnerInvoke) || ((i = c[e]) && (e = i), n && n._complete && delete n._complete, console.log('"' + e + '",', n || ""))
|
||||||
|
}
|
||||||
|
function L() {
|
||||||
|
return new Date().getTime()
|
||||||
|
}
|
||||||
|
function B(e) {
|
||||||
|
o && (r.WeixinJSBridge ? e() : n.addEventListener && n.addEventListener("WeixinJSBridgeReady", e, !1))
|
||||||
|
}
|
||||||
|
})
|
||||||
308
src/App.vue
@@ -1,139 +1,299 @@
|
|||||||
|
<!-- node 版本是18.20.0 -->
|
||||||
<template>
|
<template>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<router-view />
|
<router-view />
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
<script src="../public/js/jweixin-1.3.2.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "App",
|
name: "App",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: null,
|
loading: null,
|
||||||
}
|
pathname: "",
|
||||||
},
|
parameterObject: {},
|
||||||
watch:{
|
isPc: false,
|
||||||
|
socketTask: null,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
// "$route": {
|
||||||
|
// handler(to, from) {
|
||||||
|
// console.log("1111111");
|
||||||
|
// //避免首次获取不到window._czc
|
||||||
|
// if (window._czc) {
|
||||||
|
// let location = window.location
|
||||||
|
// let contentUrl = location.pathname + location.hash
|
||||||
|
// let refererUrl = "/"
|
||||||
|
|
||||||
},
|
// window._czc.push(["_trackPageview", contentUrl, refererUrl])
|
||||||
|
// window._czc.push(["_setAutoPageview", false])
|
||||||
|
// }
|
||||||
|
// if (window._hmt) {
|
||||||
|
// if (to["path"]) window._hmt.push(["_trackPageview", to["fullPath"]])
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
// // immediate: true, // 首次进入页面即执行
|
||||||
|
// },
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
// console.log(new Date());
|
||||||
|
console.log("初始化");
|
||||||
|
|
||||||
mounted() {
|
this.$store.dispatch("fetchHistoricalSearch") // 获取历史搜索记录
|
||||||
this.$store.dispatch('fetchHistoricalSearch') // 获取历史搜索记录
|
this.$store.dispatch("getAllForum", this) // 获取全部板块
|
||||||
this.$store.dispatch('getAllForum', this) // 获取全部板块
|
|
||||||
// this.$store.dispatch('getUserInfo', this) /// 获取用户信息
|
|
||||||
},
|
|
||||||
|
|
||||||
|
// this.isJudgePc()
|
||||||
|
// this.$skipUrl("gggg", false)
|
||||||
|
// setTimeout(() => {
|
||||||
|
// // this.hasMiucmsSessionCookie()
|
||||||
|
// // this.useSocket
|
||||||
|
// console.log(this.$store.state['user']);
|
||||||
|
// }, 1000)
|
||||||
|
|
||||||
|
let timer = setInterval(() => {
|
||||||
|
if (Object.keys(this.$store.state.user).length !== 0) {
|
||||||
|
this.useSocket()
|
||||||
|
clearInterval(timer)
|
||||||
|
}
|
||||||
|
}, 1000)
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
// 开启socket
|
||||||
|
useSocket() {
|
||||||
|
let token = this.getMiucmsSessionCookie() || ""
|
||||||
|
this.socketTask = new WebSocket(`wss://socket.gter.net?token=${token}`)
|
||||||
|
this.socketTask.onopen = () => {
|
||||||
|
let user = this.$store.state.user || {}
|
||||||
|
if (user && token) {
|
||||||
|
this.socketTask.send(
|
||||||
|
JSON.stringify({
|
||||||
|
type: "bind",
|
||||||
|
data: {
|
||||||
|
token,
|
||||||
|
uid: user.uid || 0,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
)
|
||||||
|
}
|
||||||
|
setTimeout(() => this.timedTransmission(), 50000)
|
||||||
|
}
|
||||||
|
this.socketTask.onclose = () => {
|
||||||
|
console.log("socket关闭了", new Date())
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// 定时发送
|
||||||
|
timedTransmission() {
|
||||||
|
if (this.socketTask.readyState != 1) return
|
||||||
|
this.socketTask.send(JSON.stringify({type: "ping"}))
|
||||||
|
setTimeout(() => this.timedTransmission(), 50000)
|
||||||
|
},
|
||||||
|
|
||||||
|
getMiucmsSessionCookie() {
|
||||||
|
let cookies = document.cookie.split(";")
|
||||||
|
for (let i = 0; i < cookies.length; i++) {
|
||||||
|
let cookie = cookies[i].split("=")
|
||||||
|
if (cookie[0].trim() === "miucms_session") {
|
||||||
|
return cookie[1]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null
|
||||||
|
},
|
||||||
|
isJudgePc() {
|
||||||
|
const userAgentInfo = navigator.userAgent
|
||||||
|
const Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]
|
||||||
|
let flag = true
|
||||||
|
for (let i = 0; i < Agents.length; i++) {
|
||||||
|
if (userAgentInfo.indexOf(Agents[i]) > 0) {
|
||||||
|
flag = false
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (flag) {
|
||||||
|
console.log("flag", flag)
|
||||||
|
let pathname = window.location.pathname
|
||||||
|
|
||||||
|
const queryString = window.location.search
|
||||||
|
const parameters = queryString.substring(1)
|
||||||
|
let parameterObject = Object.fromEntries(new URLSearchParams(parameters))
|
||||||
|
this.pathname = pathname
|
||||||
|
this.parameterObject = parameterObject
|
||||||
|
|
||||||
|
if (this.pathname.indexOf("allSections") != -1 && this.parameterObject["fid"]) {
|
||||||
|
this.handleNeedAllSkipPc()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (this.pathname.indexOf("userIndex") != -1) {
|
||||||
|
this.handleNeedInfo()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
let url = ""
|
||||||
|
|
||||||
|
if (pathname.indexOf("detailIndex") != -1) url = `https://bbs.gter.net/thread-${parameterObject["tid"]}-${parameterObject["page"] || 1}-1.html`
|
||||||
|
if (pathname.indexOf("searchResult") != -1) url = `https://search.gter.net/index.html?type=forum${parameterObject["kw"] ? `&kw=${parameterObject["kw"]}` : ""}`
|
||||||
|
if (pathname.indexOf("allSections") != -1 && !parameterObject["fid"]) url = `https://bbs.gter.net/forum.php`
|
||||||
|
if (pathname.indexOf("recommend") != -1) url = `https://bbs.gter.net/forum.php`
|
||||||
|
if (pathname.indexOf("collect") != -1) url = `https://bbs.gter.net/forum.php`
|
||||||
|
if (pathname == "/" || pathname == "" || !pathname) url = `https://bbs.gter.net/forum.php`
|
||||||
|
|
||||||
|
if (url) this.$skipUrl(url, false)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// 处理需要user信息的跳转PC端
|
||||||
|
handleNeedInfo() {
|
||||||
|
let user = this.$store.state.user || {}
|
||||||
|
let url = ""
|
||||||
|
if (JSON.stringify(user) != "{}") {
|
||||||
|
url = `https://bbs.gter.net/home.php?mod=space&uid=${user.uin}`
|
||||||
|
this.$skipUrl(url, false)
|
||||||
|
} else {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.handleNeedInfo()
|
||||||
|
}, 300)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// 处理需要全部板块的跳转PC端
|
||||||
|
handleNeedAllSkipPc() {
|
||||||
|
let allForumList = this.$store.state.allForumList || []
|
||||||
|
|
||||||
|
let url = ""
|
||||||
|
let fid = this.parameterObject["fid"] || null
|
||||||
|
|
||||||
|
if (allForumList.length != 0) {
|
||||||
|
allForumList.forEach((element, index) => {
|
||||||
|
if (element.fid == fid) url = `https://bbs.gter.net/forum.php?gid=${element.fid}`
|
||||||
|
element.data.forEach((el, i) => {
|
||||||
|
if (el.fid == fid) url = `https://bbs.gter.net/forum-${el.fid}-${this.parameterObject["page"] || 1}.html`
|
||||||
|
})
|
||||||
|
})
|
||||||
|
this.$skipUrl(url, false)
|
||||||
|
} else {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.handleNeedAllSkipPc()
|
||||||
|
}, 300)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import 'assets/css/normalize.css';
|
@import "assets/css/normalize.css";
|
||||||
@import 'assets/css/public.scss'; //帖子内容样式
|
@import "assets/css/public.scss"; //帖子内容样式
|
||||||
|
|
||||||
#app {
|
#app {
|
||||||
font-family: Avenir, Helvetica, Arial, sans-serif;
|
font-family: Avenir, Helvetica, Arial, sans-serif;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
// overflow: hidden;
|
// overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
|
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
// padding: 0 0.35rem;
|
// padding: 0 0.35rem;
|
||||||
background-color: rgba(246, 246, 246, 1);
|
background-color: rgba(246, 246, 246, 1);
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flexflex {
|
.flexflex {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flexcenter {
|
.flexcenter {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flexacenter {
|
.flexacenter {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flexcolumn {
|
.flexcolumn {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex1 {
|
.flex1 {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-message {
|
.el-message {
|
||||||
min-width: 7rem !important;
|
min-width: 7rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 文字一行显示
|
// 文字一行显示
|
||||||
.one-line {
|
.one-line {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
display: -moz-box;
|
display: -moz-box;
|
||||||
-moz-box-orient: vertical;
|
-moz-box-orient: vertical;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 文字两行显示
|
// 文字两行显示
|
||||||
.two-lines {
|
.two-lines {
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 2;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 文章三行显示
|
// 文章三行显示
|
||||||
.three-lines {
|
.three-lines {
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
-webkit-line-clamp: 3;
|
-webkit-line-clamp: 3;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 阴影
|
// 阴影
|
||||||
.shadow {
|
.shadow {
|
||||||
-webkit-box-shadow: 0 0 .3rem rgba(0, 0, 0, .1);
|
-webkit-box-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.1);
|
||||||
box-shadow: 0 0 .3rem rgba(0, 0, 0, .1);
|
box-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 弹窗公共类 蒙版
|
// 弹窗公共类 蒙版
|
||||||
.pop-box {
|
.pop-box {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
background-color: rgba(0, 0, 0, 0.64);
|
background-color: rgba(0, 0, 0, 0.64);
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 清除 input 和 textarea 的默认样式
|
// 清除 input 和 textarea 的默认样式
|
||||||
input,
|
input,
|
||||||
textarea {
|
textarea {
|
||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
resize: none;
|
resize: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// 热门版块标签
|
// 热门版块标签
|
||||||
.hot-box {
|
.hot-box {
|
||||||
padding: .34rem 0 0.3rem;
|
padding: .34rem 0 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@@ -12,9 +12,9 @@
|
|||||||
font-size: 0.3rem;
|
font-size: 0.3rem;
|
||||||
margin: 0 .16rem .24rem 0;
|
margin: 0 .16rem .24rem 0;
|
||||||
padding: 0 0.15rem;
|
padding: 0 0.15rem;
|
||||||
height: 0.72rem;
|
|
||||||
line-height: 0.72rem;
|
line-height: 0.72rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
word-break: break-word;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
border: 0.02rem solid #62B1FF;
|
border: 0.02rem solid #62B1FF;
|
||||||
@@ -93,12 +93,18 @@ section {
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.bottom-box {
|
.bottom-box {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
|
&:first-of-type {
|
||||||
|
margin-right: .2rem;
|
||||||
|
}
|
||||||
|
|
||||||
.icon-head {
|
.icon-head {
|
||||||
width: 0.64rem;
|
width: 0.64rem;
|
||||||
height: 0.64rem;
|
height: 0.64rem;
|
||||||
@@ -108,16 +114,15 @@ section {
|
|||||||
.bottom-name {
|
.bottom-name {
|
||||||
margin-left: 0.15rem;
|
margin-left: 0.15rem;
|
||||||
font-size: 0.32rem;
|
font-size: 0.32rem;
|
||||||
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bottom-right {
|
.bottom-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
// padding-left: 0.25rem;
|
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
// margin-left: 0.133333rem;
|
|
||||||
margin-left: .4rem;
|
margin-left: .4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -161,7 +166,6 @@ section {
|
|||||||
transform: rotate(45deg);
|
transform: rotate(45deg);
|
||||||
transform-origin: bottom;
|
transform-origin: bottom;
|
||||||
margin-top: 0.05rem;
|
margin-top: 0.05rem;
|
||||||
// margin-top: 0.01rem;
|
|
||||||
margin-left: 0.25rem;
|
margin-left: 0.25rem;
|
||||||
width: 0.9rem;
|
width: 0.9rem;
|
||||||
font-size: 0.3rem;
|
font-size: 0.3rem;
|
||||||
@@ -174,15 +178,10 @@ section {
|
|||||||
|
|
||||||
// 广告
|
// 广告
|
||||||
.banner-box {
|
.banner-box {
|
||||||
|
margin-bottom: 0.32rem;
|
||||||
|
width: 100%;
|
||||||
|
display: block;
|
||||||
border-radius: 0.32rem;
|
border-radius: 0.32rem;
|
||||||
margin-bottom: 0.2rem;
|
|
||||||
|
|
||||||
// 广告图
|
|
||||||
.banner {
|
|
||||||
width: 100%;
|
|
||||||
display: block;
|
|
||||||
border-radius: 0.32rem;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 分页
|
// 分页
|
||||||
@@ -249,7 +248,7 @@ section {
|
|||||||
.el-pagination.is-background.el-pagination--small .btn-prev,
|
.el-pagination.is-background.el-pagination--small .btn-prev,
|
||||||
.el-pagination.is-background.el-pagination--small .el-pager li {
|
.el-pagination.is-background.el-pagination--small .el-pager li {
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
9
src/assets/emojiList.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"{:1_1:}": "https://bbs.gter.net/static/image/smiley/default/smile.gif",
|
||||||
|
":(": "https://bbs.gter.net/static/image/smiley/default/frown.gif",
|
||||||
|
":@": "https://bbs.gter.net/static/image/smiley/default/default.gif",
|
||||||
|
":O": "https://bbs.gter.net/static/image/smiley/default/shocked.gif",
|
||||||
|
":p": "https://bbs.gter.net/static/image/smiley/default/frown.gif",
|
||||||
|
":(": "https://bbs.gter.net/static/image/smiley/default/frown.gif",
|
||||||
|
":(": "https://bbs.gter.net/static/image/smiley/default/frown.gif"
|
||||||
|
}
|
||||||