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
49957239
Commit
49957239
authored
May 26, 2020
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化签到
parent
b94524ee
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
15 deletions
+25
-15
productDetail.js
src/pages/productDetail/productDetail.js
+1
-0
project.config.json
src/project.config.json
+3
-1
categoryPro.js
src/subPackage/page/pages/categoryPro/categoryPro.js
+4
-0
liveSubscrib.js
...bPackageMarketing/page/pages/liveSubscrib/liveSubscrib.js
+1
-13
sign.js
src/subPackageMarketing/page/pages/sign/sign.js
+14
-0
sign.wxml
src/subPackageMarketing/page/pages/sign/sign.wxml
+2
-1
No files found.
src/pages/productDetail/productDetail.js
View file @
49957239
...
...
@@ -447,6 +447,7 @@ wxService.page({
this
.
data
.
productInfo
.
hasPromotionTag
=
markTagInfo
?
true
:
false
;
let
tagPrice
=
this
.
data
.
productInfo
.
minSalePrice
;
if
(
this
.
data
.
productInfo
.
hasPromotionTag
){
this
.
data
.
productInfo
.
markTagInfo
=
data
.
markTagInfo
;
this
.
data
.
productInfo
.
tagPic
=
this
.
data
.
productInfo
.
markTagInfo
.
tagPicUrl
;
if
(
this
.
data
.
productInfo
.
markTagInfo
.
tagType
==
2
){
tagPrice
=
this
.
data
.
productInfo
.
minSalePrice
;
...
...
src/project.config.json
View file @
49957239
...
...
@@ -7,6 +7,7 @@
"urlCheck"
:
false
,
"es6"
:
true
,
"postcss"
:
true
,
"preloadBackgroundData"
:
false
,
"minified"
:
true
,
"newFeature"
:
true
,
"coverView"
:
true
,
...
...
@@ -21,7 +22,8 @@
"disablePlugins"
:
[],
"outputPath"
:
""
},
"useCompilerModule"
:
true
"useCompilerModule"
:
true
,
"userConfirmedUseCompilerModuleSwitch"
:
false
},
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.8.2"
,
...
...
src/subPackage/page/pages/categoryPro/categoryPro.js
View file @
49957239
...
...
@@ -145,6 +145,10 @@ wxService.page({
pageSize
=
this
.
data
.
pageSize
;
// wxService.post(`/sale/product/buyer/listPageByCategoryId?pageNo=${pageNo}&pageSize=${pageSize}`, this.data.form).then(res => {
this
.
data
.
form
.
state
=
1
;
if
(
this
.
data
.
form
.
sortType
==
'recommend'
){
this
.
data
.
form
.
order
=
'desc'
;
}
wxService
.
post
(
`/sale/product/mallCategory/listPageProductByMallCategoryIdAndItsSons?pageNo=
${
pageNo
}
&pageSize=
${
pageSize
}
`
,
this
.
data
.
form
).
then
(
res
=>
{
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
&&
data
.
content
)
{
...
...
src/subPackageMarketing/page/pages/liveSubscrib/liveSubscrib.js
View file @
49957239
...
...
@@ -3,7 +3,7 @@ const wxService = require('../../../../utils/wxService')
const
utils
=
require
(
'../../../../utils/util'
)
import
{
Integer
}
from
'../../../../utils/integerDigitalConvertion'
const
app
=
getApp
();
let
livePlayer
=
requirePlugin
(
'live-player-plugin'
)
//
let livePlayer = requirePlugin('live-player-plugin')
wxService
.
page
({
...
...
@@ -24,18 +24,6 @@ wxService.page({
this
.
setData
({
room_id
:
this
.
data
.
room_id
});
livePlayer
.
getLiveStatus
({
room_id
:
this
.
data
.
room_id
}).
then
(
res
=>
{
console
.
log
(
res
)
})
setTimeout
(()
=>
{
wx
.
createSelectorQuery
().
select
(
'.live-player-subscribe__btn'
).
boundingClientRect
().
exec
((
res
)
=>
{
console
.
log
(
res
)
});
},
1000
);
},
//点击事件
...
...
src/subPackageMarketing/page/pages/sign/sign.js
View file @
49957239
...
...
@@ -8,6 +8,7 @@ wxService.page({
* 页面的初始数据
*/
data
:
{
webviewSignUrl
:
''
,
},
/**
...
...
@@ -15,6 +16,19 @@ wxService.page({
*/
onLoad
:
function
(
options
)
{
wx
.
hideShareMenu
();
let
token
=
wx
.
getStorageSync
(
'token'
);
if
(
token
){
this
.
data
.
webviewSignUrl
=
`
${
this
.
data
.
signUrl
}
&wx_minProgram_token=
${
token
}
`
this
.
setData
({
webviewSignUrl
:
this
.
data
.
webviewSignUrl
});
}
else
{
wx
.
showToast
({
title
:
'请选登录!'
,
icon
:
'none'
});
}
},
/**
...
...
src/subPackageMarketing/page/pages/sign/sign.wxml
View file @
49957239
<!--subPackageMarketing/page/pages/sign/sign.wxml-->
<view class="main-page">
<web-view src="{{
s
ignUrl}}"></web-view>
<web-view src="{{
webviewS
ignUrl}}"></web-view>
</view>
\ No newline at end of file
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