|
@@ -6,10 +6,10 @@
|
|
|
</u-subsection>
|
|
|
</view>
|
|
|
<view class="row2" v-if="curNow!=2">
|
|
|
- <text>123</text><text>/</text><text>123</text><text>/</text><text>123</text>
|
|
|
+ <text>{{type1}}</text><text>/</text><text>{{type2}}</text><text>/</text><text>{{type3}}</text>
|
|
|
</view>
|
|
|
<view class="row3" v-if="curNow==0">
|
|
|
- <u-tabs :list="list1" @click="click"></u-tabs>
|
|
|
+ <u-tabs :list="list1" @click="click" keyName="typeName" current='1'></u-tabs>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="content2" v-if="curNow==0">
|
|
@@ -22,53 +22,59 @@
|
|
|
<view class="title">
|
|
|
价格历史记录
|
|
|
</view>
|
|
|
- <view class="price-list">
|
|
|
- <view class="" style="display: flex;justify-content: space-between;">
|
|
|
- <view class="">
|
|
|
- 最新价格
|
|
|
+ <mescroll-body v-if="curNow==0" ref="mescrollRef" @init="mescrollInit" @up="upCallback1" :down="downOption"
|
|
|
+ :up="upOption">
|
|
|
+ <view class="price-list">
|
|
|
+ <view class="row-style" style="display: flex;justify-content: space-between;">
|
|
|
+ <view class="">
|
|
|
+ 最新价格
|
|
|
+ </view>
|
|
|
+ <view class="">
|
|
|
+ 单位(万元)
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="">
|
|
|
- 单位(万元)
|
|
|
+ <view class="row-style" style="display: flex;justify-content: space-between;"
|
|
|
+ v-for="item in priceList">
|
|
|
+ <view class="">
|
|
|
+ {{new Date(item.collection).toLocaleDateString() }}
|
|
|
+ </view>
|
|
|
+ <view class="">
|
|
|
+ {{item.price}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="" style="display: flex;justify-content: space-between;" v-for="item in priceList">
|
|
|
- <view class="">
|
|
|
- {{item.date}}
|
|
|
- </view>
|
|
|
- <view class="">
|
|
|
- {{item.price}}
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
+ </mescroll-body>
|
|
|
</view>
|
|
|
- <mescroll-body v-if="curNow==1" ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback"
|
|
|
- :down="downOption" :up="upOption">
|
|
|
-
|
|
|
+ <mescroll-body v-if="curNow==1" ref="mescrollRef" @init="mescrollInit" @up="upCallback" :down="downOption"
|
|
|
+ :up="upOption">
|
|
|
+ <view class="jyjl">
|
|
|
+ 以下为近期成交数据
|
|
|
+ </view>
|
|
|
<view v-for="data in dataList" class="row">
|
|
|
<view class="left">
|
|
|
- <view class="">
|
|
|
- 图片1
|
|
|
- </view>
|
|
|
- <view class="">
|
|
|
- 图片2
|
|
|
- </view>
|
|
|
+ <image :src="data.urlPath" mode="widthFix" class="price-img" @click="fdImg(data.urlPath)"></image>
|
|
|
+ <u-popup :show="show" @close="close" @open="open" mode="center">
|
|
|
+ <image :src="selectSrc" mode="widthFix"></image>
|
|
|
+ </u-popup>
|
|
|
</view>
|
|
|
<view class="right">
|
|
|
- <view class="">
|
|
|
- 0.19万
|
|
|
+ <view class="right-row" style="color:#fca87d;font-size:20px;font-weight:700">
|
|
|
+ ¥{{data.price}}万元
|
|
|
</view>
|
|
|
- <view class="">
|
|
|
- 编号
|
|
|
+ <view class="right-row">
|
|
|
+ 名称:{{data.grade}}
|
|
|
</view>
|
|
|
- <view class="">
|
|
|
- 分值
|
|
|
+ <view class="right-row">
|
|
|
+ 编号:{{data.number}}
|
|
|
</view>
|
|
|
- <view class="">
|
|
|
- 状态
|
|
|
+ <view class="right-row">
|
|
|
+ 状态:{{data.status}}
|
|
|
</view>
|
|
|
- <view class="">
|
|
|
- 交易日期
|
|
|
+ <view class="right-row">
|
|
|
+ 交易日期:
|
|
|
+ <text
|
|
|
+ style="color:#fca87d;font-size:12px">{{new Date(data.collection).toLocaleDateString() }}</text>
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -82,26 +88,104 @@
|
|
|
系列
|
|
|
</view>
|
|
|
<view class="right">
|
|
|
- 原乡
|
|
|
+ {{nowItem.series}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="row">
|
|
|
+ <view class="left">
|
|
|
+ 品名
|
|
|
+ </view>
|
|
|
+ <view class="right">
|
|
|
+ {{nowItem.product}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="row">
|
|
|
+ <view class="left">
|
|
|
+ 官网编号
|
|
|
+ </view>
|
|
|
+ <view class="right">
|
|
|
+ {{nowItem.number}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="row">
|
|
|
+ <view class="left">
|
|
|
+ 年份
|
|
|
+ </view>
|
|
|
+ <view class="right">
|
|
|
+ {{nowItem.year}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="row">
|
|
|
+ <view class="left">
|
|
|
+ 面值
|
|
|
+ </view>
|
|
|
+ <view class="right">
|
|
|
+ {{nowItem.face}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="row">
|
|
|
+ <view class="left">
|
|
|
+ 版别
|
|
|
+ </view>
|
|
|
+ <view class="right">
|
|
|
+ {{nowItem.edition}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="row">
|
|
|
+ <view class="left">
|
|
|
+ 地区
|
|
|
+ </view>
|
|
|
+ <view class="right">
|
|
|
+ {{nowItem.region}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="row">
|
|
|
+ <view class="left">
|
|
|
+ 分值/等级
|
|
|
+ </view>
|
|
|
+ <view class="right">
|
|
|
+ {{nowItem.grade}}
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="row">
|
|
|
+ <view class="left">
|
|
|
+ 同分数量/增量
|
|
|
+ </view>
|
|
|
+ <view class="right">
|
|
|
+ {{nowItem.tongFen}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="row">
|
|
|
+ <view class="left">
|
|
|
+ 高分数量
|
|
|
+ </view>
|
|
|
+ <view class="right">
|
|
|
+ {{nowItem.highScores}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="row">
|
|
|
+ <view class="left">
|
|
|
+ 收集时间
|
|
|
+ </view>
|
|
|
+ <view class="right">
|
|
|
+ {{nowItem.collection}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
<view class="detail-view">
|
|
|
<view class="title">
|
|
|
详细介绍
|
|
|
</view>
|
|
|
<view class="">
|
|
|
- 1212332231123司法鉴定副书记奥克斯的风景两地分居上课了撒娇分类法就是浪费加速度计发介绍来的
|
|
|
+ {{nowItem.introduction}}
|
|
|
</view>
|
|
|
<view class="imgList">
|
|
|
- <view class="">
|
|
|
- 图片1
|
|
|
- </view>
|
|
|
- <view class="">
|
|
|
- 图片2
|
|
|
- </view>
|
|
|
+ <!-- <image :src="item" mode="widthFix" v-for="item in nowItem.urlPath.split(',')" style="width: 50%;">
|
|
|
+ </image> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <u-toast ref="uToast"></u-toast>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -109,8 +193,33 @@
|
|
|
import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
|
|
|
export default {
|
|
|
mixins: [MescrollMixin], // 使用mixin
|
|
|
+ onLoad() {
|
|
|
+ this.info = uni.getStorageSync("selectInfo")
|
|
|
+ this.list1 = this.info.children
|
|
|
+ if (this.info.children.length != 0) {
|
|
|
+ this.nowItem = this.info
|
|
|
+ this.orderId = this.info.children[1].id
|
|
|
+ this.type1 = this.info.series
|
|
|
+ this.type2 = this.info.secondName
|
|
|
+ this.type3 = this.info.children[1].typeId
|
|
|
+ // for (let i = 0; i < this.info.children.length; i++) {
|
|
|
+
|
|
|
+ // }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
+ selectSrc: '',
|
|
|
+ show: false,
|
|
|
+ x: [],
|
|
|
+ y: [],
|
|
|
+ type1: '',
|
|
|
+ type2: '',
|
|
|
+ type3: '',
|
|
|
+ orderId: '',
|
|
|
+ info: {},
|
|
|
downOption: {},
|
|
|
upOption: {
|
|
|
page: {
|
|
@@ -121,6 +230,16 @@
|
|
|
tip: '暂无相关数据'
|
|
|
}
|
|
|
},
|
|
|
+ downOption1: {},
|
|
|
+ upOption1: {
|
|
|
+ page: {
|
|
|
+ size: 10 // 每页数据的数量,默认10
|
|
|
+ },
|
|
|
+ noMoreSize: 5, // 配置列表的总数量要大于等于5条才显示'-- END --'的提示
|
|
|
+ empty: {
|
|
|
+ tip: '暂无相关数据'
|
|
|
+ }
|
|
|
+ },
|
|
|
dataList: [{
|
|
|
img1: "",
|
|
|
img2: '',
|
|
@@ -163,36 +282,120 @@
|
|
|
}
|
|
|
},
|
|
|
btnList: ['价格概况', '交易记录', '币种介绍'],
|
|
|
- curNow: 1,
|
|
|
- list1: [{
|
|
|
- name: '关注',
|
|
|
- }, {
|
|
|
- name: '推荐',
|
|
|
- }, {
|
|
|
- name: '电影'
|
|
|
- }, {
|
|
|
- name: '科技'
|
|
|
- }, {
|
|
|
- name: '音乐'
|
|
|
- }, {
|
|
|
- name: '美食'
|
|
|
- }, {
|
|
|
- name: '文化'
|
|
|
- }, {
|
|
|
- name: '财经'
|
|
|
- }, {
|
|
|
- name: '手工'
|
|
|
- }]
|
|
|
+ curNow: 0,
|
|
|
+ list1: []
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ close() {
|
|
|
+ this.show = false
|
|
|
+ // console.log('close');
|
|
|
+ },
|
|
|
+ fdImg(src) {
|
|
|
+ this.selectSrc = src
|
|
|
+ this.show = true
|
|
|
+ },
|
|
|
sectionChange(index) {
|
|
|
this.curNow = index;
|
|
|
},
|
|
|
click(item) {
|
|
|
- console.log('item', item);
|
|
|
+ this.orderId = item.id
|
|
|
+ this.type3 = item.typeId
|
|
|
+ this.mescroll.resetUpScroll()
|
|
|
+ },
|
|
|
+ makeData(val) {
|
|
|
+ for (let i = 0; i < val.length; i++) {
|
|
|
+ if (val[i].children) {
|
|
|
+ for (let j = 0; j < val[i].children.length; j++) {
|
|
|
+ let _obj = val[i].children[j]
|
|
|
+ _obj.typeName = val[i].children[j].secondName
|
|
|
+ val[i].children[j] = _obj
|
|
|
+ if (val[i].children[j].children) {
|
|
|
+ for (let k = 0; k < val[i].children[j].children.length; k++) {
|
|
|
+ let _obj1 = val[i].children[j].children[k]
|
|
|
+ _obj1.typeName = val[i].children[j].children[k].typeId
|
|
|
+ val[i].children[j].children[k] = _obj1
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.listData = val
|
|
|
+ // console.log(this.data)
|
|
|
+ },
|
|
|
+ upCallback1(page) {
|
|
|
+ this.x = []
|
|
|
+ this.y = []
|
|
|
+ this.$request.baseRequest('admin.gubi.gubiPriceHis', 'list', {
|
|
|
+ pageNum: page.num,
|
|
|
+ pageSize: page.size,
|
|
|
+ orderId: this.orderId
|
|
|
+ }, failres => {
|
|
|
+ console.log('res+++++', failres.errmsg)
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: failres.errmsg,
|
|
|
+ })
|
|
|
+ uni.hideLoading()
|
|
|
+ }).then(res => {
|
|
|
+ // if (res.errno == 200) {
|
|
|
+ uni.hideLoading()
|
|
|
+ let curPageData = res.data.items;
|
|
|
+ let totalPage = res.data.total;
|
|
|
+ let curPageLen = curPageData.length;
|
|
|
+ this.mescroll.endByPage(curPageLen, totalPage);
|
|
|
+ // this.makeData(res.data)
|
|
|
+ if (page.num == 1) this.priceList = []; //如果是第一页需手动置空列表
|
|
|
+ this.priceList = this.priceList.concat(curPageData); //追加新数据
|
|
|
+ for (let i = 0; i < this.priceList.length; i++) {
|
|
|
+ console.log(new Date(this.priceList[i].collection).toLocaleDateString())
|
|
|
+ this.x.push(new Date(this.priceList[i].collection).toLocaleDateString());
|
|
|
+ this.y.push(this.priceList[i].price)
|
|
|
+ }
|
|
|
+ let _data = {
|
|
|
+ categories: this.x,
|
|
|
+ series: [{
|
|
|
+ name: "价格",
|
|
|
+ data: this.y
|
|
|
+ }]
|
|
|
+ };
|
|
|
+ console.log("x", this.x)
|
|
|
+ console.log("y", this.y)
|
|
|
+ this.chartData = JSON.parse(JSON.stringify(_data));
|
|
|
+ // }
|
|
|
+
|
|
|
+ })
|
|
|
},
|
|
|
upCallback(page) {
|
|
|
+ this.$request.baseRequest('admin.gubi.gubiTransaction', 'list', {
|
|
|
+ pageNum: page.num,
|
|
|
+ pageSize: page.size,
|
|
|
+ orderId: this.orderId
|
|
|
+ }, failres => {
|
|
|
+ console.log('res+++++', failres.errmsg)
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: failres.errmsg,
|
|
|
+ })
|
|
|
+ uni.hideLoading()
|
|
|
+ }).then(res => {
|
|
|
+ // if (res.errno == 200) {
|
|
|
+ uni.hideLoading()
|
|
|
+ console.log(11)
|
|
|
+ let curPageData = res.data.items;
|
|
|
+ let totalPage = res.data.total;
|
|
|
+ let curPageLen = curPageData.length;
|
|
|
+ this.mescroll.endByPage(curPageLen, totalPage);
|
|
|
+ console.log(res.data)
|
|
|
+ // this.makeData(res.data)
|
|
|
+ if (page.num == 1) this.dataList = []; //如果是第一页需手动置空列表
|
|
|
+ this.dataList = this.dataList.concat(curPageData); //追加新数据
|
|
|
+ for (let i = 0; i < this.dataList.length; i++) {
|
|
|
+ // this.dataList[i].urlPath = this.dataList[i].urlPath.split(",")
|
|
|
+ }
|
|
|
+ // }
|
|
|
+
|
|
|
+ })
|
|
|
// // 此处可以继续请求其他接口
|
|
|
// // if(page.num == 1){
|
|
|
// // // 请求其他接口...
|
|
@@ -235,7 +438,7 @@
|
|
|
// this.mescroll.endByPage(0, 0);
|
|
|
// setTimeout(() => {
|
|
|
// // this.mescroll.endSuccess(curPageLen)
|
|
|
- this.mescroll.endSuccess(0)
|
|
|
+ // this.mescroll.endSuccess(0)
|
|
|
// }, 20)
|
|
|
// },
|
|
|
// fail: () => {
|
|
@@ -245,22 +448,8 @@
|
|
|
// })
|
|
|
|
|
|
},
|
|
|
- getServerData() {
|
|
|
- setTimeout(() => {
|
|
|
- let res = {
|
|
|
- categories: ["2016", "2017", "2018", "2019", "2020", "2021"],
|
|
|
- series: [{
|
|
|
- name: "目标值",
|
|
|
- data: [35, 36, 31, 33, 13, 34]
|
|
|
- }]
|
|
|
- };
|
|
|
- this.chartData = JSON.parse(JSON.stringify(res));
|
|
|
- }, 500);
|
|
|
- }
|
|
|
- },
|
|
|
- onReady() {
|
|
|
- this.getServerData();
|
|
|
- },
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|
|
@@ -268,4 +457,42 @@
|
|
|
.content {
|
|
|
padding: 20rpx;
|
|
|
}
|
|
|
+
|
|
|
+ .row2 {
|
|
|
+ margin: 20rpx 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .title {
|
|
|
+ margin: 20rpx 0;
|
|
|
+ font-weight: 700;
|
|
|
+ }
|
|
|
+
|
|
|
+ .row-style,
|
|
|
+ .row {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ border-bottom: 1px solid #ebebeb;
|
|
|
+ padding: 20rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ // .imgList {
|
|
|
+ // display: flex;
|
|
|
+ // }
|
|
|
+ .jyjl {
|
|
|
+ color: rgb(60, 156, 255);
|
|
|
+ border: 1px solid rgb(60, 156, 255);
|
|
|
+ width: 300rpx;
|
|
|
+ padding: 10rpx;
|
|
|
+ border-radius: 10rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .price-img {
|
|
|
+ width: 200rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .right-row {
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-end;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
</style>
|