Commit 35810f1d authored by liwei's avatar liwei

liwei

parents 3765f84b f769114c
......@@ -11,4 +11,4 @@
position: fixed;
background: #f4f4f4;
}
/* html{font-size: 1px;} */</style><link href=static/css/app.91d2eea1dfca80994de99748f577fac4.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script></script><script type=text/javascript src=static/js/manifest.9713f03f6e99be1851fb.js></script><script type=text/javascript src=static/js/vendor.a46051d06c394744be78.js></script><script type=text/javascript src=static/js/app.97353bbe6dee2c9beabe.js></script></body></html>
\ No newline at end of file
/* html{font-size: 1px;} */</style><link href=static/css/app.91d2eea1dfca80994de99748f577fac4.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script></script><script type=text/javascript src=static/js/manifest.b530d34480b436013ce7.js></script><script type=text/javascript src=static/js/vendor.a46051d06c394744be78.js></script><script type=text/javascript src=static/js/app.97353bbe6dee2c9beabe.js></script></body></html>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,n,r){for(var t,d,o,i=0,u=[];i<f.length;i++)d=f[i],a[d]&&u.push(a[d][0]),a[d]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);for(c&&c(f,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)o=b(b.s=r[i]);return o};var f={},a={49:0};function b(c){if(f[c])return f[c].exports;var a=f[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,b),a.l=!0,a.exports}b.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var f=new Promise(function(f,b){c=a[e]=[f,b]});c[2]=f;var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,b.nc&&r.setAttribute("nonce",b.nc),r.src=b.p+"static/js/"+e+"."+{0:"4abe9745786f805c643d",1:"4d5af33875f881fbf170",2:"5c7330fd3d0725ef74b7",3:"95c778ffc94c516ed93c",4:"512dbfc54143036436b6",5:"177b8f15e4c3cdaefc5c",6:"54c55d39e8766c1c5179",7:"cad1d8ddb8a33186c6e6",8:"e6208ee39755be230d36",9:"2140e90b482e22a33ec0",10:"e7e75f52630c3f5f7921",11:"bec5f8ff103e2df14f27",12:"930e9006116417e356cb",13:"e3807f34b8882de6d66c",14:"fa81ee4ecc5b9a82a064",15:"a5380d1ef2f6fd3e9fe4",16:"4005fa54cc59f995ef22",17:"4d4fefacb21c6a27c469",18:"bdd0e545e01a46590fab",19:"f8c23ec99fe543ba7c59",20:"c50eb69950e3b05c75ba",21:"b66faf32d39b00b402fc",22:"3e1c1e9957614840401d",23:"fd0164cb8d1b48e15d14",24:"c5cfefb13fa3c8a23cf9",25:"0ee772df2607cf771171",26:"2884e8e9df9c9c10450a",27:"6ca8044c5b7dbaea1939",28:"e9159c78646a00d7a136",29:"bc4b2e19d7bbdb26f35b",30:"0dfa7b2f351464837431",31:"58ef57a7139f62e43fba",32:"11027e4a30d5d1f15a57",33:"5b982bd46e542c17a68e",34:"52cb42be742874708eba",35:"15332b0458c1f2d684e9",36:"734179926fd497b7979d",37:"303c15b2a63b09cbb9b1",38:"6b7d629cbf5bf00d5f79",39:"b129a2de1d1687a78b98",40:"ac1fc8c242c022600367",41:"54122ed28fb233a82436",42:"acc5bf61cb041f593bfa",43:"667f1d1d775fdc8f576a",44:"8531f16a0f4a76e474b8",45:"7cf681e938528dcae32b",46:"c0b858d756b11b0bf319"}[e]+".js";var t=setTimeout(d,12e4);function d(){r.onerror=r.onload=null,clearTimeout(t);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return r.onerror=r.onload=d,n.appendChild(r),f},b.m=e,b.c=f,b.d=function(e,c,f){b.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},b.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(c,"a",c),c},b.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},b.p="",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,r,b){for(var d,t,o,i=0,u=[];i<f.length;i++)t=f[i],a[t]&&u.push(a[t][0]),a[t]=0;for(d in r)Object.prototype.hasOwnProperty.call(r,d)&&(e[d]=r[d]);for(c&&c(f,r,b);u.length;)u.shift()();if(b)for(i=0;i<b.length;i++)o=n(n.s=b[i]);return o};var f={},a={49:0};function n(c){if(f[c])return f[c].exports;var a=f[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var f=new Promise(function(f,n){c=a[e]=[f,n]});c[2]=f;var r=document.getElementsByTagName("head")[0],b=document.createElement("script");b.type="text/javascript",b.charset="utf-8",b.async=!0,b.timeout=12e4,n.nc&&b.setAttribute("nonce",n.nc),b.src=n.p+"static/js/"+e+"."+{0:"4abe9745786f805c643d",1:"4d5af33875f881fbf170",2:"5c7330fd3d0725ef74b7",3:"95c778ffc94c516ed93c",4:"512dbfc54143036436b6",5:"177b8f15e4c3cdaefc5c",6:"54c55d39e8766c1c5179",7:"cad1d8ddb8a33186c6e6",8:"e6208ee39755be230d36",9:"270f0165357adf86a105",10:"e7e75f52630c3f5f7921",11:"3dcba9e714e2dd2f1642",12:"930e9006116417e356cb",13:"e3807f34b8882de6d66c",14:"fa81ee4ecc5b9a82a064",15:"a5380d1ef2f6fd3e9fe4",16:"4005fa54cc59f995ef22",17:"4d4fefacb21c6a27c469",18:"bdd0e545e01a46590fab",19:"f8c23ec99fe543ba7c59",20:"c50eb69950e3b05c75ba",21:"b66faf32d39b00b402fc",22:"3e1c1e9957614840401d",23:"fd0164cb8d1b48e15d14",24:"c5cfefb13fa3c8a23cf9",25:"0ee772df2607cf771171",26:"2884e8e9df9c9c10450a",27:"6ca8044c5b7dbaea1939",28:"e9159c78646a00d7a136",29:"bc4b2e19d7bbdb26f35b",30:"0dfa7b2f351464837431",31:"58ef57a7139f62e43fba",32:"11027e4a30d5d1f15a57",33:"5b982bd46e542c17a68e",34:"52cb42be742874708eba",35:"15332b0458c1f2d684e9",36:"734179926fd497b7979d",37:"303c15b2a63b09cbb9b1",38:"6b7d629cbf5bf00d5f79",39:"b129a2de1d1687a78b98",40:"ac1fc8c242c022600367",41:"54122ed28fb233a82436",42:"acc5bf61cb041f593bfa",43:"667f1d1d775fdc8f576a",44:"8531f16a0f4a76e474b8",45:"7cf681e938528dcae32b",46:"c0b858d756b11b0bf319"}[e]+".js";var d=setTimeout(t,12e4);function t(){b.onerror=b.onload=null,clearTimeout(d);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return b.onerror=b.onload=t,r.appendChild(b),f},n.m=e,n.c=f,n.d=function(e,c,f){n.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},n.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(c,"a",c),c},n.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},n.p="",n.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -190,7 +190,7 @@ export default {
invite_code[1] = "USER";
}
let code = `${invite_code[0]}-${invite_code[1]}`;
let URL = `${process.env.BUY_URL}shopId=${this.shopId}&invite_code=${code}-${this.user_id}&nickname=${ownDetail.nickname}`;
let URL = `${process.env.BUY_URL}shopId=${this.shopId}&invite_code=${code}-${this.user_id}&nickname=${encodeURIComponent(ownDetail.nickname)}`;
if (this.groupId && this.groupId !== "null") {
URL += `&groupId=${this.groupId}`;
......@@ -347,9 +347,9 @@ export default {
},
onShare: function(type) {
let ownDetail = JSON.parse(localStorage.getItem("userDesc"));
let URL = `${process.env.BUY_URL}?shopId=${this.shopId}&groupId=${this.groupId}&invite_code=${this.invite_code}&nickname=${ownDetail.nickname}`;
let URL = `${process.env.BUY_URL}?shopId=${this.shopId}&groupId=${this.groupId}&invite_code=${this.invite_code}&nickname=${encodeURIComponent(ownDetail.nickname)}`;
if (type === 1) {
URL = `${process.env.BUY_URL}?shopId=${this.shopId}&invite_code=${this.invite_code}&nickname=${ownDetail.nickname}`;
URL = `${process.env.BUY_URL}?shopId=${this.shopId}&invite_code=${this.invite_code}&nickname=${encodeURIComponent(ownDetail.nickname)}`;
}
this.enableShare({
product_title: this.groupDetail.share_desc.title,
......
......@@ -30,7 +30,7 @@
<img src="../../assets/inviteFriends/img_title4.png" alt />
</div>
<div class="invite-friends cell" ref="inviteRecord">
<img src="../../assets/inviteFriends/img_title5.png" alt />
<img class="invite-img" src="../../assets/inviteFriends/img_title5.png" alt />
<div class="invite-record-list">
<div class="container">
<div class="record-content">
......@@ -81,36 +81,7 @@ export default {
return {
earnings: 0,
userNum: 0,
records: [
{
nickname: "test1111111111",
pay_at: "2019.07.08 14:28:50"
},
{
nickname: "test1111111111",
pay_at: "2019.07.08 14:28:50"
},
{
nickname: "test1111111111",
pay_at: "2019.07.08 14:28:50"
},
{
nickname: "test1111111111",
pay_at: "2019.07.08 14:28:50"
},
{
nickname: "test1111111111",
pay_at: "2019.07.08 14:28:50"
},
{
nickname: "test1111111111",
pay_at: "2019.07.08 14:28:50"
},
{
nickname: "test1111111111",
pay_at: "2019.07.08 14:28:50"
}
],
records: [],
shareTitle: "钜惠来袭!唱唱21天英语训练营,全勤学习返66元现金",
shareDesc: "21天让宝宝爱上说英语,报课即送教具礼盒,包邮送到家!",
invite_code: "",
......@@ -146,7 +117,7 @@ export default {
getInviteList() {
let json = {
page: 1,
limit: 6
limit: 20
};
getInviteListApi(json, this.shopId).then(res => {
if (res) {
......@@ -195,13 +166,8 @@ export default {
"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png", // 分享图标
success: function() {
console.log("分享成功");
window._hmt.push([
"_trackEvent",
"分享",
"商品页好友分享",
`id${that.shopId}`,
that.invite_code
]); //百度统计
console.log(that.invite_code);
// window._hmt.push(['_trackEvent', '分享', "商品页好友分享",`id${that.shopId}`,that.invite_code]);//百度统计
},
cancel: function() {
// alert("失败")
......@@ -215,13 +181,8 @@ export default {
imgUrl:
"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png", // 分享图标
success: function() {
window._hmt.push([
"_trackEvent",
"分享",
"商品页朋友圈分享",
`id${that.shopId}`,
that.invite_code
]); //百度统计
console.log(that.invite_code);
// window._hmt.push(['_trackEvent', '分享', "商品页朋友圈分享",`id${that.shopId}`,that.invite_code]);//百度统计
},
cancel: function() {}
});
......@@ -230,18 +191,27 @@ export default {
},
onShare: function(type) {
let ownDetail = JSON.parse(localStorage.getItem("userDesc"));
let URL = `${process.env.BUY_URL}shopId=${this.shopId}&groupId=${this.groupId}&invite_code=${this.invite_code}&nickname=${ownDetail.nickname}`;
let URL = `${process.env.BUY_URL}shopId=${this.shopId}&groupId=${
this.groupId
}&invite_code=${this.invite_code}&nickname=${encodeURIComponent(
ownDetail.nickname
)}`;
if (!this.invite_code) {
// debugger
this.user_id = JSON.parse(localStorage.getItem("userDesc")).user_id;
this.invite_code = "CC-USER-" + this.user_id;
URL = `${process.env.BUY_URL}shopId=${this.shopId}&invite_code=${this.invite_code}&nickname=${ownDetail.nickname}`;
URL = `${process.env.BUY_URL}shopId=${this.shopId}&invite_code=${
this.invite_code
}&nickname=${encodeURIComponent(ownDetail.nickname)}`;
this.enableShare({
shareUrl: URL
});
console.log(194);
} else {
console.log(196);
URL = `${process.env.BUY_URL}shopId=${this.shopId}&invite_code=${this.invite_code}&nickname=${ownDetail.nickname}`;
URL = `${process.env.BUY_URL}shopId=${this.shopId}&invite_code=${
this.invite_code
}&nickname=${encodeURIComponent(ownDetail.nickname)}`;
this.enableShare({
shareUrl: URL
});
......@@ -267,6 +237,9 @@ export default {
width: 100%;
height: 100%;
}
.invite-img {
width: 70%;
}
.header {
width: 100%;
}
......
......@@ -26,11 +26,13 @@
</template>
<script>
import { getInviteListApi } from "../../service/api";
import { Toast } from "vant";
export default {
name: "inviteRecordList",
data() {
return {
total: 0,
height: 0,
pullup: true,
page: 1,
......@@ -78,14 +80,14 @@ export default {
getInviteList() {
let json = {
page: this.page,
limit: 6
limit: 20
};
let id = this.$route.query.shopId;
this.id = id;
getInviteListApi(json, this.id).then(res => {
if (res) {
if (res.list && res.list.length > 0) {
this.records = res.list;
this.list = res.list;
}
}
});
......@@ -144,7 +146,7 @@ export default {
}
&:nth-child(even) {
background-color: #fffaf8;
background-color: rgba(251, 235, 227, 0.8);
background-color: rgba(251, 235, 227, 0.7);
}
p {
text-align: center;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment