Commit 6974b695 by 杨北旺

修改文案

1 parent edaf18e9
import mapApi from '../../../utils/mapapi/mapapi' import mapApi from '../../../utils/mapapi/mapapi'
Component({ Page({
options: { options: {
styleIsolation: 'shared' styleIsolation: 'shared'
}, },
...@@ -59,25 +59,24 @@ Component({ ...@@ -59,25 +59,24 @@ Component({
3: 'pt_vip_bg' 3: 'pt_vip_bg'
}, },
// 普通会员3 银卡2 金卡1 非会员 0 // 普通会员3 银卡2 金卡1 非会员 0
identity:0, identity: 0,
titleClass:{ titleClass: {
0:'', 0: '',
1:'gold_title', 1: 'gold_title',
2:'sliver_title', 2: 'sliver_title',
3:'card_title', 3: 'card_title',
}, },
dateClass:{ dateClass: {
0:'', 0: '',
1:'gold_date', 1: 'gold_date',
2:'sliver_date', 2: 'sliver_date',
3:'card_date', 3: 'card_date',
} }
}, },
/** /**
* 组件的方法列表 * 组件的方法列表
*/ */
methods: {
onLoad() { onLoad() {
this.getShopPackage() this.getShopPackage()
this.getMemberCardData() this.getMemberCardData()
...@@ -234,7 +233,7 @@ Component({ ...@@ -234,7 +233,7 @@ Component({
}, },
// 获取门店套餐 // 获取门店套餐
getShopPackage() { getShopPackage() {
const {merchantId} = wx.p.storage.get('merchant_info') const { merchantId } = wx.p.storage.get('merchant_info')
let para = { let para = {
merchantId merchantId
} }
...@@ -265,18 +264,18 @@ Component({ ...@@ -265,18 +264,18 @@ Component({
return return
} }
wx.p.api.equityApi.checkOpenMember().then(res => { wx.p.api.equityApi.checkOpenMember().then(res => {
let flag = false,identity = 0 // 普通会员3 银卡2 金卡1 非会员 0 let flag = false, identity = 0 // 普通会员3 银卡2 金卡1 非会员 0
if (res.data && res.data.validitDate) { if (res.data && res.data.validitDate) {
res.data.time = new Date(res.data.validitDate).format('yyyy.MM.dd') res.data.time = new Date(res.data.validitDate).format('yyyy.MM.dd')
} }
if(res.data&&res.data.endTime){ if (res.data && res.data.endTime) {
res.data.endTime = new Date(res.data.endTime).format('yyyy.MM.dd') res.data.endTime = new Date(res.data.endTime).format('yyyy.MM.dd')
} }
// 普通会员 // 普通会员
if (res.code == 0 && res.data) { if (res.code == 0 && res.data) {
flag = true flag = true
identity = 3 identity = 3
if(res.data&&res.data.cardTypeSpecial){ if (res.data && res.data.cardTypeSpecial) {
identity = res.data.cardTypeSpecial identity = res.data.cardTypeSpecial
} }
} }
...@@ -292,7 +291,7 @@ Component({ ...@@ -292,7 +291,7 @@ Component({
// 获取门店会员卡信息 // 获取门店会员卡信息
getMemberCardData() { getMemberCardData() {
const {merchantId} = wx.p.storage.get('merchant_info') const { merchantId } = wx.p.storage.get('merchant_info')
let para = { let para = {
merchantId merchantId
} }
...@@ -363,5 +362,4 @@ Component({ ...@@ -363,5 +362,4 @@ Component({
}) })
}) })
} }
}
}) })
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!