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
b01c5767
Commit
b01c5767
authored
Apr 11, 2020
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除多余打印日志
parent
0f157558
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
23 additions
and
43 deletions
+23
-43
app.js
src/app.js
+5
-5
announcement.js
src/component/announcement/announcement.js
+1
-1
attention.js
src/component/attention/attention.js
+1
-1
cardModal.js
src/component/cardModal/cardModal.js
+2
-2
exchange-coupon-modal.js
src/component/exchange-coupon-modal/exchange-coupon-modal.js
+1
-1
floatNav.js
src/component/floatNav/floatNav.js
+1
-3
goGuid.js
src/component/goGuid/goGuid.js
+0
-2
wxHtml.js
src/component/html2wxml/wxHtml.js
+1
-1
plus.js
src/component/plus/plus.js
+2
-5
productListStyleOne.js
src/component/productListStyleOne/productListStyleOne.js
+0
-1
relatedOrderItem.js
src/component/relatedOrderItem/relatedOrderItem.js
+1
-2
sharePoster.js
src/component/sharePoster/sharePoster.js
+2
-3
uploadVideo.js
src/component/uploadVideo/uploadVideo.js
+0
-3
waterFlowLayout.js
src/component/waterFlowLayoutGoods/waterFlowLayout.js
+0
-2
activateCardCallback.js
src/pages/activateCard/activateCardCallback.js
+0
-2
cart.js
src/pages/cart/cart.js
+1
-1
confirmOrder.js
src/pages/confirmOrder/confirmOrder.js
+1
-1
memberOfOwn.js
src/pages/memberOfOwn/memberOfOwn.js
+2
-2
my.js
src/pages/my/my.js
+2
-2
myAddress.js
src/pages/myAddress/myAddress.js
+0
-3
No files found.
src/app.js
View file @
b01c5767
...
...
@@ -14,7 +14,7 @@ let isPlusVip = false
App
({
onLaunch
:
function
(
e
)
{
console
.
log
(
'onLaunch---'
,
e
);
//
console.log('onLaunch---',e);
// "navigationStyle": "custom"
// 默认 false
wx
.
setStorageSync
(
'reLoginErr'
,
false
)
...
...
@@ -40,7 +40,7 @@ App({
if
(
res
.
windowHeight
>
750
)
config
.
isAllScreen
=
true
;
config
.
systemHeight
=
res
.
windowHeight
;
}
catch
(
e
)
{
console
.
log
(
err
);
//
console.log(err);
}
},
//检查新版本
...
...
@@ -49,7 +49,7 @@ App({
updateManager
.
onCheckForUpdate
(
function
(
res
)
{
// 请求完新版本信息的回调
console
.
log
(
'请求完新版本信息的回调 ---'
,
res
.
hasUpdate
)
//
console.log('请求完新版本信息的回调 ---',res.hasUpdate)
});
updateManager
.
onUpdateReady
(
function
()
{
...
...
@@ -72,9 +72,9 @@ App({
//判断是不是从企业微信控制台点击进来的
isFromQiyeConsoleIn
(
options
){
options
=
options
?
options
:
{};
console
.
log
(
'场景值1 ========'
,
options
.
scene
)
//
console.log('场景值1 ========', options.scene)
let
scene
=
wx
.
getLaunchOptionsSync
().
scene
;
console
.
log
(
'场景值2 ========'
,
scene
)
//
console.log('场景值2 ========', scene)
//判断是不是在企业微信中通过工作台打开的
if
(
options
.
scene
==
1119
||
scene
==
1119
)
{
wx
.
redirectTo
({
...
...
src/component/announcement/announcement.js
View file @
b01c5767
...
...
@@ -32,7 +32,7 @@ Component({
handelToAnn
(
e
){
const
ev
=
e
.
currentTarget
.
dataset
;
let
redirectId
=
ev
.
redirectId
console
.
log
(
'redirectid'
,
redirectId
)
//
console.log('redirectid', redirectId)
}
}
})
src/component/attention/attention.js
View file @
b01c5767
...
...
@@ -32,7 +32,7 @@ Component({
handelTo
(
e
)
{
const
ev
=
e
.
currentTarget
.
dataset
;
let
redirectId
=
ev
.
redirectId
console
.
log
(
'redirectid'
,
redirectId
)
//
console.log('redirectid', redirectId)
}
}
})
src/component/cardModal/cardModal.js
View file @
b01c5767
...
...
@@ -88,7 +88,7 @@ Component({
codeImg
:
app
.
globalData
.
imageUrl
+
data
// codeImg: "https://hwimagecdn.ihotwind.cn/usr/201908/miniQrCode-f00c5051fef7479395efb193431762c4.jpg"
})
console
.
log
(
this
.
data
.
codeImg
)
//
console.log(this.data.codeImg)
if
(
this
.
data
.
codeImg
)
{
// this.selectComponent('#getPoster').getAvaterInfo()
if
(
this
.
data
.
product
){
...
...
@@ -123,7 +123,7 @@ Component({
},
_showMiniCard
(
e
){
console
.
log
(
e
)
//
console.log(e)
this
.
setData
({
showCardModal
:
true
})
...
...
src/component/exchange-coupon-modal/exchange-coupon-modal.js
View file @
b01c5767
...
...
@@ -93,7 +93,7 @@ Component({
})
}
}).
catch
(
err
=>
{
console
.
log
(
'err'
,
err
)
//
console.log('err',err)
})
}
}
...
...
src/component/floatNav/floatNav.js
View file @
b01c5767
...
...
@@ -29,11 +29,10 @@ Component({
},
attached
(){
console
.
log
(
'attached'
)
//
console.log('attached')
},
lifetimes
:
{
ready
()
{
console
.
log
(
123123
)
this
.
userHasLogined
();
this
.
getPageConfig
();
}
...
...
@@ -129,7 +128,6 @@ Component({
},
//点击menu
bindNav
(
event
)
{
console
.
log
(
event
)
utilLink
.
currentLinkRouter
(
event
,
this
)
},
//弹出nav动画
...
...
src/component/goGuid/goGuid.js
View file @
b01c5767
...
...
@@ -22,12 +22,10 @@ Component({
},
lifetimes
:{
ready
(){
console
.
log
(
'组件ready'
)
//获取当前环境是不是企业微信
const
currentEnv
=
wx
.
getStorageSync
(
'_qyWeChat'
)
?
wx
.
getStorageSync
(
'_qyWeChat'
)
:
null
;
const
loginUserInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
?
wx
.
getStorageSync
(
'_baseUserInfo'
)
:
null
;
if
(
currentEnv
&&
loginUserInfo
){
console
.
log
(
loginUserInfo
)
let
qiyeInfo
=
loginUserInfo
.
member
.
qiyeInfo
?
loginUserInfo
.
member
.
qiyeInfo
:
null
;
if
(
!
qiyeInfo
){
this
.
setData
({
...
...
src/component/html2wxml/wxHtml.js
View file @
b01c5767
...
...
@@ -29,7 +29,7 @@ Component({
},
attached
:
function
()
{
console
.
log
(
this
)
//
console.log(this)
},
moved
:
function
()
{
},
detached
:
function
()
{
...
...
src/component/plus/plus.js
View file @
b01c5767
...
...
@@ -60,7 +60,6 @@ Component({
},
_getUserInfo
(
res
=
{})
{
const
userInfo
=
res
.
detail
||
{}
console
.
log
(
'userInfo'
,
userInfo
)
// 先授权再领卡
if
(
res
.
detail
.
userInfo
)
{
utils
.
getUserInfoByBtn
(
userInfo
).
then
((
data
=
{})
=>
{
...
...
@@ -88,11 +87,11 @@ Component({
const
userInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
// 新用户去激活领卡
if
(
userInfo
&&
userInfo
.
member
&&
!
userInfo
.
member
.
mobile
)
{
console
.
log
(
'去开'
)
//
console.log('去开')
wxService
.
openCard
()
return
false
}
else
{
console
.
log
(
'已开'
)
//
console.log('已开')
}
// 跳转
const
urls
=
getCurrentPages
()
...
...
@@ -111,7 +110,6 @@ Component({
},
200
)
},
switchNav
(
e
)
{
console
.
log
(
e
)
this
.
setData
({
currentTab
:
e
.
currentTarget
.
dataset
.
current
,
id
:
e
.
currentTarget
.
dataset
.
id
,
...
...
@@ -138,7 +136,6 @@ Component({
if
(
!
res
)
return
false
;
const
{
result
,
data
}
=
res
&&
res
.
data
||
res
&&
res
.
result
if
(
result
==
0
)
{
console
.
log
(
'data'
,
data
)
let
amount
=
data
.
amount
||
0
wx
.
requestPayment
(
Object
.
assign
({
success
(
res
)
{
...
...
src/component/productListStyleOne/productListStyleOne.js
View file @
b01c5767
...
...
@@ -23,7 +23,6 @@ Component({
methods
:
{
//图片加载失败
imgLoadError
(
e
){
console
.
log
(
e
)
let
defaultUrl
=
'https://img3.bigaka.com/prd/3001/202003/20200331/30019aa78220-546f-41e0-8075-c2feb69e10b8.jpg'
;
let
index
=
e
.
currentTarget
.
dataset
.
index
;
this
.
data
.
imageData
[
index
].
indexUrl
=
defaultUrl
;
...
...
src/component/relatedOrderItem/relatedOrderItem.js
View file @
b01c5767
...
...
@@ -40,7 +40,6 @@ Component({
*/
methods
:
{
selectCoupon
(
e
)
{
console
.
log
(
e
)
let
proData
=
[]
let
proList
=
this
.
data
.
proList
var
index
=
e
.
currentTarget
.
dataset
.
index
...
...
@@ -57,7 +56,7 @@ Component({
proData
.
push
(
proList
[
i
])
}
}
console
.
log
(
proData
)
wxService
.
nextTick
(()
=>
{
this
.
triggerEvent
(
'_selectCoupon'
,
proData
)
})
...
...
src/component/sharePoster/sharePoster.js
View file @
b01c5767
...
...
@@ -207,7 +207,6 @@ Component({
ctx
.
setFillStyle
(
'#d8d8d8'
);
ctx
.
setTextAlign
(
'left'
);
}
console
.
log
(
that
.
data
.
userAvatar
)
// 品牌头像
if
(
that
.
data
.
userAvatar
)
{
ctx
.
drawImage
(
that
.
data
.
userAvatar
,
12
,
290
,
40
,
40
);
...
...
@@ -355,7 +354,7 @@ Component({
if
(
res
.
confirm
)
{
}
},
fail
:
function
(
res
)
{
console
.
log
(
res
)
//
console.log(res)
}
})
},
...
...
@@ -369,7 +368,7 @@ Component({
})
},
fail
:
function
(
err
)
{
console
.
log
(
err
)
//
console.log(err)
}
},
that
);
},
1000
);
...
...
src/component/uploadVideo/uploadVideo.js
View file @
b01c5767
...
...
@@ -29,10 +29,8 @@ Component({
methods
:
{
//点击上传图片
uploadVideo
(
src
){
console
.
log
(
envInfo
)
var
url
=
envInfo
.
ctx
+
'/merchant/upload/file'
var
that
=
this
console
.
log
(
url
)
wx
.
uploadFile
({
url
:
url
,
//服务器接口
// method: 'POST',//这句话好像可以不用
...
...
@@ -46,7 +44,6 @@ Component({
if
(
res
.
statusCode
==
200
){
var
imgdata
=
JSON
.
parse
(
res
.
data
);
var
img
=
imgdata
.
data
[
0
];
console
.
log
(
img
)
wxService
.
nextTick
(()
=>
{
that
.
triggerEvent
(
'_uploadVideo'
,
img
)
})
...
...
src/component/waterFlowLayoutGoods/waterFlowLayout.js
View file @
b01c5767
...
...
@@ -33,7 +33,6 @@ Component({
observers
:
{
currentHasUserInfo
(
val
)
{
console
.
log
(
val
)
this
.
setData
({
userIsLogin
:
val
})
...
...
@@ -57,7 +56,6 @@ Component({
},
onTapShare
(
e
)
{
if
(
e
.
currentTarget
.
dataset
.
currentType
!=
2
)
return
;
console
.
log
(
e
)
let
params
=
{
url
:
e
.
currentTarget
.
dataset
.
url
,
title
:
e
.
currentTarget
.
dataset
.
title
,
...
...
src/pages/activateCard/activateCardCallback.js
View file @
b01c5767
...
...
@@ -29,8 +29,6 @@ wxService.page({
this
.
handleGoActivateCard
(
this
.
options
)
},
handleGoActivateCard
(
options
=
{})
{
console
.
log
(
'options------------'
,
options
)
if
(
Object
.
keys
(
options
).
length
==
0
){
this
.
goUserCenter
()
return
false
...
...
src/pages/cart/cart.js
View file @
b01c5767
...
...
@@ -428,7 +428,7 @@ wxService.page({
shopCartTotalFee
:
totalFee
.
toFixed
(
2
)
})
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
)
//
console.log('用户点击取消')
}
}
})
...
...
src/pages/confirmOrder/confirmOrder.js
View file @
b01c5767
...
...
@@ -1080,7 +1080,7 @@ wxService.page({
})
},
fail
:
function
(
err
)
{
console
.
log
(
err
)
//
console.log(err)
}
})
},
...
...
src/pages/memberOfOwn/memberOfOwn.js
View file @
b01c5767
...
...
@@ -276,7 +276,7 @@ wxService.page({
},
canvasIdErrorCallback
(
e
)
{
console
.
log
(
'code-me'
,
e
.
detail
.
errMsg
)
//
console.log('code-me', e.detail.errMsg)
},
// 更新
handelMemberUplate
(
params
)
{
...
...
@@ -301,7 +301,7 @@ wxService.page({
})
},
bindTextAreaBlur
:
function
(
e
)
{
console
.
log
(
e
.
detail
.
value
)
//
console.log(e.detail.value)
},
//日期选择
...
...
src/pages/my/my.js
View file @
b01c5767
...
...
@@ -78,12 +78,12 @@ wxService.page({
},
//联系我方法
startmessage
(
e
)
{
console
.
log
(
'联系我插件信息startmessage----'
,
e
)
//
console.log('联系我插件信息startmessage----', e)
// console.log('startmessage', e)
},
completemessage
(
e
)
{
let
ret
=
e
.
detail
;
console
.
log
(
'联系我插件信息completemessage----'
,
ret
)
//
console.log('联系我插件信息completemessage----', ret)
if
(
ret
.
errcode
==
-
3002
||
ret
.
errcode
==
-
3004
||
ret
.
errcode
==
-
3005
)
{
wx
.
showToast
({
title
:
'联系失败,请联系管理员'
,
...
...
src/pages/myAddress/myAddress.js
View file @
b01c5767
...
...
@@ -72,7 +72,6 @@ wxService.page({
chooseWxAddress
()
{
wx
.
chooseAddress
({
success
:
(
res
)
=>
{
console
.
log
(
res
)
this
.
setData
({
addressInfo
:
res
})
...
...
@@ -169,7 +168,6 @@ wxService.page({
content
:
'确认删除该地址吗?'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'用户点击确定'
)
wxService
.
post
(
`/member/addressManage/delete`
,{
id
:
id
}).
then
(
res
=>
{
...
...
@@ -184,7 +182,6 @@ wxService.page({
}).
finally
(()
=>
{
})
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
)
}
}
})
...
...
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