个人中心

main
JING 9 months ago
parent 693f4f5d9f
commit a66856b461
  1. 2
      locale/en.json
  2. 2
      locale/zh-Hant.json
  3. 2
      manifest.json
  4. 4
      pages/index/index.vue
  5. 194
      pages/user/index.vue
  6. BIN
      static/img/user/boxbg.png

@ -1,5 +1,5 @@
{
"app.name": "空间充",
"app.name": "合成照相馆",
"tabbar.home": "HOME",
"tabbar.list": "NEARBY",
"tabbar.user": "USER",

@ -1,5 +1,5 @@
{
"app.name": "空间充",
"app.name": "合成照相馆",
"tabbar.home": "首頁",
"tabbar.list": "附近",
"tabbar.user": "我的",

@ -82,7 +82,7 @@
"locale" : "zh-Hans",
"fallbackLocale" : "zh-Hans",
"h5" : {
"title" : "空间充",
"title" : "合成照相馆",
"router" : {
"mode" : "history",
"base" : "/h5/"

@ -204,13 +204,13 @@
},
onShareAppMessage() {
return {
title: '空间充-首页',
title: '合成照相馆-首页',
path: uni.$u.page(),
}
},
onShareTimeline() {
return {
title: '空间充-首页',
title: '合成照相馆-首页',
path: uni.$u.page(),
}
},

@ -19,98 +19,56 @@
<view class="boxBg">
<image class='box_bg' src="/static/img/user/boxbg.png" mode="aspectFill"></image>
<view class="mbBox">
<view class="mleft">
<view class="mb_title">面部档案</view>
<view class="mb_desc">分享可解锁新面部档案</view>
</view>
<view class="mright">
<view class="mbItem">
<image src="/static/img/user/have.png" mode="widthFix"></image>
</view>
<view class="mbItem">
<image src="/static/img/user/have_no.png" mode="widthFix"></image>
</view>
<view class="mbItem">
<image src="/static/img/user/have_no.png" mode="widthFix"></image>
</view>
</view>
</view>
</view>
<!-- <view class="userItem">
<view class="uItemBox">
<view class="num">{{userInfo.totalAmount > 0 ? userInfo.totalAmount / 100 : '0.00'}}</view>
<view class="text">消费金额()</view>
</view>
<view class="uItemBox">
<view class="num">{{userInfo.totalDur > 0 ? userInfo.totalDur : 0}}</view>
<view class="text">使用时长()</view>
</view>
</view> -->
</view>
<!-- <view class="orderBox">
<view class="orderBoxTitle">我的订单</view>
<view class="orderItem">
<view class="oItemBox" v-for="(item,key) in ordermenu" :key="key" @click="goTo(item.url)">
<view class="image">
<image :src="item.icon" mode="widthFix"></image>
</view>
<view class="order_text">{{item.label}}</view>
</view>
</view>
</view> -->
<!-- <view class="moneyBox" v-if="identityinfo.levelVal < 4">
<view class="moneyBoxTitle">收入抽成</view>
<view class="moneyBoxItem">
<view class="mItemBox">
<view class="money">
<text class="unit"></text><text class="num">{{userInfo.todayIncome > 0 ? userInfo.todayIncome / 100 :'0.00'}}</text>
</view>
<view class="order_text">今日收入</view>
</view>
<view class="mItemBox">
<view class="money">
<text class="unit"></text><text class="num">{{userInfo.totalIncome > 0 ? userInfo.totalIncome / 100 :'0.00'}}</text>
</view>
<view class="order_text">总收入</view>
</view>
<view class="mItemBox">
<view class="money">
<text class="unit"></text><text class="num">{{userInfo.todayLevelIncome > 0 ? userInfo.todayLevelIncome / 100 :'0.00'}}</text>
</view>
<view class="order_text">今日抽成</view>
</view>
<view class="mItemBox">
<view class="money">
<text class="unit"></text><text class="num">{{userInfo.totalLevelIncome > 0 ? userInfo.totalLevelIncome / 100 :'0.00'}}</text>
</view>
<view class="order_text">总抽成</view>
</view>
</view>
</view> -->
<view class="tabList">
<u-tabs :list="tabList"
lineWidth="30"
lineColor="#9B75FF"
:activeStyle="{
color: '#000000',
fontWeight: 'bold',
transform: 'scale(1.05)'
}"
:inactiveStyle="{
color: '#000000',
transform: 'scale(1)'
}"
itemStyle="padding-left: 20rpx; padding-right: 20rpx; width:147rpx; height: 68rpx;"
@click="click"></u-tabs>
<view class="datalist">
</view>
<u-empty icon="/static/img/user/nodata.png" mode="list" text="暂无数据,快去添加吧!" width="180rpx" marginTop="120px"></u-empty>
</view>
<view class="serviceBox">
<view class="serviceBoxTitle">我的服务</view>
<view class="serviceItem">
<view class="sItemBox" v-for="(item,key) in shopmenu" :key="key" v-if="item.level >= identityinfo.levelVal" @click="goTo(item.url)">
<view class="image">
<image :src="item.icon" mode="widthFix"></image>
</view>
<view class="order_text">{{item.label}}</view>
</view>
</view>
<view class="ad">
<image src="@/static/img/user/banner.jpg" mode="widthFix" @click="openVideo"></image>
</view>
</view>
<view class="serviceBox">
<view class="serviceBoxTitle">我的工具</view>
<view class="serviceItem">
<view class="sItemBox" v-for="(item,key) in setmenu" :key="key" @click="tools(item)">
<view class="image">
<image :src="item.icon" mode="widthFix"></image>
</view>
<view class="order_text">{{item.label}}</view>
</view>
</view>
</view>
<view class="nowENV" v-if="this.$api.env() == 'development' || this.$api.env() == 'local'">
<u-tag v-if="this.$api.env() == 'development'" text="线上测试环境" type="warning" plain plainFill></u-tag>
@ -121,11 +79,7 @@
</view>
<u-popup :show="video_show" :round="10" mode="center" :closeable="true" customStyle="{width:750rpx,height:auto}" @close="closeVideo">
<view class="videoBox">
<video id="myVideo" :src="video_src" @error="videoErrorCallback" :autoplay="false" controls></video>
</view>
</u-popup>
</view>
</template>
@ -139,40 +93,23 @@ export default {
userInfo:{
wxAvatar:'/static/img/user/avatar.png',
wxName:'点击登录',
totalAmount:0.00,
totalDur:0,
},
isShop:false, //
ordermenu: [
{ label: '全部', icon: '/static/img/user/order_all.png', url: '/pages/order/list?tab=0'},
{ label: '进行中', icon: '/static/img/user/order_ing.png', url: '/pages/order/list?tab=1'},
{ label: '已完成', icon: '/static/img/user/order_finish.png', url: '/pages/order/list?tab=2'},
],
shopmenu: [
{ label: '店铺管理', icon: '/static/img/order/store.png', url: '/pages/user/shop/shopmanage', level: 3},
{ label: '收入记录', icon: '/static/img/user/money_log.png', url: '/pages/user/mine/income', level: 3},
{ label: '提现申请', icon: '/static/img/user/withdraw.png', url: '/pages/user/mine/withdraw', level: 3},
{ label: '我的下级', icon: '/static/img/user/link.png', url: '/pages/user/mine/leveluser', level: 2},
{ label: '查看码值', icon: '/static/img/user/code.png', url: '/pages/user/shop/lookcode', level: 3},
{ label: '提现记录', icon: '/static/img/user/withdraw_log.png', url: '/pages/user/mine/withdrawrecord', level: 3},
],
setmenu: [
{ label: '账户设置', icon: '/static/img/user/account.png', type: 'normal',url: '/pages/user/account/index'},
{ label: '联系客服', icon: '/static/img/user/chat.png', type: 'service',url:''},
{ label: '代理入驻', icon: '/static/img/user/settled.png', type: 'normal',url: '/pages/user/mine/settled'}
],
//
identityinfo:'',
//
video_show:false,
video_src:'https://kjc.oss-cn-shenzhen.aliyuncs.com/video/demo.mp4',
tabList: [
{
name: 'AI写真',
}, {
name: '证件照合成',
}, {
name: '证件照换色'
}, {
name: '卡通风格'
}
]
};
},
onReady: function (res) {
this.videoContext = uni.createVideoContext('myVideo')
},
onShow() {
var _this =this;
@ -187,13 +124,13 @@ export default {
},
onShareAppMessage() {
return {
title: '空间充-我的',
title: '合成照相馆-我的',
path: uni.$u.page(),
}
},
onShareTimeline() {
return {
title: '空间充-我的',
title: '合成照相馆-我的',
path: uni.$u.page(),
}
},
@ -412,8 +349,25 @@ height: 50rpx;
background-size:100% 100%;
z-index: -1;
}
.mbBox{width: 100%; height: 160rpx; display: flex;}
.mleft{width: 50%;}
.mleft .mb_title{
font-weight: 700;
font-size: 30rpx;
color: #333333;
line-height: 90rpx;
padding-left: 20rpx;
}
.mleft .mb_desc{
font-weight: 400;
font-size: 24rpx;
color: #555555;
line-height: 40rpx;
padding-left: 20rpx;
}
.mright{width: 50%; height: 160rpx; display: flex;}
.mbItem{ width: 80rpx; height: 80rpx; margin: 40rpx auto;}
.mbItem image{width: 80rpx; height: 80rpx; }
/*订单部分*/
.orderBox{

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Loading…
Cancel
Save