Commit 53fcc439 by xinla

--no commit message

1 parent c2483e62
...@@ -24,11 +24,11 @@ function createAxios(baseURL) { ...@@ -24,11 +24,11 @@ function createAxios(baseURL) {
(res) => { (res) => {
// console.log('res: ' + res) // console.log('res: ' + res)
const { data, status } = res const { data, status } = res
// code 0:成功,-1/其它:错误 // code 200:成功,-1/其它:错误
if (status === 200 && data.code === 200) { if (status === 200 && data.code === 200) {
return data return data
} else if (data.code == 501) { } else if (data.code == 501) {
// 红包相关错误 // 红包领取相关错误
return data return data
} else { } else {
addErrorLog(res) addErrorLog(res)
......
...@@ -122,7 +122,7 @@ export default { ...@@ -122,7 +122,7 @@ export default {
avatar: this.avatar, avatar: this.avatar,
} }
receiveRedPacket(form).then((data) => { receiveRedPacket(form).then((data) => {
if (data.code === 200) { if (data.code == 200) {
return this.getReceiveList() return this.getReceiveList()
} else { } else {
this.errorMsg = data.msg this.errorMsg = data.msg
......
...@@ -25,7 +25,6 @@ export default { ...@@ -25,7 +25,6 @@ export default {
1: '待领取', 1: '待领取',
2: '已领取', 2: '已领取',
3: '发放失败', 3: '发放失败',
4: '退款中',
5: '已退款', 5: '已退款',
}), }),
} }
...@@ -181,7 +180,7 @@ export default { ...@@ -181,7 +180,7 @@ export default {
<div class="ml10"> <div class="ml10">
<p>{{ row.customerName }}</p> <p>{{ row.customerName }}</p>
<i :class="['el-icon-s-custom', { 1: 'man', 2: 'woman' }[row.gender]]"></i> <i :class="['el-icon-s-custom', { 1: 'man', 2: 'woman' }[row.gender]]"></i>
<span :style="{ color: row.customerType === 1 ? '#4bde03' : '#f9a90b' }"> <span :style="{ color: row.customerType == 1 ? '#4bde03' : '#f9a90b' }">
{{ { 1: '@微信', 2: '@企业微信' }[row.customerType] }} {{ { 1: '@微信', 2: '@企业微信' }[row.customerType] }}
</span> </span>
</div> </div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!