Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
e6bc71cd
Commit
e6bc71cd
authored
Apr 01, 2020
by
程智春
Browse files
Options
Browse Files
Download
Plain Diff
云送礼海报
parents
d14f6453
c55539ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
33 deletions
+2
-33
src/pages/index/index.vue
+2
-33
No files found.
src/pages/index/index.vue
View file @
e6bc71cd
...
@@ -214,25 +214,6 @@ export default {
...
@@ -214,25 +214,6 @@ export default {
},
},
methods
:
{
methods
:
{
init
()
{
init
()
{
// 弃用小程序地位
// let that = this;
// 可以通过 wx.getSetting 先查询一下用户是否授权了 "scope.record" 这个 scope
// wx.getSetting({
// success(res) {
// console.log(res, "sdf1233");
// if (!res.authSetting["scope.userLocation"]) {
// wx.authorize({
// scope: "scope.userLocation",
// success() {
// that.getLocationHandle();
// }
// });
// } else {
// that.getLocationHandle();
// }
// }
// });
// 获取小程序开启的订阅消息配置
// 获取小程序开启的订阅消息配置
shop
.
getWxMiniSubscribeMessageConfig
().
then
(
res
=>
{
shop
.
getWxMiniSubscribeMessageConfig
().
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
...
@@ -345,9 +326,7 @@ export default {
...
@@ -345,9 +326,7 @@ export default {
console
.
log
(
"卸载----------------"
,
this
.
options
);
console
.
log
(
"卸载----------------"
,
this
.
options
);
},
},
onShareAppMessage
(
res
)
{
onShareAppMessage
(
res
)
{
console
.
log
(
'======='
)
console
.
log
(
res
)
console
.
log
(
res
)
console
.
log
(
'======='
)
console
.
log
(
console
.
log
(
this
.
shareShopName
,
this
.
shareShopName
,
"share"
,
"share"
,
...
@@ -357,26 +336,16 @@ export default {
...
@@ -357,26 +336,16 @@ export default {
);
);
let
url
=
''
let
url
=
''
console
.
log
(
this
.
newWindowHref
+
'this.newWindowHref'
)
console
.
log
(
this
.
newWindowHref
+
'this.newWindowHref'
)
//分享路径
if
(
this
.
newWindowHref
){
if
(
this
.
newWindowHref
){
url
=
this
.
newWindowHref
;
url
=
this
.
newWindowHref
;
}
else
{
}
else
{
url
=
res
.
webViewUrl
;
url
=
res
.
webViewUrl
;
}
}
//分享页面去掉登录态
//分享页面去掉登录态
if
(
url
.
indexOf
(
"sessionid"
)
>
-
1
)
{
if
(
url
.
indexOf
(
"sessionid"
)
>
-
1
)
{
url
=
url
.
split
(
"?"
)[
0
]
+
"?mixid="
+
this
.
shopId
;
url
=
url
.
split
(
"?"
)[
0
]
+
"?mixid="
+
this
.
shopId
;
}
}
//分享页面白名单 白名单以外的分享页面为首页
// if (!this.checkPageUrl(url)) {
// url = this.baseUrl + "?mixid=" + this.shopId;
// }
//有订单为送礼订单分享--分销员信息由h5添加
// if (this.shareOrderSn != "") {
// url = `${this.baseUrl}/activty/receivingGift?mixid=${
// this.shopId
// }&orderSn=${this.shareOrderSn}&shareTid=${this.shareTid}`;
// }
//分销员推广页面 默认分享分销员中心页面
//分销员推广页面 默认分享分销员中心页面
if
(
url
.
indexOf
(
"/personalCenter/spokesmanCenter/mine/popularize"
)
>
-
1
)
{
if
(
url
.
indexOf
(
"/personalCenter/spokesmanCenter/mine/popularize"
)
>
-
1
)
{
url
=
`
${
this
.
baseUrl
}
/personalCenter/spokesmanCenter?mixid=
${
url
=
`
${
this
.
baseUrl
}
/personalCenter/spokesmanCenter?mixid=
${
...
@@ -384,7 +353,7 @@ export default {
...
@@ -384,7 +353,7 @@ export default {
}
`
;
}
`
;
}
}
console
.
log
(
'
u
rl---------------'
+
url
)
console
.
log
(
'
shareU
rl---------------'
+
url
)
//增加分销员信息
//增加分销员信息
if
(
this
.
hasInvitationStatus
==
1
&&
url
.
indexOf
(
'spokesmanGroupId'
)
==-
1
){
if
(
this
.
hasInvitationStatus
==
1
&&
url
.
indexOf
(
'spokesmanGroupId'
)
==-
1
){
this
.
shareUrl
=
url
+
this
.
newHref
this
.
shareUrl
=
url
+
this
.
newHref
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment