Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
fef3e646
Commit
fef3e646
authored
Sep 03, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-zyw-sc' into 'dev_7.1.0'
Feature zyw sc See merge request
!109
parents
287167c1
a0bd775d
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
370 additions
and
39 deletions
+370
-39
app.json
src/app.json
+2
-1
extendProduct.js
src/pages/extendProduct/extendProduct.js
+56
-28
productDetail.js
src/pages/productDetail/productDetail.js
+6
-2
productDetail.wxml
src/pages/productDetail/productDetail.wxml
+1
-1
wantToBuyDetail.json
src/pages/wantToBuyDetail/wantToBuyDetail.json
+3
-1
project.config.json
src/project.config.json
+8
-1
friendShareList.js
src/subPackage/page/pages/friendShareList/friendShareList.js
+121
-0
friendShareList.json
...ubPackage/page/pages/friendShareList/friendShareList.json
+5
-0
friendShareList.wxml
...ubPackage/page/pages/friendShareList/friendShareList.wxml
+51
-0
friendShareList.wxss
...ubPackage/page/pages/friendShareList/friendShareList.wxss
+111
-0
myRelease.js
src/subPackage/page/pages/myRelease/myRelease.js
+2
-2
myReleaseDetail.js
src/subPackage/page/pages/myReleaseDetail/myReleaseDetail.js
+3
-3
wxService.js
src/utils/wxService.js
+1
-0
No files found.
src/app.json
View file @
fef3e646
...
@@ -48,7 +48,8 @@
...
@@ -48,7 +48,8 @@
"pages/paymentStatus/paymentStatus"
,
"pages/paymentStatus/paymentStatus"
,
"pages/fun/fun"
,
"pages/fun/fun"
,
"pages/categoryPro/categoryPro"
,
"pages/categoryPro/categoryPro"
,
"pages/plus/plus"
"pages/plus/plus"
,
"pages/friendShareList/friendShareList"
]
]
}
}
],
],
...
...
src/pages/extendProduct/extendProduct.js
View file @
fef3e646
...
@@ -114,46 +114,73 @@ wxService.page({
...
@@ -114,46 +114,73 @@ wxService.page({
})
})
},
},
//生成卡片
// 获取选择推广的商品
onTapPoster
()
{
getChooseExtendPro
(){
console
.
log
(
'----------'
,
this
.
data
.
proData
)
if
(
!
this
.
data
.
proData
)
{
this
.
data
.
proData
.
forEach
((
item
)
=>
{
item
.
url
=
item
.
productImgUrl
item
.
title
=
item
.
productName
})
if
(
!
this
.
data
.
proData
){
wx
.
showToast
({
wx
.
showToast
({
title
:
'请先选择商品'
,
title
:
'请先选择商品'
,
icon
:
'none'
icon
:
'none'
})
})
return
false
;
return
false
;
}
}
let
tentacleInfo
=
{
let
spreadProducts
=
[]
content
:
JSON
.
stringify
(
this
.
data
.
proData
),
for
(
var
i
in
this
.
data
.
proData
){
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
GOODS
,
//内容类型 1.文章 2.商品 3.页面
spreadProducts
.
push
({
title
:
this
.
data
.
proData
[
0
].
productName
,
id
:
this
.
data
.
proData
[
i
].
productId
,
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
imgUrl
:
this
.
data
.
proData
[
i
].
productImgUrl
,
name
:
this
.
data
.
proData
[
i
].
productName
})
}
}
console
.
log
(
'4444'
,
tentacleInfo
.
content
)
console
.
log
(
spreadProducts
)
wxService
.
post
(
`/merchant/spread/save`
,
{
spreadProducts
:
spreadProducts
}).
then
(
res
=>
{
if
(
res
)
{
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
)
{
this
.
data
.
proData
.
forEach
((
item
)
=>
{
item
.
url
=
item
.
productImgUrl
item
.
title
=
item
.
productName
})
let
tentacleInfo
=
{
content
:
JSON
.
stringify
(
this
.
data
.
proData
),
contentId
:
data
.
id
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
GOODS
,
//内容类型 1.文章 2.商品 3.页面
title
:
this
.
data
.
proData
[
0
].
productName
,
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
}
console
.
log
(
'4444'
,
tentacleInfo
.
content
)
this
.
data
.
currentShareContent
=
this
.
data
.
proData
[
0
];
this
.
data
.
currentShareContent
=
data
;
console
.
log
(
'++++++++++++++++'
,
this
.
data
.
currentShareContent
)
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
if
(
res
&&
res
.
tentacleId
)
{
if
(
res
&&
res
.
tentacleId
)
{
this
.
data
.
currentShareContent
.
tentacleId
=
res
.
tentacleId
;
this
.
data
.
currentShareContent
.
tentacleId
=
res
.
tentacleId
;
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
var
path
=
'pages/extendProduct/extendProduct?i='
+
id
+
'&t='
+
tentacleId
;
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
this
.
setData
({
var
path
=
'subPackage/page/pages/friendShareList/friendShareList?i='
+
id
+
'&t='
+
tentacleId
;
showCardModal
:
true
,
this
.
setData
({
cardTitle
:
this
.
data
.
proData
[
0
].
productName
,
showCardModal
:
true
,
cardUrl
:
this
.
data
.
proData
[
0
].
productImgUrl
,
cardTitle
:
this
.
data
.
proData
[
0
].
productName
,
pagePath
:
path
cardUrl
:
this
.
data
.
proData
[
0
].
productImgUrl
,
});
pagePath
:
path
});
}
})
}
}
}
})
})
},
},
//生成卡片
onTapPoster
()
{
this
.
getChooseExtendPro
()
},
// 获取推广商品列表
// 获取推广商品列表
getExtendProList
(
pageNo
,
pageSize
){
getExtendProList
(
pageNo
,
pageSize
){
wx
.
showLoading
({
wx
.
showLoading
({
...
@@ -313,7 +340,8 @@ wxService.page({
...
@@ -313,7 +340,8 @@ wxService.page({
console
.
log
(
'1111111'
)
console
.
log
(
'1111111'
)
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
var
path
=
'pages/extendProduct/extendProduct?i='
+
id
+
'&t='
+
tentacleId
;
var
path
=
'subPackage/page/pages/friendShareList/friendShareList?i='
+
id
+
'&t='
+
tentacleId
;
console
.
log
(
'id'
,
this
.
data
.
currentShareContent
.
id
)
console
.
log
(
path
)
console
.
log
(
path
)
return
{
return
{
path
:
path
path
:
path
...
...
src/pages/productDetail/productDetail.js
View file @
fef3e646
...
@@ -23,7 +23,7 @@ wxService.page({
...
@@ -23,7 +23,7 @@ wxService.page({
memberLevel
:
false
,
memberLevel
:
false
,
showCardModal
:
false
,
showCardModal
:
false
,
currentShareContent
:
null
,
currentShareContent
:
null
,
pageForm
:
tru
e
,
fromZc
:
fals
e
,
},
},
/**
/**
...
@@ -33,7 +33,7 @@ wxService.page({
...
@@ -33,7 +33,7 @@ wxService.page({
if
(
options
&&
options
.
id
)
{
if
(
options
&&
options
.
id
)
{
this
.
setData
({
this
.
setData
({
productId
:
options
.
id
,
productId
:
options
.
id
,
pageForm
:
options
.
fromZc
!
=
1
fromZc
:
options
.
fromZc
=
=
1
});
});
//不是从种草过来的, 需要清除本地临时的触点信息
//不是从种草过来的, 需要清除本地临时的触点信息
if
(
!
options
.
fromZc
){
if
(
!
options
.
fromZc
){
...
@@ -237,6 +237,10 @@ wxService.page({
...
@@ -237,6 +237,10 @@ wxService.page({
let
parmas
=
{
let
parmas
=
{
trolleySku2Buy
:
JSON
.
stringify
(
trolleySku2Buy
)
trolleySku2Buy
:
JSON
.
stringify
(
trolleySku2Buy
)
}
}
//判断是否从种草商品过来购买
if
(
fromZc
){
wxService
.
updateLocalTentacleInfo
();
}
wxService
wxService
.
router
(
'/pages/confirmOrder/confirmOrder'
)
.
router
(
'/pages/confirmOrder/confirmOrder'
)
.
search
(
parmas
)
.
search
(
parmas
)
...
...
src/pages/productDetail/productDetail.wxml
View file @
fef3e646
...
@@ -127,7 +127,7 @@
...
@@ -127,7 +127,7 @@
bindsubmit="addCart"
bindsubmit="addCart"
report-submit
report-submit
name='nav'
name='nav'
wx:if="{{
pageForm
}}"
wx:if="{{
!fromZc
}}"
>
>
<button class="cart-button get-formId--btn" formType="submit" >加入购物车</button>
<button class="cart-button get-formId--btn" formType="submit" >加入购物车</button>
</form>
</form>
...
...
src/pages/wantToBuyDetail/wantToBuyDetail.json
View file @
fef3e646
{
{
"navigationBarTitleText"
:
""
,
"navigationBarTitleText"
:
""
,
"usingComponents"
:
{
"usingComponents"
:
{
"go-home"
:
"/component/goHome/goHome"
"go-home"
:
"/component/goHome/goHome"
,
"buy-image-swiper"
:
"/component/buyImageSwiper/buyImageSwiper"
}
}
}
}
\ No newline at end of file
src/project.config.json
View file @
fef3e646
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
"list"
:
[]
"list"
:
[]
},
},
"miniprogram"
:
{
"miniprogram"
:
{
"current"
:
17
,
"current"
:
39
,
"list"
:
[
"list"
:
[
{
{
"id"
:
-1
,
"id"
:
-1
,
...
@@ -299,6 +299,13 @@
...
@@ -299,6 +299,13 @@
"name"
:
"集点列表"
,
"name"
:
"集点列表"
,
"pathName"
:
"pages/pointList/pointList"
,
"pathName"
:
"pages/pointList/pointList"
,
"query"
:
""
"query"
:
""
},
{
"id"
:
-1
,
"name"
:
"分享列表"
,
"pathName"
:
"subPackage/page/pages/friendShareList/friendShareList"
,
"query"
:
""
,
"scene"
:
null
}
}
]
]
}
}
...
...
src/subPackage/page/pages/friendShareList/friendShareList.js
0 → 100644
View file @
fef3e646
// pages/coupons.js
const
app
=
getApp
()
const
wxService
=
require
(
'../../../../utils/wxService'
)
const
utils
=
require
(
'../../../../utils/util'
)
const
envInfo
=
require
(
'../../../../config/index'
).
envInfo
import
{
Integer
}
from
'../../../../utils/integerDigitalConvertion'
wxService
.
page
({
/**
* 页面的初始数据
*/
data
:
{
// id: "5d6e2a2338c95504a8de84e8",
id
:
''
,
proList
:
[],
showCardModal
:
false
,
currentShareContent
:
null
,
pagePath
:
''
,
pageNo
:
1
,
pageSize
:
100
,
sharePicData
:
[]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
(
options
)
{
console
.
log
(
options
)
console
.
log
()
if
(
options
&&
options
.
id
)
{
console
.
log
(
'idididididi'
,
options
.
id
)
this
.
setData
({
id
:
options
.
id
})
}
},
/**
* 生命周期函数--监听页面显示
*/
onShow
()
{
this
.
getExtendInfo
()
this
.
data
.
currentShareContent
=
null
;
},
//获取推广商品获取商品id
getExtendInfo
()
{
console
.
log
(
this
.
data
.
id
)
wxService
.
post
(
`/merchant/spread/
${
this
.
data
.
id
}
`
,
{}).
then
(
res
=>
{
if
(
!
res
)
return
false
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
)
{
let
productIds
=
[]
for
(
var
i
in
data
.
spreadProducts
){
if
(
data
.
spreadProducts
[
i
].
id
){
productIds
.
push
(
data
.
spreadProducts
[
i
].
id
)
}
}
this
.
getByIdExtendProList
(
productIds
)
}
}).
finally
(()
=>
{
})
},
// 根据商品id,获取商品列表
getByIdExtendProList
(
productIds
){
let
params
=
{
productIds
:
productIds
}
wxService
.
post
(
`/sale/product/buyer/listPage?pageNo=
${
this
.
data
.
pageNo
}
&pageSize=
${
this
.
data
.
pageSize
}
`
,
params
).
then
(
res
=>
{
if
(
!
res
)
return
false
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
&&
data
.
content
)
{
this
.
setData
({
proList
:
data
.
content
})
for
(
var
i
in
data
.
content
){
this
.
data
.
sharePicData
.
push
(
data
.
content
[
i
].
indexUrl
)
this
.
setData
({
sharePicData
:
this
.
data
.
sharePicData
})
}
console
.
log
(
this
.
data
.
sharePicData
)
}
}).
finally
(()
=>
{
})
},
/**
* 用户点击右上角分享
*/
onShareAppMessage
:
function
(
res
)
{
this
.
data
.
proList
.
forEach
((
item
)
=>
{
item
.
url
=
item
.
indexUrl
item
.
title
=
item
.
productName
item
.
id
=
item
.
productId
})
let
tentacleInfo
=
{
content
:
JSON
.
stringify
(
this
.
data
.
proList
),
title
:
'推广商品'
,
contentType
:
3
,
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
};
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
if
(
res
&&
res
.
tentacleId
)
{
let
id
=
Integer
.
digit
(
this
.
data
.
id
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
res
.
tentacleId
,
10
,
64
);
var
path
=
`subPackage/page/pages/friendShareList/friendShareList?id=
${
id
}
&t=
${
tentacleId
}
`
;
console
.
log
(
path
)
return
{
path
:
path
}
}
});
}
})
\ No newline at end of file
src/subPackage/page/pages/friendShareList/friendShareList.json
0 → 100644
View file @
fef3e646
{
"navigationBarTitleText"
:
"分享列表"
,
"usingComponents"
:
{}
}
\ No newline at end of file
src/subPackage/page/pages/friendShareList/friendShareList.wxml
0 → 100644
View file @
fef3e646
<view class='page-friend-share'>
<view class="swiper-image-wrap">
<!-- <buy-image-swiper image-data="{{imageData}}"/>
-->
<swiper autoplay="true" style="height: 750rpx;line-height: 100rpx;" bindchange="swiperChange">
<block wx:for="{{sharePicData}}" wx:key="index">
<swiper-item>
<image class="swiper-image" mode="widthFix" src="{{item}}" />
</swiper-item>
</block>
</swiper>
<view class="dots">
<block wx:for="{{sharePicData}}" wx:key="index">
<view class="dot{{index == swiperCurrent ? ' active' : ''}}" />
</block>
</view>
</view>
<view class="buy-product-wrap">
<view class="buy-product-content">
<block wx:for="{{proList}}" wx:key="{{index}}">
<navigator hover-class="none" url="/pages/productDetail/productDetail?id={{item.productId}}">
<view class="buy-list" data-item="{{contentInfo}}" data-productid="{{item.productId}}">
<view class="prod-img">
<image src="{{item.indexUrl}}" />
</view>
<view class="prod-info">
<view class="prod-name">{{item.productName}}</view>
<!-- <view class="sale-btn">限时特价</view> -->
<view class="bottom-price">
<text class="price">¥{{item.minSalePrice}}</text>
<!-- <text class="cost-price">¥456</text> -->
<view class="look-over">查看详情</view>
</view>
</view>
</view>
</navigator>
</block>
</view>
</view>
</view>
<card-modal
show-card-modal="{{showCardModal}}"
card-title="{{cardTitle}}"
card-url="{{cardUrl}}"
page-path="{{pagePath}}"
/>
<!--goHome-->
<go-home/>
src/subPackage/page/pages/friendShareList/friendShareList.wxss
0 → 100644
View file @
fef3e646
/* subPackage/page/pages/friendShareList/friendShareList.wxss */
@import './../../../../base/base.wxss';
page{
background: #ffffff;
}
.swiper-image-wrap{
height: 750rpx;
}
.swiper-image{
width: 100%;
}
.dots{
position: absolute;
left: 0;
right: 0;
top: 700rpx;
display: flex;
justify-content: center;
}
.dots .dot{
margin: 0 8rpx;
width: 10rpx;
height: 10rpx;
border-radius: 50%;
background-color: rgba(0, 0, 0, 0.25);
transition: all .6s;
}
.dots .dot.active{
width: 22rpx;
height: 10rpx;
background: #C09A74;
border-radius: 20rpx;
}
scroll-view{
height: 100%;
}
.buy-product-wrap{
padding: 0 20rpx;
}
.buy-product-content{
width: 710rpx;
margin-top: 20rpx;
}
.buy-list{
width: 100%;
border-radius: 10rpx;
background-color: rgba(255, 255, 255, 1);
box-shadow: 0px 0px 10rpx 0px rgba(0, 0, 0, 0.1);
display: flex;
margin-bottom: 20rpx;
}
.prod-img{
height: 220rpx;
}
.prod-img image{
width: 220rpx;
height: 220rpx;
border-top-left-radius: 10rpx;
border-bottom-left-radius: 10rpx;
}
.prod-info{
padding: 31rpx 26rpx 39rpx 24rpx;
}
.prod-name{
font-size: 26rpx;
width: 440rpx;
}
.sale-btn{
width: 74rpx;
height: 24rpx;
line-height: 24rpx;
text-align: center;
border-radius: 15rpx;
border: 1px solid rgba(203, 60, 60, 1);
font-size: 13rpx;
color: #CB3C3C;
margin-top: 9rpx;
}
.bottom-price{
margin-top: 11rpx;
}
.price{
font-size: 32rpx;
color: #CB3C3C;
}
.cost-price{
text-decoration:line-through;
font-size: 20rpx;
color: #aaaaaa;
margin-left: 10rpx;
}
.look-over{
width: 125rpx;
height: 39rpx;
line-height: 39rpx;
text-align: center;
border-radius: 19rpx;
background-color: rgba(203, 60, 60, 1);
color: #ffffff;
font-size: 18rpx;
float: right;
}
src/subPackage/page/pages/myRelease/myRelease.js
View file @
fef3e646
...
@@ -166,7 +166,7 @@ wxService.page({
...
@@ -166,7 +166,7 @@ wxService.page({
this
.
data
.
currentShareContent
.
tentacleId
=
res
.
tentacleId
;
this
.
data
.
currentShareContent
.
tentacleId
=
res
.
tentacleId
;
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
var
path
=
'
subPackage/page/pages/myReleaseDetail/myRelease
Detail?i='
+
id
+
'&t='
+
tentacleId
;
var
path
=
'
pages/wantToBuyDetail/wantToBuy
Detail?i='
+
id
+
'&t='
+
tentacleId
;
this
.
setData
({
this
.
setData
({
showCardModal
:
true
,
showCardModal
:
true
,
cardTitle
:
e
.
detail
.
title
,
cardTitle
:
e
.
detail
.
title
,
...
@@ -206,7 +206,7 @@ wxService.page({
...
@@ -206,7 +206,7 @@ wxService.page({
if
(
res
.
from
!=
'menu'
)
{
if
(
res
.
from
!=
'menu'
)
{
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
var
path
=
'
subPackage/page/pages/myReleaseDetail/myRelease
Detail?i='
+
id
+
'&t='
+
tentacleId
;
var
path
=
'
pages/wantToBuyDetail/wantToBuy
Detail?i='
+
id
+
'&t='
+
tentacleId
;
console
.
log
(
path
)
console
.
log
(
path
)
return
{
return
{
path
:
path
path
:
path
...
...
src/subPackage/page/pages/myReleaseDetail/myReleaseDetail.js
View file @
fef3e646
...
@@ -62,7 +62,7 @@ wxService.page({
...
@@ -62,7 +62,7 @@ wxService.page({
this
.
data
.
currentShareContent
.
tentacleId
=
res
.
tentacleId
;
this
.
data
.
currentShareContent
.
tentacleId
=
res
.
tentacleId
;
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
var
path
=
'
subPackage/page/pages/myReleaseDetail/myRelease
Detail?i='
+
id
+
'&t='
+
tentacleId
;
var
path
=
'
pages/wantToBuyDetail/wantToBuy
Detail?i='
+
id
+
'&t='
+
tentacleId
;
this
.
setData
({
this
.
setData
({
showCardModal
:
true
,
showCardModal
:
true
,
cardTitle
:
this
.
data
.
contentInfo
.
headline
,
cardTitle
:
this
.
data
.
contentInfo
.
headline
,
...
@@ -203,7 +203,7 @@ wxService.page({
...
@@ -203,7 +203,7 @@ wxService.page({
if
(
res
.
from
!=
'menu'
)
{
if
(
res
.
from
!=
'menu'
)
{
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
var
path
=
'
subPackage/page/pages/myReleaseDetail/myRelease
Detail?i='
+
id
+
'&t='
+
tentacleId
;
var
path
=
'
pages/wantToBuyDetail/wantToBuy
Detail?i='
+
id
+
'&t='
+
tentacleId
;
console
.
log
(
path
)
console
.
log
(
path
)
return
{
return
{
path
:
path
path
:
path
...
@@ -219,7 +219,7 @@ wxService.page({
...
@@ -219,7 +219,7 @@ wxService.page({
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
if
(
res
&&
res
.
tentacleId
)
{
if
(
res
&&
res
.
tentacleId
)
{
let
tentacleId
=
Integer
.
digit
(
res
.
tentacleId
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
res
.
tentacleId
,
10
,
64
);
var
path
=
`
subPackage/page/pages/myReleaseDetail/myRelease
Detail?t=
${
tentacleId
}
`
;
var
path
=
`
pages/wantToBuyDetail/wantToBuy
Detail?t=
${
tentacleId
}
`
;
return
{
return
{
path
:
path
path
:
path
}
}
...
...
src/utils/wxService.js
View file @
fef3e646
...
@@ -469,6 +469,7 @@ class WXService extends Http {
...
@@ -469,6 +469,7 @@ class WXService extends Http {
}
}
}
}
});
});
console
.
log
(
'--------'
,
args
)
//如果打开的是分享界面则进行触点对象信息请求并存储到本地 放到后续的header中
//如果打开的是分享界面则进行触点对象信息请求并存储到本地 放到后续的header中
if
(
pageIsFromShare
){
if
(
pageIsFromShare
){
...
...
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