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
55977c02
Commit
55977c02
authored
Apr 01, 2020
by
程默
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
be538a91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
35 deletions
+2
-35
src/pages/index/index.vue
+2
-35
No files found.
src/pages/index/index.vue
View file @
55977c02
...
...
@@ -143,8 +143,6 @@ export default {
}
else
if
(
querys
.
length
==
3
){
this
.
params
+=
`&userId=
${
querys
[
2
]}
`
}
}
else
if
(
querys
[
0
]
==
"activty"
)
{
//活动页面activty_turntable_123
this
.
params
+=
`&pageInfo=
${
scene
}
`
;
...
...
@@ -193,25 +191,6 @@ export default {
},
methods
:
{
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
=>
{
if
(
res
.
data
.
code
==
200
)
{
...
...
@@ -307,9 +286,7 @@ export default {
console
.
log
(
"卸载----------------"
,
this
.
options
);
},
onShareAppMessage
(
res
)
{
console
.
log
(
'======='
)
console
.
log
(
res
)
console
.
log
(
'======='
)
console
.
log
(
this
.
shareShopName
,
"share"
,
...
...
@@ -319,26 +296,16 @@ export default {
);
let
url
=
''
console
.
log
(
this
.
newWindowHref
+
'this.newWindowHref'
)
//分享路径
if
(
this
.
newWindowHref
){
url
=
this
.
newWindowHref
;
}
else
{
url
=
res
.
webViewUrl
;
}
//分享页面去掉登录态
if
(
url
.
indexOf
(
"sessionid"
)
>
-
1
)
{
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
)
{
url
=
`
${
this
.
baseUrl
}
/personalCenter/spokesmanCenter?mixid=
${
...
...
@@ -346,7 +313,7 @@ export default {
}
`
;
}
console
.
log
(
'
u
rl---------------'
+
url
)
console
.
log
(
'
shareU
rl---------------'
+
url
)
//增加分销员信息
if
(
this
.
hasInvitationStatus
==
1
&&
url
.
indexOf
(
'spokesmanGroupId'
)
==-
1
){
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