Commit 3b72dc5c by 杨北旺 Committed by chenwq

修复线上问题

1 parent 5de107d6
import { preReleaseAppId } from '~/config'
const target = ['ip', 'dev', 'uat', 'prod', 'preRelease']
let index = 4
let index = 3
/**
*
......
......@@ -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,
......
......@@ -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('其他门店商品,暂不支持查看')
......
......@@ -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()
......
......@@ -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()
},
......
......@@ -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{
......
......@@ -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
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!