|
@@ -3,6 +3,7 @@
|
|
|
import {Divider} from 'vux'
|
|
|
import Api from "../../lib/api.js"
|
|
|
import WechatShare from '../../wechat/WechatShare'
|
|
|
+ import {base64} from 'vux'
|
|
|
|
|
|
|
|
|
export default
|
|
@@ -10,15 +11,15 @@
|
|
|
created() {
|
|
|
this.getNewData();
|
|
|
let isSpecial = this.$route.query.is_special;
|
|
|
- let title = this.$route.query.title;
|
|
|
+ let title = base64.decode(this.$route.query.title);
|
|
|
+ let special_id = this.$route.query["special_id"];
|
|
|
let shareMsg;
|
|
|
- if (isSpecial)
|
|
|
- {
|
|
|
- let host = window.location.protocol + '//' + window.location.host;
|
|
|
+ let host = window.location.protocol + '//' + window.location.host;
|
|
|
+ if (isSpecial) {
|
|
|
shareMsg = {
|
|
|
title: title,
|
|
|
desc: '丽人丽妆 内买商城',
|
|
|
- link: host + '/mobile/index.php?act=mshop&op=special&special_id=' + this.special_id + "&title=" + encodeURIComponent(title),
|
|
|
+ link: host + '/mobile/index.php?act=mshop&op=special&special_id=' + special_id + "&title=" + this.$route.query.title,
|
|
|
img_url: host + '/data/resource/mobile/defimg/panda.jpeg'
|
|
|
};
|
|
|
} else {
|
|
@@ -30,7 +31,7 @@
|
|
|
};
|
|
|
|
|
|
}
|
|
|
- let WxShare = Api.create_share(shareMsg,Api.sign_url(window.location.href));
|
|
|
+ let WxShare = Api.create_share(shareMsg);
|
|
|
},
|
|
|
data(){
|
|
|
return {
|
|
@@ -60,9 +61,9 @@
|
|
|
params.hot_id = this.$route.query["hot_id"];
|
|
|
params.brand_id = this.$route.query["brand_id"];
|
|
|
params.keyword = this.$route.query["keyword"];
|
|
|
- let title = this.$route.query["title"];
|
|
|
+ let title = base64.decode(this.$route.query["title"]);
|
|
|
if (params.is_special == false || params.is_special == 'false') {
|
|
|
- this.url = Api.host() + '/mobile/index.php?act=search&op=index&client_type=ajax&title='+title;
|
|
|
+ this.url = Api.host() + '/mobile/index.php?act=search&op=index&client_type=ajax&title=' + title;
|
|
|
for (let i in params) {
|
|
|
if (params[i] !== 'undefined') {
|
|
|
this.url += "&" + i + '=' + params[i] + "";
|
|
@@ -83,7 +84,7 @@
|
|
|
}
|
|
|
],
|
|
|
domProps: {
|
|
|
- innerHTML: this.$route.query["title"] || this.$route.query["keyword"]
|
|
|
+ innerHTML: base64.decode(this.$route.query["title"]) || this.$route.query["keyword"]
|
|
|
}
|
|
|
});
|
|
|
let special_id = this.$route.query["special_id"];
|