|
@@ -25,12 +25,12 @@
|
|
|
|
|
|
<!-- 轮播图 -->
|
|
|
<view class="uni-margin-wrap margin-b-10">
|
|
|
- <swiper indicator-color='rgba(255,255,255,0.69)' indicator-active-color='#FFF' class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
|
|
|
- :duration="duration">
|
|
|
+ <swiper indicator-color='rgba(255,255,255,0.69)' indicator-active-color='#FFF' class="swiper" circular
|
|
|
+ :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval" :duration="duration">
|
|
|
<swiper-item class="swiper-box">
|
|
|
<image class="swiper-item" src="../../static/shouye/shouye4.png" mode="scaleToFill"></image>
|
|
|
</swiper-item>
|
|
|
- <swiper-item class="swiper-box">
|
|
|
+ <swiper-item class="swiper-box">
|
|
|
<image class="swiper-item" src="../../static/shouye/shouye4.png" mode="scaleToFill"></image>
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
@@ -57,7 +57,7 @@
|
|
|
29385.97
|
|
|
</view>
|
|
|
<view class="list-item ">
|
|
|
- <text class="button" :class="{up:item.fl==1,dom:item.fl==0}">
|
|
|
+ <text class="button" :class="{up:item.fl==1,dom:item.fl==0}">
|
|
|
{{item.fl==1?'+':'-'}} {{item.bfb}}%
|
|
|
</text>
|
|
|
</view>
|
|
@@ -66,7 +66,10 @@
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
- import { mapState, mapActions } from "vuex";
|
|
|
+ import {
|
|
|
+ mapState,
|
|
|
+ mapActions
|
|
|
+ } from "vuex";
|
|
|
import taber from "@/components/footer/footer.vue";
|
|
|
export default {
|
|
|
components: {
|
|
@@ -81,35 +84,35 @@
|
|
|
navList: {
|
|
|
loadingType: 'more',
|
|
|
orderList: [{
|
|
|
- type:'TRX',
|
|
|
- img:'../../static/shouye/shouye5.png',
|
|
|
- money:2222,
|
|
|
- fl:1,
|
|
|
- bfb:0.25,
|
|
|
- },{
|
|
|
- type:'TRX',
|
|
|
- img:'../../static/shouye/shouye6.png',
|
|
|
- money:2222,
|
|
|
- fl:0,
|
|
|
- bfb:9.25,
|
|
|
- },{
|
|
|
- type:'TRX',
|
|
|
- img:'../../static/shouye/shouye7.png',
|
|
|
- money:2222,
|
|
|
- fl:1,
|
|
|
- bfb:0.25,
|
|
|
- },{
|
|
|
- type:'TRX',
|
|
|
- img:'../../static/shouye/shouye8.png',
|
|
|
- money:2222,
|
|
|
- fl:1,
|
|
|
- bfb:0.25,
|
|
|
- },{
|
|
|
- type:'TRX',
|
|
|
- img:'../../static/shouye/shouye9.png',
|
|
|
- money:2222,
|
|
|
- fl:0,
|
|
|
- bfb:0.25,
|
|
|
+ type: 'TRX',
|
|
|
+ img: '../../static/shouye/shouye5.png',
|
|
|
+ money: 2222,
|
|
|
+ fl: 1,
|
|
|
+ bfb: 0.25,
|
|
|
+ }, {
|
|
|
+ type: 'TRX',
|
|
|
+ img: '../../static/shouye/shouye6.png',
|
|
|
+ money: 2222,
|
|
|
+ fl: 0,
|
|
|
+ bfb: 9.25,
|
|
|
+ }, {
|
|
|
+ type: 'TRX',
|
|
|
+ img: '../../static/shouye/shouye7.png',
|
|
|
+ money: 2222,
|
|
|
+ fl: 1,
|
|
|
+ bfb: 0.25,
|
|
|
+ }, {
|
|
|
+ type: 'TRX',
|
|
|
+ img: '../../static/shouye/shouye8.png',
|
|
|
+ money: 2222,
|
|
|
+ fl: 1,
|
|
|
+ bfb: 0.25,
|
|
|
+ }, {
|
|
|
+ type: 'TRX',
|
|
|
+ img: '../../static/shouye/shouye9.png',
|
|
|
+ money: 2222,
|
|
|
+ fl: 0,
|
|
|
+ bfb: 0.25,
|
|
|
}],
|
|
|
page: 1, //当前页数
|
|
|
limit: 10 //每次信息条数
|
|
@@ -117,32 +120,32 @@
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapState({
|
|
|
- langList: "langList",
|
|
|
- lang: "lang",
|
|
|
- }),
|
|
|
- label() {
|
|
|
- const label = this.langList.find((item) =>{
|
|
|
- console.log(this.lang,item.value);
|
|
|
- return item.value == this.lang
|
|
|
+ ...mapState({
|
|
|
+ langList: "langList",
|
|
|
+ lang: "lang",
|
|
|
+ }),
|
|
|
+ label() {
|
|
|
+ const label = this.langList.find((item) => {
|
|
|
+ console.log(this.lang, item.value);
|
|
|
+ return item.value == this.lang
|
|
|
}).label;
|
|
|
- return label
|
|
|
- }
|
|
|
+ return label
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
- ...mapActions({
|
|
|
- setLang: "setLang",
|
|
|
- }),
|
|
|
- getCurrent(){
|
|
|
- let pages = getCurrentPages();
|
|
|
- let curPage = pages[pages.length - 1];
|
|
|
- return curPage
|
|
|
- },
|
|
|
- selectLang(value) {
|
|
|
- this.setLang(this.langList[value.detail.value].value);
|
|
|
- let path = '/'+this.getCurrent().route
|
|
|
- },
|
|
|
-
|
|
|
+ ...mapActions({
|
|
|
+ setLang: "setLang",
|
|
|
+ }),
|
|
|
+ getCurrent() {
|
|
|
+ let pages = getCurrentPages();
|
|
|
+ let curPage = pages[pages.length - 1];
|
|
|
+ return curPage
|
|
|
+ },
|
|
|
+ selectLang(value) {
|
|
|
+ this.setLang(this.langList[value.detail.value].value);
|
|
|
+ let path = '/' + this.getCurrent().route
|
|
|
+ },
|
|
|
+
|
|
|
loadData(source) {
|
|
|
//这里是将订单挂载到tab列表下
|
|
|
let navItem = this.navList;
|
|
@@ -173,14 +176,14 @@
|
|
|
} else {
|
|
|
//判断是否还有数据, 有改为 more, 没有改为noMore
|
|
|
navItem.loadingType = 'noMore';
|
|
|
- if(navItem.orderList.length==0){
|
|
|
+ if (navItem.orderList.length == 0) {
|
|
|
uni.showModal({
|
|
|
title: '提示',
|
|
|
content: '您未申请证书是否立即申请',
|
|
|
success: res => {
|
|
|
- if(res.confirm){
|
|
|
+ if (res.confirm) {
|
|
|
uni.navigateTo({
|
|
|
- url:'/pages/certificate/apply'
|
|
|
+ url: '/pages/certificate/apply'
|
|
|
})
|
|
|
}
|
|
|
},
|
|
@@ -257,11 +260,14 @@
|
|
|
|
|
|
.uni-margin-wrap {
|
|
|
height: 394rpx;
|
|
|
+
|
|
|
.swiper {
|
|
|
height: 100%;
|
|
|
+
|
|
|
.swiper-box {
|
|
|
height: 100%;
|
|
|
text-align: center;
|
|
|
+
|
|
|
.swiper-item {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
@@ -269,22 +275,27 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.tra {
|
|
|
height: 93rpx;
|
|
|
background: #2B2A26;
|
|
|
padding: 0 30rpx;
|
|
|
font-size: 24rpx;
|
|
|
color: #999999;
|
|
|
- .tra-item{
|
|
|
+
|
|
|
+ .tra-item {
|
|
|
width: 33.3%;
|
|
|
}
|
|
|
- .tra-item:nth-child(2){
|
|
|
+
|
|
|
+ .tra-item:nth-child(2) {
|
|
|
text-align: center;
|
|
|
}
|
|
|
- .tra-item:nth-child(3){
|
|
|
+
|
|
|
+ .tra-item:nth-child(3) {
|
|
|
text-align: right;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.list {
|
|
|
font-weight: bold;
|
|
|
font-size: 30rpx;
|
|
@@ -292,33 +303,38 @@
|
|
|
padding: 20rpx 30rpx 20rpx 30rpx;
|
|
|
line-height: 1;
|
|
|
border-bottom: 1px solid #2B2A26;
|
|
|
- .list-item:nth-child(2){
|
|
|
+
|
|
|
+ .list-item:nth-child(2) {
|
|
|
text-align: center;
|
|
|
}
|
|
|
- .list-item:nth-child(3){
|
|
|
+
|
|
|
+ .list-item:nth-child(3) {
|
|
|
text-align: right;
|
|
|
}
|
|
|
+
|
|
|
.list-item {
|
|
|
width: 33.3%;
|
|
|
+
|
|
|
.img {
|
|
|
width: 60rpx;
|
|
|
height: 60rpx;
|
|
|
}
|
|
|
|
|
|
.button {
|
|
|
- padding: 10rpx 20rpx;
|
|
|
+ padding: 10rpx 20rpx;
|
|
|
border-radius: 10rpx;
|
|
|
min-width: 150rpx;
|
|
|
text-align: center;
|
|
|
display: inline-block;
|
|
|
- &.up{
|
|
|
+
|
|
|
+ &.up {
|
|
|
background: #FB5E57;
|
|
|
}
|
|
|
- &.dom{
|
|
|
+
|
|
|
+ &.dom {
|
|
|
background: #77DA90;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
</style>
|