|
@@ -0,0 +1,156 @@
|
|
|
+<template>
|
|
|
+ <view class="page">
|
|
|
+
|
|
|
+ <view class="list_info">
|
|
|
+ <view style="margin-top: 24rpx;" class="numlist">
|
|
|
+ <view class="left">
|
|
|
+ <image class="icon" mode="heightFix" src="../../static/w3/w3_x.png"></image>
|
|
|
+ <view class="num">
|
|
|
+ <text>100</text>
|
|
|
+ <view class="name">可用数量</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view style="margin-top: 72rpx;margin-left: 40rpx;" >
|
|
|
+ <text style="color:#FFFFFF;font-size: 32rpx;">暗物质明细</text>
|
|
|
+ </view>
|
|
|
+ <view class="mingxiList">
|
|
|
+ <view class="left">
|
|
|
+ <text style="font-size: 28rpx;color: #FFFFFF;">{{$t('txt.明细类型')}}</text>
|
|
|
+ <image class="icon" src="../../static/me/arrow_down_gray.png" mode="heightFix" />
|
|
|
+ </view>
|
|
|
+ <view class="right">
|
|
|
+ <text style="font-size: 28rpx;color: #FFFFFF;">{{$t('txt.开始时间-结束时间')}}</text>
|
|
|
+ <image class="icon" src="../../static/me/arrow_down_gray.png" mode="heightFix" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="item" v-for="(item,index) in historyInfo">
|
|
|
+ <view class="left">
|
|
|
+ <view class="name">{{item.reason}}</view>
|
|
|
+ <view class="desc">2023-10-10 15:00</view>
|
|
|
+ </view>
|
|
|
+ <text class="right">
|
|
|
+ <view v-if="item.value>0" class="num1">
|
|
|
+ <text>+{{ item.value }}</text>
|
|
|
+ </view>
|
|
|
+ <view v-else class="num1 num2">
|
|
|
+ <text>{{ item.value }}</text>
|
|
|
+ </view>
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="blankHeight"></view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <DialogBox ref="DialogBox"></DialogBox>
|
|
|
+ </view>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ export default {
|
|
|
+ components: {},
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ tab: 1,
|
|
|
+ scrollTop: 0,
|
|
|
+ old: {
|
|
|
+ scrollTop: 0
|
|
|
+ },
|
|
|
+ historyInfo: [
|
|
|
+ {
|
|
|
+ reason: "探索奖励",
|
|
|
+ value: 1100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ reason: "传送转出",
|
|
|
+ value: -100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ reason: "传送转入",
|
|
|
+ value: 200,
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onLoad() {
|
|
|
+ // setTimeout(function() {
|
|
|
+ // uni.setNavigationBarColor({
|
|
|
+ // frontColor: '#ffffff',
|
|
|
+ // backgroundColor: '#00000000',
|
|
|
+ // animation: {
|
|
|
+ // duration: 400,
|
|
|
+ // timingFunc: 'easeIn'
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }, 200);
|
|
|
+ },
|
|
|
+ onShow() {
|
|
|
+ this.loadData();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ onBack() {},
|
|
|
+ checkTab(tab) {
|
|
|
+ this.tab = tab;
|
|
|
+ // this.loadData();
|
|
|
+ },
|
|
|
+ onLinqu() {
|
|
|
+ this.$refs['DialogBox'].confirm({
|
|
|
+ title: '',
|
|
|
+ content: '你还没有维护收货地址,请先维护收货地址!',
|
|
|
+ DialogType: 'inquiry',
|
|
|
+ btn1: '我知道了',
|
|
|
+ btn2: '编辑地址',
|
|
|
+ animation: 0
|
|
|
+ }).then(() => {
|
|
|
+
|
|
|
+ // getApp().globalData.skey = "";
|
|
|
+ // uni.removeStorageSync("wapptoken")
|
|
|
+ // uni.redirectTo({
|
|
|
+ // url: '/pages/index/login',
|
|
|
+ // })
|
|
|
+ // uni.navigateBack();
|
|
|
+ // uni.sendNativeEvent("logout","tt", function(e){
|
|
|
+ // //关闭当前小程序
|
|
|
+ // console.log("sendNativeEvent-----------回调"+JSON.stringify(e));
|
|
|
+ // });
|
|
|
+ })
|
|
|
+ },
|
|
|
+ scroll: function(e) {
|
|
|
+ console.log(e)
|
|
|
+ this.old.scrollTop = e.detail.scrollTop
|
|
|
+ },
|
|
|
+ loadData() {
|
|
|
+ console.log("this.globalData", getApp().globalData);
|
|
|
+ let obj2 = {
|
|
|
+ is_first: 0
|
|
|
+ }
|
|
|
+ const postData = Object.assign({}, getApp().globalData.postHeader, obj2);
|
|
|
+
|
|
|
+ console.log(postData);
|
|
|
+
|
|
|
+ uni.request({
|
|
|
+ url: this.$apiHost + '/Gushi/getmyinfo', //仅为示例,并非真实接口地址。
|
|
|
+ data: postData,
|
|
|
+ method: 'POST',
|
|
|
+ header: {
|
|
|
+ 'content-type': 'application/json', //自定义请求头信息
|
|
|
+ 'Access-Control-Allow-Origin': '*'
|
|
|
+ },
|
|
|
+ success: (res) => {
|
|
|
+ console.log('data:', res.data);
|
|
|
+ this.myinfo = res.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped lang="scss">
|
|
|
+ @import 'X_bank.scss';
|
|
|
+</style>
|