Compare commits
No commits in common. "ef1251c790c3db14ab4209117f84ab476c04abc4" and "cf5fd216fecb430af2097244ee009ab9c86248b5" have entirely different histories.
ef1251c790
...
cf5fd216fe
@ -24,24 +24,6 @@
|
|||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
>新增</el-button>
|
>新增</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
plain
|
|
||||||
icon="el-icon-plus"
|
|
||||||
size="mini"
|
|
||||||
@click="shareToTwitter"
|
|
||||||
>Twitter</el-button>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="1.5">
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
plain
|
|
||||||
icon="el-icon-plus"
|
|
||||||
size="mini"
|
|
||||||
@click="shareToFacebook"
|
|
||||||
>Facebook</el-button>
|
|
||||||
</el-col>
|
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-table
|
<el-table
|
||||||
@ -146,23 +128,6 @@ export default {
|
|||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
shareToTwitter(){
|
|
||||||
const text = encodeURIComponent("SINOTRUK HOWO Dump Truck Manufacturers and Factory - Price - SINOTRUCK ");
|
|
||||||
const url = encodeURIComponent("https://www.cdtruck.com/truck/dump-truck/china-sinotruk-howo-19m3-6x4-cheap-336hp-10.html");
|
|
||||||
const hashtags = "example,sharing";
|
|
||||||
const twitterUrl = `https://twitter.com/intent/tweet?text=${text}&url=${url}&hashtags=${hashtags}`;
|
|
||||||
window.open(twitterUrl, "_blank");
|
|
||||||
},
|
|
||||||
|
|
||||||
shareToFacebook(){
|
|
||||||
const text = encodeURIComponent("SINOTRUK HOWO Dump Truck Manufacturers and Factory - Price - SINOTRUCK ");
|
|
||||||
const url = encodeURIComponent("https://www.cdtruck.com/truck/dump-truck/china-sinotruk-howo-19m3-6x4-cheap-336hp-10.html");
|
|
||||||
const hashtags = "example,sharing";
|
|
||||||
const facebookUrl = `https://www.facebook.com/sharer.php?u=${url}`;
|
|
||||||
window.open(facebookUrl, "_blank");
|
|
||||||
},
|
|
||||||
|
|
||||||
/** 查询网站栏目列表 */
|
/** 查询网站栏目列表 */
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user