| | |
| | | <div class="list-data"> |
| | | <div class="header-box"> |
| | | <van-row type="flex" align="center" gutter="20"> |
| | | <van-col span="8"> |
| | | <van-col span="11"> |
| | | <div> |
| | | {{ $t("hj313") }} |
| | | </div> |
| | | </van-col> |
| | | <van-col span="3"> |
| | | <!-- <van-col span="3"> |
| | | <div style="text-align: right"> |
| | | {{ $t("市场") }} |
| | | </div> |
| | | </van-col> |
| | | </van-col> --> |
| | | <van-col :span="active == 'DZ' ? '12' : '7'"> |
| | | <div style="text-align: right"> |
| | | {{ $t("hj314") }} |
| | |
| | | @select="onSelect" |
| | | > |
| | | <template #reference> |
| | | <van-button type="primary">الترتيب</van-button> |
| | | <van-button type="primary">{{ $t("排序") }}</van-button> |
| | | </template> |
| | | </van-popover> |
| | | </van-col> |
| | |
| | | :key="item.indexCode" |
| | | > |
| | | <van-row type="flex" align="center" gutter="20"> |
| | | <van-col span="8" style="padding-right: 0 !important;"> |
| | | <van-col span="13" style="padding-right: 0 !important;"> |
| | | <div> |
| | | <div class="tp"> |
| | | <div class="collection" @click="optionszx(item)"> |
| | |
| | | </div> |
| | | </van-col> |
| | | |
| | | <van-col span="3" v-if="active != 'HJ'"> |
| | | <!-- <van-col span="3" v-if="active != 'HJ'"> |
| | | <div style="text-align: right"> |
| | | {{ (item.gid || item.stockGid).toUpperCase() }} |
| | | </div> |
| | | </van-col> |
| | | </van-col> --> |
| | | |
| | | <van-col :span="active == 'DZ' ? '12' : '7'"> |
| | | <van-col :span="active == 'DZ' ? '12' : '5'"> |
| | | <div style="text-align: right"> |
| | | <div class="tp"> |
| | | <span class="price_color"> |
| | | {{ item.nowPrice | _toLocaleString(false) }} |
| | | {{ item.nowPrice }} |
| | | </span> |
| | | </div> |
| | | <div class="bt" v-if="active != 'DZ'"> |
| | |
| | | </div> |
| | | </div> |
| | | </van-col> |
| | | <van-col span="6" v-if="!['DZ', 'HJ'].includes(active)"> |
| | | <van-col span="6" v-if="!['DZ'].includes(active)"> |
| | | <div style="text-align: right"> |
| | | <div |
| | | class="tp right_bs" |
| | |
| | | orderBy: "", |
| | | refreshing: false, |
| | | actions: [ |
| | | { text: "ترتيب", zh: "升序", val: "asc" }, |
| | | { text: "التخفيض", zh: "降序", val: "desc" }, |
| | | { text: "طبيعي", zh: "正常", val: "" } |
| | | { text: this.$t("升序"), zh: "升序", val: "asc" }, |
| | | { text: this.$t("降序"), zh: "降序", val: "desc" }, |
| | | { text: this.$t("正常"), zh: "正常", val: "" } |
| | | ] |
| | | }; |
| | | }, |
| | |
| | | |
| | | data.data.list = Object.entries(data.data).map(([name, nowPrice]) => { |
| | | let nowPriceArr = Object.entries(nowPrice); |
| | | let nowPriceObj = {}; |
| | | nowPriceArr.map(item => { |
| | | if (name === item[0]) { |
| | | nowPriceObj.st_name = item[0]; |
| | | nowPriceObj.nowPrice = item[1]; |
| | | } |
| | | nowPriceObj = { |
| | | ...nowPriceObj, |
| | | [item[0]]: item[1] |
| | | }; |
| | | }); |
| | | return { |
| | | name, |
| | | st_name: nowPriceArr[0][0], |
| | | nowPrice: nowPriceArr[0][1], |
| | | stock_type: "HJ" |
| | | stock_type: "HJ", |
| | | ...nowPriceObj |
| | | }; |
| | | }); |
| | | } else { |
| | | //大宗 |
| | | opt.stockType = ""; |
| | | data = await api.stockgetDzList(opt); |
| | | this.loadings = false; |
| | | this.finished = true; |
| | | } |
| | | } else { |
| | | // 自选 |