|
|
@@ -598,6 +598,7 @@ import ProductWindow from "@components/ProductWindow";
|
|
|
import StorePoster from "@components/StorePoster";
|
|
|
import ShareInfo from "@components/ShareInfo";
|
|
|
import debounce from "lodash.debounce";
|
|
|
+import WeChat from "@libs/pay"
|
|
|
import { goShopDetail } from "@libs/order";
|
|
|
import {
|
|
|
getProductDetail,
|
|
|
@@ -894,6 +895,21 @@ export default {
|
|
|
this.posters = false;
|
|
|
console.log("todo wechat friend");
|
|
|
// todo wechat send to friend
|
|
|
+
|
|
|
+ var data = this.storeInfo;
|
|
|
+ var message = {
|
|
|
+ title: data.store_name,
|
|
|
+ description: data.store_info,
|
|
|
+ thumb: data.image,
|
|
|
+ media: {
|
|
|
+ type: Wechat.Type.WEBPAGE,
|
|
|
+ webpageUrl: "http://www.shotshock.shop/"
|
|
|
+ }
|
|
|
+ };
|
|
|
+ WeChat.shareLink(message, function(success) {
|
|
|
+ if(success) console.log("share success !");
|
|
|
+ else console.log("share falied !");
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
shareCode: function(value) {
|
|
|
@@ -909,6 +925,21 @@ export default {
|
|
|
// this.posterImageStatus = !this.posterImageStatus;
|
|
|
this.posters = false;
|
|
|
console.log("todo wechat friends");
|
|
|
+
|
|
|
+ var data = this.storeInfo;
|
|
|
+ var message = {
|
|
|
+ title: data.store_name,
|
|
|
+ description: data.store_info,
|
|
|
+ thumb: data.image,
|
|
|
+ media: {
|
|
|
+ type: Wechat.Type.WEBPAGE,
|
|
|
+ webpageUrl: "http://www.shotshock.shop"
|
|
|
+ }
|
|
|
+ };
|
|
|
+ WeChat.shareLink(message, function(success) {
|
|
|
+ if(success) console.log("share success !");
|
|
|
+ else console.log("share falied !");
|
|
|
+ }, false);
|
|
|
},
|
|
|
//产品详情接口;
|
|
|
productCon: function() {
|