@@ -375,6 +383,7 @@
var val = $(this).val();
var blance = $(this).attr('blance');
var unitPrice = $(this).find('option:selected').attr('unitprice');
+ if (!blance || !unitPrice) return;
if (unitPrice == 0) {
cloudbrain_resource_spec_blance_tip_el.find('.can-use-time').parent().hide();
} else {
diff --git a/templates/repo/cloudbrain/new.tmpl b/templates/repo/cloudbrain/new.tmpl
index 955457eef..c3fccbf34 100755
--- a/templates/repo/cloudbrain/new.tmpl
+++ b/templates/repo/cloudbrain/new.tmpl
@@ -243,16 +243,19 @@
@@ -405,6 +409,7 @@
var val = $(this).val();
var blance = $(this).attr('blance');
var unitPrice = $(this).find('option:selected').attr('unitprice');
+ if (!blance || !unitPrice) return;
if (unitPrice == 0) {
cloudbrain_resource_spec_blance_tip_el.find('.can-use-time').parent().hide();
} else {
diff --git a/templates/repo/cloudbrain/trainjob/new.tmpl b/templates/repo/cloudbrain/trainjob/new.tmpl
index 9b10897dd..de7ca766c 100755
--- a/templates/repo/cloudbrain/trainjob/new.tmpl
+++ b/templates/repo/cloudbrain/trainjob/new.tmpl
@@ -252,14 +252,17 @@
+ {{if .CloudBrainPaySwitch}}
+ {{end}}
@@ -513,6 +517,7 @@
var val = $(this).val();
var blance = $(this).attr('blance');
var unitPrice = $(this).find('option:selected').attr('unitprice');
+ if (!blance || !unitPrice) return;
if (unitPrice == 0) {
cloudbrain_resource_spec_blance_tip_el.find('.can-use-time').parent().hide();
} else {
diff --git a/templates/repo/modelarts/inferencejob/new.tmpl b/templates/repo/modelarts/inferencejob/new.tmpl
index 84b6d3951..f6fc6afd9 100644
--- a/templates/repo/modelarts/inferencejob/new.tmpl
+++ b/templates/repo/modelarts/inferencejob/new.tmpl
@@ -222,14 +222,17 @@
-
@@ -480,6 +484,7 @@
var val = $(this).val();
var blance = $(this).attr('blance');
var unitPrice = $(this).find('option:selected').attr('unitprice');
+ if (!blance || !unitPrice) return;
if (unitPrice == 0) {
cloudbrain_resource_spec_blance_tip_el.find('.can-use-time').parent().hide();
} else {
diff --git a/templates/repo/modelarts/notebook/new.tmpl b/templates/repo/modelarts/notebook/new.tmpl
index 38ac6b01f..2d4a821c6 100755
--- a/templates/repo/modelarts/notebook/new.tmpl
+++ b/templates/repo/modelarts/notebook/new.tmpl
@@ -92,13 +92,16 @@
-->
-
+
{{range .flavors}}
-
{{end}}
+ {{if .CloudBrainPaySwitch}}
+ {{end}}