Commit 3b72dc5c by 杨北旺 Committed by chenwq

修复线上问题

1 parent 5de107d6
import { preReleaseAppId } from '~/config' import { preReleaseAppId } from '~/config'
const target = ['ip', 'dev', 'uat', 'prod', 'preRelease'] const target = ['ip', 'dev', 'uat', 'prod', 'preRelease']
let index = 4 let index = 3
/** /**
* *
......
...@@ -38,7 +38,9 @@ Page({ ...@@ -38,7 +38,9 @@ Page({
// 获取门店 // 获取门店
getMerchantInfo() { getMerchantInfo() {
let merchantId = this.data.userInfo.merchantId const {
merchantId
} = wx.p.storage.get('merchant_info')
wx.p.api.mineApi wx.p.api.mineApi
.getMerchantDetail({ .getMerchantDetail({
merchantId merchantId
...@@ -85,9 +87,12 @@ Page({ ...@@ -85,9 +87,12 @@ Page({
handleConfirm() { handleConfirm() {
const phoneRex = /^[1]([3-9])[0-9]{9}$/ const phoneRex = /^[1]([3-9])[0-9]{9}$/
// console.log(this.data.carInfo) // console.log(this.data.carInfo)
const {
merchantId
} = wx.p.storage.get('merchant_info')
let obj = { let obj = {
channelType: 'DJ', channelType: 'DJ',
merchantId: this.data.userInfo.merchantId, merchantId: merchantId,
// 线索类型(1:客户意见,2:卖车询价,3:救援服务,4:新车询价,5:试驾预约,6:维保) // 线索类型(1:客户意见,2:卖车询价,3:救援服务,4:新车询价,5:试驾预约,6:维保)
type: 3, type: 3,
phone: this.data.phone, phone: this.data.phone,
......
...@@ -38,9 +38,12 @@ Page({ ...@@ -38,9 +38,12 @@ Page({
jumpCommodity(e) { jumpCommodity(e) {
let { item } = e.currentTarget.dataset let { item } = e.currentTarget.dataset
// console.log('item',item); // console.log('item',item);
const {
merchantId
} = wx.p.storage.get('merchant_info')
let { id } = item let { id } = item
let isActivity = false 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 }) wx.p.router.go('/packageMall/pages/detail/detail', { id, isActivity, notIntercept: true })
} else { } else {
wx.p.wxApi.showToast('其他门店商品,暂不支持查看') wx.p.wxApi.showToast('其他门店商品,暂不支持查看')
......
...@@ -50,13 +50,18 @@ Page({ ...@@ -50,13 +50,18 @@ Page({
}, },
// 去购买会员 // 去购买会员
async openMemberFn() { async openMemberFn() {
wx.p.router.intercept() const authStatus = await wx.p.router.intercept()
if (authStatus) return
const { memberInfo } = this.data const { memberInfo } = this.data
const {
merchantId
} = wx.p.storage.get('merchant_info')
wx.p.wxApi.showLoading() wx.p.wxApi.showLoading()
let para = { let para = {
equityClassId: memberInfo.equityClassId, equityClassId: memberInfo.equityClassId,
orderCode: memberInfo.orderCode, orderCode: memberInfo.orderCode,
orderSource: 3 orderSource: 3,
merchantId
} }
wx.p.api.equityApi.buyMemberCard(para).then(res => { wx.p.api.equityApi.buyMemberCard(para).then(res => {
wx.hideLoading() wx.hideLoading()
......
...@@ -70,7 +70,6 @@ Page({ ...@@ -70,7 +70,6 @@ Page({
memberUrl: options.isOpenMember ? 'bg-member' : 'bg-member-first' memberUrl: options.isOpenMember ? 'bg-member' : 'bg-member-first'
}) })
} }
this.getMemberCardData()
}, },
navbarReady(e) { navbarReady(e) {
let { let {
...@@ -179,6 +178,7 @@ Page({ ...@@ -179,6 +178,7 @@ Page({
this.getOrderNumberList() this.getOrderNumberList()
this.toCheckMember() this.toCheckMember()
this.getUserCarList() this.getUserCarList()
this.getMemberCardData()
}, },
......
...@@ -16,7 +16,9 @@ export const STORAGE_OBJECTkEY = { ...@@ -16,7 +16,9 @@ export const STORAGE_OBJECTkEY = {
scrm_shopmall_staff_uuid: 'scrm_shopmall_staff_uuid', scrm_shopmall_staff_uuid: 'scrm_shopmall_staff_uuid',
srcm_shopmall_merchant_id: 'srcm_shopmall_merchant_id', srcm_shopmall_merchant_id: 'srcm_shopmall_merchant_id',
guest_no: 'guest_no', 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{ export default{
......
...@@ -95,6 +95,10 @@ class Share { ...@@ -95,6 +95,10 @@ class Share {
getCommonData() { getCommonData() {
const WXUSERINFO = wx.p.storage.get('wx_user_info'), //针对没登录用户,有openid const WXUSERINFO = wx.p.storage.get('wx_user_info'), //针对没登录用户,有openid
USERINFO = wx.p.storage.get('userInfo') //这个是针对登录的 USERINFO = wx.p.storage.get('userInfo') //这个是针对登录的
const {
merchantId
} = wx.p.storage.get('merchant_info')
USERINFO.merchantId = merchantId
return { return {
WXUSERINFO, WXUSERINFO,
USERINFO USERINFO
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!