|
|
@ -3,10 +3,8 @@ |
|
|
|
<div class="step3-wrap min-flex"> |
|
|
|
<div class="step3-top flex-common"> |
|
|
|
<h3 class="flex gap8"><img src="@/assets/menu/littleTitleIcon1.svg" alt="">服务列表</h3> |
|
|
|
<div class="btngroup"> |
|
|
|
<GuipButton type="ignore" :btnstyle="{ width: '97px', height: '33px' }" @click="serviceAdd(1)">添加查重服务</GuipButton> |
|
|
|
<GuipButton type="ignore" :btnstyle="{ width: '97px', height: '33px' }" @click="serviceAdd(3)">添加写作辅助</GuipButton> |
|
|
|
<GuipButton type="ignore" :btnstyle="{ width: '97px', height: '33px' }" @click="serviceAdd(2)">添加AIGC</GuipButton> |
|
|
|
<div class="btngroup" v-if="addProd"> |
|
|
|
<GuipButton v-for="(item,key) in addProd" :key="item" type="ignore" :btnstyle="{ width: '97px', height: '33px' }" @click="serviceAdd(key)">添加{{item}}</GuipButton> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div> |
|
|
@ -173,11 +171,11 @@ export default { |
|
|
|
PromptText, GuipDialog, PaymentMethod, |
|
|
|
GuipTable, GuipSwitch, SvgIcon, GuipInput, |
|
|
|
GuipButton |
|
|
|
|
|
|
|
}, |
|
|
|
data(){ |
|
|
|
return { |
|
|
|
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k', |
|
|
|
addProd: {}, |
|
|
|
serviceList:[], |
|
|
|
tableLoading:false, |
|
|
|
currentPage: 1, //当前页 |
|
|
@ -252,9 +250,12 @@ export default { |
|
|
|
} |
|
|
|
}).then(response => { |
|
|
|
that.tableLoading = false |
|
|
|
if(response.status && response.data.service_list.length>0){ |
|
|
|
if(response.status){ |
|
|
|
that.$nextTick(() => { |
|
|
|
that.serviceList = response.data.service_list |
|
|
|
that.addProd = response.data.add_proids |
|
|
|
if(response.data.service_list){ |
|
|
|
that.serviceList = response.data.service_list |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}).catch(error => { |
|
|
|