|
|
|
@ -191,6 +191,8 @@ function handle_request_data() { |
|
|
|
|
data['env'] = UserApiData.value.base_info['env'] |
|
|
|
|
data['type'] = UserApiData.value.api[activeTab.value]['type'] |
|
|
|
|
data['api'] = UserApiData.value.api[activeTab.value]['path'] |
|
|
|
|
data['pid'] = UserApiData.value.base_info['channel'] |
|
|
|
|
data['cid'] = UserApiData.value.base_info['cinema'] |
|
|
|
|
data['params'] = JSON.stringify(req_data) |
|
|
|
|
return data |
|
|
|
|
} |
|
|
|
@ -253,7 +255,11 @@ async function get_suggest(options = {sale_type: saleType.value}) { |
|
|
|
|
if (UserApiData.value.api[activeTab.value].reload === true) { |
|
|
|
|
const api_type = UserApiData.value.api[activeTab.value].type |
|
|
|
|
const api = UserApiData.value.api[activeTab.value].path |
|
|
|
|
await ec_api_get_suggest(api_type, api, options).then( |
|
|
|
|
const env = UserApiData.value.base_info['env'] |
|
|
|
|
const cid = UserApiData.value.base_info['cinema'] |
|
|
|
|
const pid = UserApiData.value.base_info['channel'] |
|
|
|
|
|
|
|
|
|
await ec_api_get_suggest(api_type, api, env, cid, pid, options).then( |
|
|
|
|
(res) => { |
|
|
|
|
console.log('get_suggest', api, res) |
|
|
|
|
let result = true |
|
|
|
@ -283,7 +289,10 @@ async function get_suggest(options = {sale_type: saleType.value}) { |
|
|
|
|
async function get_timestamp() { |
|
|
|
|
const api_type = UserApiData.value.api[activeTab.value].type |
|
|
|
|
const api = UserApiData.value.api[activeTab.value].path |
|
|
|
|
await ec_api_get_suggest_timestamp(api_type, api).then( |
|
|
|
|
const env = UserApiData.value.base_info['env'] |
|
|
|
|
const cid = UserApiData.value.base_info['cinema'] |
|
|
|
|
const pid = UserApiData.value.base_info['channel'] |
|
|
|
|
await ec_api_get_suggest_timestamp(api_type, api, env, cid, pid).then( |
|
|
|
|
res => { |
|
|
|
|
console.log('get_timestamp', res['timestamp']) |
|
|
|
|
if (res['timestamp'] > UserApiData.value.api[activeTab.value].timestamp) { |
|
|
|
@ -650,10 +659,10 @@ const ace_options = { |
|
|
|
|
</el-row> |
|
|
|
|
<v-ace-editor v-model:value="UserApiData.api[api['id']].response" :lang="UserApiData.api[api['id']]['format']" |
|
|
|
|
theme="chrome" :options="ace_options" class="vue-ace-editor" :wrap="true" style="width: 1200px"/> |
|
|
|
|
<MovieShow v-if="showList.length > 0" :show="showList" :data="UserApiData.api[activeTab]"/> |
|
|
|
|
<SeatStatus v-if="seatList.length > 0" :seat="seatList" :data="UserApiData.api[activeTab]"/> |
|
|
|
|
<CinemaGoods v-if="goodsList.length > 0" :goods="goodsList" :data="UserApiData.api[activeTab]"/> |
|
|
|
|
<EcardLevel v-if="levelList.length > 0" :level="levelList" :data="UserApiData.api[activeTab]"/> |
|
|
|
|
<MovieShow v-if="showList.length > 0" :show="showList" :data="UserApiData.api[activeTab]" :base_info="UserApiData.base_info"/> |
|
|
|
|
<SeatStatus v-if="seatList.length > 0" :seat="seatList" :data="UserApiData.api[activeTab]" :base_info="UserApiData.base_info"/> |
|
|
|
|
<CinemaGoods v-if="goodsList.length > 0" :goods="goodsList" :data="UserApiData.api[activeTab]" :base_info="UserApiData.base_info"/> |
|
|
|
|
<EcardLevel v-if="levelList.length > 0" :level="levelList" :data="UserApiData.api[activeTab]" :base_info="UserApiData.base_info"/> |
|
|
|
|
</el-tab-pane> |
|
|
|
|
</el-tabs> |
|
|
|
|
<el-backtop :right="100" :bottom="100" :visibility-height="200"/> |
|
|
|
|