From a277f4471fb33c483c42eddc83899f96b20d8e3b Mon Sep 17 00:00:00 2001
From: ltlzx <942659938@qq.com>
Date: Fri, 22 Jul 2022 15:53:32 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86=E5=86=85?=
=?UTF-8?q?=E5=AE=B9=E3=80=81=E6=96=B0=E5=A2=9E=E9=80=89=E6=8B=A9=E5=A4=B4?=
=?UTF-8?q?=E5=83=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages.json | 8 ++
pages/account/changeImg.vue | 165 +++++++++++++++++++++++++++++++++++
pages/account/favorites.vue | 11 ++-
pages/account/index.vue | 16 ++--
pages/account/myOrders.vue | 106 ++++++++++++----------
pages/account/myProfile.vue | 10 ++-
pages/account/wishlist.vue | 43 ++++++---
pages/index/index.vue | 2 +-
pages/index/search.vue | 2 +-
pages/order/details.vue | 2 +-
pages/shippingCart/index.vue | 9 +-
static/icon/left.png | Bin 0 -> 355 bytes
12 files changed, 297 insertions(+), 77 deletions(-)
create mode 100644 pages/account/changeImg.vue
create mode 100644 static/icon/left.png
diff --git a/pages.json b/pages.json
index f0cc495..c9763d8 100644
--- a/pages.json
+++ b/pages.json
@@ -47,6 +47,14 @@
"navigationBarBackgroundColor":"#FFFFFF"
}
},
+ {
+ "path" : "pages/account/changeImg",
+ "style" :{
+ "navigationStyle":"custom",
+ "enablePullDownRefresh": false
+ }
+
+ },
{
"path": "pages/account/wishlist",
"style": {
diff --git a/pages/account/changeImg.vue b/pages/account/changeImg.vue
new file mode 100644
index 0000000..2f90713
--- /dev/null
+++ b/pages/account/changeImg.vue
@@ -0,0 +1,165 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/account/favorites.vue b/pages/account/favorites.vue
index 4bb7e15..3f30c3e 100644
--- a/pages/account/favorites.vue
+++ b/pages/account/favorites.vue
@@ -3,15 +3,15 @@
-
+
US${{item.promote_price?item.promote_price:item.shop_price}}
-
-
+
+
@@ -41,6 +41,11 @@
}
},
methods:{
+ goDetails(id){
+ uni.navigateTo({
+ url:"../productDetails/index?goods_id="+id
+ })
+ },
// 清空浏览记录
clearFavorites(){
let data={_action:'cleargoodsbrowsehistory'}
diff --git a/pages/account/index.vue b/pages/account/index.vue
index 7ac0469..5be3950 100644
--- a/pages/account/index.vue
+++ b/pages/account/index.vue
@@ -37,24 +37,24 @@
- My Orders
+ My Orders
-
+
Unpaid
-
+
Processing
-
-
+
+
Shipped
-
-
+
+
Returns
-
+
diff --git a/pages/account/myOrders.vue b/pages/account/myOrders.vue
index 6ed001c..2ad744b 100644
--- a/pages/account/myOrders.vue
+++ b/pages/account/myOrders.vue
@@ -150,12 +150,14 @@
+
+
-
+
To be shipped
@@ -200,11 +202,13 @@
+
+
-
+
Shipped
@@ -253,11 +257,13 @@
+
+
-
+
-
+
Completed
@@ -307,11 +313,13 @@
+
+
-
+
-
+
Return and exchange
@@ -359,58 +367,62 @@
+
+
-
-
-
- cancelled
-
- order#{{item.order_sn}}
-
+
+
+
+ cancelled
+
+ order#{{item.order_sn}}
+
+
-
-
-
-
-
-
-
-
-
- {{item1.goods_name}}
-
-
- {{item1.goods_attr |goodsAttr}}
-
+
+
+
+
+
+
+
+
+ {{item1.goods_name}}
+
+
+ {{item1.goods_attr |goodsAttr}}
+
+
+ ×{{item1.goods_number}}
- ×{{item1.goods_number}}
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ {{item.order_goods.length}} ltems
+
-
- {{item.order_goods.length}} ltems
-
-
+
+ total:US${{item.total_fee_o}}
+
+
-
- total:US${{item.total_fee_o}}
-
-
-
+
+
@@ -578,6 +590,7 @@
// 退货
index=5
}
+
let url='../order/details?details_index='+index+'&id='+id
if(index==5){
url='../order/refundDetails'
@@ -659,7 +672,7 @@
defaultRequest2(this.query).then(res=>{
console.info(res)
if(res.error==0){
- this.orderList=res.data
+ if(res.data) this.orderList=res.data
if(this.orderList.length==0){
this.isList=false
}else{
@@ -685,6 +698,9 @@
onShow() {
this.getList()
},
+ onLoad(e) {
+ this.scroll_active=e.scroll_active
+ },
filters:{
goodsAttr(e){
return e.replace(/\s\n/g,';');
diff --git a/pages/account/myProfile.vue b/pages/account/myProfile.vue
index ebfe401..e18892c 100644
--- a/pages/account/myProfile.vue
+++ b/pages/account/myProfile.vue
@@ -1,7 +1,7 @@
-
+
Photo
@@ -62,6 +62,12 @@
}
},
methods:{
+ //换头像
+ gotochange(){
+ uni.navigateTo({
+ url:'./changeImg'
+ })
+ },
// 获取默认地址
getDefaultAddress(){
let data={_action:'getdefaultconsignee'}
@@ -99,7 +105,7 @@
})
}
},
- onLoad() {
+ onShow() {
this.user_info=uni.getStorageSync('user_info')
this.getUserInfo()
this.getDefaultAddress()
diff --git a/pages/account/wishlist.vue b/pages/account/wishlist.vue
index 75fb511..8d7b44c 100644
--- a/pages/account/wishlist.vue
+++ b/pages/account/wishlist.vue
@@ -1,13 +1,13 @@
-
+
-
+
-
-
+
+
US${{item.promote_price?item.promote_price:item.shop_price}}
@@ -16,17 +16,18 @@
@@ -37,10 +38,26 @@
data() {
return {
isDelete:false,
- goodsList:[]
+ goodsList:[],
+ goods_id:'',
+ isAll:false
}
},
methods:{
+ selectGoods(id){
+ if(id==this.goods_id){
+ this.goods_id=''
+ }else{
+ this.goods_id=id
+ }
+
+ },
+
+ goDetails(id){
+ uni.navigateTo({
+ url:"../productDetails/index?goods_id="+id
+ })
+ },
getList(){
let data={_action:'getfaviouritegoods',page_index:1,page_size:30}
defaultRequest2(data).then(res=>{
@@ -60,13 +77,13 @@
title:res.message,
icon:'none'
})
- this.changeImage(id,0)
}
})
},
// 取消收藏
- removeLike(id){
- let data={_action:'unsetfaviouritegoods',goods_id:id}
+ removeLike(){
+ let data={_action:'unsetfaviouritegoods',goods_id:this.goods_id}
+ if(this.isAll)data.goods_id=0
defaultRequest2(data).then(res=>{
console.info(res)
if(res.error==0){
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 6714e3a..32ee5d1 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -266,7 +266,7 @@
},
onLoad() {
this.getIndex()
- console.info(this.curEndTime)
+ // console.info(this.curEndTime)
},
computed:{
//当天结束时间
diff --git a/pages/index/search.vue b/pages/index/search.vue
index ba45a98..a147e22 100644
--- a/pages/index/search.vue
+++ b/pages/index/search.vue
@@ -33,7 +33,7 @@
US${{item.is_promote==0? item.shop_price :item.promote_price}}
- US${{ item.shop_price }}
+ US${{ item.shop_price }}
diff --git a/pages/order/details.vue b/pages/order/details.vue
index 20506b7..249fd07 100644
--- a/pages/order/details.vue
+++ b/pages/order/details.vue
@@ -123,7 +123,7 @@
Order total
- US${{goodsDate.order_amount}}
+ US${{goodsDate.total_fee}}
diff --git a/pages/shippingCart/index.vue b/pages/shippingCart/index.vue
index 4c2393d..9a22a6b 100644
--- a/pages/shippingCart/index.vue
+++ b/pages/shippingCart/index.vue
@@ -10,7 +10,10 @@
Your cart is empty
-
+
+
+
+
@@ -23,8 +26,8 @@
-
-
+
+
diff --git a/static/icon/left.png b/static/icon/left.png
new file mode 100644
index 0000000000000000000000000000000000000000..ad56335403584ce78c39729cb1b361455d5f22b0
GIT binary patch
literal 355
zcmV-p0i6DcP)Px$9Z5t%R5(wi(>*K3Q5?qc&z&%fyZ}iCgHb6ZBgx{SsJqx?ks^x>vMGZi8OWmK
zv822NNt9P04_OSPETmKaf8E{P5C4-h|E}*j=en+6PW
zI$wuv