Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
zhwy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 58dd7254
authored
Oct 13, 2023
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复线上问题
1 parent
ed1d6599
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
8 deletions
api/env/index.js
packageEquity/pages/road/roadInfo/roadInfo.js
packageMine/pages/coupon/recommend/recommend.js
packageSaveMoney/pages/open/open.js
pages/tab/mine/index.js
utils/constants.js
utils/share.js
api/env/index.js
View file @
58dd725
import
{
preReleaseAppId
}
from
'~/config'
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'preRelease'
]
let
index
=
4
let
index
=
3
/**
*
...
...
packageEquity/pages/road/roadInfo/roadInfo.js
View file @
58dd725
...
...
@@ -38,7 +38,9 @@ Page({
// 获取门店
getMerchantInfo
()
{
let
merchantId
=
this
.
data
.
userInfo
.
merchantId
const
{
merchantId
}
=
wx
.
p
.
storage
.
get
(
'merchant_info'
)
wx
.
p
.
api
.
mineApi
.
getMerchantDetail
({
merchantId
...
...
@@ -85,9 +87,12 @@ Page({
handleConfirm
()
{
const
phoneRex
=
/^
[
1
]([
3-9
])[
0-9
]{9}
$/
// console.log(this.data.carInfo)
const
{
merchantId
}
=
wx
.
p
.
storage
.
get
(
'merchant_info'
)
let
obj
=
{
channelType
:
'DJ'
,
merchantId
:
this
.
data
.
userInfo
.
merchantId
,
merchantId
:
merchantId
,
// 线索类型(1:客户意见,2:卖车询价,3:救援服务,4:新车询价,5:试驾预约,6:维保)
type
:
3
,
phone
:
this
.
data
.
phone
,
...
...
packageMine/pages/coupon/recommend/recommend.js
View file @
58dd725
...
...
@@ -38,9 +38,12 @@ Page({
jumpCommodity
(
e
)
{
let
{
item
}
=
e
.
currentTarget
.
dataset
// console.log('item',item);
const
{
merchantId
}
=
wx
.
p
.
storage
.
get
(
'merchant_info'
)
let
{
id
}
=
item
let
isActivity
=
false
if
(
this
.
data
.
couponInfo
.
merchantId
==
this
.
data
.
userInfo
.
merchantId
)
{
if
(
this
.
data
.
couponInfo
.
merchantId
==
merchantId
)
{
wx
.
p
.
router
.
go
(
'/packageMall/pages/detail/detail'
,
{
id
,
isActivity
,
notIntercept
:
true
})
}
else
{
wx
.
p
.
wxApi
.
showToast
(
'其他门店商品,暂不支持查看'
)
...
...
packageSaveMoney/pages/open/open.js
View file @
58dd725
...
...
@@ -50,13 +50,18 @@ Page({
},
// 去购买会员
async
openMemberFn
()
{
wx
.
p
.
router
.
intercept
()
const
authStatus
=
await
wx
.
p
.
router
.
intercept
()
if
(
authStatus
)
return
const
{
memberInfo
}
=
this
.
data
const
{
merchantId
}
=
wx
.
p
.
storage
.
get
(
'merchant_info'
)
wx
.
p
.
wxApi
.
showLoading
()
let
para
=
{
equityClassId
:
memberInfo
.
equityClassId
,
orderCode
:
memberInfo
.
orderCode
,
orderSource
:
3
orderSource
:
3
,
merchantId
}
wx
.
p
.
api
.
equityApi
.
buyMemberCard
(
para
).
then
(
res
=>
{
wx
.
hideLoading
()
...
...
pages/tab/mine/index.js
View file @
58dd725
...
...
@@ -70,7 +70,6 @@ Page({
memberUrl
:
options
.
isOpenMember
?
'bg-member'
:
'bg-member-first'
})
}
this
.
getMemberCardData
()
},
navbarReady
(
e
)
{
let
{
...
...
@@ -179,6 +178,7 @@ Page({
this
.
getOrderNumberList
()
this
.
toCheckMember
()
this
.
getUserCarList
()
this
.
getMemberCardData
()
},
...
...
utils/constants.js
View file @
58dd725
...
...
@@ -16,7 +16,9 @@ export const STORAGE_OBJECTkEY = {
scrm_shopmall_staff_uuid
:
'scrm_shopmall_staff_uuid'
,
srcm_shopmall_merchant_id
:
'srcm_shopmall_merchant_id'
,
guest_no
:
'guest_no'
,
scrm_shopmall_car_brand_list
:
"scrm_shopmall_car_brand_list"
scrm_shopmall_car_brand_list
:
"scrm_shopmall_car_brand_list"
,
shareStaff
:
"shareStaff"
,
miaoshatrack
:
'miaoshatrack'
}
export
default
{
...
...
utils/share.js
View file @
58dd725
...
...
@@ -95,6 +95,10 @@ class Share {
getCommonData
()
{
const
WXUSERINFO
=
wx
.
p
.
storage
.
get
(
'wx_user_info'
),
//针对没登录用户,有openid
USERINFO
=
wx
.
p
.
storage
.
get
(
'userInfo'
)
//这个是针对登录的
const
{
merchantId
}
=
wx
.
p
.
storage
.
get
(
'merchant_info'
)
USERINFO
.
merchantId
=
merchantId
return
{
WXUSERINFO
,
USERINFO
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment