Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
zhwy
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 841736c8
authored
Sep 27, 2023
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
登录
1 parent
3e5278e9
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
30 additions
and
442 deletions
packageMine/pages/setting/index.scss
packagePlugin/pages/index/index.js
packageSaveMoney/pages/kaqDetail/orderDetail.js
packageSaveMoney/pages/kaqDetail/orderDetail.json
packageSaveMoney/pages/kaqDetail/orderDetail.wxml
packageSaveMoney/pages/kaqDetail/orderDetail.wxss
packageSaveMoney/pages/open/open.js
packageSaveMoney/pages/open/open.wxml
pages/Login/Login.js
pages/tab/mine/index.scss
pages/tab/mine/index.wxml
packageMine/pages/setting/index.scss
View file @
841736c
...
@@ -25,7 +25,7 @@ page {
...
@@ -25,7 +25,7 @@ page {
}
}
.default-btn
{
.default-btn
{
background
:
var
(
--
btnColor
)
;
background
:
#3772EC
;
border-radius
:
8rpx
;
border-radius
:
8rpx
;
position
:
fixed
;
position
:
fixed
;
bottom
:
70rpx
;
bottom
:
70rpx
;
...
...
packagePlugin/pages/index/index.js
View file @
841736c
...
@@ -47,6 +47,10 @@ Page({
...
@@ -47,6 +47,10 @@ Page({
url
,
url
,
})
})
},
},
// 检查是否已登录
checkLogin
(){
const
authStatus
=
wx
.
p
.
router
.
intercept
(
false
)
console
.
log
(
authStatus
);
},
})
})
packageSaveMoney/pages/kaqDetail/orderDetail.js
deleted
100644 → 0
View file @
3e5278e
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-12-15 11:17:09
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-12-26 12:31:15
* @FilePath: \miniprogram\packageShopmall\packageEquity\pages\kaqDetail\orderDetail.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import
{
equityApi
}
from
"~/api/api"
;
Page
({
data
:
{},
onLoad
:
function
(
options
)
{
this
.
getOrderInfo
(
options
.
orderCode
);
},
jumpDetail
(
e
)
{
const
{
item
}
=
e
.
currentTarget
.
dataset
const
{
productId
,
productName
,
useExplain
,
exchangeCode
}
=
item
const
{
orderCode
}
=
this
.
data
.
order
;
wx
.
$router
.
go
(
'/packageShopmall/packageExpandedGold/pages/activity/userDetail/index'
,
{
productId
,
productName
,
useExplain
,
exchangeCode
,
orderCode
})
},
getOrderInfo
(
orderCode
)
{
equityApi
.
orderDetail
({
orderCode
}).
then
((
res
)
=>
{
const
exchangeCodeList
=
res
.
exchangeCodeList
||
[]
exchangeCodeList
.
forEach
(
element
=>
{
if
(
element
.
discount
)
{
element
.
mark
=
element
.
discount
.
replace
(
/
[\d\.]
/g
,
''
).
replace
(
/¥/
,
'元'
)
element
.
price
=
element
.
discount
.
replace
(
/
[^\w\.]
/g
,
''
)
}
});
const
expandedGoldUserCouponDTOS
=
res
.
expandedGoldUserCouponDTOS
.
filter
(
i
=>
i
.
discountType
!=
8
)
expandedGoldUserCouponDTOS
.
forEach
(
itm
=>
{
itm
.
receiveStartTime
=
new
Date
(
itm
.
receiveStartTime
).
format
(
'yyyy.MM.dd'
)
if
(
itm
.
effectiveType
==
1
)
{
itm
.
receiveEndTime
=
new
Date
(
itm
.
receiveEndTime
).
format
(
'yyyy.MM.dd hh:mm:ss'
)
}
else
{
itm
.
receiveEndTime
=
new
Date
(
itm
.
receiveEndTime
).
format
(
'yyyy.MM.dd'
)
}
console
.
log
(
itm
)
itm
.
discountIntensity
=
itm
.
discountIntensity
/
100
})
const
expandedGold
=
res
.
expandedGoldUserCouponDTOS
.
filter
(
i
=>
i
.
discountType
==
8
)
this
.
setData
({
order
:
res
,
expandedGoldUserCouponDTOS
,
expandedGold
,
exchangeCodeList
});
});
},
toUseConpon
(
e
){
const
{
brandName
,
goodsId
,
id
,
goodsLogo
,
appearance
,
goodsName
,
couponId
}
=
e
.
currentTarget
.
dataset
.
item
let
path
=
'/packageShopmall/packageEquity/pages/commodity/detail/detail'
let
param
=
{
supplier
:
'HW'
,
brandName
,
id
:
goodsId
,
couponsId
:
id
,
couponId
}
if
(
appearance
==
2
){
path
=
'/packageShopmall/packageEquity/pages/commodity/chargeDetail/chargeDetail'
param
.
productName
=
goodsName
param
.
icon
=
goodsLogo
}
wx
.
$router
.
go
(
path
,
{
inType
:
'game'
,
param
:
encodeURIComponent
(
JSON
.
stringify
(
param
))})
},
previewImage
()
{
wx
.
$api
.
previewImage
({
current
:
this
.
data
.
order
.
qrcode
,
urls
:
[
this
.
data
.
order
.
qrcode
],
});
},
setCopyData
(
e
)
{
wx
.
$api
.
setCopyData
(
e
.
currentTarget
.
dataset
.
item
,
()
=>
{
wx
.
p
.
wxApi
.
showToast
(
"复制成功"
);
});
},
});
packageSaveMoney/pages/kaqDetail/orderDetail.json
deleted
100644 → 0
View file @
3e5278e
{
"usingComponents"
:
{
"coupon-item"
:
"../../../components/CouponsItem/element"
},
"navigationBarTitleText"
:
"订单详情"
}
\ No newline at end of file
\ No newline at end of file
packageSaveMoney/pages/kaqDetail/orderDetail.wxml
deleted
100644 → 0
View file @
3e5278e
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-12-15 11:17:09
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-12-22 16:52:48
* @FilePath: \miniprogram\packageShopmall\packageEquity\pages\kaqDetail\orderDetail.wxml
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<view>
<view class="coupon_info">
<view class="order-info">
<view class="order-title">订单信息</view>
<view class="order-desc" style="margin-bottom: 20rpx;"><text class="order-label">订单日期:</text> <text>{{order.createdDate}}</text> </view>
<view class="order-desc"><text class="order-label">订单编号:</text><text>{{order.orderCode}}</text></view>
</view>
<view class="order-info">
<view class="order-title">{{order.merchantName}}</view>
<view class="order-coupon">
<view class="coupon-img">
<image webp wx:if="{{order.activityBigImg}}" src="{{order.activityBigImg}}"></image>
</view>
<view class="coupon-detail">
<view class="coupon-title">
{{order.activityName}}
</view>
<view class="coupon-desc">
<text>
¥ {{order.orderPrice}}
</text>
<text>
x1
</text>
</view>
</view>
</view>
<view class="order-desc coupon-total"><text>订单金额</text><text class="coupon-price">¥ <text>{{order.orderPrice}}</text></text></view>
</view>
<view class="order-info" wx:if="{{expandedGoldUserCouponDTOS.length}}">
<view class="order-title">订单明细</view>
<block wx:for="{{expandedGoldUserCouponDTOS}}" wx:key="id">
<coupon-item btnStatus="{{item.userStatus==1?0:1}}" coupons="{{item}}" useMemberType="{{0}}"></coupon-item>
</block>
<block wx:if="{{expandedGold.length}}">
<view class="online_conpon_ctnr" wx:for="{{expandedGold}}" wx:for-item="i" wx:key="id">
<view class="online_conpon">
<view class="price_wrap">
<view>
<text class="num">{{i.denomination || 0}}</text>
<text class="unit">元</text>
</view>
<view class="tip">无门槛</view>
</view>
<view class="info_wrap">
<view class="name">{{i.brandName ? i.brandName + '·' : ''}}{{i.appearance == 2 ? i.goodsName + i.rechargeDenomination : i.goodsName}}</view>
<!-- <view class="remark">无门槛</view> -->
<view class="date">数量:{{i.amount}}</view>
<view class="date">剩余有效期:{{i.residueEffectiveDays || 0}}天</view>
<view class="use_btn" bindtap="toUseConpon" data-item="{{i}}">去使用</view>
</view>
</view>
</view>
</block>
<block wx:if="{{exchangeCodeList.length}}">
<view class="coupon-info">
<view class="coupon-item" wx:for="{{exchangeCodeList}}" wx:key="id">
<view class="coupon-item-price"><text>{{item.price}}</text>{{item.mark}}</view>
<view class="coupon-item-desc">
<view class="coupon-item-title">{{item.productName}}</view>
<view class="coupon-item-time">请在一个月内获取兑换码</view>
</view>
<view class="coupon-item-btn" bindtap="jumpDetail" data-item="{{item}}">查看</view>
</view>
</view>
</block>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
packageSaveMoney/pages/kaqDetail/orderDetail.wxss
deleted
100644 → 0
View file @
3e5278e
/* packageShopmall/packageEquity/pages/kaqDetail/orderDetail.wxss */
.coupon_info {
background: #F7F7F7;
min-height: 100vh;
padding-top: 20rpx;
box-sizing: border-box;
}
.order-info {
width: 710rpx;
margin: 0rpx auto 20rpx;
background-image: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 100%);
border-radius: 16rpx;
padding: 28rpx 32rpx;
box-sizing: border-box;
}
.order-title {
font-weight: 600;
font-size: 32rpx;
color: #0A0D14;
line-height: 44rpx;
margin-bottom: 32rpx;
}
.order-desc {
display: flex;
justify-content: space-between;
color: #23272F;
font-size: 24rpx;
}
.order-label {
color: #858A94;
}
.order-coupon {
display: flex;
}
.coupon-img {
width: 160rpx;
height: 160rpx;
}
.coupon-detail {
flex: 1;
margin-left: 20rpx;
}
.coupon-title {
font-weight: 600;
font-size: 30rpx;
color: #333333;
width: 366rpx;
line-height: 40rpx;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
}
.coupon-desc {
display: flex;
justify-content: space-between;
font-size: 28rpx;
color: #858A94;
line-height: 40rpx;
}
.coupon-desc text:first-child {
font-weight: 600;
color: #23272F;
}
.coupon-total {
margin-top: 30rpx;
padding-top: 20rpx;
border-top: 1.2rpx solid #E3E3E6;
}
.coupon-price {
font-size: 24rpx;
font-weight: 600;
line-height: 44rpx;
color: rgba(252, 91, 50, 1);
}
.coupon-price text {
font-size: 34rpx;
}
.price-m {
font-size: 20rpx!important;
margin-left: 4rpx;
}
.coupon-item {
margin-top: 16rpx;
width: 100%;
height: 112rpx;
box-sizing: border-box;
background: #FEFAF6;
border-radius: 8rpx;
padding: 20rpx 24rpx;
display: flex;
justify-content: space-between;
align-items: center;
}
.coupon-item-price {
font-weight: 600;
font-size: 20rpx;
color: #FC5B32;
width: 150rpx;
}
.coupon-item-price text {
font-size: 32rpx;
width: 60rpx;
display: inline-block;
margin-right: 20rpx;
text-align: center;
}
.coupon-item-desc {
width: 360rpx;
position: relative;
}
.coupon-item-desc::before {
content: '';
position: absolute;
top: 0px;
left: -20rpx;
width: 2rpx;
height: 72rpx;
background-color: #FFE0D2;
}
.coupon-item-title {
font-weight: 600;
font-size: 24rpx;
color: #FC5B32;
line-height: 40rpx;
}
.coupon-item-time {
font-size: 20rpx;
color: #D83C14;
}
.coupon-item-btn {
width: 99.06rpx;
height: 45rpx;
line-height: 45rpx;
background-image: linear-gradient(270deg, #EE7E44 12%, #ED6A42 94%);
box-shadow: inset 0 2rpx 6rpx 0 #ffffff;
border-radius: 22.5rpx;
font-size: 20rpx;
color: #FFFFFF;
text-align: center;
}
.online_conpon_ctnr{
margin-top: 32rpx;
}
.online_conpon{
height: 156rpx;
background: #FFF5F3;
border-radius: 8rpx;
padding: 8rpx;
display: flex;
}
.online_conpon .price_wrap{
padding-left: 16rpx;
display: flex;
flex-direction: column;
justify-content: center;
width: 154rpx;
flex-shrink: 0;
color: #FC5B32;
}
.price_wrap .num{
height: 84rpx;
font-weight: 600;
font-size: 42rpx;
color: #FC5B32;
}
.price_wrap .unit{
height: 28rpx;
font-weight: 500;
font-size: 20rpx;
color: #FC5B32;
vertical-align: text-top;
margin-left: 4rpx;
}
.price_wrap .tip{
height: 34rpx;
font-weight: 400;
font-size: 24rpx;
color: #D83C14;
}
.online_conpon .info_wrap{
flex: 1;
background-color: #fff;
padding: 16rpx 12rpx 16rpx 24rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
position: relative;
}
.info_wrap .name{
height: 80rpx;
font-weight: 600;
font-size: 28rpx;
color: #333333;
line-height: 40rpx;
}
.info_wrap .remark,.info_wrap .date{
height: 28rpx;
line-height: 20rpx;
font-weight: 400;
font-size: 20rpx;
color: #D83C14;
}
.info_wrap .use_btn{
position: absolute;
width: 136rpx;
height: 48rpx;
line-height: 48rpx;
background-image: linear-gradient(90deg, #FC5B32 2%, #FF1A33 96%);
border-radius: 23rpx;
color: #fff;
text-align: center;
right: 12rpx;
bottom: 16rpx;
}
\ No newline at end of file
\ No newline at end of file
packageSaveMoney/pages/open/open.js
View file @
841736c
...
@@ -50,13 +50,7 @@ Page({
...
@@ -50,13 +50,7 @@ Page({
},
},
// 去购买会员
// 去购买会员
async
openMemberFn
()
{
async
openMemberFn
()
{
let
sid
=
wx
.
p
.
cache
.
storageApi
.
getSessionId
()
wx
.
p
.
router
.
intercept
()
if
(
!
sid
)
{
this
.
setData
({
showLogin
:
true
})
return
}
const
{
memberInfo
}
=
this
.
data
const
{
memberInfo
}
=
this
.
data
wx
.
p
.
wxApi
.
showLoading
()
wx
.
p
.
wxApi
.
showLoading
()
let
para
=
{
let
para
=
{
...
@@ -100,9 +94,9 @@ Page({
...
@@ -100,9 +94,9 @@ Page({
url
:
'/packageEquity/pages/agreement/index'
url
:
'/packageEquity/pages/agreement/index'
})
})
},
},
toActive
()
{
//
toActive() {
wx
.
navigateTo
({
//
wx.navigateTo({
url
:
'/packageEquity/pages/active/active'
//
url: '/packageEquity/pages/active/active'
})
//
})
}
//
}
})
})
packageSaveMoney/pages/open/open.wxml
View file @
841736c
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<view class="mid_desc_bg">
<view class="mid_desc_bg">
<image webp mode="widthFix" webp class="desc_icon" src="{{IMGURL}}equity/scrm_opening.png?v={{img_version}}" />
<image webp mode="widthFix" webp class="desc_icon" src="{{IMGURL}}equity/scrm_opening.png?v={{img_version}}" />
</view>
</view>
<
image webp class="device_icon" bind:tap="toActive" mode="widthFix" webp src="{{IMGURL}}equity/scrm_device_bg_new.png?v={{img_version}}" /
>
<
!-- <image webp class="device_icon" bind:tap="toActive" mode="widthFix" webp src="{{IMGURL}}equity/scrm_device_bg_new.png?v={{img_version}}" /> --
>
<view style="height:220rpx"></view>
<view style="height:220rpx"></view>
<view class="fixed_wrapper">
<view class="fixed_wrapper">
<view class="btn_wrap">
<view class="btn_wrap">
...
...
pages/Login/Login.js
View file @
841736c
...
@@ -33,14 +33,14 @@ Page({
...
@@ -33,14 +33,14 @@ Page({
wx
.
p
.
router
.
jumpH5
(
`https://img02.glsx.com.cn/weapp/resource/saas/scrm/html/hmd/
${
name
}
.html`
,
true
)
wx
.
p
.
router
.
jumpH5
(
`https://img02.glsx.com.cn/weapp/resource/saas/scrm/html/hmd/
${
name
}
.html`
,
true
)
},
},
async
onLoad
()
{
async
onLoad
()
{
//
wx.p.wxApi.showLoading()
wx
.
p
.
wxApi
.
showLoading
()
//
const {
const
{
//
data,
data
,
//
code
code
//
} = await wx.p.api.userApi.login()
}
=
await
wx
.
p
.
api
.
userApi
.
login
()
//
if (code == '0') this.customerLoginCallBack(data)
if
(
code
==
'0'
)
this
.
customerLoginCallBack
(
data
)
//
if (data) this.sessionId = data.sessionId
if
(
data
)
this
.
sessionId
=
data
.
sessionId
//
wx.hideLoading()
wx
.
hideLoading
()
},
},
input
(
e
)
{
input
(
e
)
{
const
{
const
{
...
...
pages/tab/mine/index.scss
View file @
841736c
...
@@ -276,6 +276,12 @@ page {
...
@@ -276,6 +276,12 @@ page {
font-size
:
20rpx
;
font-size
:
20rpx
;
color
:
#FDF2E8
;
color
:
#FDF2E8
;
letter-spacing
:
0
;
letter-spacing
:
0
;
.member-price-text
{
font-weight
:
700
;
font-size
:
26rpx
;
color
:
#FAE4CD
;
}
}
}
.member-box
.left-box
.left-content
.money
{
.member-box
.left-box
.left-content
.money
{
...
...
pages/tab/mine/index.wxml
View file @
841736c
...
@@ -42,15 +42,15 @@
...
@@ -42,15 +42,15 @@
</view>
</view>
<view class="left-content">
<view class="left-content">
<view class="card">{{memberInfo.equityName || '甄选会员卡'}}</view>
<view class="card">{{memberInfo.equityName || '甄选会员卡'}}</view>
<view class="describe" wx:if="{{!isMember}}">
生活权益|专享超百项生活权益
</view>
<view class="describe" wx:if="{{!isMember}}">
专享十余项养车特权,劲省<text class="member-price-text">{{memberInfo.goodPrice}}元</text>/年
</view>
<view class="describe" wx:else>{{vipInfo.time}} 到期</view>
<view class="describe" wx:else>{{vipInfo.time}} 到期</view>
</view>
</view>
</view>
</view>
<view wx:if="{{!isMember}}" class="member-button" bindtap="toBuyMember">开通会员</view>
<view wx:if="{{!isMember}}" class="member-button" bindtap="toBuyMember">开通会员</view>
<view wx:if="{{isMember}}" class="member-button" bindtap="goInterests">去使用</view>
<view wx:if="{{isMember}}" class="member-button" bindtap="goInterests">去使用</view>
<view class="member-price" bindtap="toBuyMember" wx:if="{{memberInfo.goodPrice}}">
<
!-- <
view class="member-price" bindtap="toBuyMember" wx:if="{{memberInfo.goodPrice}}">
特惠¥{{memberInfo.goodPrice}}起
特惠¥{{memberInfo.goodPrice}}起
</view>
</view>
-->
</view>
</view>
</block>
</block>
<!-- 我的爱车 -->
<!-- 我的爱车 -->
...
...
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