Commit 53fcc439 by xinla

--no commit message

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