小钻风 4 years ago
parent 474057f8d7
commit 0f1316027c

@ -2,14 +2,6 @@
export default {
onLaunch: function() {
console.log('App Launch')
//
if (uni.getStorageSync("userInfo").invitationNo) {
this.$store.commit('setinvitationNo', uni.getStorageSync("userInfo").invitationNo);
}
console.log(uni.getStorageSync("userInfo").roleLevel)
if( uni.getStorageSync("userInfo").roleLevel){
this.$store.commit('setRoleLevel', uni.getStorageSync("userInfo").roleLevel);
}
// uni.getSystemInfo({
// success: function(e) {
// // #ifndef MP

@ -0,0 +1,19 @@
2021-03-12,17:31:40,3-12,333,261
2021-03-11,19:58:02,3-11,747,324
2021-03-10,19:58:44,3-10,1464,81
2021-03-09,19:59:45,3-9,730,173
2021-03-08,20:27:44,3-8,1017,556
2021-03-05,17:56:46,3-6,file,1
2021-03-05,17:55:37,3-5,463,32
2021-03-04,20:33:02,3-4,622,275
2021-03-03,19:40:50,3-3,972,5184
2021-03-03,09:23:04,3-3,5502,663
2021-03-01,20:30:00,3-1,46,27
2021-03-01,19:32:50,gra3-1,9,10
2021-03-01,19:27:40,Gray3-1,48,21
2021-03-01,15:14:14,01,42,11
2021-02-07,18:09:44,2.7,12,9
2021-02-05,18:30:18,2.5,284,40
2021-02-04,18:01:05,2.4,16,3
2021-02-02,18:05:40,last,232,85
2021-02-01,17:57:05,01,502,429
1 2021-03-12 17:31:40 3-12 333 261
2 2021-03-11 19:58:02 3-11 747 324
3 2021-03-10 19:58:44 3-10 1464 81
4 2021-03-09 19:59:45 3-9 730 173
5 2021-03-08 20:27:44 3-8 1017 556
6 2021-03-05 17:56:46 3-6 file 1
7 2021-03-05 17:55:37 3-5 463 32
8 2021-03-04 20:33:02 3-4 622 275
9 2021-03-03 19:40:50 3-3 972 5184
10 2021-03-03 09:23:04 3-3 5502 663
11 2021-03-01 20:30:00 3-1 46 27
12 2021-03-01 19:32:50 gra3-1 9 10
13 2021-03-01 19:27:40 Gray3-1 48 21
14 2021-03-01 15:14:14 01 42 11
15 2021-02-07 18:09:44 2.7 12 9
16 2021-02-05 18:30:18 2.5 284 40
17 2021-02-04 18:01:05 2.4 16 3
18 2021-02-02 18:05:40 last 232 85
19 2021-02-01 17:57:05 01 502 429

@ -4,7 +4,6 @@
<view class="goods-item" v-for="(item,index) in goodsList" :key="index" @tap="goPage(item.goodsId)">
<navigator hover-class="none" class="goods-item-con bg-white flex justify-between">
<view class="goods-pic clear" v-if="item.mainPhotoUrl">
<u-lazy-load threshold="-100" :image="IMAGE_URL+item.mainPhotoUrl" :index="index" height="260" border-radius="10"
:loading-img="IMAGE_URL + '/null05.png'" :error-img="IMAGE_URL + '/null05.png'" img-mode="aspectFill"></u-lazy-load>
<view class="goods-mask flex justify-center" v-if="item.inventory==0">
@ -13,6 +12,7 @@
</view>
<view class="goods-msg flex-sub clear flex flex-direction justify-between">
<view class="goods-msg-top flex align-start">
<view class="" style="flex: 1;">
<view class="goods-name two-line">
<view class="text-center text-white"

@ -311,6 +311,9 @@
page: "/pages/settings/settings"
}
],
roleLevel: 500,
showTipModel: false,
info: {},
@ -326,13 +329,8 @@
}
};
},
created() {
this.$store.commit('setIsLogin')
this.isLogin = this.$store.state.isLogin
this.roleLevel = this.$store.state.roleLevel
},
onLoad() {
if (this.isLogin) {
if (uni.getStorageSync("auth").token) {
this.getUserInfo()
this.getTotalEarning()
}
@ -349,7 +347,9 @@
*/
},
onShow() {
if (this.isLogin) {
console.log(uni.getStorageSync("auth"))
if (uni.getStorageSync("auth").token) {
this.isLogin = true
this.userInfo.nickname = uni.getStorageSync("userInfo").nickname
this.userInfo.headImgUrl = uni.getStorageSync("userInfo").headImgUrl
this.myIncome()

@ -34,7 +34,7 @@
</button>
</view>
</view>
<view class="cancle" @tap="isShow=false"></view>
<view class="cancle" @tap="hideModel"></view>
</u-popup>
</view>
</template>
@ -68,11 +68,8 @@
this.isShow = true
this.onShareData = data
},
// http://testh5.reecook.cn/#/goods/detail/8111/R7M1V9
copyLink(){
// http://testh5.reecook.cn/#/goods/detail/
// let url = `/pages/goodsDetail/goodsDetail?id=${this.onShareData.id}`
let url = `http://testh5.reecook.cn/#/goods/detail/${this.onShareData.id}/${this.$store.state.invitationNo}`
let url = `/pages/goodsDetail/goodsDetail?id=${this.onShareData.id}`
uni.setClipboardData({
data: url,
success: function () {

@ -8,41 +8,47 @@
<text>收益汇总(瑞币)</text>
<view class="total-box">
<image :src="IMAGE_URL+'/totalEarnings-bg.png'" mode="widthFix"></image>
<view>
<view class="total-box-con">
<view class="con-box">
<view class="con-item flex flex-wrap" style="align-content: space-between;height: 100%;">
<view style="width: 100%; ">
<view class="flex flex-wrap" style="align-content: space-between;height: 100%;">
<view style="width: 100%;">
<view class="">
<view class="text">
<text>累计收益</text>
</view>
<view class="num">
<text>{{accumulateIncome.all}}</text>
<view class="">
<text>18832.00</text>
</view>
</view>
</view>
<view class="flex flex-wrap con-item" style="width: 100%;align-content: space-between;">
<view style="width: 33.33%; ">
<view class="flex flex-wrap" style="width: 100%;align-content: space-between;">
<view class="" style='width:33.33%'>
<text>累计收益</text>
<view class="">
<view class="text">自购收益</view>
<view class="num">{{accumulateIncome.selfShopping}}</view>
<text>18832.00</text>
</view>
</view>
<view class="" style='width:33.33%'>
<view class="text">自购收益</view>
<view class="num">{{accumulateIncome.selfShopping}}</view>
<text>累计收益</text>
<view class="">
<text>18832.00</text>
</view>
</view>
<view class="" style='width:33.33%'>
<view class="text">团队收益</view>
<view class="num">{{accumulateIncome.team}}</view>
<text>累计收益</text>
<view class="">
<text>18832.00</text>
</view>
</view>
<view class="" style='width:33.33%'>
<view class="text">推荐收益</view>
<view class="num">{{accumulateIncome.team}}</view>
<text>累计收益</text>
<view class="">
<text>18832.00</text>
</view>
</view>
<view class="" style='width:33.33%'>
<view class="text">平台奖励</view>
<view class="num">{{accumulateIncome.team}}</view>
<text>累计收益</text>
<view class="">
<text>18832.00</text>
</view>
</view>
</view>
@ -142,7 +148,6 @@
this.time = e.detail.value
this.getData()
},
getData() {
this.$u.post('/api/v1/shop/shop_addup_income', {
userId: uni.getStorageSync("userInfo").id,
@ -192,6 +197,12 @@
.total-box {
margin: 30rpx;
position: relative;
// .total-box-con {
// width: 100%;
// height: 100%;
// position: relative;
// border-radius: 15rpx;
// overflow: hidden;
.con-box {
position: absolute;
@ -202,22 +213,16 @@
padding: 30rpx;
border-radius: 10rpx;
overflow: hidden;
.con-item {
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
.text {
font-size: 28rpx;
color: rgba(58,57,67,0.5);
color: #aaa;
font-size: 24rpx;
margin-bottom: 15rpx;
}
.num {
font-size: 40rpx;
color: #333333;
}
color: #000;
font-size: 32rpx;
}
}
// }

@ -1,13 +1,4 @@
/**
* Diamond1Level = 100 钻一店铺
* Diamond2Level = 130 钻二店铺
* Diamond3Level = 160 钻三店铺
* GoldLevel = 200 黄金店铺
* SilverLevel = 300 白银店铺
* MasterLevel = 400 店主
* VipLevel = 500 会员
* */
export function roleFilter(roleLevel, format) {
export function roleFilter(roleLevel,format) {
let roleText, badge, mineBg, otherBg
switch (roleLevel) {
case 500:
@ -47,7 +38,7 @@ export function roleFilter(roleLevel, format) {
default:
break;
}
switch (format) {
switch(format){
case 'txt':
return roleText
break;

@ -3,27 +3,19 @@ import Vuex from "vuex" // 引入vuex
Vue.use(Vuex) // 让vue使用vuex
const store = new Vuex.Store({
state: {
selectCity: "", //城市信息
preOrderMsg: {}, //预购订单信息
returnGoodsMsg: {}, //售后商品信息
logisticsDetail: [], //物流信息
userInfo: {}, //邀请人的信息
videoDetail: {}, //小视频详情
invitationNo: '', // 本人邀请码
invite: '', // 别人的邀请码
selectCity:"",//城市信息
preOrderMsg: {},//预购订单信息
returnGoodsMsg:{},//售后商品信息
logisticsDetail:[],//物流信息
userInfo:{},//邀请人的信息
videoDetail:{},//小视频详情
invitationNo: '' ,// 本人邀请码
roleLevel:500,//用户等级默认设置会员
invite: '' ,// 别人的邀请码
url: null, // 跳转到登录页面时原地址
roleLevel: 500, //用户等级默认设置会员
isLogin: false,
},
mutations: {
setIsLogin(state) {
if (uni.getStorageSync("auth").token) {
state.isLogin = true
} else {
state.isLogin = false
}
},
setRoleLevel(state, val) {
setRoleLevel(state, val){
state.roleLevel = val
},
changeCity(state, name) {
@ -33,26 +25,26 @@ const store = new Vuex.Store({
let newObj = Object.assign({}, obj)
state.preOrderMsg = newObj
},
setReturnGoodsMsg(state, obj) {
setReturnGoodsMsg(state,obj){
let newObj = Object.assign({}, obj)
state.returnGoodsMsg = newObj
},
setLogisticsDetail(state, arr) {
setLogisticsDetail(state,arr){
let newArr = arr
state.logisticsDetail = newArr
},
setUserInfo(state, obj) {
setUserInfo(state,obj){
let newObj = Object.assign({}, obj)
state.userInfo = newObj
},
setVideoDetail(state, obj) {
setVideoDetail(state,obj){
let newObj = Object.assign({}, obj)
state.videoDetail = newObj
},
setinvitationNo(state, val) {
setinvitationNo(state,val){
state.invitationNo = val
},
setinvite(state, val) {
setinvite(state,val){
state.invite = val
},
setUrl(state, val) {

Loading…
Cancel
Save