Commit 61cc6aa2 authored by jyx's avatar jyx

添加看点及消费记录页面

parent 416e834f
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
}, },
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ], "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"autoSdkPermissions" : true, "autoSdkPermissions" : true,
"schemes" : "twofiveone" "schemes" : ""
}, },
/* ios打包配置 */ /* ios打包配置 */
"ios" : { "ios" : {
......
...@@ -16,7 +16,8 @@ export default { ...@@ -16,7 +16,8 @@ export default {
share: { share: {
title: '更多好剧,等你来看', title: '更多好剧,等你来看',
imageUrl: 'https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_movie.png', imageUrl: 'https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_movie.png',
path: '/pages/loading?shareId=' + getApp().globalData.userId, path: '/pages/loading?shareId='
// path: '/pages/loading?shareId=' + getApp().globalData.userId,
} }
} }
}, },
......
...@@ -107,6 +107,20 @@ ...@@ -107,6 +107,20 @@
"navigationBarBackgroundColor": "#2196f3", "navigationBarBackgroundColor": "#2196f3",
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
} }
}, {
"path": "dotRecord/dotRecord",
"style": {
"navigationStyle": "custom",
"navigationBarBackgroundColor": "#2196f3",
"navigationBarTextStyle": "black"
}
}, {
"path": "useDotRecord/useDotRecord",
"style": {
"navigationStyle": "custom",
"navigationBarBackgroundColor": "#2196f3",
"navigationBarTextStyle": "black"
}
}] }]
}], }],
// 分包预载配置 // 分包预载配置
......
...@@ -35,6 +35,14 @@ ...@@ -35,6 +35,14 @@
</view> </view>
<view class="infobg" style="margin: 20rpx;"> <view class="infobg" style="margin: 20rpx;">
<view class="item arrow" @click="handleDotRecord">
看点记录
<view class="item_bd ellipsis" style="margin-left: 58rpx;"></view>
</view>
<view class="item arrow" @click="handleUseDotRecord">
消费记录
<view class="item_bd ellipsis" style="margin-left: 58rpx;"></view>
</view>
<view class="item arrow" @click="handleWatchRecord"> <view class="item arrow" @click="handleWatchRecord">
观看记录 观看记录
<view class="item_bd ellipsis" style="margin-left: 58rpx;"></view> <view class="item_bd ellipsis" style="margin-left: 58rpx;"></view>
...@@ -51,10 +59,10 @@ ...@@ -51,10 +59,10 @@
<view style="display: flex;justify-content: center;margin-top: 20rpx;font-size: 26rpx;color: gray;"> <view style="display: flex;justify-content: center;margin-top: 20rpx;font-size: 26rpx;color: gray;">
{{ versionName }} {{ versionName }}
</view> </view>
<coin-popup :show="showAnimate" @close="showAnimate = false" > <coin-popup :show="showAnimate" @close="showAnimate = false">
</coin-popup> </coin-popup>
</view> </view>
...@@ -84,7 +92,7 @@ ...@@ -84,7 +92,7 @@
data() { data() {
return { return {
statusBarHeight: app.globalData.statusBarHeight, statusBarHeight: app.globalData.statusBarHeight,
userBean: {}, userBean: {},
showAnimate: false, showAnimate: false,
versionName: app.globalData.versionName versionName: app.globalData.versionName
}; };
...@@ -104,17 +112,24 @@ ...@@ -104,17 +112,24 @@
}, },
hide() { hide() {
},
handleDotRecord() {
// 看点记录
navigateTo(`/pagesD/dotRecord/dotRecord`)
},
handleUseDotRecord() {
// 看点消费记录
navigateTo(`/pagesD/useDotRecord/useDotRecord`)
}, },
handleWatchRecord() { handleWatchRecord() {
// navigateTo(`/pagesD/watchRecord/watchRecord`) // navigateTo(`/pagesD/watchRecord/watchRecord`)
this.showAnimate=true; this.showAnimate = true;
}, },
handlePayRecord() { handlePayRecord() {
navigateTo(`/pagesD/payRecord/payRecord`) navigateTo(`/pagesD/payRecord/payRecord`)
}, },
handleVipPay() { handleVipPay() {
navigateTo(`/pagesA/vipPay/vipPay`) navigateTo(`/pagesA/vipPay/vipPay`)
}, },
handlePhone() { handlePhone() {
// 联系我们 // 联系我们
......
<template>
<view class="body">
<status-title :showBack="true">看点记录</status-title>
<z-paging class="flex-1" ref="paging" v-model="dataList" @query="queryList">
<view v-for="(item, i) in dataList" :key="i">
<view class="flex m-20 pd-20" style="background-color:white;border-radius:10rpx;">
<image style="margin: auto 10rpx;width: 60rpx;height: 60rpx;" src="../../static/ic_coin.png">
</image>
<view class="flex1 ml-10">
<view class="mt-10" style="font-size: 28rpx;color: black;">{{'充值'+item.createtime}}</view>
<view class="mt-10" style="font-size: 26rpx;color: darkgray;">
{{myFormateTime(1698911375977)}}
</view>
</view>
<view style="margin:auto 10rpx auto auto;font-size: 36rpx;color: steelblue;">
3000看点
</view>
</view>
</view>
</z-paging>
</view>
</template>
<script>
import common from '@/mixins/common';
import {
formateTime
} from "@/utils/utils.js"
export default {
name: 'dotRecord',
mixins: [common],
data() {
return {
dataList: [1, 2, 3]
};
},
methods: {
show() {
if (this.$refs.paging != null) {
this.$refs.paging.refresh();
}
},
myFormateTime(time) {
return formateTime(time, 'yyyy-MM-dd hh:mm:ss')
},
queryList(page, size) {
this.post({
url: '/vip/getOrderList',
showLoading: false,
success: ({
data
}) => {
this.$refs.paging.complete(data.list);
}
});
}
}
};
</script>
<style lang="scss">
.body {
background-color: whitesmoke;
}
</style>
\ No newline at end of file
<template> <template>
<view class="body"> <view class="body">
<status-title :showBack="true">我的订单</status-title> <status-title :showBack="true">我的订单</status-title>
<z-paging class="flex-1" ref="paging" v-model="dataList" @query="queryList"> <z-paging class="flex-1" ref="paging" v-model="dataList" @query="queryList">
<view v-for="(item, i) in dataList" :key="i"> <view v-for="(item, i) in dataList" :key="i">
<view style="display: flex;flex-direction: row;justify-content:space-between;margin: 20rpx;background-color:white;border-radius:10rpx;padding: 20rpx;"> <view class="flex m-20 pd-20"
style="justify-content:space-between;background-color:white;border-radius:10rpx;">
<view style="display: flex;flex-direction: column;"> <view class="flex1">
<view style="font-size: 28rpx;color: black;">{{item.remarks}}</view> <view style="font-size: 28rpx;color: black;">{{item.remarks}}</view>
<view style="font-size: 26rpx;color: gray;margin-top: 16rpx;">付款时间:{{item.createtime}}</view> <view style="font-size: 26rpx;color: gray;margin-top: 16rpx;">付款时间:{{item.createtime}}</view>
<view style="font-size: 26rpx;color: gray;margin-top: 1rpx;">订单编号:{{item.orderid}}</view> <view style="font-size: 26rpx;color: gray;margin-top: 1rpx;">订单编号:{{item.orderid}}</view>
</view> </view>
<view style="display: flex;align-items: center;margin-right: 8rpx;font-size: 36rpx;color: red;"> <view style="display: flex;align-items: center;margin-right: 8rpx;font-size: 36rpx;color: red;">
...@@ -22,22 +22,6 @@ ...@@ -22,22 +22,6 @@
<script> <script>
import common from '@/mixins/common'; import common from '@/mixins/common';
import {
getToLocal
} from "@/utils/utils.js"
import {
navigateTo,
message,
alert,
loading
} from '@/utils/fun.js';
import {
openUrl
} from '@/utils/app+.js';
const app = getApp();
export default { export default {
name: 'index', name: 'index',
mixins: [common], mixins: [common],
...@@ -68,8 +52,6 @@ ...@@ -68,8 +52,6 @@
</script> </script>
<style lang="scss"> <style lang="scss">
@import '@/scss/uni.scss';
.body { .body {
background-color: whitesmoke; background-color: whitesmoke;
} }
......
<template>
<view class="body">
<status-title :showBack="true">消费记录</status-title>
<z-paging class="flex-1" ref="paging" v-model="dataList" @query="queryList">
<view v-for="(item, i) in dataList" :key="i">
<view class="flex m-20 pd-20" style="background-color:white;border-radius:10rpx;">
<image style="margin: auto 10rpx;width: 60rpx;height: 60rpx;" src="../../static/ic_shop.png">
</image>
<view class="flex1 ml-10">
<view class="mt-10" style="font-size: 28rpx;color: black;">{{'购买《'+item.createtime+'》章节'}}
</view>
<view class="mt-10" style="font-size: 26rpx;color: darkgray;">
{{myFormateTime(1698911375977)}}</view>
</view>
<view style="margin:auto 10rpx auto auto;font-size: 36rpx;color: steelblue;">
3000看点
</view>
</view>
</view>
</z-paging>
</view>
</template>
<script>
import common from '@/mixins/common';
import {
formateTime
} from "@/utils/utils.js"
export default {
name: 'useDotRecord',
mixins: [common],
data() {
return {
dataList: [1, 2, 3]
};
},
methods: {
show() {
if (this.$refs.paging != null) {
this.$refs.paging.refresh();
}
},
myFormateTime(time) {
return formateTime(time, 'yyyy-MM-dd hh:mm:ss')
},
queryList(page, size) {
this.post({
url: '/vip/getOrderList',
showLoading: false,
success: ({
data
}) => {
this.$refs.paging.complete(data.list);
}
});
}
}
};
</script>
<style lang="scss">
.body {
background-color: whitesmoke;
}
</style>
\ No newline at end of file
...@@ -334,4 +334,25 @@ export function getSubList(length, list) { ...@@ -334,4 +334,25 @@ export function getSubList(length, list) {
} }
} }
return subList return subList
}
export function formateTime(dateTime, fmt) {
let date = new Date(dateTime)
if (/(y+)/.test(fmt)) {
fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
}
let o = {
'M+': (date.getMonth() + 1).toString().padStart(2, '0'),
'd+': date.getDate().toString().padStart(2, '0'),
'h+': date.getHours(),
'm+': date.getMinutes(),
's+': date.getSeconds()
};
for (let k in o) {
if (new RegExp(`(${k})`).test(fmt)) {
let str = o[k] + '';
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? str : str);
}
}
return fmt;
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment