| | |
| | | <div class="item_box_left_bottom">{{ item.name }}</div> |
| | | </div> |
| | | <div class="item_box_zj"> |
| | | {{ item.nowPrice | _toLocaleString(false) }} |
| | | {{ item.nowPrice }} |
| | | </div> |
| | | |
| | | <div |
| | |
| | | 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'" |
| | | > |
| | |
| | | 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 |
| | |
| | | export default { |
| | | components: { |
| | | AllList, |
| | | GoToLogin, |
| | | GoToLogin |
| | | }, |
| | | props: {}, |
| | | data() { |
| | |
| | | orderBy: "", |
| | | bannerImgsArr: [ |
| | | { |
| | | img: banner1, |
| | | img: banner1 |
| | | }, |
| | | { |
| | | img: banner2, |
| | | img: banner2 |
| | | }, |
| | | { |
| | | img: banner3, |
| | | }, |
| | | img: banner3 |
| | | } |
| | | ], |
| | | announcementMess: "20202/10 - 交易时间安排", |
| | | tabsIndex0010: 0, |
| | |
| | | userInfo: [], |
| | | showPopover: false, |
| | | |
| | | listArr: [], |
| | | listArr: [] |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | 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') |
| | |
| | | // title: this.$t('hj279') |
| | | // } |
| | | ]; |
| | | }, |
| | | } |
| | | }, |
| | | methods: { |
| | | onLoad() { |
| | |
| | | handleGoToKlineDetail(item) { |
| | | const obj = { |
| | | pid: item.code || "", |
| | | type: item.stock_type || "", |
| | | type: item.stock_type || "" |
| | | }; |
| | | window.localStorage.setItem("kLine", JSON.stringify(obj)); |
| | | var codes = ""; |
| | |
| | | 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) { |
| | |
| | | getdialog() { |
| | | MessageBox.confirm(this.$t("hj252"), this.$t("hj165"), { |
| | | confirmButtonText: this.$t("hj161"), |
| | | cancelButtonText: this.$t("hj106"), |
| | | cancelButtonText: this.$t("hj106") |
| | | }) |
| | | .then(async () => {}) |
| | | .catch(() => {}); |
| | |
| | | |
| | | // }); |
| | | }, |
| | | gpinput: handleDt.debounce(function () { |
| | | gpinput: handleDt.debounce(function() { |
| | | this.pageNum = 1; |
| | | this.listArr = []; |
| | | this.listArr1 = []; |
| | |
| | | code: item.symbol.substring(2, item.symbol.length), |
| | | type: item.market, |
| | | sok: this.filterSH(item.market), |
| | | if_zhishu: "0", |
| | | }, |
| | | if_zhishu: "0" |
| | | } |
| | | }); |
| | | }, |
| | | filterSH(val) { |
| | |
| | | this.$router.push({ |
| | | path: "/trading-list", |
| | | query: { |
| | | listid: 5, |
| | | }, |
| | | listid: 5 |
| | | } |
| | | }); |
| | | break; |
| | | case 3: |
| | |
| | | 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 |
| | | }); |
| | | } |
| | | }, |
| | |
| | | } else { |
| | | this.$store.commit("elAlertShow", { |
| | | elAlertShow: true, |
| | | elAlertText: data.msg, |
| | | elAlertText: data.msg |
| | | }); |
| | | } |
| | | }, |
| | |
| | | stockPlate: this.stockPlate, |
| | | keyWords: this.gpcode, |
| | | stockType: stockType, |
| | | orderBy: this.orderBy, |
| | | orderBy: this.orderBy |
| | | }; |
| | | let data = await api.getStockByType(opt); |
| | | if (data.status === 0) { |
| | |
| | | } else { |
| | | this.$store.commit("elAlertShow", { |
| | | elAlertShow: true, |
| | | elAlertText: data.msg, |
| | | elAlertText: data.msg |
| | | }); |
| | | } |
| | | }, |
| | |
| | | stockPlate: this.stockPlate, |
| | | keyWords: this.gpcode, |
| | | stockType: stockType, |
| | | orderBy: this.orderBy, |
| | | orderBy: this.orderBy |
| | | }; |
| | | let data = await api.getOrderList(opt); |
| | | if (data.status === 0) { |
| | |
| | | } else { |
| | | this.$store.commit("elAlertShow", { |
| | | elAlertShow: true, |
| | | elAlertText: data.msg, |
| | | elAlertText: data.msg |
| | | }); |
| | | } |
| | | }, |
| | |
| | | }, |
| | | 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) { |
| | |
| | | } |
| | | // 17:35:2922-06-2022 |
| | | return y + "-" + mm + "-" + d + " " + h + ":" + m + ":" + c; |
| | | }, |
| | | } |
| | | }, |
| | | created() { |
| | | // this.getdialog() |
| | |
| | | setTimeout(() => { |
| | | this.loading = false; |
| | | }, 2000); |
| | | }, |
| | | } |
| | | }; |
| | | </script> |
| | | <style lang="less" scoped> |