Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
hmd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 32bd316e
authored
Aug 11, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
f3b1a0ab
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
60 additions
and
35 deletions
api/env/index.js
app.json
packageMall/pages/detail/detail.js
packageMall/pages/detail/detail.wxml
packageMine/pages/address/detail/detail.js
packageMine/pages/coupon/index/index.js
packageMine/pages/order/components/OrderItem/OrderItem.js
packageMine/pages/order/components/OrderItem/OrderItem.json
packageMine/pages/order/components/OrderItem/OrderItem.scss
packageMine/pages/order/components/OrderItem/OrderItem.wxml
packageMine/pages/order/index/index.js
packageMine/pages/order/index/index.wxml
pages/Login/Login.js
pages/loading/loading.js
pages/tab/index/components/store-equity/store-equity.js
pages/tab/mall/index.js
pages/tab/mine/index.js
project.config.json
api/env/index.js
View file @
32bd316
import
{
preReleaseAppId
}
from
'~/config'
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'preRelease'
]
let
index
=
3
let
index
=
2
/**
*
...
...
app.json
View file @
32bd316
...
...
@@ -22,8 +22,7 @@
"selectedColor"
:
"#8A303A"
,
"backgroundColor"
:
"#FFFFFF"
,
"borderStyle"
:
"white"
,
"list"
:
[
{
"list"
:
[{
"pagePath"
:
"pages/tab/index/index"
,
"text"
:
"首页"
,
"iconPath"
:
"assets/images/home.png"
,
...
...
@@ -49,8 +48,7 @@
}
]
},
"subpackages"
:
[
{
"subpackages"
:
[{
"root"
:
"packageIndex"
,
"pages"
:
[
"pages/bannerJumpPage/bannerJumpPage"
,
...
...
@@ -128,5 +126,10 @@
"desc"
:
"你的位置信息将用于小程序位置接口的效果展示"
}
},
"plugins"
:
{}
"plugins"
:
{
"authorization-plugin"
:
{
"version"
:
"1.0.2"
,
"provider"
:
"wxe10067a63c1856ac"
}
}
}
\ No newline at end of file
packageMall/pages/detail/detail.js
View file @
32bd316
...
...
@@ -383,6 +383,7 @@ Page({
key
:
'activityStatus'
}
})
this
.
getUserAddressDefault
()
wx
.
hideLoading
()
}
else
{
wx
.
hideLoading
()
...
...
@@ -508,6 +509,12 @@ Page({
})
},
/**
* 生命周期函数--监听登录成功后回调
*/
onLoginSuccess
()
{
this
.
getUserAddressDefault
()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{},
...
...
@@ -517,7 +524,6 @@ Page({
*/
onShow
:
function
()
{
this
.
getUserAddressList
()
this
.
getUserAddressDefault
()
},
/**
...
...
packageMall/pages/detail/detail.wxml
View file @
32bd316
...
...
@@ -209,7 +209,7 @@
</block>
</block>
<block wx:if="{{showPoster && posterUrl}}">
<view class="model" catchtouchmove="noScroll"
>
<view class="model" catchtouchmove="noScroll">
<view class="model-bg" bindtap="hidden"></view>
<view class="poster" bindlongpress='save'>
<image webp src="{{posterUrl}}"></image>
...
...
packageMine/pages/address/detail/detail.js
View file @
32bd316
...
...
@@ -16,7 +16,6 @@ Page({
}
},
onLoad
:
function
(
options
)
{
console
.
log
(
options
,
'=========='
)
if
(
options
.
id
)
{
wx
.
setNavigationBarTitle
({
title
:
'编辑收货地址'
...
...
@@ -65,14 +64,12 @@ Page({
current
:
true
})
mapApi
.
detailedAdrress
([
latitude
,
longitude
]).
then
(
detail
=>
{
console
.
log
(
detail
)
this
.
setData
({
currentAddress
:
detail
})
})
})
.
catch
(
err
=>
{
console
.
log
(
err
)
wx
.
p
.
wxApi
.
showToast
(
'获取位置失败'
)
})
},
...
...
@@ -158,7 +155,6 @@ Page({
},
/**选择地区 */
chooseArea
(
e
)
{
console
.
log
(
e
)
let
{
value
,
code
}
=
e
.
detail
let
{
userObj
}
=
this
.
data
userObj
.
region
=
[
value
[
0
],
value
[
1
],
value
[
2
]]
...
...
packageMine/pages/coupon/index/index.js
View file @
32bd316
...
...
@@ -14,7 +14,6 @@ Page({
let
{
item
}
=
e
.
currentTarget
.
dataset
// console.log(e)
let
url
=
'/packageMine/pages/order/detail/detail'
wx
.
p
.
router
.
go
(
url
,
item
)
},
...
...
@@ -69,7 +68,6 @@ Page({
if
(
!
isMerchant
)
para
.
merchantId
=
merchantId
wx
.
p
.
api
.
couponsApi
.
getCardData
(
para
).
then
(
res
=>
{
wx
.
hideLoading
()
// console.log(res);
let
list
=
res
.
map
(
item
=>
{
item
.
checkCoupon
=
false
item
.
userCouponList
.
map
((
itm
,
index
)
=>
{
...
...
@@ -99,7 +97,6 @@ Page({
})
},
async
onLoad
(
options
)
{
console
.
log
(
options
)
const
showLogin
=
await
wx
.
p
.
router
.
intercept
(
false
)
this
.
setData
({
showLogin
...
...
packageMine/pages/order/components/OrderItem/OrderItem.js
0 → 100644
View file @
32bd316
// packageMine/pages/order/components/OrderItem/OrderItem.js
Component
({
/**
* 组件的属性列表
*/
properties
:
{
},
/**
* 组件的初始数据
*/
data
:
{
},
/**
* 组件的方法列表
*/
methods
:
{
}
})
packageMine/pages/order/components/OrderItem/OrderItem.json
0 → 100644
View file @
32bd316
{
"component"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
packageMine/pages/order/components/OrderItem/OrderItem.scss
0 → 100644
View file @
32bd316
/* packageMine/pages/order/components/OrderItem/OrderItem.wxss */
\ No newline at end of file
packageMine/pages/order/components/OrderItem/OrderItem.wxml
0 → 100644
View file @
32bd316
<!--packageMine/pages/order/components/OrderItem/OrderItem.wxml-->
<text>packageMine/pages/order/components/OrderItem/OrderItem.wxml</text>
packageMine/pages/order/index/index.js
View file @
32bd316
...
...
@@ -41,7 +41,6 @@ Page({
},
}
=
e
.
currentTarget
.
dataset
if
(
orderSource
==
5
&&
(
orderStatus
==
2
||
orderStatus
==
7
))
return
console
.
log
(
e
)
let
url
=
'/packageMine/pages/order/detail/detail'
wx
.
p
.
router
.
go
(
url
,
{
orderCode
...
...
@@ -66,7 +65,6 @@ Page({
else
wx
.
p
.
router
.
back
()
},
changeTab
(
e
)
{
console
.
log
(
'e'
,
e
)
this
.
setData
({
tabIndex
:
e
.
detail
,
orderStatusPart
:
orderStatusPartEnum
[
e
.
detail
],
...
...
@@ -83,7 +81,6 @@ Page({
let
{
userInfo
}
=
this
.
data
console
.
log
(
orderCode
)
wx
.
p
.
router
.
go
(
'/packageMall/pages/addComment/addComment'
,
{
orderCode
,
userInfo
,
...
...
@@ -96,7 +93,6 @@ Page({
orderCode
},
}
=
e
.
currentTarget
.
dataset
console
.
log
(
orderCode
)
wx
.
p
.
router
.
go
(
'/packageMall/pages/commentDetails/commentDetails'
,
orderCode
)
},
//取消售后
...
...
@@ -223,7 +219,6 @@ Page({
let
list
=
[]
wx
.
p
.
api
.
mineApi
.
getOrderList
(
obj
).
then
((
data
)
=>
{
wx
.
hideLoading
()
console
.
log
(
'data'
,
data
)
data
?.
list
?.
map
((
e
)
=>
{
let
{
orderGoods
,
...
...
@@ -447,7 +442,6 @@ Page({
let
{
orderCode
}
=
e
.
currentTarget
.
dataset
console
.
log
(
orderCode
)
wx
.
p
.
router
.
go
(
'/packageMine/pages/boutiquePages/boutiqueOrder/boutiqueOrder'
,
{
orderCode
,
type
:
2
,
...
...
packageMine/pages/order/index/index.wxml
View file @
32bd316
<view class="sticky-box
">
<view class="sticky-box">
<navigation-bar custom bindnavbarReady="navbarReady" page-title="我的订单">
<view class="navigation">
<view class="back text-center y-center" bindtap="back">
...
...
@@ -67,7 +67,7 @@
</view>
</view>
<!-- !hasUserInfo -->
<view wx:if="{{item.orderGoods.length > 1 && !hasUserInfo}}">
<view wx:if="{{item.orderGoods.length > 1 && !hasUserInfo}}">
<block wx:if="{{item.orderStatus == 5 || item.orderStatus == 8}}">
<block wx:if="{{item.evaluatedFlag == 'Y'}}">
<view class="btn confirm" catchtap="lookevaluate" data-item="{{item}}">查看评价</view>
...
...
pages/Login/Login.js
View file @
32bd316
...
...
@@ -38,11 +38,7 @@ Page({
data
,
code
}
=
await
wx
.
p
.
api
.
userApi
.
login
()
if
(
code
==
'0'
)
{
wx
.
p
.
storage
.
set
(
'userInfo'
,
data
)
wx
.
p
.
storage
.
set
(
'sessionId'
,
data
.
sessionId
)
wx
.
p
.
router
.
back
()
}
if
(
code
==
'0'
)
this
.
customerLoginCallBack
(
data
)
if
(
data
)
this
.
sessionId
=
data
.
sessionId
wx
.
hideLoading
()
},
...
...
@@ -168,6 +164,7 @@ Page({
thisPage
&&
thisPage
.
setData
({
userInfo
:
data
})
thisPage
.
onLoginSuccess
&&
thisPage
.
onLoginSuccess
()
//登陆成功后页面回调
})
},
...
...
pages/loading/loading.js
View file @
32bd316
...
...
@@ -10,13 +10,12 @@ Page({
data
:
{
},
/**
* 生命周期函数--监听页面加载
*/
async
onLoad
(
options
)
{
console
.
log
(
'---------------- 页面初始化 ----------------'
)
console
.
log
(
'
初始化数据
:'
,
options
)
console
.
log
(
'
options参数
:'
,
options
)
systemApi
.
getImageVersion
()
//获取图片版本号
this
.
tabList
=
__wxConfig
.
tabBar
.
list
wx
.
p
.
wxApi
.
showLoading
()
...
...
pages/tab/index/components/store-equity/store-equity.js
View file @
32bd316
...
...
@@ -76,7 +76,10 @@ Component({
})
},
toBuyMember
()
{
wx
.
p
.
router
.
go
(
'/packageEquity/pages/open/open'
)
wx
.
p
.
router
.
go
(
'/packageEquity/pages/open/open'
,
{
notIntercept
:
true
})
},
jump
()
{
const
{
...
...
pages/tab/mall/index.js
View file @
32bd316
...
...
@@ -54,7 +54,6 @@ Page({
res
=
await
wx
.
p
.
api
.
shopmallApi
.
getMerchantClassify
({
merchantId
})
console
.
log
(
res
)
let
tabList
=
[{
zoneName
:
'全部'
,
id
:
''
,
...
...
pages/tab/mine/index.js
View file @
32bd316
...
...
@@ -78,7 +78,6 @@ Page({
})
}
else
{
wx
.
p
.
api
.
equityApi
.
checkOpenMember
().
then
(
res
=>
{
console
.
log
(
res
,
'----------'
)
let
flag
=
false
,
identity
=
0
// 普通会员3 银卡2 金卡1 非会员 0
if
(
res
.
data
&&
res
.
data
.
validitDate
)
{
...
...
@@ -124,7 +123,9 @@ Page({
},
// 开通会员页面
toBuyMember
()
{
wx
.
p
.
router
.
go
(
'/packageEquity/pages/open/open'
)
wx
.
p
.
router
.
go
(
'/packageEquity/pages/open/open'
,{
notIntercept
:
true
})
},
/**
* 生命周期函数--监听页面初次渲染完成
...
...
project.config.json
View file @
32bd316
...
...
@@ -60,5 +60,5 @@
"include"
:
[]
},
"appid"
:
"wx2a9f38eb8e39b823"
,
"projectname"
:
"hmd"
"projectname"
:
"hmd
-0817
"
}
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment