# K-32 Trade Inquiry 商機ok CP
###### tags: `bizOk`
> [name=RoyHuang]
------------------------------------------------------------------------
## API 清單
No | API | Desc | 執行順序 | 執行條件 | 參考
---|--------------------------------------------------------------------------------------|----------------------------|----------|-------------|---
1 | [URI-O-12](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-12-Check-business-data) | check business data | 1 | page init
2 | [URI-O-17](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-17-Prepare-language-label-tag) | Prepare language label tag | 1 | page init | 無
------------------------------------------------------------------------
## 原頁面網址
- https://www.ttstaging.com.tw/bizOk/tradeInquiry/in1/biz639712
- 相關程式
- front
- com.hyweb.tt.cms.front.rest.BizOkResource.java
- adm
- com.hyweb.tt.cms.cm.layoutdefine.consumer.BizOkConsumer.java
## 原頁面 URL 解析
- https://www.ttstaging.com.tw/bizOk/tradeInquiry/in{ 登入類型 }/biz{ bizId }
No | Parameter | Type | Desc
---|-----------|------|--------------------------------------
1 | 登入類型 | int | 1: TT_USER、2: SOCIAL_USER、4: REGISTER
2 | bizId | int | 商機id(business_post.id)
------------------------------------------------------------------------
## 頁面解說
商機成功頁面顯示方式
- 共三種,TT_USER、SOCIAL_USER、REGISTER
#### TT_USER

- Header Service
參考[`L01`](https://docs.google.com/spreadsheets/d/1FfU1adulMCzdWNQNjagsm5rHYhokRwhKfzY-Lurvw9Q/edit#gid=1382704913)

- K-32-01
No | API | Desc
---|--------------------------------------------------------------------------------------|---------------------------
1 | [URI-O-17](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-17-Prepare-language-label-tag) | Prepare language label tag

- K-32-02
No | API | Desc
---|--------------------------------------------------------------------------------------|---------------------------
1 | [URI-O-17](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-17-Prepare-language-label-tag) | Prepare language label tag

- 參考首頁 Footer
#### SOCIAL_USER

- K-32-03
- 其餘區塊皆同
No | API | Desc
---|--------------------------------------------------------------------------------------|---------------------------
1 | [URI-O-17](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-17-Prepare-language-label-tag) | Prepare language label tag
#### REGISTER

- K-32-04
- 其餘區塊皆同
No | API | Desc
---|--------------------------------------------------------------------------------------|---------------------------
1 | [URI-O-17](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-17-Prepare-language-label-tag) | Prepare language label tag
------------------------------------------------------------------------
### 頁面欄位說明
#### TT_USER


#### SOCIAL_USER
- 以下只列出差異部分

#### REGISTER
- 以下只列出差異部分

#### 藍1
Step 1 Fill in the form
- UI 邏輯: 下商機的頁面,文字需要 highlight
- 資料來源,多語標籤
- API: [URI-O-17](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-17-Prepare-language-label-tag)
```=
ez_step1 + fillintheform
```
#### 藍2
Step 2 Completion
- UI 邏輯: 文字需要 highlight
- 資料來源,多語標籤
- API: [URI-O-17](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-17-Prepare-language-label-tag)
```=
ez_step2 + completion
```
#### 藍3
Your inquiry has been sent.
- 資料來源,多語標籤
- API: [URI-O-17](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-17-Prepare-language-label-tag)
```=
yourinquiryhasbeensent
```
#### 藍4
Thank you for using Taiwantrade.com!
- 資料來源,多語標籤
- API: [URI-O-17](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-17-Prepare-language-label-tag)
```=
thankyouforusingtaiwantradecom
```
#### 藍5
Please remember to add us e-member@taiwantrade.com to your email filter (or un-spam) so you won't miss out on important messages from us or the suppliers you've been waiting to hear from.
- 資料來源,多語標籤
- API: [URI-O-17](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-17-Prepare-language-label-tag)
```=
generaladdinquiry
```
#### 藍6
Link Facebook Messenger with your Taiwantrade.com account
- 資料來源,多語標籤
- API: [URI-O-17](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-17-Prepare-language-label-tag)
```=
like_us_on_fb_and_link
```
#### 藍7
Link your Taiwantrade.com account with Messenger to see messages on the go.
- 資料來源,多語標籤
- API: [URI-O-17](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-17-Prepare-language-label-tag)
```=
link_your_taiwantradecom_account
```
#### 藍8
How to link
- UI 邏輯
- 點擊會連結至 https://www.taiwantrade.com/static/howto/{ languageCode }/msg_link.html
- languageCode 由 header 取得
- 資料來源,多語標籤
- API: [URI-O-17](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-17-Prepare-language-label-tag)
```=
how_to_link
```
#### 藍101
You've also successfully created a Taiwantrade.com account.
- 資料來源,多語標籤
- API: [URI-O-17](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-17-Prepare-language-label-tag)
```=
thankyouforusingtaiwantradecom
```
#### 藍102
Please remember to add us e-member@taiwantrade.com to your email filter (or un-spam) so you won't miss out on important messages from us or the suppliers you've been waiting to hear from.
- 資料來源,多語標籤
- API: [URI-O-17](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-17-Prepare-language-label-tag)
```=
logintoenjoythefullbenefitsofourbuyerservices
```
#### 藍201
Please click the link in the email we just sent you to activate your account immediately. Your inquiries will be processed after the activation. If you cannot find the email in your inbox, please check your Spam, Bulk, or Trash folders, or email us at: e-member@taiwantrade.com.
- 資料來源,多語標籤
- API: [URI-O-17](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-17-Prepare-language-label-tag)
```=
newregisteraddinquiry
```
#### 藍202
Please remember to add us e-member@taiwantrade.com to your email filter (or un-spam) so you won't miss out on important messages from us or the suppliers you've been waiting to hear from.
- 資料來源,多語標籤
- API: [URI-O-17](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-17-Prepare-language-label-tag)
```=
newregisteraddinquiry2
```
#### 藍203
Thank you for using Taiwantrade.com!
- 資料來源,多語標籤
- API: [URI-O-17](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-17-Prepare-language-label-tag)
```=
thankyouforusingtaiwantradecom
```
------------------------------------------------------------------------
### 頁面邏輯說明
- 根據不同身分者(TT_USER、SOCIAL_USER、REGISTER),顯示不同商機成功的訊息
- TT_USER: 透過 TT 系統註冊的會員
- SOCIAL_USER: 透過第三方註冊的會員,如: FB、Twitter
- REGISTER: 新註冊會員
------------------------------------------------------------------------
### 頁面輸出
```json=
{
"code" : <int> ,
"errorMsg" : <string> ,
"data" : {
-- check biz data
"checkBizInfo" : {},
-- 多語
"label": [
{
"code": <int>,
"name": <string>,
},
...{}
]
}
}
}
```
No | API | Desc
---|--------------------------------------------------------------------------------------|---------------------------
1 | [URI-O-12](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-12-Check-business-data) | check business data
2 | [URI-O-17](https://hackmd.io/cCmvIP36SCyTsLbZCPrbhg?view#URI-O-17-Prepare-language-label-tag) | Prepare language label tag