|
|
|
@ -6,9 +6,9 @@ |
|
|
|
<view class="flex-row group_4 justify-between"> |
|
|
|
<view class="flex-row"> |
|
|
|
<text class="text_4">{{ merchant.name }}</text> |
|
|
|
<image v-if="showIcon(merchant.applymentState).img" :src="showIcon(merchant.applymentState).img" class="image_4" /> |
|
|
|
<image v-if="showIcon(merchant).img" :src="showIcon(merchant).img" class="image_4" /> |
|
|
|
</view> |
|
|
|
<view v-if="showIcon(merchant.applymentState).text" class="button" @click="checkInfo(merchant)">{{ showIcon(merchant.applymentState).text }}</view> |
|
|
|
<view v-if="showIcon(merchant).text" class="button" @click="checkInfo(merchant, showIcon(merchant).text)">{{ showIcon(merchant).text }}</view> |
|
|
|
</view> |
|
|
|
<view class="flex-col group_5" v-if="infoShowStatus.indexOf(merchant.applymentState) < -1"> |
|
|
|
<view class="top-section flex-col view_1"> |
|
|
|
@ -145,7 +145,8 @@ export default { |
|
|
|
urls: [url] |
|
|
|
}) |
|
|
|
}, |
|
|
|
showIcon(status) { |
|
|
|
showIcon(merchant) { |
|
|
|
let status = merchant.applymentState |
|
|
|
if (this.cache[status]) { |
|
|
|
return this.cache[status] |
|
|
|
} |
|
|
|
@ -158,6 +159,7 @@ export default { |
|
|
|
text: '' |
|
|
|
} |
|
|
|
let infoMap = [applyStatusEnum.RE_SUBMIT, applyStatusEnum.REJECTED, applyStatusEnum.CANCELED] |
|
|
|
let verifyMap = [applyStatusEnum.AUDITING, applyStatusEnum.WAIT_VERIFY, applyStatusEnum.WAIT_SIGN] |
|
|
|
if (status === applyStatusEnum.FINISHED) { |
|
|
|
result.img = '/static/imgs/merchant/apply-finished-icon.png' |
|
|
|
} else if (status === applyStatusEnum.WAIT_APPLY) { |
|
|
|
@ -167,12 +169,19 @@ export default { |
|
|
|
result.text = '查看' |
|
|
|
} else { |
|
|
|
result.img = '/static/imgs/merchant/apply-auditing-icon.png' |
|
|
|
if (verifyMap.includes(status) && merchant.signUrl) { |
|
|
|
result.text = '去验证' |
|
|
|
} |
|
|
|
} |
|
|
|
this.cache[status] = result |
|
|
|
return result |
|
|
|
}, |
|
|
|
checkInfo(merchant) { |
|
|
|
go2('merchant-setting', { info: JSON.stringify(merchant) }) |
|
|
|
checkInfo(merchant, text) { |
|
|
|
if (text == '去验证') { |
|
|
|
go2('page-view', { url: encodeURIComponent(merchant.signUrl) }) |
|
|
|
} else { |
|
|
|
go2('merchant-setting', { info: JSON.stringify(merchant) }) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|