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
0a846df2
Commit
0a846df2
authored
Sep 04, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_7.1.0' of
ssh://gitlab.bigaka.net:2287/gaoshq/7-Eleven
into dev_7.1.0
parents
db55fc7b
0dd99de1
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
159 additions
and
74 deletions
+159
-74
addAddress.js
src/pages/addAddress/addAddress.js
+1
-1
cart.js
src/pages/cart/cart.js
+1
-0
category.js
src/pages/category/category.js
+1
-1
confirmOrder.js
src/pages/confirmOrder/confirmOrder.js
+1
-1
extendProduct.js
src/pages/extendProduct/extendProduct.js
+13
-12
extendProduct.wxml
src/pages/extendProduct/extendProduct.wxml
+4
-4
extendProduct.wxss
src/pages/extendProduct/extendProduct.wxss
+2
-1
logistics.js
src/pages/logistics/logistics.js
+1
-1
myAddress.js
src/pages/myAddress/myAddress.js
+1
-1
myShare.js
src/pages/myShare/myShare.js
+4
-4
order.js
src/pages/order/order.js
+1
-1
orderDetail.js
src/pages/orderDetail/orderDetail.js
+1
-1
pointDetail.js
src/pages/pointDetail/pointDetail.js
+3
-4
pointList.js
src/pages/pointList/pointList.js
+2
-3
productDetail.js
src/pages/productDetail/productDetail.js
+2
-1
refund.js
src/pages/refund/refund.js
+1
-1
refundDetail.js
src/pages/refundDetail/refundDetail.js
+1
-1
userCenter.js
src/pages/userCenter/userCenter.js
+3
-3
wantToBuyDetail.js
src/pages/wantToBuyDetail/wantToBuyDetail.js
+30
-3
wantToBuyDetail.json
src/pages/wantToBuyDetail/wantToBuyDetail.json
+2
-0
categoryPro.js
src/subPackage/page/pages/categoryPro/categoryPro.js
+5
-1
friendShareList.js
src/subPackage/page/pages/friendShareList/friendShareList.js
+2
-1
myInvite.js
src/subPackage/page/pages/myInvite/myInvite.js
+1
-0
myInvite.wxml
src/subPackage/page/pages/myInvite/myInvite.wxml
+1
-1
myRelease.js
src/subPackage/page/pages/myRelease/myRelease.js
+3
-3
myReleaseDetail.js
src/subPackage/page/pages/myReleaseDetail/myReleaseDetail.js
+14
-7
myReleaseDetail.wxml
...ubPackage/page/pages/myReleaseDetail/myReleaseDetail.wxml
+3
-1
orderBenefit.js
src/subPackage/page/pages/orderBenefit/orderBenefit.js
+23
-5
paymentStatus.js
src/subPackage/page/pages/paymentStatus/paymentStatus.js
+1
-1
plus.js
src/subPackage/page/pages/plus/plus.js
+1
-2
share.js
src/subPackage/page/pages/share/share.js
+3
-3
const.js
src/utils/const.js
+23
-5
wxService.js
src/utils/wxService.js
+4
-0
No files found.
src/pages/addAddress/addAddress.js
View file @
0a846df2
...
...
@@ -32,7 +32,7 @@ wxService.page({
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
console
.
log
(
options
)
wx
.
hideShareMenu
(
)
if
(
options
&&
options
.
id
){
wx
.
setNavigationBarTitle
({
title
:
'编辑地址'
...
...
src/pages/cart/cart.js
View file @
0a846df2
...
...
@@ -24,6 +24,7 @@ wxService.page({
* 生命周期函数--监听页面加载
*/
onLoad
()
{
wx
.
hideShareMenu
()
wxService
.
getSystemInfo
().
then
(
res
=>
{
const
{
statusBarHeight
}
=
res
const
{
currentHeight
,
currentMarginTop
,
currentPaddingTop
}
=
this
.
data
...
...
src/pages/category/category.js
View file @
0a846df2
...
...
@@ -119,7 +119,7 @@ wxService.page({
let
tentacleInfo
=
{
content
:
'分类'
,
title
:
'分类'
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
PAGE
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
CLASSIFY
,
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
};
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
...
...
src/pages/confirmOrder/confirmOrder.js
View file @
0a846df2
...
...
@@ -24,7 +24,7 @@ wxService.page({
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
wx
.
hideShareMenu
()
},
/**
* 生命周期函数--监听页面显示
...
...
src/pages/extendProduct/extendProduct.js
View file @
0a846df2
...
...
@@ -31,7 +31,6 @@ wxService.page({
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
},
...
...
@@ -49,10 +48,11 @@ wxService.page({
}
// 可使用
if
(
current
==
0
)
{
wx
.
showShareMenu
()
this
.
getExtendProList
(
1
,
10
)
}
else
if
(
current
==
1
)
{
// 我的推广
//
wx.hideShareMenu();
wx
.
hideShareMenu
();
this
.
getMyShareCount
()
this
.
getMyExtendOrderList
(
1
,
10
)
}
...
...
@@ -146,7 +146,7 @@ wxService.page({
let
tentacleInfo
=
{
content
:
JSON
.
stringify
(
this
.
data
.
proData
),
contentId
:
data
.
id
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
GOODS
,
//内容类型 1.文章 2.商品 3.页面
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
PRODUCTS_PROMOTION
,
//内容类型
title
:
this
.
data
.
proData
[
0
].
productName
,
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
}
...
...
@@ -218,20 +218,21 @@ wxService.page({
wx
.
hideLoading
()
data
.
content
.
forEach
((
item
)
=>
{
//内容类型 1.文章 2.商品 3.页面
if
(
item
.
content
){
if
(
item
.
contentType
==
3
){
item
.
content
=
item
.
content
}
else
{
let
content
=
JSON
.
parse
(
item
.
content
)
item
.
contentArr
=
[
content
]
}
}
//
if (item.content){
//
if (item.contentType == 3){
//
item.content = item.content
//
}else{
//
let content = JSON.parse(item.content)
// item.contentArr = content
//
}
//
}
})
this
.
setData
({
myExtendList
:
this
.
data
.
pageNum
==
1
?
[...
data
.
content
]
:
[...
this
.
data
.
myExtendList
,
...
data
.
content
],
myTotalPages
:
data
.
totalPages
},
()
=>
{
})
console
.
log
(
'00000'
,
this
.
data
.
myExtendList
)
}
}
})
...
...
@@ -351,7 +352,7 @@ wxService.page({
let
tentacleInfo
=
{
content
:
'推广商品'
,
title
:
'推广商品'
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
P
AGE
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
P
RODUCTS_PROMOTION
,
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
};
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
...
...
src/pages/extendProduct/extendProduct.wxml
View file @
0a846df2
...
...
@@ -112,19 +112,19 @@
wx:key="{{index}}"
wx:for-item="extendItem"
>
<navigator url="/subPackage/page/pages/orderBenefit/orderBenefit" hover-class="none">
<navigator url="/subPackage/page/pages/orderBenefit/orderBenefit
?type={{extendItem.type}}&id={{extendItem.id}}
" hover-class="none">
<view class="order-header">
<view class="order-number">
<text>{{extendItem.createTime}}</text>
</view>
<text class="order-status">查看收益</text>
</view>
<view class="pro-list" wx:if="{{extendItem.contentArr}}"
wx:for="{{extendItem.contentArr}}" wx:for-item="contentItem" wx:key="{{index}}"
>
<image class="pro-img" src="{{contentItem.url}}" />
<view class="pro-list" wx:if="{{extendItem.contentArr}}" >
<image class="pro-img"
wx:for="{{extendItem.contentArr}}" wx:for-item="contentItem" wx:key="{{index}}"
src="{{contentItem.url}}" />
<!-- <image class="pro-img" />
<image class="pro-img" />
<image class="pro-img" /> -->
<text class="pro-img-dot">...</text>
<text class="pro-img-dot"
wx:if="{{extendItem.contentArr.length > 4}}"
>...</text>
</view>
<view class="pro-list" wx:if="{{!extendItem.contentArr}}">
...
...
src/pages/extendProduct/extendProduct.wxss
View file @
0a846df2
...
...
@@ -217,12 +217,13 @@ swiper {
.pro-list{
margin-top: 16rpx;
display: flex;
justify-content: space-between;
}
.pro-img{
width: 140rpx;
height: 140rpx;
/* border:1px solid red; */
margin-right: 15rpx;
vertical-align: middle;
}
.pro-img-dot{
...
...
src/pages/logistics/logistics.js
View file @
0a846df2
...
...
@@ -17,7 +17,7 @@ wxService.page({
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
wx
.
hideShareMenu
()
},
/**
...
...
src/pages/myAddress/myAddress.js
View file @
0a846df2
...
...
@@ -22,7 +22,7 @@ wxService.page({
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
wx
.
hideShareMenu
()
},
handelCheckShopAddress
(
e
)
{
const
index
=
e
.
currentTarget
.
dataset
.
index
...
...
src/pages/myShare/myShare.js
View file @
0a846df2
...
...
@@ -140,7 +140,7 @@ wxService.page({
let
tentacleInfo
=
{
content
:
JSON
.
stringify
(
e
.
detail
),
contentId
:
e
.
detail
.
id
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
CONTENT
,
//内容类型 1.文章 2.商品 3.页面
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
DETAILS_OF_THE_CONTENT
,
//内容类型
title
:
e
.
detail
.
title
,
//标题
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
}
...
...
@@ -201,9 +201,9 @@ wxService.page({
}
let
tentacleInfo
=
{
content
:
this
.
route
,
title
:
this
.
route
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
PAGE
,
content
:
'内容列表'
,
title
:
'内容列表'
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
CONTENTS_LIST
,
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
};
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
...
...
src/pages/order/order.js
View file @
0a846df2
...
...
@@ -53,7 +53,7 @@ wxService.page({
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
wx
.
hideShareMenu
()
},
/**
...
...
src/pages/orderDetail/orderDetail.js
View file @
0a846df2
...
...
@@ -18,7 +18,7 @@ wxService.page({
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
wx
.
hideShareMenu
()
},
/**
* 生命周期函数--监听页面显示
...
...
src/pages/pointDetail/pointDetail.js
View file @
0a846df2
...
...
@@ -310,11 +310,10 @@ wxService.page({
* 用户点击右上角分享
*/
onShareAppMessage
:
function
()
{
console
.
log
(
'00000'
,
app
.
globalData
.
contants
)
let
tentacleInfo
=
{
content
:
'集点详情'
,
title
:
'集点详情'
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
PAGE
,
content
:
'集点详情
页面
'
,
title
:
'集点详情
页面
'
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
SET_POINT_DETAILS
,
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
};
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
...
...
src/pages/pointList/pointList.js
View file @
0a846df2
...
...
@@ -157,11 +157,10 @@ wxService.page({
* 用户点击右上角分享
*/
onShareAppMessage
:
function
()
{
console
.
log
(
'00000'
,
app
.
globalData
.
contants
)
let
tentacleInfo
=
{
content
:
'集点列表'
,
content
:
'集点列表
页面
'
,
title
:
'集点列表'
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
PAGE
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
SET_POINT_ACTIVITY
,
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
};
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
...
...
src/pages/productDetail/productDetail.js
View file @
0a846df2
...
...
@@ -30,6 +30,7 @@ wxService.page({
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
wx
.
hideShareMenu
();
if
(
options
&&
options
.
id
)
{
this
.
setData
({
productId
:
options
.
id
,
...
...
@@ -75,7 +76,7 @@ wxService.page({
let
tentacleInfo
=
{
content
:
JSON
.
stringify
(
content
),
contentId
:
this
.
data
.
productInfo
.
productId
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
GOODS
,
//内容类型 1.文章 2.商品 3.页面
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
PRODUCT_DETAIL
,
//内容类型
title
:
this
.
data
.
productInfo
.
productName
,
//标题
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
}
...
...
src/pages/refund/refund.js
View file @
0a846df2
...
...
@@ -212,7 +212,7 @@ wxService.page({
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
wx
.
hideShareMenu
()
},
/**
...
...
src/pages/refundDetail/refundDetail.js
View file @
0a846df2
...
...
@@ -19,7 +19,7 @@ wxService.page({
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
wx
.
hideShareMenu
()
},
/**
...
...
src/pages/userCenter/userCenter.js
View file @
0a846df2
...
...
@@ -230,9 +230,9 @@ wxService.page({
*/
onShareAppMessage
:
function
(
res
)
{
let
tentacleInfo
=
{
content
:
this
.
route
,
title
:
this
.
route
,
contentType
:
3
,
content
:
'首页'
,
title
:
'首页'
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
HOME
,
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
};
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
...
...
src/pages/wantToBuyDetail/wantToBuyDetail.js
View file @
0a846df2
...
...
@@ -66,7 +66,7 @@ wxService.page({
// 分享
onTapShare
()
{
let
content
=
{
headlin
e
:
this
.
data
.
contentInfo
.
headline
,
titl
e
:
this
.
data
.
contentInfo
.
headline
,
id
:
this
.
data
.
contentInfo
.
id
,
article
:
this
.
data
.
contentInfo
.
article
,
url
:
this
.
data
.
contentInfo
.
url
...
...
@@ -74,7 +74,7 @@ wxService.page({
let
tentacleInfo
=
{
content
:
JSON
.
stringify
(
content
),
contentId
:
this
.
data
.
contentInfo
.
id
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
CONTENT
,
//内容类型 1.文章 2.商品 3.页面
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
DETAILS_OF_THE_CONTENT
,
//内容类型
title
:
this
.
data
.
contentInfo
.
headline
,
//标题
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
}
...
...
@@ -179,13 +179,39 @@ wxService.page({
* 用户点击右上角分享
*/
onShareAppMessage
:
function
(
res
)
{
if
(
res
.
from
!=
'menu'
)
{
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
let
tentacleId
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
tentacleId
,
10
,
64
);
var
path
=
'pages/wantToBuyDetail/wantToBuyDetail?i='
+
id
+
'&t='
+
tentacleId
;
console
.
log
(
path
)
return
{
path
:
path
}
}
let
content
=
{
title
:
this
.
data
.
contentInfo
.
headline
,
id
:
this
.
data
.
contentInfo
.
id
,
article
:
this
.
data
.
contentInfo
.
article
,
url
:
this
.
data
.
contentInfo
.
url
}
let
tentacleInfo
=
{
content
:
JSON
.
stringify
(
content
),
contentId
:
this
.
data
.
contentInfo
.
id
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
DETAILS_OF_THE_CONTENT
,
//内容类型
title
:
this
.
data
.
contentInfo
.
headline
,
//标题
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
}
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
if
(
res
&&
res
.
tentacleId
)
{
let
id
=
Integer
.
digit
(
this
.
data
.
currentShareContent
.
id
,
10
,
64
);
this
.
data
.
currentShareContent
.
tentacleId
=
res
.
tentacleId
;
let
tentacleId
=
Integer
.
digit
(
res
.
tentacleId
,
10
,
64
);
var
path
=
'pages/wantToBuyDetail/wantToBuyDetail?i='
+
id
+
'&t='
+
tentacleId
;
return
{
path
:
path
}
}
});
}
})
\ No newline at end of file
src/pages/wantToBuyDetail/wantToBuyDetail.json
View file @
0a846df2
...
...
@@ -2,6 +2,7 @@
"navigationBarTitleText"
:
""
,
"usingComponents"
:
{
"go-home"
:
"/component/goHome/goHome"
,
"card-modal"
:
"/component/cardModal/cardModal"
,
"buy-image-swiper"
:
"/component/buyImageSwiper/buyImageSwiper"
}
}
\ No newline at end of file
src/subPackage/page/pages/categoryPro/categoryPro.js
View file @
0a846df2
...
...
@@ -29,6 +29,10 @@ wxService.page({
type
:
'new'
},
{
name
:
'最热'
,
type
:
'hot'
},
{
name
:
'价格'
,
type
:
'price'
},
...
...
@@ -155,7 +159,7 @@ wxService.page({
let
tentacleInfo
=
{
content
:
'商品列表'
,
title
:
'商品列表'
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
P
AGE
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
P
RODUCT_LIST
,
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
};
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
...
...
src/subPackage/page/pages/friendShareList/friendShareList.js
View file @
0a846df2
...
...
@@ -99,9 +99,10 @@ wxService.page({
item
.
id
=
item
.
productId
})
let
tentacleInfo
=
{
content
:
JSON
.
stringify
(
this
.
data
.
proList
)
,
content
:
'推广商品列表'
,
title
:
'推广商品'
,
contentType
:
3
,
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
};
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
...
...
src/subPackage/page/pages/myInvite/myInvite.js
View file @
0a846df2
...
...
@@ -27,6 +27,7 @@ wxService.page({
this
.
getYesterdayInviteNumber
()
this
.
getInviteMemberList
()
this
.
getInviteBanner
()
wx
.
hideShareMenu
()
},
// 获取当前邀请人数
...
...
src/subPackage/page/pages/myInvite/myInvite.wxml
View file @
0a846df2
...
...
@@ -18,7 +18,7 @@
</navigator>
<view class="order-benefit-wrap">
<view class="order-benefit-list" wx:for="{{inviteMemberList}}" wx:key="{{index}}">
<navigator url="/subPackage/page/pages/orderBenefit/orderBenefit" hover-class="none">
<navigator url="/subPackage/page/pages/orderBenefit/orderBenefit
?type=10
" hover-class="none">
<view class="top-info">
<image class="invite-avatar" src="{{item.headimgurl}}"></image>
<view class="invite-phone">
...
...
src/subPackage/page/pages/myRelease/myRelease.js
View file @
0a846df2
...
...
@@ -154,7 +154,7 @@ wxService.page({
let
tentacleInfo
=
{
content
:
JSON
.
stringify
(
e
.
detail
),
contentId
:
e
.
detail
.
id
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
CONET
NT
,
//内容类型 1.文章 2.商品 3.页面
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
DETAILS_OF_THE_CONTE
NT
,
//内容类型 1.文章 2.商品 3.页面
title
:
e
.
detail
.
title
,
//标题
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
}
...
...
@@ -214,9 +214,9 @@ wxService.page({
}
let
tentacleInfo
=
{
content
:
'我的发布'
,
content
:
'我的发布
页面
'
,
title
:
'我的发布'
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
PAGE
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
CONTENTS_LIST
,
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
};
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
...
...
src/subPackage/page/pages/myReleaseDetail/myReleaseDetail.js
View file @
0a846df2
...
...
@@ -41,7 +41,7 @@ wxService.page({
// 分享
onTapShare
(){
let
content
=
{
headlin
e
:
this
.
data
.
contentInfo
.
headline
,
titl
e
:
this
.
data
.
contentInfo
.
headline
,
id
:
this
.
data
.
contentInfo
.
id
,
article
:
this
.
data
.
contentInfo
.
article
,
url
:
this
.
data
.
contentInfo
.
url
...
...
@@ -49,7 +49,7 @@ wxService.page({
let
tentacleInfo
=
{
content
:
JSON
.
stringify
(
content
),
contentId
:
this
.
data
.
contentInfo
.
id
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
CONETNT
,
//内容类型 1.文章 2.商品 3.页面
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
DETAILS_OF_THE_CONTENT
,
//内容类型
title
:
this
.
data
.
contentInfo
.
headline
,
//标题
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
}
...
...
@@ -210,16 +210,23 @@ wxService.page({
}
}
let
content
=
{
title
:
this
.
data
.
contentInfo
.
headline
,
id
:
this
.
data
.
contentInfo
.
id
,
article
:
this
.
data
.
contentInfo
.
article
,
url
:
this
.
data
.
contentInfo
.
url
}
let
tentacleInfo
=
{
content
:
'种草详情'
,
title
:
'种草详情'
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
PAGE
,
content
:
JSON
.
stringify
(
content
),
contentId
:
this
.
data
.
contentInfo
.
id
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
DETAILS_OF_THE_CONTENT
,
//内容类型
title
:
this
.
data
.
contentInfo
.
headline
,
//标题
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
}
;
}
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
if
(
res
&&
res
.
tentacleId
)
{
let
tentacleId
=
Integer
.
digit
(
res
.
tentacleId
,
10
,
64
);
var
path
=
`pages/wantToBuyDetail/wantToBuyDetail?t=
${
tentacleId
}
`
;
var
path
=
'pages/wantToBuyDetail/wantToBuyDetail?i='
+
id
+
'&t='
+
tentacleId
;
return
{
path
:
path
}
...
...
src/subPackage/page/pages/myReleaseDetail/myReleaseDetail.wxml
View file @
0a846df2
...
...
@@ -32,7 +32,9 @@
<view class="action-edit"> 编辑 </view>
</navigator>
</view>
<view class="action-check"> 查看收益 </view>
<navigator url="/subPackage/page/pages/orderBenefit/orderBenefit?id={{contentInfo.id}}&type=6" hover-class="none">
<view class="action-check"> 查看收益 </view>
</navigator>
</view>
</view>
</view>
...
...
src/subPackage/page/pages/orderBenefit/orderBenefit.js
View file @
0a846df2
...
...
@@ -13,14 +13,29 @@ wxService.page({
pageNum
:
1
,
pageSize
:
10
,
totalPages
:
0
,
orderBenefitList
:[]
orderBenefitList
:[],
id
:
''
,
type
:
''
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
wx
.
hideShareMenu
()
if
(
options
){
if
(
options
.
id
){
this
.
setData
({
id
:
options
.
id
})
}
if
(
options
.
type
){
this
.
setData
({
type
:
options
.
type
})
}
}
},
/**
...
...
@@ -42,9 +57,12 @@ wxService.page({
title
:
'加载中'
,
mask
:
true
})
wxService
.
post
(
`/marketing/awardRecord/queryAward?pageNum=
${
pageNum
}
&pageSize=
${
pageSize
}
`
,
{
userId
:
memberId
}).
then
(
res
=>
{
let
params
=
{
userId
:
memberId
,
type
:
this
.
data
.
type
,
sourceId
:
this
.
data
.
id
}
wxService
.
post
(
`/marketing/awardRecord/queryAward?pageNum=
${
pageNum
}
&pageSize=
${
pageSize
}
`
,
params
).
then
(
res
=>
{
if
(
res
)
{
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
)
{
...
...
src/subPackage/page/pages/paymentStatus/paymentStatus.js
View file @
0a846df2
...
...
@@ -18,7 +18,7 @@ wxService.page({
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
wx
.
hideShareMenu
()
},
/**
...
...
src/subPackage/page/pages/plus/plus.js
View file @
0a846df2
...
...
@@ -78,11 +78,10 @@ wxService.page({
* 用户点击右上角分享
*/
onShareAppMessage
:
function
()
{
console
.
log
(
'00000'
,
app
.
globalData
.
contants
)
let
tentacleInfo
=
{
content
:
'plus购买页'
,
title
:
'plus购买页'
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
P
AGE
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
P
LUS
,
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
};
wxService
.
getTentacleContent
(
tentacleInfo
).
then
(
res
=>
{
...
...
src/subPackage/page/pages/share/share.js
View file @
0a846df2
...
...
@@ -32,7 +32,7 @@ wxService.page({
onShow
:
function
()
{
this
.
getShareImg
()
this
.
getMiniCode
()
wx
.
hideShareMenu
()
},
//轮播图的切换事件
...
...
@@ -108,8 +108,8 @@ wxService.page({
// 保存海报
savePoster
(){
let
tentacleInfo
=
{
content
:
"我的邀请"
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
PAGE
,
//内容类型 1.文章 2.商品 3.页面
content
:
"我的邀请
页面
"
,
contentType
:
app
.
globalData
.
contants
.
SHARE_TYPE
.
INVITE_FRIENDS
,
//内容类型
title
:
'我的邀请'
,
//标题
type
:
3
// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
}
...
...
src/utils/const.js
View file @
0a846df2
...
...
@@ -2,11 +2,30 @@
const
contants
=
{
SHARE_TYPE
:
{
CONETNT
:
1
,
//内容
GOODS
:
2
,
//商品
PAGE
:
3
//页面
HOME
:
1
,
//首页
CLASSIFY
:
2
,
//分类
PRODUCT_LIST
:
3
,
//商品列表页面
PRODUCT_DETAIL
:
4
,
//商品详情页面
CONTENTS_LIST
:
5
,
//内容列表页面
DETAILS_OF_THE_CONTENT
:
6
,
//"内容详情页面"
PRODUCTS_PROMOTION
:
7
,
//"商品推广页面"
SET_POINT_ACTIVITY
:
8
,
// "集点活动页面"
SET_POINT_DETAILS
:
9
,
// "集点详情页面"
INVITE_FRIENDS
:
10
,
//"邀请好友页面"
PLUS
:
11
,
// "plus购买页面"
BE_INVITED
:
12
,
// "被邀请注册"
SHARE_THE_GOODS
:
13
,
// "分享商品"
POST_REWARDS
:
14
,
// "种草奖励"
FOR_THE_FIRST_TIME
:
15
,
// "首单"
TRANSMIT
:
16
,
// "转发统计"
ENJOY
:
17
,
// "点赞统计"
READ
:
18
,
//"阅读统计"
}
}
module
.
exports
=
contants
\ No newline at end of file
module
.
exports
=
contants
src/utils/wxService.js
View file @
0a846df2
...
...
@@ -281,6 +281,10 @@ class WXService extends Http {
wx
.
setStorageSync
(
'TENTACLE_CONTENT'
,
storageObj
)
wx
.
setStorageSync
(
'TIME_EXPIRATION'
,
expiration
)
}
else
{
wx
.
removeStorageSync
(
'TENTACLE_CONTENT'
)
wx
.
removeStorageSync
(
'TIME_EXPIRATION'
)
}
}).
finally
(()
=>
{
})
...
...
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