Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
xianyu-ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
Tao
5 years ago
Commit
bb4dbdfd4348ef32769f968453a05e49d17135a6
2 parents
1fd18617
c7329736
Merge branch 'develop' of
http://git.yoho.cn/fe/xianyu-ufo-app-web
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
53 additions
and
40 deletions
apps/common/xianyu.js
apps/components/count-circle/count-circle.vue
apps/pages/home/favorite/favorite.vue
apps/pages/home/income/components/incomeHeader.vue
apps/pages/order/components/confirm/agree.vue
apps/pages/order/price-change/no-entry-detail.vue
apps/store/home/favorite.js
apps/store/home/mine.js
config/home-api-map.js
apps/common/xianyu.js
View file @
bb4dbdf
...
...
@@ -59,6 +59,7 @@ const xianyu = {
},
goXianyuNewPage
(
args
)
{
console
.
log
(
args
);
if
(
!
args
.
url
)
{
return
;
}
...
...
apps/components/count-circle/count-circle.vue
View file @
bb4dbdf
...
...
@@ -8,7 +8,6 @@
:totalTime="totalTime"
:lineWidth="lineWidth"
></canvas>
<p>{{desc}}</p>
</div>
</template>
...
...
@@ -21,7 +20,7 @@
* 在自己的页面做定时器,修改time,
*/
export default { // 环形倒计时
name: '
count-c
ircle',
name: '
CountC
ircle',
props: {
time: {
type: Number,
...
...
@@ -35,10 +34,6 @@ export default { // 环形倒计时
type: Number,
default: 8
},
desc: {
type: String,
default: '正在支付中...'
}
},
data() {
return {
...
...
@@ -80,7 +75,6 @@ export default { // 环形倒计时
y: this.canvasHeight / 2,
radius: this.canvasWidth / 2
};
console.log(this.canvas, this.circle, this.time, this.totalTime);
},
drawCircle() {
if (this.canvas && this.context) {
...
...
apps/pages/home/favorite/favorite.vue
View file @
bb4dbdf
<template>
<LayoutApp :show-back="true" :title="title">
<Scroll :scrollEvents="['scroll']" :options="scrollOptions" @scroll="scroll"
<Scroll :scroll-events="['scroll-end','scroll']"
@scroll-end="fetchList"
v-if="favoriteProductList.list.length"
@pulling-up="onPullingUp"
>
>
<ProductList :list="favoriteProductList.list"></ProductList>
</Scroll>
<!-- <empty-list v-show="!isShowEmpty" /> -->
...
...
@@ -42,20 +43,23 @@ export default {
this.fetchFavoriteList();
},
methods: {
...mapActions(['fetchFavoriteList','is
ShowEmpty
']),
...mapActions(['fetchFavoriteList','is
More
']),
async onPullingUp() {
await this.fetchFavoriteList();
async fetchList() {
if(isMore){
await this.fetchFavoriteList();
}
},
scroll({ y }) {
const height = this.$refs.banner.$el.offsetHeight + this.$refs.header.offsetHeight;
// scroll({ y }) {
// const height = this.$refs.banner.$el.offsetHeight + this.$refs.header.offsetHeight;
if (-y >= height) {
this.fixed = true;
} else {
this.fixed = false;
}
}
// if (-y >= height) {
// this.fixed = true;
// } else {
// this.fixed = false;
// }
// }
},
computed: {
...
...
apps/pages/home/income/components/incomeHeader.vue
View file @
bb4dbdf
...
...
@@ -24,7 +24,7 @@ export default {
...mapState(
{
amountPart1: (state) => {
return (''+state.userWalletInfo.walletAmount).split('.')[0]
return (''+state.userWalletInfo.walletAmount).split('.')[0]
.split('¥')[1]
},
amountPart2: (state) => {
return (''+state.userWalletInfo.walletAmount).split('.')[1]
...
...
apps/pages/order/components/confirm/agree.vue
View file @
bb4dbdf
...
...
@@ -46,7 +46,7 @@ export default {
},
onLinkClick() {
if (this.url) {
this.$xianyu.goXianyuNewPage({url: this.url});
}
}
}
...
...
apps/pages/order/price-change/no-entry-detail.vue
View file @
bb4dbdf
...
...
@@ -242,9 +242,9 @@ export default {
this.platformFeeModalVisible = true;
},
showEarnestQuestion() { // 跳转保证金
页面
showEarnestQuestion() { // 跳转保证金
说明页
console.log('showEarnest');
this.$xianyu.goXianyuNewPage({url: this.agreementURL});
},
/**
...
...
apps/store/home/favorite.js
View file @
bb4dbdf
import
{
get
,
set
}
from
'lodash'
;
import
{
getImgUrl
}
from
'../../common/utils'
;
import
Vue
from
'vue'
;
const
uid
=
'500031170'
;
//
const uid = '500031170';
export
default
function
()
{
return
{
...
...
@@ -13,17 +13,23 @@ export default function() {
favoriteProductList
:
{
list
:[]
},
is
ShowEmpty
:
fals
e
,
is
More
:
tru
e
,
},
mutations
:
{
addList
(
state
,
{
data
})
{
console
.
log
(
data
)
if
(
data
&&
data
.
product_list
){
// data.product_list.
let
{
page
,
product_list
=
[]
}
=
data
;
let
{
page
,
product_list
=
[]
,
pageTotal
}
=
data
;
let
isShowEmpty
=
page
===
1
&&
product_list
===
0
;
// console.log("isShowEmpty:"+isShowEmpty)
// state.isShowEmpty = isShowEmpty
if
(
pageTotal
>
page
){
state
.
isMore
=
true
;
}
state
.
pageTotal
=
pageTotal
;
state
.
page
=
page
+
1
;
let
list
=
state
.
favoriteProductList
.
list
.
concat
(
product_list
);
Vue
.
set
(
state
.
favoriteProductList
,
"list"
,
list
);
}
else
{
...
...
@@ -38,16 +44,21 @@ export default function() {
},
actions
:
{
async
fetchFavoriteList
({
commit
})
{
const
result
=
await
this
.
$api
.
get
(
'/api/ufo/home/favoriteProduct'
,
{
uid
});
if
(
result
.
code
===
200
)
{
let
data
=
result
.
data
;
commit
(
'addList'
,
{
data
:
data
});
}
else
{
// console.log("error=//=isShowEmpty:")
commit
(
'errorData'
);
}
return
result
.
data
||
[];
async
fetchFavoriteList
({
commit
,
state
})
{
let
page
=
state
.
page
;
let
limit
=
20
;
const
result
=
await
this
.
$api
.
get
(
'/api/ufo/home/favoriteProduct'
,
{
page
,
limit
});
if
(
result
.
code
===
200
)
{
let
data
=
result
.
data
;
commit
(
'addList'
,
{
data
:
data
});
}
else
{
// console.log("error=//=isShowEmpty:")
commit
(
'errorData'
);
}
return
result
.
data
||
[];
// }else {
// return [];
// }
},
},
};
...
...
apps/store/home/mine.js
View file @
bb4dbdf
...
...
@@ -46,11 +46,11 @@ export default function() {
endTime
:
0
,
},
userWalletInfo
:
{
totalAmount
:
0.0
,
totalAmount
:
0.0
0
,
withdrawLimit
:
0
,
withdrawAmount
:
0
,
shareSettlementAmount
:
0
,
walletAmount
:
0.0
,
walletAmount
:
'¥0.00'
,
},
filterData
:
{
tradeTypes
:
[],
...
...
@@ -102,7 +102,7 @@ export default function() {
resource1
:
{
name
:
'resource1'
,
data
:
state
.
resource1
},
income
:
{
title
:
'我的收入'
,
num
:
'¥'
+
state
.
userWalletInfo
.
walletAmount
,
num
:
state
.
userWalletInfo
.
walletAmount
,
page
:
'income'
,
},
// 原交易收入 tradeIncome
buyOrder
:
{
...
...
@@ -249,6 +249,8 @@ export default function() {
state
.
walletData
.
endTime
=
endTime
;
},
addUserWalletInfo
(
state
,
data
)
{
// data.totalAmount = formatNumber(data.totalAmount);
data
.
walletAmount
=
formatNumber
(
data
.
walletAmount
);
state
.
userWalletInfo
=
data
;
},
addfilterData
(
state
,
data
)
{
...
...
config/home-api-map.js
View file @
bb4dbdf
...
...
@@ -84,6 +84,7 @@ module.exports = {
ufo
:
true
,
api
:
'ufo.user.favoriteList'
,
params
:
{},
auth
:
true
,
},
'/api/ufo/channel/channelList'
:
{
ufo
:
true
,
...
...
Please
register
or
login
to post a comment