Commit 6974b695 by 杨北旺

修改文案

1 parent edaf18e9
import mapApi from '../../../utils/mapapi/mapapi'
Component({
Page({
options: {
styleIsolation: 'shared'
},
......@@ -59,25 +59,24 @@ Component({
3: 'pt_vip_bg'
},
// 普通会员3 银卡2 金卡1 非会员 0
identity:0,
titleClass:{
0:'',
1:'gold_title',
2:'sliver_title',
3:'card_title',
identity: 0,
titleClass: {
0: '',
1: 'gold_title',
2: 'sliver_title',
3: 'card_title',
},
dateClass:{
0:'',
1:'gold_date',
2:'sliver_date',
3:'card_date',
dateClass: {
0: '',
1: 'gold_date',
2: 'sliver_date',
3: 'card_date',
}
},
/**
* 组件的方法列表
*/
methods: {
onLoad() {
this.getShopPackage()
this.getMemberCardData()
......@@ -234,7 +233,7 @@ Component({
},
// 获取门店套餐
getShopPackage() {
const {merchantId} = wx.p.storage.get('merchant_info')
const { merchantId } = wx.p.storage.get('merchant_info')
let para = {
merchantId
}
......@@ -265,18 +264,18 @@ Component({
return
}
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) {
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')
}
// 普通会员
if (res.code == 0 && res.data) {
flag = true
identity = 3
if(res.data&&res.data.cardTypeSpecial){
if (res.data && res.data.cardTypeSpecial) {
identity = res.data.cardTypeSpecial
}
}
......@@ -292,7 +291,7 @@ Component({
// 获取门店会员卡信息
getMemberCardData() {
const {merchantId} = wx.p.storage.get('merchant_info')
const { merchantId } = wx.p.storage.get('merchant_info')
let para = {
merchantId
}
......@@ -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!