From 92dd4aaaa7fb67c4d65df18e0e69cbc6775575d3 Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Wed, 23 Apr 2025 19:19:13 +0800
Subject: [PATCH] feat 沙特添加石油黄金
---
src/page/user/favorites.vue | 82 ++++++++++++++++++++--------------------
1 files changed, 41 insertions(+), 41 deletions(-)
diff --git a/src/page/user/favorites.vue b/src/page/user/favorites.vue
index 811ef93..05b3eac 100644
--- a/src/page/user/favorites.vue
+++ b/src/page/user/favorites.vue
@@ -296,9 +296,9 @@
class="price_color"
v-if="
tabsItemIndex == 0 ||
- tabsItemIndex == 2 ||
- tabsItemIndex == 3 ||
- tabsItemIndex == 4
+ tabsItemIndex == 2 ||
+ tabsItemIndex == 3 ||
+ tabsItemIndex == 4
"
:class="item.hcrate > 0 ? 'green' : 'red'"
>
@@ -327,9 +327,9 @@
class="price_color"
v-if="
tabsItemIndex == 0 ||
- tabsItemIndex == 2 ||
- tabsItemIndex == 3 ||
- tabsItemIndex == 4
+ tabsItemIndex == 2 ||
+ tabsItemIndex == 3 ||
+ tabsItemIndex == 4
"
:class="item.hcrate > 0 ? 'green' : 'red'"
>{{ item.hcrate }}</span
@@ -432,7 +432,7 @@
export default {
components: {
AllList,
- GoToLogin,
+ GoToLogin
},
props: {},
data() {
@@ -455,14 +455,14 @@
orderBy: "",
bannerImgsArr: [
{
- img: banner1,
+ img: banner1
},
{
- img: banner2,
+ img: banner2
},
{
- img: banner3,
- },
+ img: banner3
+ }
],
announcementMess: "20202/10 - 交易时间安排",
tabsIndex0010: 0,
@@ -482,7 +482,7 @@
userInfo: [],
showPopover: false,
- listArr: [],
+ listArr: []
};
},
computed: {
@@ -490,20 +490,20 @@
return [
{
img: Tops,
- title: this.$t("hj1"),
+ title: this.$t("hj1")
},
{
img: Rumen,
- title: this.$t("hj2"),
+ title: this.$t("hj2")
},
{
img: Xuexi,
- title: this.$t("hj3"),
+ title: this.$t("hj3")
},
{
img: Guanyu,
- title: this.$t("hj4"),
- },
+ title: this.$t("hj4")
+ }
// {
// img: dazong,
// title: this.$t('hj261')
@@ -513,7 +513,7 @@
// title: this.$t('hj279')
// }
];
- },
+ }
},
methods: {
onLoad() {
@@ -575,7 +575,7 @@
handleGoToKlineDetail(item) {
const obj = {
pid: item.code || "",
- type: item.stock_type || "",
+ type: item.stock_type || ""
};
window.localStorage.setItem("kLine", JSON.stringify(obj));
var codes = "";
@@ -657,12 +657,12 @@
sok: soks,
if_us: ifUs,
usType: item.type,
- if_zhishu: ifZhishu,
- },
+ if_zhishu: ifZhishu
+ }
});
}
},
- getStock001: handleDt.debounce(async function () {
+ getStock001: handleDt.debounce(async function() {
let data = await api.getOptionStock();
if (data.status === 0) {
@@ -676,7 +676,7 @@
getdialog() {
MessageBox.confirm(this.$t("hj252"), this.$t("hj165"), {
confirmButtonText: this.$t("hj161"),
- cancelButtonText: this.$t("hj106"),
+ cancelButtonText: this.$t("hj106")
})
.then(async () => {})
.catch(() => {});
@@ -689,7 +689,7 @@
// });
},
- gpinput: handleDt.debounce(function () {
+ gpinput: handleDt.debounce(function() {
this.pageNum = 1;
this.listArr = [];
this.listArr1 = [];
@@ -744,8 +744,8 @@
code: item.symbol.substring(2, item.symbol.length),
type: item.market,
sok: this.filterSH(item.market),
- if_zhishu: "0",
- },
+ if_zhishu: "0"
+ }
});
},
filterSH(val) {
@@ -771,8 +771,8 @@
this.$router.push({
path: "/trading-list",
query: {
- listid: 5,
- },
+ listid: 5
+ }
});
break;
case 3:
@@ -795,14 +795,14 @@
async getBanner() {
// 获取显示的banner
let result = await api.getBannerByPlat({
- platType: "m",
+ platType: "m"
});
if (result.status === 0) {
this.bannerList = result.data;
} else {
this.$store.commit("elAlertShow", {
elAlertShow: true,
- elAlertText: result.msg,
+ elAlertText: result.msg
});
}
},
@@ -822,7 +822,7 @@
} else {
this.$store.commit("elAlertShow", {
elAlertShow: true,
- elAlertText: data.msg,
+ elAlertText: data.msg
});
}
},
@@ -837,7 +837,7 @@
stockPlate: this.stockPlate,
keyWords: this.gpcode,
stockType: stockType,
- orderBy: this.orderBy,
+ orderBy: this.orderBy
};
let data = await api.getStockByType(opt);
if (data.status === 0) {
@@ -845,7 +845,7 @@
} else {
this.$store.commit("elAlertShow", {
elAlertShow: true,
- elAlertText: data.msg,
+ elAlertText: data.msg
});
}
},
@@ -863,7 +863,7 @@
stockPlate: this.stockPlate,
keyWords: this.gpcode,
stockType: stockType,
- orderBy: this.orderBy,
+ orderBy: this.orderBy
};
let data = await api.getOrderList(opt);
if (data.status === 0) {
@@ -872,7 +872,7 @@
} else {
this.$store.commit("elAlertShow", {
elAlertShow: true,
- elAlertText: data.msg,
+ elAlertText: data.msg
});
}
},
@@ -990,17 +990,17 @@
},
onChange(index) {
this.currentIndex = index;
- this.proData[index].forEach((item) => {});
+ this.proData[index].forEach(item => {});
},
handleSearchClick() {
// this.loading = !this.loading;
this.$router.push({
path: "/trading-list",
query: {
- type: 1,
- },
+ type: 1
+ }
});
- },
+ }
},
filters: {
gettime(time) {
@@ -1031,7 +1031,7 @@
}
// 17:35:2922-06-2022
return y + "-" + mm + "-" + d + " " + h + ":" + m + ":" + c;
- },
+ }
},
created() {
// this.getdialog()
@@ -1065,7 +1065,7 @@
setTimeout(() => {
this.loading = false;
}, 2000);
- },
+ }
};
</script>
<style lang="less" scoped>
--
Gitblit v1.9.3