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
623dc73b
Commit
623dc73b
authored
Mar 18, 2020
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
d717d299
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
0 deletions
+60
-0
index.js
src/config/index.js
+52
-0
home.js
src/shoppingGuid/page/pages/home/home.js
+7
-0
wxService.js
src/utils/wxService.js
+1
-0
No files found.
src/config/index.js
View file @
623dc73b
...
...
@@ -22,6 +22,7 @@ const PROJECT_ENV = 'test' // 生产 prod, 开发 dev, 测试 test , 测试门
//2016 阿吉豆
//2017 ACTREE wx2aae34874e88cdf5
//2992 山东盛联微商城 wx53dedc202ae0d0c2
//2002 巴黎贝甜 wx21968cb3a486d4ab
const
BRANCH_ID
=
1002
const
isMall
=
true
...
...
@@ -64,11 +65,13 @@ const prod_brand_config = {
contactUsIsOpen
:
true
,
//是否开启联系我
contactUsPluginId
:
'766c50920993bf9c41c6c3d2761a2df5'
,
//联系我们插件PluginID
hasTrial
:
false
,
// 是否有体验账号
hasLiveVideo
:
true
,
//是否有直播功能
isMall
:
isMall
,
// 商城或门户 true 商城 false 门户
orderingMustOpenCard
:
false
,
//下单是否必须卡开
canUseWechatAddress
:
true
,
//是否使用获取微信地址
isOpenSelfMention
:
true
,
// 是否开启门店自提
isNeedGetLocation
:
true
,
//是否开启小程序获取位置(提交订单时获取门店信息)
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
shareTitle
:
'【舞象星品荟-社交商城】'
,
logo
:
'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/logo_head.png'
,
},
...
...
@@ -84,8 +87,10 @@ const prod_brand_config = {
contactUsPluginId
:
'a6ea55b56eb09ced8f9aeeaa14383b52'
,
hasTrial
:
false
,
isMall
:
isMall
,
hasLiveVideo
:
true
,
//是否有直播功能
orderingMustOpenCard
:
true
,
isOpenSelfMention
:
true
,
// 是否开启门店自提
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle
:
'【泰华微商城】'
,
logo
:
'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/taihua_logo.png'
,
...
...
@@ -101,8 +106,10 @@ const prod_brand_config = {
contactUsPluginId
:
'78353bb39251a60b473f3d4ae81b1c39'
,
hasTrial
:
false
,
isMall
:
isMall
,
hasLiveVideo
:
false
,
//是否有直播功能
orderingMustOpenCard
:
true
,
isOpenSelfMention
:
false
,
// 是否开启门店自提
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle
:
'【多多一上】'
,
logo
:
'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/duoduoyishang_logo.png'
,
...
...
@@ -118,7 +125,9 @@ const prod_brand_config = {
contactUsPluginId
:
''
,
hasTrial
:
false
,
isMall
:
isMall
,
hasLiveVideo
:
false
,
//是否有直播功能
orderingMustOpenCard
:
false
,
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
isOpenSelfMention
:
false
,
// 是否开启门店自提
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle
:
'【雪岛书屋】'
,
...
...
@@ -134,8 +143,10 @@ const prod_brand_config = {
contactUsPluginId
:
''
,
canUseWechatAddress
:
true
,
//是否使用获取微信地址
hasTrial
:
false
,
hasLiveVideo
:
false
,
//是否有直播功能
isMall
:
isMall
,
orderingMustOpenCard
:
false
,
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
isOpenSelfMention
:
false
,
// 是否开启门店自提
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle
:
'【苏州邻里】'
,
...
...
@@ -150,10 +161,12 @@ const prod_brand_config = {
contactUsIsOpen
:
false
,
//是否开启联系我
contactUsPluginId
:
''
,
//联系我们插件PluginID
hasTrial
:
false
,
// 是否有体验账号
hasLiveVideo
:
false
,
//是否有直播功能
canUseWechatAddress
:
true
,
//是否使用获取微信地址
isMall
:
isMall
,
// 商城或门户 true 商城 false 门户
orderingMustOpenCard
:
false
,
//下单是否必须卡开
isOpenSelfMention
:
false
,
// 是否开启门店自提
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle
:
'【LA RUTA DE VIA】'
,
//分享海报上显示的小程序title
logo
:
'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/laru.jpg'
,
//商户logo
...
...
@@ -168,8 +181,10 @@ const prod_brand_config = {
contactUsPluginId
:
'f86b306023ec790b70c0b45fcf308b04'
,
hasTrial
:
false
,
isMall
:
isMall
,
hasLiveVideo
:
false
,
//是否有直播功能
canUseWechatAddress
:
false
,
//是否使用获取微信地址
orderingMustOpenCard
:
false
,
guiderCanScanQrcode
:
false
,
//导购是否有扫一扫功能
isOpenSelfMention
:
false
,
// 是否开启门店自提
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle
:
'【hotwind热风微商城】'
,
...
...
@@ -185,8 +200,10 @@ const prod_brand_config = {
canUseWechatAddress
:
true
,
//是否使用获取微信地址
contactUsPluginId
:
'e61babc802dd4d0d1e819130f7aa4bc5'
,
hasTrial
:
false
,
hasLiveVideo
:
true
,
//是否有直播功能
isMall
:
isMall
,
orderingMustOpenCard
:
true
,
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
isOpenSelfMention
:
true
,
// 是否开启门店自提
isNeedGetLocation
:
true
,
//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle
:
'【悦芙媞微商城】'
,
...
...
@@ -201,10 +218,12 @@ const prod_brand_config = {
contactUsIsOpen
:
true
,
contactUsPluginId
:
''
,
hasTrial
:
false
,
hasLiveVideo
:
false
,
//是否有直播功能
isMall
:
isMall
,
canUseWechatAddress
:
true
,
//是否使用获取微信地址
orderingMustOpenCard
:
false
,
isOpenSelfMention
:
false
,
// 是否开启门店自提
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle
:
'【阿特里里微商城】'
,
logo
:
'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/logo_head.png'
,
...
...
@@ -217,10 +236,12 @@ const prod_brand_config = {
plusIsOpen
:
false
,
contactUsIsOpen
:
true
,
contactUsPluginId
:
''
,
hasLiveVideo
:
false
,
//是否有直播功能
hasTrial
:
false
,
canUseWechatAddress
:
true
,
//是否使用获取微信地址
isMall
:
isMall
,
orderingMustOpenCard
:
false
,
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
isOpenSelfMention
:
false
,
// 是否开启门店自提
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle
:
'【包鞋微商城】'
,
...
...
@@ -236,9 +257,11 @@ const prod_brand_config = {
contactUsPluginId
:
''
,
hasTrial
:
false
,
isMall
:
isMall
,
hasLiveVideo
:
false
,
//是否有直播功能
canUseWechatAddress
:
true
,
//是否使用获取微信地址
orderingMustOpenCard
:
false
,
isOpenSelfMention
:
false
,
// 是否开启门店自提
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle
:
'【花在花园微商城】'
,
logo
:
'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/logo_head.png'
,
...
...
@@ -253,9 +276,11 @@ const prod_brand_config = {
contactUsPluginId
:
''
,
hasTrial
:
false
,
isMall
:
isMall
,
hasLiveVideo
:
false
,
//是否有直播功能
canUseWechatAddress
:
true
,
//是否使用获取微信地址
orderingMustOpenCard
:
false
,
isOpenSelfMention
:
false
,
// 是否开启门店自提
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle
:
'【阿吉豆微商城】'
,
logo
:
'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/logo_head.png'
,
...
...
@@ -268,10 +293,12 @@ const prod_brand_config = {
plusIsOpen
:
false
,
contactUsIsOpen
:
false
,
contactUsPluginId
:
''
,
hasLiveVideo
:
false
,
//是否有直播功能
hasTrial
:
false
,
canUseWechatAddress
:
true
,
//是否使用获取微信地址
isMall
:
isMall
,
orderingMustOpenCard
:
true
,
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
isOpenSelfMention
:
false
,
// 是否开启门店自提
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle
:
'【ACTREE】'
,
...
...
@@ -290,9 +317,30 @@ const prod_brand_config = {
canUseWechatAddress
:
true
,
//是否使用获取微信地址
orderingMustOpenCard
:
true
,
isOpenSelfMention
:
true
,
// 是否开启门店自提
hasLiveVideo
:
false
,
//是否有直播功能
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
isNeedGetLocation
:
true
,
//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle
:
'【山东盛联微商城】'
,
logo
:
'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/shandongshenglian_logo.jpg'
,
},
//2002 巴黎贝甜
2002
:
{
appId
:
'wx21968cb3a486d4ab'
,
tunnelToken
:
'2c626cb97cd05b635ae85ace7acb5608'
,
brandId
:
2002
,
plusIsOpen
:
false
,
contactUsIsOpen
:
false
,
contactUsPluginId
:
''
,
hasTrial
:
true
,
isMall
:
isMall
,
canUseWechatAddress
:
true
,
//是否使用获取微信地址
orderingMustOpenCard
:
false
,
isOpenSelfMention
:
true
,
// 是否开启门店自提
hasLiveVideo
:
false
,
//是否有直播功能
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
isNeedGetLocation
:
true
,
//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle
:
'【有一种甜叫巴黎贝甜~】'
,
logo
:
'https://img3.bigaka.com/prd/3001/202003/20200318/3001c0647584-3656-45e9-ae60-c898d435113e.png'
,
}
}
...
...
@@ -386,6 +434,8 @@ let shareTitle = PROJECT_ENV == 'prod' ? prod_brand_config[BRANCH_ID].shareTitle
let
shareLogo
=
PROJECT_ENV
==
'prod'
?
prod_brand_config
[
BRANCH_ID
].
logo
:
defaultShareLogo
;
let
isNeedGetLocation
=
PROJECT_ENV
==
'prod'
?
prod_brand_config
[
BRANCH_ID
].
isNeedGetLocation
:
true
;
let
canUseWechatAddress
=
PROJECT_ENV
==
'prod'
?
prod_brand_config
[
BRANCH_ID
].
canUseWechatAddress
:
true
;
let
hasLiveVideo
=
PROJECT_ENV
==
'prod'
?
prod_brand_config
[
BRANCH_ID
].
hasLiveVideo
:
false
;
let
guiderCanScanQrcode
=
PROJECT_ENV
==
'prod'
?
prod_brand_config
[
BRANCH_ID
].
guiderCanScanQrcode
:
true
;
//配置信息导出
const
envInfo
=
(()
=>
{
return
{
...
...
@@ -407,6 +457,8 @@ const envInfo = (() => {
shareLogo
:
shareLogo
,
speadProductsBanner
:
speadProductsBanner
,
canUseWechatAddress
:
canUseWechatAddress
,
hasLiveVideo
:
hasLiveVideo
,
guiderCanScanQrcode
:
guiderCanScanQrcode
,
}
})()
...
...
src/shoppingGuid/page/pages/home/home.js
View file @
623dc73b
...
...
@@ -76,6 +76,13 @@ wxService.page({
},
//打开摄像头 扫码
onTapScanQrcode
(){
if
(
!
this
.
data
.
guiderCanScanQrcode
){
wx
.
showToast
({
title
:
'对不起,您无该权限!'
,
icon
:
'none'
});
return
;
}
wx
.
scanCode
({
success
:
res
=>
{
let
result
=
res
.
result
;
...
...
src/utils/wxService.js
View file @
623dc73b
...
...
@@ -655,6 +655,7 @@ class WXService extends Http {
config
.
data
.
shareTitle
=
envInfo
.
shareTitle
;
config
.
data
.
speadProductsBanner
=
envInfo
.
speadProductsBanner
;
config
.
data
.
canUseWechatAddress
=
envInfo
.
canUseWechatAddress
;
config
.
data
.
guiderCanScanQrcode
=
envInfo
.
guiderCanScanQrcode
;
//默认
config
.
data
.
loading
=
true
;
...
...
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