Fly hace 2 años
padre
commit
f4ea2e1c3e

+ 0 - 149
.history/components/carousels/carousels_20230522091628.vue

@@ -1,149 +0,0 @@
-<template>
-	<view class="swiper-content">
-		<swiper class="swiper-box" autoplay :interval="3000" circular @change="change">
-			<swiper-item v-for="(item ,index) in BannerList" :key="`swiper_${index}`">
-				<view class="swiper-item" @click.stop="lookDetails(item)">
-					<image :src="item.thumbnail" ></image>
-				</view>
-			</swiper-item>
-		</swiper>
-		<div class="custom-indicator">
-			<span :class="['indicator' , current === index ? 'active-indicator' : '']"
-				v-for="(item , index) in BannerList">
-			</span>
-		</div>
-	</view>
-</template>
-
-<script>
-	
-	export default {
-		name: "carousels",
-		props: {
-			BannerList: {
-				type: Array,
-				default: () => []
-			}
-		},
-		data() {
-			return {
-				info: [{
-					content: '内容 A'
-				}, {
-					content: '内容 B'
-				}, {
-					content: '内容 C'
-				}],
-				current: 0,
-				mode: 'round',
-			}
-		},
-		methods: {
-			change(e) {
-				this.current = e.detail.current;
-			},
-			lookDetails(item){
-				uni.navigateTo({
-					url: `/pages/content/article-details?id=${item.id}`
-				})
-			}
-		}
-	}
-</script>
-
-<style lang="scss" scoped>
-	.swiper-box{
-			height: 280rpx;
-	}
-	.swiper-content { 
-		padding: 0 $pages-padding;
-	}
-
-	.swiper-box {
-
-		.swiper-item {
-			width: 100%;
-			height: 280rpx;
-			image {
-				width: 100%;
-				height: 100%;
-				border-radius: 10rpx;
-			}
-		}
-
-	}
-
-	.custom-indicator {
-
-		width: 100%;
-		padding-top: 20rpx;
-		display: flex;
-		justify-content: center;
-		align-items: center;
-		flex-wrap: wrap;
-		// gap: 20rpx 20rpx;
-
-		.indicator {
-			width: 8rpx;
-			height: 8rpx;
-			background-color: #d9d9d9;
-			transform: rotate(45deg);
-		}
-
-		.indicator+.indicator {
-			margin-left: 16rpx;
-		}
-
-		.active-indicator {
-			background-color: #27B082;
-		}
-	}
-
-	// .my-swipe {
-	// 	overflow: hidden;
-
-	// 	::v-deep .van-swipe__track {
-
-	// 		height: 280rpx;
-	// 	}
-
-	// 	.van-swipe-item {
-	// 		display: inline-block;
-	// 		height: 100%;
-
-	// 		.swipe-img {
-	// 			width: 100%;
-	// 			height: 100%;
-
-	// 			::v-deep .van-image__img {
-	// 				width: 100%;
-	// 				height: 100%;
-	// 			}
-	// 		}
-
-	// 		;
-	// 	}
-	// }
-
-	// .custom-indicator {
-
-	// 	width: 100%;
-	// 	padding-top: 15rpx;
-	// 	display: flex;
-	// 	justify-content: center;
-	// 	align-items: center;
-	// 	flex-wrap: wrap;
-	// 	gap: 20rpx 20rpx;
-
-	// 	.indicator {
-	// 		width: 10rpx;
-	// 		height: 10rpx;
-	// 		background-color: #d9d9d9;
-	// 		transform: rotate(45deg);
-	// 	}
-
-	// 	.active-indicator {
-	// 		background-color: #27B082;
-	// 	}
-	// }
-</style>

+ 0 - 149
.history/components/carousels/carousels_20230522094354.vue

@@ -1,149 +0,0 @@
-<template>
-	<view class="swiper-content">
-		<swiper class="swiper-box" autoplay :interval="3000" circular @change="change">
-			<swiper-item v-for="(item ,index) in BannerList" :key="`swiper_${index}`">
-				<view class="swiper-item" @click.stop="lookDetails(item)">
-					<image :src="item.thumbnail" ></image>
-				</view>
-			</swiper-item>
-		</swiper>
-		<div class="custom-indicator">
-			<span :class="['indicator' , current === index ? 'active-indicator' : '']"
-				v-for="(item , index) in BannerList">
-			</span>
-		</div>
-	</view>
-</template>
-
-<script>
-	
-	export default {
-		name: "carousels",
-		props: {
-			BannerList: {
-				type: Array,
-				default: () => []
-			}
-		},
-		data() {
-			return {
-				info: [{
-					content: '内容 A'
-				}, {
-					content: '内容 B'
-				}, {
-					content: '内容 C'
-				}],
-				current: 0,
-				mode: 'round',
-			}
-		},
-		methods: {
-			change(e) {
-				this.current = e.detail.current;
-			},
-			lookDetails(item){
-				uni.navigateTo({
-					url: this.$path.articleDetails + `${item.id}`
-				})
-			}
-		}
-	}
-</script>
-
-<style lang="scss" scoped>
-	.swiper-box{
-			height: 280rpx;
-	}
-	.swiper-content { 
-		padding: 0 $pages-padding;
-	}
-
-	.swiper-box {
-
-		.swiper-item {
-			width: 100%;
-			height: 280rpx;
-			image {
-				width: 100%;
-				height: 100%;
-				border-radius: 10rpx;
-			}
-		}
-
-	}
-
-	.custom-indicator {
-
-		width: 100%;
-		padding-top: 20rpx;
-		display: flex;
-		justify-content: center;
-		align-items: center;
-		flex-wrap: wrap;
-		// gap: 20rpx 20rpx;
-
-		.indicator {
-			width: 8rpx;
-			height: 8rpx;
-			background-color: #d9d9d9;
-			transform: rotate(45deg);
-		}
-
-		.indicator+.indicator {
-			margin-left: 16rpx;
-		}
-
-		.active-indicator {
-			background-color: #27B082;
-		}
-	}
-
-	// .my-swipe {
-	// 	overflow: hidden;
-
-	// 	::v-deep .van-swipe__track {
-
-	// 		height: 280rpx;
-	// 	}
-
-	// 	.van-swipe-item {
-	// 		display: inline-block;
-	// 		height: 100%;
-
-	// 		.swipe-img {
-	// 			width: 100%;
-	// 			height: 100%;
-
-	// 			::v-deep .van-image__img {
-	// 				width: 100%;
-	// 				height: 100%;
-	// 			}
-	// 		}
-
-	// 		;
-	// 	}
-	// }
-
-	// .custom-indicator {
-
-	// 	width: 100%;
-	// 	padding-top: 15rpx;
-	// 	display: flex;
-	// 	justify-content: center;
-	// 	align-items: center;
-	// 	flex-wrap: wrap;
-	// 	gap: 20rpx 20rpx;
-
-	// 	.indicator {
-	// 		width: 10rpx;
-	// 		height: 10rpx;
-	// 		background-color: #d9d9d9;
-	// 		transform: rotate(45deg);
-	// 	}
-
-	// 	.active-indicator {
-	// 		background-color: #27B082;
-	// 	}
-	// }
-</style>

+ 0 - 149
.history/components/carousels/carousels_20230522094409.vue

@@ -1,149 +0,0 @@
-<template>
-	<view class="swiper-content">
-		<swiper class="swiper-box" autoplay :interval="3000" circular @change="change">
-			<swiper-item v-for="(item ,index) in BannerList" :key="`swiper_${index}`">
-				<view class="swiper-item" @click.stop="lookDetails(item)">
-					<image :src="item.thumbnail" ></image>
-				</view>
-			</swiper-item>
-		</swiper>
-		<div class="custom-indicator">
-			<span :class="['indicator' , current === index ? 'active-indicator' : '']"
-				v-for="(item , index) in BannerList">
-			</span>
-		</div>
-	</view>
-</template>
-
-<script>
-	
-	export default {
-		name: "carousels",
-		props: {
-			BannerList: {
-				type: Array,
-				default: () => []
-			}
-		},
-		data() {
-			return {
-				info: [{
-					content: '内容 A'
-				}, {
-					content: '内容 B'
-				}, {
-					content: '内容 C'
-				}],
-				current: 0,
-				mode: 'round',
-			}
-		},
-		methods: {
-			change(e) {
-				this.current = e.detail.current;
-			},
-			lookDetails(item){
-				uni.navigateTo({
-					url: this.$path.articleDetails + `${item.id}`
-				})
-			}
-		}
-	}
-</script>
-
-<style lang="scss" scoped>
-	.swiper-box{
-			height: 280rpx;
-	}
-	.swiper-content { 
-		padding: 0 $pages-padding;
-	}
-
-	.swiper-box {
-
-		.swiper-item {
-			width: 100%;
-			height: 280rpx;
-			image {
-				width: 100%;
-				height: 100%;
-				border-radius: 10rpx;
-			}
-		}
-
-	}
-
-	.custom-indicator {
-
-		width: 100%;
-		padding-top: 20rpx;
-		display: flex;
-		justify-content: center;
-		align-items: center;
-		flex-wrap: wrap;
-		// gap: 20rpx 20rpx;
-
-		.indicator {
-			width: 8rpx;
-			height: 8rpx;
-			background-color: #d9d9d9;
-			transform: rotate(45deg);
-		}
-
-		.indicator+.indicator {
-			margin-left: 16rpx;
-		}
-
-		.active-indicator {
-			background-color: #27B082;
-		}
-	}
-
-	// .my-swipe {
-	// 	overflow: hidden;
-
-	// 	::v-deep .van-swipe__track {
-
-	// 		height: 280rpx;
-	// 	}
-
-	// 	.van-swipe-item {
-	// 		display: inline-block;
-	// 		height: 100%;
-
-	// 		.swipe-img {
-	// 			width: 100%;
-	// 			height: 100%;
-
-	// 			::v-deep .van-image__img {
-	// 				width: 100%;
-	// 				height: 100%;
-	// 			}
-	// 		}
-
-	// 		;
-	// 	}
-	// }
-
-	// .custom-indicator {
-
-	// 	width: 100%;
-	// 	padding-top: 15rpx;
-	// 	display: flex;
-	// 	justify-content: center;
-	// 	align-items: center;
-	// 	flex-wrap: wrap;
-	// 	gap: 20rpx 20rpx;
-
-	// 	.indicator {
-	// 		width: 10rpx;
-	// 		height: 10rpx;
-	// 		background-color: #d9d9d9;
-	// 		transform: rotate(45deg);
-	// 	}
-
-	// 	.active-indicator {
-	// 		background-color: #27B082;
-	// 	}
-	// }
-</style>

+ 0 - 108
.history/components/rollMessage/rollMessage_20230508101452.vue

@@ -1,108 +0,0 @@
-<template>
-	<view class="roll-box">
-		<image class="roll-icon" src="@/static/images/icon_01.png" mode="aspectFit"></image>
-		<view class="roll-list hide_1">
-			<u-notice-bar icon='' bgColor="" duration="3000" direction="column" @click="lookDetails" :text="rollMsg.map(el => {
-				return el.title || ''
-			})">
-			</u-notice-bar>
-			<!-- <view class="roll-item hide_1">
-				币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入
-			</view> -->
-		</view>
-
-		<image class="roll-more" src="@/static/images/icon_02.png" mode="aspectFit"></image>
-	</view>
-</template>
-
-<script>
-	export default {
-		name: "rollMessage",
-		props: {
-			rollMsg: {
-				type: Array,
-				default: () => []
-			}
-		},
-		data() {
-			return {
-
-				list: [
-					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
-					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
-					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
-					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
-					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
-					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
-					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
-					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入'
-				]
-			};
-		},
-		methods:{
-			lookDetails(index){
-				const id = this.rollMsg[index]?.id;
-				uni.navigateTo({
-					url: `/pages/content/article-details?id=${id}`
-				})
-			}
-		}
-	}
-</script>
-
-<style lang="scss" scoped>
-	.roll-box {
-		width: 100%;
-		height: 70rpx;
-		background-color: $modules-box-bg;
-		padding: 0 $pages-padding;
-		display: flex;
-		justify-content: space-between;
-		align-items: center;
-		border-bottom: 1rpx solid $border-color2;
-		.roll-icon
-		.roll-more {
-			width: 33rpx;
-			height: 30rpx;
-			flex-shrink: 0;
-
-		}
-
-		.roll-list {
-			width: calc(100% - 60rpx);
-			height: 100%;
-			flex-shrink: 0;
-			padding: 0 20rpx;
-			display: flex;
-			align-items: center;
-			// .roll-item{
-			// 	width: 100%; 
-
-			// 	font-size: 26rpx;
-			// 	font-family: PingFang SC, PingFang SC-Regular;
-			// 	font-weight: 400;
-			// 	text-align: left;
-			// 	color: #1a1a1a; 
-			// 	letter-spacing: 0.52px;
-			// }
-			::v-deep .u-notice-bar {
-				// width: 100%;
-				padding-left: 0;
-				padding-right: 0;
-
-				.u-notice__swiper__item__text {
-					font-size: 24rpx !important;
-					font-family: PingFang SC, PingFang SC-Regular !important;
-					font-weight: 400 !important;
-
-					color: #1a1a1a !important;
-					letter-spacing: 0.52px !important;
-					overflow: hidden;
-					text-overflow: ellipsis;
-					white-space: nowrap;
-					word-wrap: break-word;
-				}
-			}
-		}
-	}
-</style>

+ 0 - 108
.history/components/rollMessage/rollMessage_20230522094434.vue

@@ -1,108 +0,0 @@
-<template>
-	<view class="roll-box">
-		<image class="roll-icon" src="@/static/images/icon_01.png" mode="aspectFit"></image>
-		<view class="roll-list hide_1">
-			<u-notice-bar icon='' bgColor="" duration="3000" direction="column" @click="lookDetails" :text="rollMsg.map(el => {
-				return el.title || ''
-			})">
-			</u-notice-bar>
-			<!-- <view class="roll-item hide_1">
-				币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入
-			</view> -->
-		</view>
-
-		<image class="roll-more" src="@/static/images/icon_02.png" mode="aspectFit"></image>
-	</view>
-</template>
-
-<script>
-	export default {
-		name: "rollMessage",
-		props: {
-			rollMsg: {
-				type: Array,
-				default: () => []
-			}
-		},
-		data() {
-			return {
-
-				list: [
-					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
-					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
-					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
-					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
-					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
-					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
-					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
-					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入'
-				]
-			};
-		},
-		methods:{
-			lookDetails(index){
-				const id = this.rollMsg[index]?.id;
-				uni.navigateTo({
-					url: this.$path.articleDetails +  `${id}`
-				})
-			}
-		}
-	}
-</script>
-
-<style lang="scss" scoped>
-	.roll-box {
-		width: 100%;
-		height: 70rpx;
-		background-color: $modules-box-bg;
-		padding: 0 $pages-padding;
-		display: flex;
-		justify-content: space-between;
-		align-items: center;
-		border-bottom: 1rpx solid $border-color2;
-		.roll-icon
-		.roll-more {
-			width: 33rpx;
-			height: 30rpx;
-			flex-shrink: 0;
-
-		}
-
-		.roll-list {
-			width: calc(100% - 60rpx);
-			height: 100%;
-			flex-shrink: 0;
-			padding: 0 20rpx;
-			display: flex;
-			align-items: center;
-			// .roll-item{
-			// 	width: 100%; 
-
-			// 	font-size: 26rpx;
-			// 	font-family: PingFang SC, PingFang SC-Regular;
-			// 	font-weight: 400;
-			// 	text-align: left;
-			// 	color: #1a1a1a; 
-			// 	letter-spacing: 0.52px;
-			// }
-			::v-deep .u-notice-bar {
-				// width: 100%;
-				padding-left: 0;
-				padding-right: 0;
-
-				.u-notice__swiper__item__text {
-					font-size: 24rpx !important;
-					font-family: PingFang SC, PingFang SC-Regular !important;
-					font-weight: 400 !important;
-
-					color: #1a1a1a !important;
-					letter-spacing: 0.52px !important;
-					overflow: hidden;
-					text-overflow: ellipsis;
-					white-space: nowrap;
-					word-wrap: break-word;
-				}
-			}
-		}
-	}
-</style>

+ 0 - 122
.history/pages/content/h5-list_20230507165444.vue

@@ -1,122 +0,0 @@
-<template>
-	<view>
-		<headContent statusBarBg="#191A2E" bgColor="#191A2E">
-
-			<template #left>
-				<reverse-back iconColor="#fff" />
-			</template>
-			<template #content>
-				<view class="haed-title">
-					{{ title }}
-				</view>
-			</template>
-			<template #right>
-				<closeIocn iconColor="#fff" />
-			</template>
-		</headContent>
-		<view class="new-content">
-			<template v-for="(item , index) in ContentList">
-				<view class="content-item" @click.syop="readArticle(item.id)">
-					<text class="item-lable hide_1">{{ item.title }}</text>
-					<text class="item-icon iconfont">&#xe88e;</text>
-				</view>
-			</template>
-		</view>
-	</view>
-</template>
-
-<script>
-	import {
-		Api_getNewDetail,
-		Api_getNewsList
-	} from "@/api/index.js"
-	export default {
-		name: 'article-details',
-		data() {
-			return {
-				cids: [
-					0,
-					19,
-					102
-				],
-				title: '',
-				cidIndex: 0,
-				ContentList: [],
-			};
-		},
-		onLoad(opt) {
-			this.cidIndex = opt?.id;
-			switch (this.cidIndex) {
-				case '1':
-				case 1:
-					this.title = "关于我们";
-					break;
-				case '2':
-				case 2:
-					this.title = "活动中心";
-					break;
-				default:
-					this.title = "";
-			}
-			this.getNewDetail()
-		},
-		mounted() {
-
-		},
-		methods: {
-			getNewDetail() {
-				if (this.cidIndex) {
-					Api_getNewsList({
-						c_id: this.cids[this.cidIndex],
-						limit: 1000
-					}).then(res => {
-						this.ContentList = res.list || [];
-
-					})
-				}
-			},
-			readArticle(id) {
-				uni.navigateTo({
-					url: `/pages/content/article-details?id=${id}`
-				})
-			}
-		}
-	}
-</script>
-
-<style lang="scss" scoped>
-	.haed-title {
-		color: #fff !important;
-	}
-
-	.new-content {
-		.content-item {
-			width: 100%;
-			height: 100rpx;
-			padding: 0 40rpx;
-			border-bottom: 1rpx solid $border-color;
-			display: flex;
-			justify-content: space-between;
-			align-items: center;
-
-			.item-lable {
-				width: 1px;
-				flex: 1;
-				font-size: 34rpx;
-				font-weight: 600;
-			}
-
-			.item-icon {
-				flex-shrink: 0;
-				font-size: 40rpx;
-				color: $btnBgColor;
-				font-weight: bold;
-			}
-
-			// <view class="content-item">
-			// 	<text class="item-lable">{{ item.title }}</text>
-			// 	<text class="item-icon iconfont">&#xe88e;</text>
-			// </view>
-		}
-	}
-</style>

+ 0 - 122
.history/pages/content/h5-list_20230522094442.vue

@@ -1,122 +0,0 @@
-<template>
-	<view>
-		<headContent statusBarBg="#191A2E" bgColor="#191A2E">
-
-			<template #left>
-				<reverse-back iconColor="#fff" />
-			</template>
-			<template #content>
-				<view class="haed-title">
-					{{ title }}
-				</view>
-			</template>
-			<template #right>
-				<closeIocn iconColor="#fff" />
-			</template>
-		</headContent>
-		<view class="new-content">
-			<template v-for="(item , index) in ContentList">
-				<view class="content-item" @click.syop="readArticle(item.id)">
-					<text class="item-lable hide_1">{{ item.title }}</text>
-					<text class="item-icon iconfont">&#xe88e;</text>
-				</view>
-			</template>
-		</view>
-	</view>
-</template>
-
-<script>
-	import {
-		Api_getNewDetail,
-		Api_getNewsList
-	} from "@/api/index.js"
-	export default {
-		name: 'article-details',
-		data() {
-			return {
-				cids: [
-					0,
-					19,
-					102
-				],
-				title: '',
-				cidIndex: 0,
-				ContentList: [],
-			};
-		},
-		onLoad(opt) {
-			this.cidIndex = opt?.id;
-			switch (this.cidIndex) {
-				case '1':
-				case 1:
-					this.title = "关于我们";
-					break;
-				case '2':
-				case 2:
-					this.title = "活动中心";
-					break;
-				default:
-					this.title = "";
-			}
-			this.getNewDetail()
-		},
-		mounted() {
-
-		},
-		methods: {
-			getNewDetail() {
-				if (this.cidIndex) {
-					Api_getNewsList({
-						c_id: this.cids[this.cidIndex],
-						limit: 1000
-					}).then(res => {
-						this.ContentList = res.list || [];
-
-					})
-				}
-			},
-			readArticle(id) {
-				uni.navigateTo({
-					url: this.$path.articleDetails + `${id}`
-				})
-			}
-		}
-	}
-</script>
-
-<style lang="scss" scoped>
-	.haed-title {
-		color: #fff !important;
-	}
-
-	.new-content {
-		.content-item {
-			width: 100%;
-			height: 100rpx;
-			padding: 0 40rpx;
-			border-bottom: 1rpx solid $border-color;
-			display: flex;
-			justify-content: space-between;
-			align-items: center;
-
-			.item-lable {
-				width: 1px;
-				flex: 1;
-				font-size: 34rpx;
-				font-weight: 600;
-			}
-
-			.item-icon {
-				flex-shrink: 0;
-				font-size: 40rpx;
-				color: $btnBgColor;
-				font-weight: bold;
-			}
-
-			// <view class="content-item">
-			// 	<text class="item-lable">{{ item.title }}</text>
-			// 	<text class="item-icon iconfont">&#xe88e;</text>
-			// </view>
-		}
-	}
-</style>

+ 0 - 247
.history/pages/contract/sustainability/freight-space_20230531091342.vue

@@ -1,247 +0,0 @@
-<template>
-	<view class="">
-		<template v-if="leverTrade && leverTrade.trades_cur && leverTrade.trades_cur.length > 0">
-			<view class="lable-title">
-				<text class="lable-title-text">仓位信息</text>
-				<text class="lable-title-btn" @click.stop="setCloseLeverAll()">全部平仓</text>
-			</view>
-			<template v-for="item in leverTrade.trades_cur">
-				<view class="content-box" :rise-fall="stocksColor">
-					<view class="content-top">
-						<view class="top-left">
-							<view class="top-left-title">
-								<text>{{ item.symbol }}</text>
-								<text>{{ item.type_name }}</text>
-								<view class="top-left-share" @click.stop="$emit('shareContent' , item)">
-									<text class="icon-size iconfont">&#xe8b0;</text>
-									<text class="icon-size">分享</text>
-								</view>
-							</view>
-							<view class="top-left-b">
-								<text>{{ item.multiple }}倍杠杆</text>
-								<text class="top-left-b-tag"></text>
-							</view>
-						</view>
-
-						<view class="top-right" :class="$setColor(item.profits)">
-							<text class="color">{{ item.profits }}</text>
-							<text class="top-right-float color"><text>浮动盈亏</text>{{ $getChange(item , 1) }}%</text>
-						</view>
-					</view>
-					<view class="content-info">
-						<view class="info-item">
-							<text class="info-item-lable">保证金(USDT)</text>
-							<text class="info-item-val">{{ item.caution_money }}</text>
-						</view>
-						<view class="info-item">
-							<text class="info-item-lable">开仓价格(USDT)</text>
-							<text class="info-item-val">{{ item.origin_price }}</text>
-						</view>
-						<view class="info-item">
-							<text class="info-item-lable">标记价格(USDT)</text>
-							<text class="info-item-val">{{ item.update_price }}</text>
-						</view>
-						<view class="info-item">
-							<text class="info-item-lable">持仓数量(张)</text>
-							<text class="info-item-val">{{ item.share }}</text>
-						</view>
-						<view class="info-item">
-							<text class="info-item-lable">风险率(%)</text>
-							<text class="info-item-val">{{ leverTrade.hazard_rate }}</text>
-							<!-- {{ item.caution_money }} -->
-						</view>
-						<view class="info-item">
-							<text class="info-item-lable">预计强平价(USDT)</text>
-							<text class="info-item-val">{{ $getChange(item , 3) }}</text>
-							<!-- {{ item.caution_money }} -->
-						</view>
-						<view class="info-item">
-							<text class="info-item-lable">预计止损(USDT)</text>
-							<text class="info-item-val"
-								@click.stop="setRestrict(item)">{{ item.stop_loss_price || '--' }} <text
-									class="iconfont">&#xe610;</text></text>
-						</view>
-						<view class="info-item">
-							<text class="info-item-lable">预计止盈(USDT)</text>
-							<text class="info-item-val" @click.stop="setRestrict(item)">
-								{{ item.target_profit_price	 || '--' }}
-								<text class="iconfont">&#xe610;</text>
-							</text>
-						</view>
-						<view class="info-item">
-							<text class="info-item-lable">预计创建时间(USDT)</text>
-							<text class="info-item-val">{{ item.transaction_time }}</text>
-						</view>
-					</view>
-					<view class="content-btns">
-						<view class="content-btn-item" @click.stop="setCloseLever(item)">
-							平仓
-						</view>
-						<!-- @click.stop="setInversion(item)" -->
-						<view class="content-btn-item">
-							反向开仓
-						</view>
-						<view class="content-btn-item">
-							加仓
-						</view>
-					</view>
-				</view>
-				<gap />
-			</template>
-		</template>
-		<template v-else>
-			<empty class="empty-content" />
-		</template>
-
-	</view>
-</template>
-
-<script>
-	import {
-		Api_setCloseLever,
-		Api_setBatchClose
-	} from "@/api/index.js"
-	import {
-		mapGetters
-	} from 'vuex'
-	export default {
-		name: 'freight-space',
-		props: {
-
-			myTransaction: {
-				type: Array,
-				default: () => {
-					return []
-				}
-			},
-			currency: {
-				type: Object,
-				default: () => {
-					return {}
-				}
-			},
-		},
-		computed: {
-			...mapGetters([
-				"stocksColor",
-				'orderList',
-				'leverTrade'
-			])
-		},
-		data() {
-			return {
-				closeLeverItem: null,
-
-			};
-		},
-		mounted() {
-
-		},
-		methods: {
-			setCloseLever(item) {
-				this.closeLeverItem = item;
-				const obj = {
-					title: '平仓',
-					closeLeverContent: '如果存在平仓挂单(限价止盈止损),将会在全平前被撤单,确定平仓吗?'
-				}
-				this.$emit('setCloseLever', item)
-			},
-			setInversion() {
-
-				this.closeLeverItem = -1;
-				const obj = {
-					title: '反向开仓',
-					closeLeverContent: '如果存在平仓挂单(限价止盈止损),将会在全平前被撤单,确定反向开仓吗?',
-				}
-				this.$emit('setDepot', obj)
-			},
-			setCloseLeverAll() {
-				this.closeLeverItem = null;
-				const obj = {
-					title: '全部平仓',
-					closeLeverContent: '如果存在平仓挂单(限价止盈止损),将会在全平前被撤单,确定全部平仓吗?',
-				}
-				this.$emit('setDepot', obj)
-				// this.title = '全部平仓';
-				// this.closeLeverContent = '';
-				// this.closeLeverItem = null;
-				// this.$refs.unopenRef.open();
-			},
-			confirm() {
-				if (this.myTransaction.length > 0) {
-					uni.showLoading({
-						title: '',
-						mask: true
-					})
-					if (this.closeLeverItem && this.closeLeverItem !== -1) {
-						// 平仓
-						Api_setCloseLever({
-							id: this.closeLeverItem.id
-						}).then(res => {
-							setTimeout(() => {
-								uni.showToast({
-									title: '平仓成功',
-									icon: 'none'
-								})
-								setTimeout(() => {
-									uni.hideToast()
-									this.$emit('closeLeverSuccess')
-								}, 300)
-							}, 201)
-
-						}).finally(() => {
-							setTimeout(() => {
-								uni.hideLoading()
-							}, 200)
-						})
-					} else if (this.closeLeverItem == -1) {
-						// 反向开仓
-
-					} else {
-						// 全部平仓
-						
-						Api_setBatchClose({
-							type: 0,
-							currency_id: this.currency.currency_id
-						}).then(res => {
-							setTimeout(() => {
-								uni.showToast({
-									title: '平仓成功',
-									icon: 'none'
-								})
-								setTimeout(() => {
-									uni.hideToast()
-									this.$emit('closeLeverSuccess')
-								}, 300)
-							}, 201)
-						}).finally(() => {
-							setTimeout(() => {
-								uni.hideLoading()
-							}, 200)
-						})
-					}
-
-				}
-
-			},
-			// 设置止盈止损
-			setRestrict(item) {
-
-				console.log('setRestrict = ', item)
-				this.$emit('setProfitLoss', item)
-
-				// this.$nextTick(() => {
-				// 	this.$refs.restrictRef.open(item)
-				// })
-			},
-			setSuccess() {
-				this.$emit('closeLeverSuccess')
-			}
-		}
-
-	}
-</script>
-
-<style lang="scss" scoped>
-	@import "~./index.scss"
-</style>

+ 0 - 247
.history/pages/contract/sustainability/freight-space_20230531091400.vue

@@ -1,247 +0,0 @@
-<template>
-	<view class="">
-		<template v-if="leverTrade && leverTrade.tradesList && leverTrade.tradesList.length > 0">
-			<view class="lable-title">
-				<text class="lable-title-text">仓位信息</text>
-				<text class="lable-title-btn" @click.stop="setCloseLeverAll()">全部平仓</text>
-			</view>
-			<template v-for="item in leverTrade.tradesList">
-				<view class="content-box" :rise-fall="stocksColor">
-					<view class="content-top">
-						<view class="top-left">
-							<view class="top-left-title">
-								<text>{{ item.symbol }}</text>
-								<text>{{ item.type_name }}</text>
-								<view class="top-left-share" @click.stop="$emit('shareContent' , item)">
-									<text class="icon-size iconfont">&#xe8b0;</text>
-									<text class="icon-size">分享</text>
-								</view>
-							</view>
-							<view class="top-left-b">
-								<text>{{ item.multiple }}倍杠杆</text>
-								<text class="top-left-b-tag"></text>
-							</view>
-						</view>
-
-						<view class="top-right" :class="$setColor(item.profits)">
-							<text class="color">{{ item.profits }}</text>
-							<text class="top-right-float color"><text>浮动盈亏</text>{{ $getChange(item , 1) }}%</text>
-						</view>
-					</view>
-					<view class="content-info">
-						<view class="info-item">
-							<text class="info-item-lable">保证金(USDT)</text>
-							<text class="info-item-val">{{ item.caution_money }}</text>
-						</view>
-						<view class="info-item">
-							<text class="info-item-lable">开仓价格(USDT)</text>
-							<text class="info-item-val">{{ item.origin_price }}</text>
-						</view>
-						<view class="info-item">
-							<text class="info-item-lable">标记价格(USDT)</text>
-							<text class="info-item-val">{{ item.update_price }}</text>
-						</view>
-						<view class="info-item">
-							<text class="info-item-lable">持仓数量(张)</text>
-							<text class="info-item-val">{{ item.share }}</text>
-						</view>
-						<view class="info-item">
-							<text class="info-item-lable">风险率(%)</text>
-							<text class="info-item-val">{{ leverTrade.hazard_rate }}</text>
-							<!-- {{ item.caution_money }} -->
-						</view>
-						<view class="info-item">
-							<text class="info-item-lable">预计强平价(USDT)</text>
-							<text class="info-item-val">{{ $getChange(item , 3) }}</text>
-							<!-- {{ item.caution_money }} -->
-						</view>
-						<view class="info-item">
-							<text class="info-item-lable">预计止损(USDT)</text>
-							<text class="info-item-val"
-								@click.stop="setRestrict(item)">{{ item.stop_loss_price || '--' }} <text
-									class="iconfont">&#xe610;</text></text>
-						</view>
-						<view class="info-item">
-							<text class="info-item-lable">预计止盈(USDT)</text>
-							<text class="info-item-val" @click.stop="setRestrict(item)">
-								{{ item.target_profit_price	 || '--' }}
-								<text class="iconfont">&#xe610;</text>
-							</text>
-						</view>
-						<view class="info-item">
-							<text class="info-item-lable">预计创建时间(USDT)</text>
-							<text class="info-item-val">{{ item.transaction_time }}</text>
-						</view>
-					</view>
-					<view class="content-btns">
-						<view class="content-btn-item" @click.stop="setCloseLever(item)">
-							平仓
-						</view>
-						<!-- @click.stop="setInversion(item)" -->
-						<view class="content-btn-item">
-							反向开仓
-						</view>
-						<view class="content-btn-item">
-							加仓
-						</view>
-					</view>
-				</view>
-				<gap />
-			</template>
-		</template>
-		<template v-else>
-			<empty class="empty-content" />
-		</template>
-
-	</view>
-</template>
-
-<script>
-	import {
-		Api_setCloseLever,
-		Api_setBatchClose
-	} from "@/api/index.js"
-	import {
-		mapGetters
-	} from 'vuex'
-	export default {
-		name: 'freight-space',
-		props: {
-
-			myTransaction: {
-				type: Array,
-				default: () => {
-					return []
-				}
-			},
-			currency: {
-				type: Object,
-				default: () => {
-					return {}
-				}
-			},
-		},
-		computed: {
-			...mapGetters([
-				"stocksColor",
-				'orderList',
-				'leverTrade'
-			])
-		},
-		data() {
-			return {
-				closeLeverItem: null,
-
-			};
-		},
-		mounted() {
-
-		},
-		methods: {
-			setCloseLever(item) {
-				this.closeLeverItem = item;
-				const obj = {
-					title: '平仓',
-					closeLeverContent: '如果存在平仓挂单(限价止盈止损),将会在全平前被撤单,确定平仓吗?'
-				}
-				this.$emit('setCloseLever', item)
-			},
-			setInversion() {
-
-				this.closeLeverItem = -1;
-				const obj = {
-					title: '反向开仓',
-					closeLeverContent: '如果存在平仓挂单(限价止盈止损),将会在全平前被撤单,确定反向开仓吗?',
-				}
-				this.$emit('setDepot', obj)
-			},
-			setCloseLeverAll() {
-				this.closeLeverItem = null;
-				const obj = {
-					title: '全部平仓',
-					closeLeverContent: '如果存在平仓挂单(限价止盈止损),将会在全平前被撤单,确定全部平仓吗?',
-				}
-				this.$emit('setDepot', obj)
-				// this.title = '全部平仓';
-				// this.closeLeverContent = '';
-				// this.closeLeverItem = null;
-				// this.$refs.unopenRef.open();
-			},
-			confirm() {
-				if (this.myTransaction.length > 0) {
-					uni.showLoading({
-						title: '',
-						mask: true
-					})
-					if (this.closeLeverItem && this.closeLeverItem !== -1) {
-						// 平仓
-						Api_setCloseLever({
-							id: this.closeLeverItem.id
-						}).then(res => {
-							setTimeout(() => {
-								uni.showToast({
-									title: '平仓成功',
-									icon: 'none'
-								})
-								setTimeout(() => {
-									uni.hideToast()
-									this.$emit('closeLeverSuccess')
-								}, 300)
-							}, 201)
-
-						}).finally(() => {
-							setTimeout(() => {
-								uni.hideLoading()
-							}, 200)
-						})
-					} else if (this.closeLeverItem == -1) {
-						// 反向开仓
-
-					} else {
-						// 全部平仓
-						
-						Api_setBatchClose({
-							type: 0,
-							currency_id: this.currency.currency_id
-						}).then(res => {
-							setTimeout(() => {
-								uni.showToast({
-									title: '平仓成功',
-									icon: 'none'
-								})
-								setTimeout(() => {
-									uni.hideToast()
-									this.$emit('closeLeverSuccess')
-								}, 300)
-							}, 201)
-						}).finally(() => {
-							setTimeout(() => {
-								uni.hideLoading()
-							}, 200)
-						})
-					}
-
-				}
-
-			},
-			// 设置止盈止损
-			setRestrict(item) {
-
-				console.log('setRestrict = ', item)
-				this.$emit('setProfitLoss', item)
-
-				// this.$nextTick(() => {
-				// 	this.$refs.restrictRef.open(item)
-				// })
-			},
-			setSuccess() {
-				this.$emit('closeLeverSuccess')
-			}
-		}
-
-	}
-</script>
-
-<style lang="scss" scoped>
-	@import "~./index.scss"
-</style>

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 1366
.history/pages/contract/sustainability/index_20230526104524.vue


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 1366
.history/pages/contract/sustainability/index_20230531091400.vue


+ 0 - 153
.history/pages/login/register_20230522092747.vue

@@ -1,153 +0,0 @@
-<template>
-	<view>
-		<headContent>
-			<template #left>
-				<view class="head-revers-back iconfont" @click.stop="reversBackBtn()">&#xe604;</view>
-			</template>
-		</headContent>
-
-		<view class="page-content">
-			<text class="login-title">注册</text>
-			<text class="login-content">立即注册属于您的币王账号</text>
-			<tabList ref="tabListRef" :tabIndex.sync="tabIndexs" />
-
-			<phoneRegister v-show="tabIndexs === 0" :accounts="accounts" />
-
-			<email-register v-show="tabIndexs === 1" :accounts="accounts" />
-
-			<view class="form-agreement" @click.stop="readAgreement = !readAgreement">
-				<view class="agreement-confirm">
-					<text class="confirm-icon iconfont" v-show="readAgreement">&#xe6c5;</text>
-				</view>
-				<text>我已阅读并同意</text>
-				<text class="agreement-name" @click.stop="readAgreementText">《用户协议》</text>
-			</view>
-			<view class="form-btn" @click.stop="formSubmit">
-				下一步
-			</view>
-			<view class="form-hint">
-				已有账号?<text class="hint-btn"> 立即登录</text>
-			</view>
-		</view>
-
-		<slider-verify ref="sliderVerifyRef" @slideImgSuccess="slideImgSuccess" />
-	</view>
-</template>
-
-<script>
-	import {
-		reverseBack
-	} from "@/utils/common.js"
-	import tabList from "./modules/tab.vue"
-	import emailRegister from "./modules/email-register.vue"
-	import phoneRegister from "./modules/phone-register.vue"
-
-	export default {
-		name: 'register',
-		components: {
-			tabList,
-			emailRegister,
-			phoneRegister
-		},
-		data() {
-			return {
-				readAgreement: false,
-				tabIndexs: 0,
-				accounts: {
-					areaCode: 86,
-					phone: '',
-					email: '',
-					invitationCode: '',
-				}
-
-
-			};
-		},
-		methods: {
-			// 阅读协议
-			readAgreementText() {
-				uni.navigateTo({
-					url: '/pages/content/article-details?id=8'
-				})
-			},
-			setAreaCode(e) {
-				if (e) {
-					this.accounts.areaCode = e.area_code;
-				}
-			},
-			reversBackBtn() {
-				reverseBack()
-			},
-			formSubmit(e) {
-				// tabIndexs: 0,
-				// accounts: {
-				// 	areaCode:86,
-				// 	phone: '',
-				// 	email: '',
-				// 	invitationCode: '',
-				// }
-				if (this.tabIndexs === 0 && !this.accounts.phone) {
-					uni.showToast({
-						title: '请填写手机号',
-						icon: "none"
-					})
-					return false
-				}
-				if (this.tabIndexs === 1 && !this.accounts.email) {
-					uni.showToast({
-						title: '请填写邮箱',
-						icon: "none"
-					})
-					return false
-				}
-				if (!this.accounts.invitationCode) {
-					uni.showToast({
-						title: '请填写邀请码',
-						icon: "none"
-					})
-					return false
-				}
-				if (!this.readAgreement) {
-					uni.showToast({
-						title: '请先阅读用户协议',
-						icon: "none"
-					})
-					return false
-				}
-				this.$nextTick(() => {
-					this.$refs.sliderVerifyRef.open();
-				})
-			},
-			slideImgSuccess() {
-				// tabIndexs: 1,
-				// accounts: {
-				// 	phone: '13133111133',
-				// 	email:'biking2023@163.com',
-				// 	invitationCode: '',
-				// }
-				let data = ''
-				switch (this.tabIndexs) {
-					case 0:
-						data =
-							`type=${this.tabIndexs}&areaCode=${this.accounts.areaCode}&account=${this.accounts.phone}&invitationCode=${this.accounts.invitationCode}`;
-						break;
-					case 1:
-						data =
-							`type=${this.tabIndexs}&account=${this.accounts.email}&invitationCode=${this.accounts.invitationCode}`;
-						break;
-
-				}
-				uni.navigateTo({
-					url: `/pages/login/email-verify?${data}`
-				})
-			},
-			// formReset() {
-
-			// }
-		}
-	}
-</script>
-
-<style lang="scss" scoped>
-	@import "~./common.scss"
-</style>

+ 0 - 153
.history/pages/login/register_20230522094454.vue

@@ -1,153 +0,0 @@
-<template>
-	<view>
-		<headContent>
-			<template #left>
-				<view class="head-revers-back iconfont" @click.stop="reversBackBtn()">&#xe604;</view>
-			</template>
-		</headContent>
-
-		<view class="page-content">
-			<text class="login-title">注册</text>
-			<text class="login-content">立即注册属于您的币王账号</text>
-			<tabList ref="tabListRef" :tabIndex.sync="tabIndexs" />
-
-			<phoneRegister v-show="tabIndexs === 0" :accounts="accounts" />
-
-			<email-register v-show="tabIndexs === 1" :accounts="accounts" />
-
-			<view class="form-agreement" @click.stop="readAgreement = !readAgreement">
-				<view class="agreement-confirm">
-					<text class="confirm-icon iconfont" v-show="readAgreement">&#xe6c5;</text>
-				</view>
-				<text>我已阅读并同意</text>
-				<text class="agreement-name" @click.stop="readAgreementText">《用户协议》</text>
-			</view>
-			<view class="form-btn" @click.stop="formSubmit">
-				下一步
-			</view>
-			<view class="form-hint">
-				已有账号?<text class="hint-btn"> 立即登录</text>
-			</view>
-		</view>
-
-		<slider-verify ref="sliderVerifyRef" @slideImgSuccess="slideImgSuccess" />
-	</view>
-</template>
-
-<script>
-	import {
-		reverseBack
-	} from "@/utils/common.js"
-	import tabList from "./modules/tab.vue"
-	import emailRegister from "./modules/email-register.vue"
-	import phoneRegister from "./modules/phone-register.vue"
-
-	export default {
-		name: 'register',
-		components: {
-			tabList,
-			emailRegister,
-			phoneRegister
-		},
-		data() {
-			return {
-				readAgreement: false,
-				tabIndexs: 0,
-				accounts: {
-					areaCode: 86,
-					phone: '',
-					email: '',
-					invitationCode: '',
-				}
-
-
-			};
-		},
-		methods: {
-			// 阅读协议
-			readAgreementText() {
-				uni.navigateTo({
-					url: this.$path.articleDetails + '8'
-				})
-			},
-			setAreaCode(e) {
-				if (e) {
-					this.accounts.areaCode = e.area_code;
-				}
-			},
-			reversBackBtn() {
-				reverseBack()
-			},
-			formSubmit(e) {
-				// tabIndexs: 0,
-				// accounts: {
-				// 	areaCode:86,
-				// 	phone: '',
-				// 	email: '',
-				// 	invitationCode: '',
-				// }
-				if (this.tabIndexs === 0 && !this.accounts.phone) {
-					uni.showToast({
-						title: '请填写手机号',
-						icon: "none"
-					})
-					return false
-				}
-				if (this.tabIndexs === 1 && !this.accounts.email) {
-					uni.showToast({
-						title: '请填写邮箱',
-						icon: "none"
-					})
-					return false
-				}
-				if (!this.accounts.invitationCode) {
-					uni.showToast({
-						title: '请填写邀请码',
-						icon: "none"
-					})
-					return false
-				}
-				if (!this.readAgreement) {
-					uni.showToast({
-						title: '请先阅读用户协议',
-						icon: "none"
-					})
-					return false
-				}
-				this.$nextTick(() => {
-					this.$refs.sliderVerifyRef.open();
-				})
-			},
-			slideImgSuccess() {
-				// tabIndexs: 1,
-				// accounts: {
-				// 	phone: '13133111133',
-				// 	email:'biking2023@163.com',
-				// 	invitationCode: '',
-				// }
-				let data = ''
-				switch (this.tabIndexs) {
-					case 0:
-						data =
-							`type=${this.tabIndexs}&areaCode=${this.accounts.areaCode}&account=${this.accounts.phone}&invitationCode=${this.accounts.invitationCode}`;
-						break;
-					case 1:
-						data =
-							`type=${this.tabIndexs}&account=${this.accounts.email}&invitationCode=${this.accounts.invitationCode}`;
-						break;
-
-				}
-				uni.navigateTo({
-					url: `/pages/login/email-verify?${data}`
-				})
-			},
-			// formReset() {
-
-			// }
-		}
-	}
-</script>
-
-<style lang="scss" scoped>
-	@import "~./common.scss"
-</style>

+ 0 - 233
.history/utils/common_20230519161015.js

@@ -1,233 +0,0 @@
-// import config from "./config"
-import store from "@/store/index.js"
-
-import {
-	Decimal
-} from 'decimal.js'
-import config from "./config.js"
-export const setToken = (tokenVal) => {
-	try {
-		uni.setStorageSync(config.tokenKey, tokenVal);
-	} catch (e) {
-		// error
-	}
-}
-
-
-export const getToken = () => {
-	try {
-		const value = uni.getStorageSync(config.tokenKey);
-		return value || ''
-	} catch (e) {
-		// error
-	}
-}
-
-export const setStorageSync = (key, val) => { 
-	try {
-		uni.setStorageSync(key, val);
-	} catch (e) {
-		// error
-	}
-}
-
-export const getStorageSync = (key) => {
-	try {
-		const value = uni.getStorageSync(key);
-		return value || ''
-	} catch (e) {
-		// error
-	}
-}
-
-
-export const removeStorageSync = (key) => {
-	try {
-		uni.removeStorageSync(key);
-	} catch (e) {
-		// error
-	}
-}
-
-export const refreshAccount = () => {
-	store.commit('app/SET_TOKEN', '')
-	uni.reLaunch({
-		url: '/pages/index/index'
-	});
-}
-
-// 判断是否登录
-export const ifLogin_ = () => {
-	return new Promise((resolve, reject) => {
-		if (getToken()) {
-			resolve()
-		} else {
-			uni.navigateTo({
-				url: '/pages/login/index'
-			});
-
-			reject()
-		};
-	})
-};
-
-
-
-export const reverseBack = (path = undefined) => {
-	const pages = getCurrentPages();
-	if (pages.length <= 1) {
-		uni.reLaunch({
-			url: '/pages/index/index'
-		});
-	} else {
-		let deltaNum = 1;
-		if (path) {
-			if (path.indexOf('/') === 0) {
-				path = path.substring(1);
-			};
-			const pageLength = pages.length
-			let num = pageLength;
-			for (let i = 1; i <= pageLength; i++) {
-				num -= 1;
-				if (pages[num].route === path) {
-					deltaNum = i;
-					break;
-				}
-			}
-
-		};
-		uni.navigateBack({
-			delta: deltaNum,
-			fail: err => {}
-		})
-	}
-}
-
-export const decimalNum = {
-	// 加法
-	add: (a, b) => {
-		return new Decimal(a).add(new Decimal(b))
-	},
-	// 减法
-	sub: (a, b) => {
-		return new Decimal(a).sub(new Decimal(b))
-	},
-	// 乘法
-	mul: (a, b) => {
-		return new Decimal(a).mul(new Decimal(b))
-	},
-	// 除法
-	div: (a, b) => {
-		return new Decimal(a).div(new Decimal(b))
-	},
-
-	// // 加法
-	// let c = new Decimal(a).add(new Decimal(b)) 
-	// // 减法
-	// let d = new Decimal(a).sub(new Decimal(b))
-	// // 乘法
-	// let e = new Decimal(a).mul(new Decimal(b))
-	// // 除法
-	// let f = new Decimal(a).div(new Decimal(b))
-
-}
-
-
-// 涨跌颜色
-export const setColor = (nums , type = false) => {
-	if(type){
-		return nums >= 0 ? true : false
-	}else{
-		return nums >= 0 ? 'zhang' : 'die'
-	}
-	
-}
-
-
-const doubleDigit = (t) => {
-	if (t <= 9) {
-		return `0${t}`
-	}
-	return t
-
-}
-export const getData_ = (time = '', type = true) => {
-	if (time || type) {
-		let now = time ? new Date(time) : new Date();
-		const year = now.getFullYear();
-		const month = doubleDigit(now.getMonth() + 1);
-		const day = doubleDigit(now.getDate());
-		const hour = doubleDigit(now.getHours());
-		const min = doubleDigit(now.getMinutes());
-		const seon = doubleDigit(now.getSeconds());
-		return `${year}-${month}-${day} ${hour}:${min}:${seon}`
-	}
-	return ''
-
-}
-
-export const scanCode = () => {
-	// 允许从相机和相册扫码
-	return new Promise((resolve, reject) => {
-		uni.scanCode({
-			success: res => {
-				console.log('条码类型:' + res.scanType);
-				console.log('条码内容:' + res.result);
-				resolve(res.result)
-			},
-			fail: err => {
-				reject()
-			},
-		});
-	})
-
-
-}
-
-// 阅读文章详情
-export const readArticleInfo = (id) => {
-	uni.navigateTo({
-		url: `/pages/content/article-details?id=${id}`
-	})
-}
-
-
-// 数字截取
-export const numIntercepting = (num = 0, decimals = 0) => {
-	if (num) {
-		try {
-			num = parseInt(num).toFixed(decimals)
-		} catch {}
-	}
-
-	return num
-}
-
-
-
-export const getChange = (item, type) => {
-	// 计算
-	let num = ''
-	switch (type) {
-		case 1:
-			// 浮动盈亏 = ((开仓价格 - 标记价格) × 数量 - 手续费)*100/ 标记价格
-			num = ((item.update_price - item.origin_price) * item.number - item.trade_fee) * 100 / item
-				.origin_price
-			if (num) {
-				num = num.toFixed(2)
-			};
-			break;
-		case 2:
-			// 保证金*100/可用余额
-			num = item.caution_money * 100 / item.user.lever
-			break;
-		case 3:
-			// 强平价 = 标记价格*100
-			num = item.origin_price * 100
-			break;
-
-
-	}
-
-	return (num || num === 0) ? num : '--'
-}

+ 0 - 233
.history/utils/common_20230522094503.js

@@ -1,233 +0,0 @@
-// import config from "./config"
-import store from "@/store/index.js"
-
-import {
-	Decimal
-} from 'decimal.js'
-import config from "./config.js"
-export const setToken = (tokenVal) => {
-	try {
-		uni.setStorageSync(config.tokenKey, tokenVal);
-	} catch (e) {
-		// error
-	}
-}
-
-
-export const getToken = () => {
-	try {
-		const value = uni.getStorageSync(config.tokenKey);
-		return value || ''
-	} catch (e) {
-		// error
-	}
-}
-
-export const setStorageSync = (key, val) => { 
-	try {
-		uni.setStorageSync(key, val);
-	} catch (e) {
-		// error
-	}
-}
-
-export const getStorageSync = (key) => {
-	try {
-		const value = uni.getStorageSync(key);
-		return value || ''
-	} catch (e) {
-		// error
-	}
-}
-
-
-export const removeStorageSync = (key) => {
-	try {
-		uni.removeStorageSync(key);
-	} catch (e) {
-		// error
-	}
-}
-
-export const refreshAccount = () => {
-	store.commit('app/SET_TOKEN', '')
-	uni.reLaunch({
-		url: '/pages/index/index'
-	});
-}
-
-// 判断是否登录
-export const ifLogin_ = () => {
-	return new Promise((resolve, reject) => {
-		if (getToken()) {
-			resolve()
-		} else {
-			uni.navigateTo({
-				url: '/pages/login/index'
-			});
-
-			reject()
-		};
-	})
-};
-
-
-
-export const reverseBack = (path = undefined) => {
-	const pages = getCurrentPages();
-	if (pages.length <= 1) {
-		uni.reLaunch({
-			url: '/pages/index/index'
-		});
-	} else {
-		let deltaNum = 1;
-		if (path) {
-			if (path.indexOf('/') === 0) {
-				path = path.substring(1);
-			};
-			const pageLength = pages.length
-			let num = pageLength;
-			for (let i = 1; i <= pageLength; i++) {
-				num -= 1;
-				if (pages[num].route === path) {
-					deltaNum = i;
-					break;
-				}
-			}
-
-		};
-		uni.navigateBack({
-			delta: deltaNum,
-			fail: err => {}
-		})
-	}
-}
-
-export const decimalNum = {
-	// 加法
-	add: (a, b) => {
-		return new Decimal(a).add(new Decimal(b))
-	},
-	// 减法
-	sub: (a, b) => {
-		return new Decimal(a).sub(new Decimal(b))
-	},
-	// 乘法
-	mul: (a, b) => {
-		return new Decimal(a).mul(new Decimal(b))
-	},
-	// 除法
-	div: (a, b) => {
-		return new Decimal(a).div(new Decimal(b))
-	},
-
-	// // 加法
-	// let c = new Decimal(a).add(new Decimal(b)) 
-	// // 减法
-	// let d = new Decimal(a).sub(new Decimal(b))
-	// // 乘法
-	// let e = new Decimal(a).mul(new Decimal(b))
-	// // 除法
-	// let f = new Decimal(a).div(new Decimal(b))
-
-}
-
-
-// 涨跌颜色
-export const setColor = (nums , type = false) => {
-	if(type){
-		return nums >= 0 ? true : false
-	}else{
-		return nums >= 0 ? 'zhang' : 'die'
-	}
-	
-}
-
-
-const doubleDigit = (t) => {
-	if (t <= 9) {
-		return `0${t}`
-	}
-	return t
-
-}
-export const getData_ = (time = '', type = true) => {
-	if (time || type) {
-		let now = time ? new Date(time) : new Date();
-		const year = now.getFullYear();
-		const month = doubleDigit(now.getMonth() + 1);
-		const day = doubleDigit(now.getDate());
-		const hour = doubleDigit(now.getHours());
-		const min = doubleDigit(now.getMinutes());
-		const seon = doubleDigit(now.getSeconds());
-		return `${year}-${month}-${day} ${hour}:${min}:${seon}`
-	}
-	return ''
-
-}
-
-export const scanCode = () => {
-	// 允许从相机和相册扫码
-	return new Promise((resolve, reject) => {
-		uni.scanCode({
-			success: res => {
-				console.log('条码类型:' + res.scanType);
-				console.log('条码内容:' + res.result);
-				resolve(res.result)
-			},
-			fail: err => {
-				reject()
-			},
-		});
-	})
-
-
-}
-
-// 阅读文章详情
-export const readArticleInfo = (id) => {
-	uni.navigateTo({
-		url: this.$path.articleDetails + `${id}`
-	})
-}
-
-
-// 数字截取
-export const numIntercepting = (num = 0, decimals = 0) => {
-	if (num) {
-		try {
-			num = parseInt(num).toFixed(decimals)
-		} catch {}
-	}
-
-	return num
-}
-
-
-
-export const getChange = (item, type) => {
-	// 计算
-	let num = ''
-	switch (type) {
-		case 1:
-			// 浮动盈亏 = ((开仓价格 - 标记价格) × 数量 - 手续费)*100/ 标记价格
-			num = ((item.update_price - item.origin_price) * item.number - item.trade_fee) * 100 / item
-				.origin_price
-			if (num) {
-				num = num.toFixed(2)
-			};
-			break;
-		case 2:
-			// 保证金*100/可用余额
-			num = item.caution_money * 100 / item.user.lever
-			break;
-		case 3:
-			// 强平价 = 标记价格*100
-			num = item.origin_price * 100
-			break;
-
-
-	}
-
-	return (num || num === 0) ? num : '--'
-}

+ 0 - 16
.history/utils/path_20230522094628.js

@@ -1,16 +0,0 @@
- const path = {
-
- 	// 客服 :
- 	service: '/pages/content/customer-service',
-
-	// 文章详情
-	articleDetails:'/pages/content/article-details?id='
-	
-
-
-
-
- }
-
-
- export default path

+ 0 - 16
.history/utils/path_20230522133621.js

@@ -1,16 +0,0 @@
- const path = {
-
- 	// 客服 :
- 	service: '/pages/content/customer-service',
-
-	// 文章详情
-	articleDetails:'/pages/content/article-details?id='
-	
-
- 
-
-
- }
-
-
- export default path

+ 0 - 142
.history/utils/websocket_20230531091125.js

@@ -1,142 +0,0 @@
-// import socket from "@/utils/websocket.js"
-import config from "./config.js"
-import { getStorageSync } from "./common.js"
-
-let socket_api = `${config.socketUrl}:2000`
-// import io from '@/js_sdk/hyoga-uni-socket_io/uni-socket.io.js';
-import io from '@hyoga/uni-socket.io';
-import store from '@/store'
-import {
-	decimalNum
-} from "./common.js"
-
-
-
-
-const nums = (arr = []) => {
-	const att = arr.map(el => {
-		return el[1]
-	})
-	const num = Math.max.apply(null, att)
-	arr.forEach(el => {
-		let n = (el[1] / num * 100).toFixed(2);
-		el[2] = n > 100 ? 100 : n;
-	})
-	return arr
-}
-
-let socket = null
-
-const filtration = (msg) => {
-	if (store.getters.currencyVal.legal_id == msg.legal_id && store.getters.currencyVal.currency_id ==
-		msg.currency_id) {
-		return true
-	} else {
-		return false
-	}
-}
-// closeSocket();
-export const startSocket = (data) => {
-	console.log('closeSocket 初始化')
-	closeSocket();
-	socket = io(socket_api, {
-		query: {},
-		transports: ['websocket', 'polling'],
-		timeout: 5000,
-	});
-	socket.on('connect', () => {
-		socket.on('market_depth', (msg) => {
-			if (filtration(msg)) {
-				// console.log('market_depth = ' , msg)
-				// 收到服务器推送的消息,可以跟进自身业务进行操作
-				// var buyIn = msg.bids.slice(0, 7);
-				store.commit('websocket/set_bids', nums(msg.bids))
-				// var out = msg.asks.slice(0, 7);
-				store.commit('websocket/set_asks', nums(msg.asks))
-			}
-		})
-		socket.on('daymarket', (msg) => {
-			// 收到服务器推送的消息,可以跟进自身业务进行操作
-			if (filtration(msg)) {
-				store.commit('websocket/set_daymarket', msg)
-			}
-		})
-		socket.on('kline', (msg) => {
-			// 收到服务器推送的消息,可以跟进自身业务进行操作
-			if (filtration(msg)) {
-				console.log('kline = ' , msg , new Date().getTime())
-				const data = {
-					// id:new Date().getTime(), // 时间戳
-					id:msg.time, // 时间戳
-					open:msg.open,
-					close:msg.close,
-					high:msg.high,
-					low:msg.low,
-					vol:msg.volume,
-					amount:msg.amount,
-					count:msg.count || 0,
-					// id	int	时间戳
-					// open	float	开盘价
-					// close	float	收盘价
-					// high	float	最高价
-					// low	float	最低价
-					// vol	float	成交额,VOL副图需要用到该参数
-					// amount	float	成交量,在选择器里面需要用到该参数
-					// count	int	成交笔数,当前为预留字段,你那边没有这个数据的话传个0就行,但是不能不传
-					
-					
-				}
-			}
-		})
-		// socket.emit('login', getStorageSync('shareCode'));
-		socket.on('lever_trade', (msg) => {
-			// if (filtration(msg)) {
-			// 	console.log('lever_trade 133 = ' , JSON.parse(msg.trades_cur))
-			// 	const trades_cur = JSON.parse(msg.trades_cur)
-			// 	const obj = Object.assign({} , msg , {trades_cur:trades_cur})
-			// 	store.commit('websocket/set_lever_trade', obj)
-			// }
-			const tradesList = JSON.parse(msg.tradesList)
-			const obj = Object.assign({} , msg , {tradesList:tradesList})
-			store.commit('websocket/set_lever_trade', obj)
-		})
-
-	})
-
-
-
-	return false
-	if (socketObj[data.type]) {
-		socketObj[data.type].disconnect();
-		socketObj[data.type] = null
-	};
-	socketObj[data.type] = io(socket_api, {
-		query: {},
-		transports: ['websocket', 'polling'],
-		timeout: 5000,
-	});
-	socketObj[data.type].on(data.type, (msg) => {
-		if (store.getters.currencyVal.legal_id == msg.legal_id && store.getters.currencyVal.currency_id ==
-			msg.currency_id) {
-			if (msg.type == 'market_depth') {
-				// var buyIn = msg.bids.slice(0, 7);
-				store.commit('websocket/set_bids', nums(msg.bids))
-				// var out = msg.asks.slice(0, 7);
-				store.commit('websocket/set_asks', nums(msg.asks))
-			}
-			if (msg.type == 'daymarket') {
-				// state.daymarket = msg;
-				store.commit('websocket/set_daymarket', msg)
-			}
-
-		}
-
-	});
-}
-
-export const closeSocket = () => {
-	try {
-		socket && socket.disconnect()
-		socket = null;
-	} catch {}
-}

+ 0 - 142
.history/utils/websocket_20230531091400.js

@@ -1,142 +0,0 @@
-// import socket from "@/utils/websocket.js"
-import config from "./config.js"
-import { getStorageSync } from "./common.js"
-
-let socket_api = `${config.socketUrl}:2000`
-// import io from '@/js_sdk/hyoga-uni-socket_io/uni-socket.io.js';
-import io from '@hyoga/uni-socket.io';
-import store from '@/store'
-import {
-	decimalNum
-} from "./common.js"
-
-
-
-
-const nums = (arr = []) => {
-	const att = arr.map(el => {
-		return el[1]
-	})
-	const num = Math.max.apply(null, att)
-	arr.forEach(el => {
-		let n = (el[1] / num * 100).toFixed(2);
-		el[2] = n > 100 ? 100 : n;
-	})
-	return arr
-}
-
-let socket = null
-
-const filtration = (msg) => {
-	if (store.getters.currencyVal.legal_id == msg.legal_id && store.getters.currencyVal.currency_id ==
-		msg.currency_id) {
-		return true
-	} else {
-		return false
-	}
-}
-// closeSocket();
-export const startSocket = (data) => {
-	console.log('closeSocket 初始化')
-	closeSocket();
-	socket = io(socket_api, {
-		query: {},
-		transports: ['websocket', 'polling'],
-		timeout: 5000,
-	});
-	socket.on('connect', () => {
-		socket.on('market_depth', (msg) => {
-			if (filtration(msg)) {
-				// console.log('market_depth = ' , msg)
-				// 收到服务器推送的消息,可以跟进自身业务进行操作
-				// var buyIn = msg.bids.slice(0, 7);
-				store.commit('websocket/set_bids', nums(msg.bids))
-				// var out = msg.asks.slice(0, 7);
-				store.commit('websocket/set_asks', nums(msg.asks))
-			}
-		})
-		socket.on('daymarket', (msg) => {
-			// 收到服务器推送的消息,可以跟进自身业务进行操作
-			if (filtration(msg)) {
-				store.commit('websocket/set_daymarket', msg)
-			}
-		})
-		socket.on('kline', (msg) => {
-			// 收到服务器推送的消息,可以跟进自身业务进行操作
-			if (filtration(msg)) {
-				console.log('kline = ' , msg , new Date().getTime())
-				const data = {
-					// id:new Date().getTime(), // 时间戳
-					id:msg.time, // 时间戳
-					open:msg.open,
-					close:msg.close,
-					high:msg.high,
-					low:msg.low,
-					vol:msg.volume,
-					amount:msg.amount,
-					count:msg.count || 0,
-					// id	int	时间戳
-					// open	float	开盘价
-					// close	float	收盘价
-					// high	float	最高价
-					// low	float	最低价
-					// vol	float	成交额,VOL副图需要用到该参数
-					// amount	float	成交量,在选择器里面需要用到该参数
-					// count	int	成交笔数,当前为预留字段,你那边没有这个数据的话传个0就行,但是不能不传
-					
-					
-				}
-			}
-		})
-		// socket.emit('login', getStorageSync('shareCode'));
-		socket.on('lever_trade', (msg) => {
-			// if (filtration(msg)) {
-			// 	console.log('lever_trade 133 = ' , JSON.parse(msg.tradesList))
-			// 	const tradesList = JSON.parse(msg.tradesList)
-			// 	const obj = Object.assign({} , msg , {tradesList:tradesList})
-			// 	store.commit('websocket/set_lever_trade', obj)
-			// }
-			const tradesList = JSON.parse(msg.tradesList)
-			const obj = Object.assign({} , msg , {tradesList:tradesList})
-			store.commit('websocket/set_lever_trade', obj)
-		})
-
-	})
-
-
-
-	return false
-	if (socketObj[data.type]) {
-		socketObj[data.type].disconnect();
-		socketObj[data.type] = null
-	};
-	socketObj[data.type] = io(socket_api, {
-		query: {},
-		transports: ['websocket', 'polling'],
-		timeout: 5000,
-	});
-	socketObj[data.type].on(data.type, (msg) => {
-		if (store.getters.currencyVal.legal_id == msg.legal_id && store.getters.currencyVal.currency_id ==
-			msg.currency_id) {
-			if (msg.type == 'market_depth') {
-				// var buyIn = msg.bids.slice(0, 7);
-				store.commit('websocket/set_bids', nums(msg.bids))
-				// var out = msg.asks.slice(0, 7);
-				store.commit('websocket/set_asks', nums(msg.asks))
-			}
-			if (msg.type == 'daymarket') {
-				// state.daymarket = msg;
-				store.commit('websocket/set_daymarket', msg)
-			}
-
-		}
-
-	});
-}
-
-export const closeSocket = () => {
-	try {
-		socket && socket.disconnect()
-		socket = null;
-	} catch {}
-}