Commit 540165b8 by 杨北旺

权益

1 parent ecbdba7a
Showing 50 changed files with 2600 additions and 1954 deletions
...@@ -75,7 +75,9 @@ ...@@ -75,7 +75,9 @@
"pages/commodity/detail/detail", "pages/commodity/detail/detail",
"pages/commodity/list/list", "pages/commodity/list/list",
"pages/commodity/charge/charge", "pages/commodity/charge/charge",
"pages/commodity/chargeDetail/chargeDetail" "pages/commodity/chargeDetail/chargeDetail",
"pages/receiveCoupons/index",
"pages/freecard/freecard"
] ]
}, },
{ {
......
...@@ -17,20 +17,18 @@ Page({ ...@@ -17,20 +17,18 @@ Page({
'1.2 权益卡权益:指您基于其权益卡资格所享有的特殊权益,具体权益内容由商家单独提供,请予以关注或及时与商家沟通确认。', '1.2 权益卡权益:指您基于其权益卡资格所享有的特殊权益,具体权益内容由商家单独提供,请予以关注或及时与商家沟通确认。',
'1.3.商家:指自行或与我司共同制定收费标准以及领卡会员权益,并独立或与我司共同协商决定是否收取费用且提供服务的经我司认证的主体。', '1.3.商家:指自行或与我司共同制定收费标准以及领卡会员权益,并独立或与我司共同协商决定是否收取费用且提供服务的经我司认证的主体。',
'1.4.我司:指本协议中“权益卡”的所有权人(在尚未正式销售给您之前)。', '1.4.我司:指本协议中“权益卡”的所有权人(在尚未正式销售给您之前)。',
'1.1 权益卡:指签署本协议并根据权益卡开通流程所展示的收费标准支付相应费用或免费领取后获取的特殊权益(实际名称以开通流程及前端页面展示为准),权益卡包括无门槛卡、规则卡及付费卡。',
'1.1 权益卡:指签署本协议并根据权益卡开通流程所展示的收费标准支付相应费用或免费领取后获取的特殊权益(实际名称以开通流程及前端页面展示为准),权益卡包括无门槛卡、规则卡及付费卡。',
] ]
}, { }, {
title: '第2条 本站服务条款的确认和接纳', title: '第2条 本站服务条款的确认和接纳',
content: [ content: [
'2.1本协议所提供的汽车增值服务权益活动的解释权和运作权归我司所有。', '2.1 本协议所提供的增值服务权益活动的解释权和运作权归我司所有。',
'2.2您在申请开通权益卡流程中点击同意本协议之前,应当认真阅读本协议。请您务必审慎阅读、充分理解各条款内容,特别是免除或者限制责任的条款、法律适用和争议解决条款。免除或者限制责任的条款将以粗体下划线标识,领卡/购卡您应重点阅读。如您对协议有任何疑问,可向商家或我司或客服咨询。', '2.2 您在申请开通权益卡流程中点击同意本协议之前,应当认真阅读本协议。请您务必审慎阅读、充分理解各条款内容,特别是免除或者限制责任的条款、法律适用和争议解决条款。免除或者限制责任的条款将以粗体下划线标识,领卡/购卡您应重点阅读。如您对协议有任何疑问,可向商家或我司或客服咨询。',
'2.3您点击同意本协议的,即视为您确认自己同意汽车增值服务权益相关服务的条款,且同意按本协议内容履行,如产生相关责任的,同意承担相应法律责任。', '2.3 您点击同意本协议的,即视为您确认自己同意增值服务权益相关服务的条款,且同意按本协议内容履行,如产生相关责任的,同意承担相应法律责任。',
] ]
}, { }, {
title: '第3条 活动时间', title: '第3条 活动时间',
content: [ content: [
'3.1汽车增值服务权益的开始时间和结束时间以 我司发布的活动规则中列明的时间为准。', '3.1 增值服务权益的开始时间和结束时间以 我司发布的活动规则中列明的时间为准。',
] ]
}, { }, {
title: '第4条 用户权益', title: '第4条 用户权益',
...@@ -40,12 +38,10 @@ Page({ ...@@ -40,12 +38,10 @@ Page({
}, { }, {
title: '第5条 用户领权益卡注意事项', title: '第5条 用户领权益卡注意事项',
content: [ content: [
'5.1提交申请领取时,您同意并提交本人手机号码和邮箱等本站所需的个人资料,并保证其提供的注册资料真实、准确、完整、合法有效,您注册资料如有变动的,应及时更新其注册资料。如果您提供的注册资料不合法、不真实、不准确、不详尽,您需承担因此引起的相应责任及后果,并且我司保留终止您参与该活动的权利。', '5.1 提交申请领取时,您同意并提交本人手机号码和邮箱等本站所需的个人资料,并保证其提供的注册资料真实、准确、完整、合法有效,您注册资料如有变动的,应及时更新其注册资料。如果您提供的注册资料不合法、不真实、不准确、不详尽,您需承担因此引起的相应责任及后果,并且我司保留终止您参与该活动的权利。',
'5.2权益服务领取后,您应谨慎合理的保存、使用其您名和密码,不得将在本站注册获得的账户借给他人使用,否则您应承担由此产生的全部责任,同时我司在该种情况下有权做出独立判断,可采取暂停或关闭您参与资格等措施。', '5.2 权益服务领取后,您应谨慎合理的保存、使用其您名和密码,不得将在本站注册获得的账户借给他人使用,否则您应承担由此产生的全部责任,同时我司在该种情况下有权做出独立判断,可采取暂停或关闭您参与资格等措施。',
'5.3您同意,我司拥有通过邮件、短信电话等形式,向其发送相关活动信息等必要信息的权利。', '5.3 您同意,我司拥有通过邮件、短信电话等形式,向其发送相关活动信息等必要信息的权利。',
'5.4您同意,领取汽车增值服务权益,除为实现您自身利益外,不得利用其享有的权益非法获利,不得以任何形式售卖其所享有的权益,不得滥用其所享有的权益,如因您不当行为致我司合理怀疑的或判定的,我司有权暂停或关闭该活动的权益,此外,您需承担因此引起的相应责任及后果。', '5.4 您同意,领取增值服务权益,除为实现您自身利益外,不得利用其享有的权益非法获利,不得以任何形式售卖其所享有的权益,不得滥用其所享有的权益,如因您不当行为致我司合理怀疑的或判定的,我司有权暂停或关闭该活动的权益,此外,您需承担因此引起的相应责任及后果。',
'5.1提交申请领取时,您同意并提交本人手机号码和邮箱等本站所需的个人资料,并保证其提供的注册资料真实、准确、完整、合法有效,您注册资料如有变动的,应及时更新其注册资料。如果您提供的注册资料不合法、不真实、不准确、不详尽,您需承担因此引起的相应责任及后果,并且我司保留终止您参与该活动的权利。',
'5.1提交申请领取时,您同意并提交本人手机号码和邮箱等本站所需的个人资料,并保证其提供的注册资料真实、准确、完整、合法有效,您注册资料如有变动的,应及时更新其注册资料。如果您提供的注册资料不合法、不真实、不准确、不详尽,您需承担因此引起的相应责任及后果,并且我司保留终止您参与该活动的权利。',
] ]
}, { }, {
title: '第6条 协议变更', title: '第6条 协议变更',
......
/* packageEquity/pages/agreement/index.wxss */
\ No newline at end of file \ No newline at end of file
page {
background: white;
}
.agree-container-page {
box-sizing: border-box;
padding: 30rpx;
}
.agreement-title {
color: #666666;
line-height: 64rpx;
font-size: 28rpx;
text-align: center;
}
.argeement-content>view {
color: #666666;
line-height: 36rpx;
font-size: 24rpx;
}
.text_indenet {
text-indent: 48rpx;
}
.h3 {
line-height: 60rpx;
font-weight: bold;
font-size: 30rpx;
}
.p {
text-indent: 48rpx;
line-height: 36rpx;
}
\ No newline at end of file \ No newline at end of file
<view class="agree-container-page"> <view class="agree-container-page">
<view class="agreement-title"> 汽车增值服务权益卡领取协议</view> <view class="agreement-title">增值服务权益卡领取协议</view>
<view class="argeement-content"> <view class="argeement-content">
<view class="first_info text_indenet"> <view class="first_info text_indenet">
本协议是您与 深圳市嘀加智慧云服务有限公司(以下简称为“我司”)、以及“商家”之间就汽车增值服务权益卡领取事项所订立的契约。请您仔细阅读本协议,您勾选“同意《汽车增值服务权益卡领取协议》”后,本协议即构成对双方有约束力的法律文件。 本协议是您与深圳广联数科科技有限公司(以下简称为“我司”)、以及“商家”之间就增值服务权益卡领取事项所订立的契约。请您仔细阅读本协议,您勾选“同意《增值服务权益卡领取协议》”后,本协议即构成对各方有约束力的法律文件。
</view> </view>
<view wx:for="{{localData}}" wx:key="index" class="element_item"> <view wx:for="{{localData}}" wx:key="index" class="element_item">
<view class="h3">{{item.title}}</view> <view class="h3">{{item.title}}</view>
......
page {
background: white;
}
.agree-container-page {
box-sizing: border-box;
padding: 30rpx;
}
.agreement-title {
color: #666666;
line-height: 64rpx;
font-size: 28rpx;
text-align: center;
}
.argeement-content>view {
color: #666666;
line-height: 36rpx;
font-size: 24rpx;
}
.text_indenet {
text-indent: 48rpx;
}
.h3 {
line-height: 60rpx;
font-weight: bold;
font-size: 30rpx;
}
.p {
text-indent: 48rpx;
line-height: 36rpx;
}
\ No newline at end of file \ No newline at end of file
...@@ -9,6 +9,7 @@ Page({ ...@@ -9,6 +9,7 @@ Page({
}, },
onLoad: function(options) { onLoad: function(options) {
console.log(wx.p);
let query = JSON.parse(options.query) let query = JSON.parse(options.query)
this.setData({ this.setData({
query query
...@@ -16,8 +17,7 @@ Page({ ...@@ -16,8 +17,7 @@ Page({
}, },
toOrderList() { toOrderList() {
wx.redirectTo({ wx.redirectTo({
// url:'/packageShopmall/packageEquity/pages/orderList/orderList' url:'/packageMine/pages/order/index/index'
url:'/packageShopmall/packageMine/pages/order/index/index'
}) })
}, },
toBack() { toBack() {
......
/* packageEquity/pages/chargeWait/chargeWait.wxss */
\ No newline at end of file \ No newline at end of file
page {
background: white;
}
.box_wrapper {
box-sizing: border-box;
padding: 32rpx 60rpx 80rpx 40rpx;
}
.box_title {
font-size: 28rpx;
font-weight: 600;
color: #333333;
margin-bottom: 24rpx;
}
.row_time_line {
display: flex;
align-items: center;
}
.row_icon {
width: 32rpx;
height: 32rpx;
background: rgba(138, 48, 58, 0.08);
border-radius: 50%;
box-sizing: border-box;
padding: 6rpx;
}
.row_icon>.mini {
width: 100%;
height: 100%;
background: #8A303A;
border-radius: 50%;
}
.row_text {
font-size: 32rpx;
font-weight: 500;
color: #8A303A;
padding-left: 30rpx;
}
.col_line {
padding: 6rpx 0;
height: 60rpx;
background: #8A303A;
width: 2rpx;
margin-left: 16rpx;
}
.row_pannel {
margin-left: 32rpx;
margin-top: 22rpx;
}
.box_wrapper_two {
display: flex;
flex-direction: column;
align-items: center;
padding-top: 60rpx;
}
.box_tip {
font-size: 28rpx;
font-weight: 400;
color: #666666;
margin-top: 20rpx;
margin-bottom: 28rpx;
}
.box_btn_wrap {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.btn_item {
width: 231rpx;
height: 56rpx;
background: rgba(138, 48, 58, 0.08);
border-radius: 140rpx;
border: 2rpx solid #8A303A;
font-size: 24rpx;
font-weight: 400;
color: #8A303A;
display: flex;
align-items: center;
justify-content: center;
}
.grey {
background: #E9E9E9;
}
.grey_color {
color: #666666;
}
.driver {
width: 100%;
height: 12rpx;
background: #F4F4F4;
}
.leftBtn {
margin-left: 16rpx;
border: 2rpx solid #E9E9E9;
background: white;
color: #666666;
}
\ No newline at end of file \ No newline at end of file
page {
background: white;
}
.box_wrapper {
box-sizing: border-box;
padding: 32rpx 60rpx 80rpx 40rpx;
}
.box_title {
font-size: 28rpx;
font-weight: 600;
color: #333333;
margin-bottom: 24rpx;
}
.row_time_line {
display: flex;
align-items: center;
}
.row_icon {
width: 32rpx;
height: 32rpx;
background: rgba(0, 143, 255, 0.2);
border-radius: 50%;
box-sizing: border-box;
padding: 6rpx;
}
.row_icon>.mini {
width: 100%;
height: 100%;
background: #008FFF;
border-radius: 50%;
}
.row_text {
font-size: 32rpx;
font-weight: 500;
color: #008FFF;
padding-left: 30rpx;
}
.col_line {
padding: 6rpx 0;
height: 60rpx;
background: #008FFF;
width: 2rpx;
margin-left: 16rpx;
}
.row_pannel {
margin-left: 32rpx;
margin-top: 22rpx;
}
.box_wrapper_two {
display: flex;
flex-direction: column;
align-items: center;
padding-top: 60rpx;
}
.box_tip {
font-size: 28rpx;
font-weight: 400;
color: #666666;
margin-top: 20rpx;
margin-bottom: 28rpx;
}
.box_btn_wrap {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.btn_item {
width: 231rpx;
height: 56rpx;
background: rgba(0, 143, 255, 0.08);
border-radius: 140rpx;
border: 2rpx solid #008FFF;
font-size: 24rpx;
font-weight: 400;
color: #008FFF;
display: flex;
align-items: center;
justify-content: center;
}
.grey {
background: #E9E9E9;
}
.grey_color {
color: #666666;
}
.driver {
width: 100%;
height: 12rpx;
background: #F4F4F4;
}
.leftBtn {
margin-left: 16rpx;
border: 2rpx solid #E9E9E9;
background: white;
color: #666666;
}
\ No newline at end of file \ No newline at end of file
/* packageEquity/pages/commodity/charge/charge.wxss */
\ No newline at end of file \ No newline at end of file
page {
background: white;
}
.charge-container-page {
box-sizing: border-box;
padding: 32rpx;
}
\ No newline at end of file \ No newline at end of file
page {
background: white;
}
.charge-container-page {
box-sizing: border-box;
padding: 32rpx;
}
\ No newline at end of file \ No newline at end of file
...@@ -240,7 +240,6 @@ Page({ ...@@ -240,7 +240,6 @@ Page({
}) })
}, },
onLoad(options) { onLoad(options) {
console.log(wx.p);
const query = options ? JSON.parse(decodeURIComponent(options.param)) : this.data.query const query = options ? JSON.parse(decodeURIComponent(options.param)) : this.data.query
this.getChargeDetail(query,options) this.getChargeDetail(query,options)
this.setNaviTitle(query.brandName) this.setNaviTitle(query.brandName)
......
/* packageEquity/pages/commodity/chargeDetail/chargeDetail.wxss */
\ No newline at end of file \ No newline at end of file
/* pages/changeDetail/changeDetail.wxss */
page{
background: white;
}
.detail_container{
padding-bottom: 100rpx;
}
.account_area {
padding: 34rpx 40rpx 20rpx;
display: flex;
align-items: center;
}
.account_area image {
width: 92rpx;
height: 92rpx;
border-radius: 50%;
box-shadow: 0 23rpx 18rpx 0 rgba(0, 0, 0, 0.2);
}
.account_area .account_input {
flex: 1;
margin-left: 20rpx;
width: 100%;
position: relative;
}
.account_input input {
margin-top: 20rpx;
font-size: 36rpx;
font-family: PingFangSC-Regular, PingFang SC;
}
.account_input .line {
position: absolute;
height: 2rpx;
width: 100%;
background-color: #DEDEDE;
top: calc(100% + 20rpx);
}
.member_area {
margin-top: 82rpx;
}
.title {
width: 112rpx;
height: 40rpx;
font-size: 28rpx;
font-weight: 500;
color: #282829;
line-height: 40rpx;
}
.member_area .member_type {
margin-top: 20rpx;
flex-wrap: nowrap;
flex-direction: row;
white-space: nowrap;
/* box-shadow: 0 -3px 3px rgba(0, 0, 0, 0.1) inset; */
box-shadow: 0px -8rpx 8rpx 0rpx rgba(0,0,0,0.04) inset;
}
.member-box{
height: 95rpx;
display: flex;
align-items: flex-end;
}
.member_type_item {
height: 80rpx;
width: 188rpx;
display: inline-flex;
align-items: center;
justify-content: center;
white-space: nowrap;
font-size: 28rpx;
color: #B1B1B3;
background-color: #F2F2F2;
}
.activeNav{
color: #8A303A;
background-color: #fff;
height:90rpx;
box-shadow: 0px -4rpx 16rpx 0px rgba(0,0,0,0.04);
}
.type_name{
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
}
.sale_area{
padding: 44rpx 40rpx;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-column-gap: 20rpx;
grid-row-gap: 44rpx;
}
.sale_item{
height: 260rpx;
background: #FFFFFF;
border-radius: 8rpx;
box-shadow: 0 2rpx 12rpx 0 rgba(0, 0, 0, 0.1);
border: 2rpx solid #FFFFFF;
padding: 34rpx 0 32rpx;
box-sizing: border-box;
display: flex;
flex-direction: column;
align-items: center;
position: relative;
}
.sale_item .isMember{
position: absolute;
right: -10rpx;
top: 0;
transform: translateY(-50%);
z-index: 2;
width: 88rpx;
height: 30rpx;
line-height: 30rpx;
text-align: center;
border-radius: 40rpx 40rpx 40rpx 20rpx;
background-color: #B1B1B3;
font-size: 16rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #fff;
}
.sale_item .month{
width: 186rpx;
height: 44rpx;
font-size: 32rpx;
background: #F2F2F2;
border-radius: 22rpx;
line-height: 44rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #B1B1B3;
text-align: center;
}
.sale_item .price{
font-size: 40rpx;
font-weight: 500;
color: #656566;
line-height: 56rpx;
margin: 6rpx 0 18rpx;
display: inline-block;
height: 56rpx;
}
.sale_item .discount{
height: 34rpx;
border: 1rpx solid #8A303A;
font-size: 22rpx;
color: #8A303A;
line-height: 34rpx;
padding: 0 8rpx;
margin-bottom: 4rpx;
}
.sale_item .authority_price{
height: 32rpx;
font-size: 22rpx;
color: #B1B1B3;
line-height: 32rpx;
white-space: nowrap;
}
.selected_sale_item{
border: 2rpx solid #8A303A;
box-shadow: 0 4rpx 16rpx 0 rgba(252, 91, 50, 0.2);
}
.selected_sale_item .month{
background: rgba(252, 91, 50, 0.1);
color: #8A303A;
}
.selected_sale_item .price{
color: #8A303A;
}
.selected_sale_item .isMember{
background-color: #8A303A;
}
/* 温馨提示 */
.tip {
padding: 0 40rpx;
}
.rich_text{
word-break: break-all;
white-space:pre-wrap;
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
color: #656566;
line-height: 44rpx;
}
.rich_text a{
color: #8A303A;
}
/* 按钮区域 */
.buy_bar{
position: fixed;
box-sizing: border-box;
background-color: #fff;
/* padding: 10rpx 30rpx; */
padding: 0 32rpx 0 90rpx;
height: 100rpx;
left: 0;
right: 0;
bottom: 0;
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
.coupon{
height: 100%;
width: 80rpx;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
margin-right: 20rpx;
}
.coupon image{
width: 40rpx;
height: 40rpx;
}
.coupon text{
height: 28rpx;
font-size: 20rpx;
color: #282829;
line-height: 28rpx;
}
.buy_btn{
width: 468rpx;
height: 80rpx;
background: #8A303A;
border-radius: 200rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 28rpx;
font-weight: 600;
color: #FFFFFF;
}
.overlay {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, .7);
z-index: 999;
}
.overlay_boxs {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.box_body {
width: 72%;
height: 612rpx;
display: flex;
flex-direction: column;
align-items: center;
}
.boxs_icon {
width: 288rpx;
height: 60rpx;
margin: 0 auto;
}
.boxs_content {
border-radius: 8rpx;
height: 438rpx;
position: relative;
width: 100%;
}
.box_title {
position: absolute;
left: 50%;
top: 0;
transform: translate(-50%, 0);
height: 56rpx;
width: 320rpx;
background-image: linear-gradient(142deg, #ffead1 0%, #e6bb8a 100%);
border-radius: 36rpx;
z-index: 1;
text-align: center;
line-height: 56rpx;
}
.box_title_text::before {
content: "";
position: absolute;
top: 50%;
left: -70%;
transform: translate(0, -50%);
width: 62rpx;
height: 2rpx;
background: #683800;
}
.box_title_text {
color: #683800;
font-size: 28rpx;
position: relative;
}
.box_title_text::after {
content: "";
position: absolute;
top: 50%;
right: -70%;
transform: translate(0, -50%);
width: 62rpx;
height: 2rpx;
background: #683800;
}
.box_container {
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 410rpx;
background: #ffffff;
width: 100%;
border-radius: 8px;
}
.box_content_text {
width: 100%;
box-sizing: border-box;
padding: 68rpx 48rpx 40rpx 48rpx;
font-size: 28rpx;
color: #606060;
/* line-height: 56rpx; */
text-align: center;
}
.info_tip{
color: #666666;
font-size: 24rpx;
margin-top: 34rpx;
}
.info_num{
color: #8A303A;
font-size: 28rpx;
font-weight: 500;
margin-top: 4px;
}
.info_line{
width: calc(100% - 48rpx);
height: 2rpx;
background: rgba(0, 0, 0, 0.1);
margin: 0 auto;
margin-bottom: 24rpx;
}
.info_diff{
color: #333;
font-size: 28rpx;
text-align: center;
}
.info_open_btn{
color: #19c34e;
font-size: 24rpx;
text-decoration: underline;
margin-top: 6rpx;
text-align: center;
}
.box_btn_groups {
position: absolute;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 88rpx;
display: flex;
border-top: 2px solid #e5e5e5;
}
.btn_wrap {
text-align: center;
line-height: 88rpx;
color: #333333;
font-size: 28rpx;
width: 50%;
}
.dr_line {
position: absolute;
left: 50%;
top: 0;
bottom: 0;
width: 1px;
transform: translate(-50%, 0);
background: #e5e5e5;
}
.spc_text {
color: #8A303A;
}
.bottom_modal {
position: absolute;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 80%;
background: white;
display: flex;
flex-direction: column;
}
.bottom_title_wrapper {
position: absolute;
left: 0;
right: 0;
top: 0;
width: 100%;
height: 88rpx;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
padding: 0 40rpx;
background: white;
z-index: 1000;
}
.title_label {
font-size: 32rpx;
color: #282829;
}
.bottom_scoll_wrap {
width: 100%;
height: calc(100% - 196rpx);
overflow: hidden;
overflow-y: scroll;
box-sizing: border-box;
padding: 20rpx;
}
.bottem_item_width {
width: 224rpx;
}
.bottem_item_title_height {
height: 98rpx;
}
/* 优惠券 */
.coupons_widget{
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
padding: 0 40rpx;
margin-top: 16rpx;
margin-bottom: 32rpx;
}
.coupons_widget > .left_wrap{
display: flex;
align-items: center;
}
.coupons_widget > .left_wrap >.logo{
width: 40rpx;
height: 40rpx;
margin-right: 8rpx;
}
.coupons_widget > .left_wrap >.text{
font-weight: 400;
font-size: 28rpx;
color: #333333;
}
.right_Wrap{
display: flex;
align-items: center;
}
.price_text{
font-weight: 400;
font-size: 28rpx;
color: #F10016;
}
.right_Wrap_icon{
width: 14rpx;
height: 28rpx;
margin-left: 8rpx;
}
\ No newline at end of file \ No newline at end of file
/* pages/changeDetail/changeDetail.wxss */
page{
background: white;
}
.detail_container{
padding-bottom: 100rpx;
}
.account_area {
padding: 34rpx 40rpx 20rpx;
display: flex;
align-items: center;
}
.account_area image {
width: 92rpx;
height: 92rpx;
border-radius: 50%;
box-shadow: 0 23rpx 18rpx 0 rgba(0, 0, 0, 0.2);
}
.account_area .account_input {
flex: 1;
margin-left: 20rpx;
width: 100%;
position: relative;
}
.account_input input {
margin-top: 20rpx;
font-size: 36rpx;
font-family: PingFangSC-Regular, PingFang SC;
}
.account_input .line {
position: absolute;
height: 2rpx;
width: 100%;
background-color: #DEDEDE;
top: calc(100% + 20rpx);
}
.member_area {
margin-top: 82rpx;
}
.title {
width: 112rpx;
height: 40rpx;
font-size: 28rpx;
font-weight: 500;
color: #282829;
line-height: 40rpx;
}
.member_area .member_type {
margin-top: 20rpx;
flex-wrap: nowrap;
flex-direction: row;
white-space: nowrap;
/* box-shadow: 0 -3px 3px rgba(0, 0, 0, 0.1) inset; */
box-shadow: 0px -8rpx 8rpx 0rpx rgba(0,0,0,0.04) inset;
}
.member-box{
height: 95rpx;
display: flex;
align-items: flex-end;
}
.member_type_item {
height: 80rpx;
width: 188rpx;
display: inline-flex;
align-items: center;
justify-content: center;
white-space: nowrap;
font-size: 28rpx;
color: #B1B1B3;
background-color: #F2F2F2;
}
.activeNav{
color: #8A303A;
background-color: #fff;
height:90rpx;
box-shadow: 0px -4rpx 16rpx 0px rgba(0,0,0,0.04);
}
.type_name{
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
}
.sale_area{
padding: 44rpx 40rpx;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-column-gap: 20rpx;
grid-row-gap: 44rpx;
}
.sale_item{
height: 260rpx;
background: #FFFFFF;
border-radius: 8rpx;
box-shadow: 0 2rpx 12rpx 0 rgba(0, 0, 0, 0.1);
border: 2rpx solid #FFFFFF;
padding: 34rpx 0 32rpx;
box-sizing: border-box;
display: flex;
flex-direction: column;
align-items: center;
position: relative;
}
.sale_item .isMember{
position: absolute;
right: -10rpx;
top: 0;
transform: translateY(-50%);
z-index: 2;
width: 88rpx;
height: 30rpx;
line-height: 30rpx;
text-align: center;
border-radius: 40rpx 40rpx 40rpx 20rpx;
background-color: #B1B1B3;
font-size: 16rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #fff;
}
.sale_item .month{
width: 186rpx;
height: 44rpx;
font-size: 32rpx;
background: #F2F2F2;
border-radius: 22rpx;
line-height: 44rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #B1B1B3;
text-align: center;
}
.sale_item .price{
font-size: 40rpx;
font-weight: 500;
color: #656566;
line-height: 56rpx;
margin: 6rpx 0 18rpx;
display: inline-block;
height: 56rpx;
}
.sale_item .discount{
height: 34rpx;
border: 1rpx solid #8A303A;
font-size: 22rpx;
color: #8A303A;
line-height: 34rpx;
padding: 0 8rpx;
margin-bottom: 4rpx;
}
.sale_item .authority_price{
height: 32rpx;
font-size: 22rpx;
color: #B1B1B3;
line-height: 32rpx;
white-space: nowrap;
}
.selected_sale_item{
border: 2rpx solid #8A303A;
box-shadow: 0 4rpx 16rpx 0 rgba(252, 91, 50, 0.2);
}
.selected_sale_item .month{
background: rgba(252, 91, 50, 0.1);
color: #8A303A;
}
.selected_sale_item .price{
color: #8A303A;
}
.selected_sale_item .isMember{
background-color: #8A303A;
}
/* 温馨提示 */
.tip {
padding: 0 40rpx;
}
.rich_text{
word-break: break-all;
white-space:pre-wrap;
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
color: #656566;
line-height: 44rpx;
}
.rich_text a{
color: #8A303A;
}
/* 按钮区域 */
.buy_bar{
position: fixed;
box-sizing: border-box;
background-color: #fff;
/* padding: 10rpx 30rpx; */
padding: 0 32rpx 0 90rpx;
height: 100rpx;
left: 0;
right: 0;
bottom: 0;
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
.coupon{
height: 100%;
width: 80rpx;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
margin-right: 20rpx;
}
.coupon image{
width: 40rpx;
height: 40rpx;
}
.coupon text{
height: 28rpx;
font-size: 20rpx;
color: #282829;
line-height: 28rpx;
}
.buy_btn{
width: 468rpx;
height: 80rpx;
background: #8A303A;
border-radius: 200rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 28rpx;
font-weight: 600;
color: #FFFFFF;
}
.overlay {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, .7);
z-index: 999;
}
.overlay_boxs {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.box_body {
width: 72%;
height: 612rpx;
display: flex;
flex-direction: column;
align-items: center;
}
.boxs_icon {
width: 288rpx;
height: 60rpx;
margin: 0 auto;
}
.boxs_content {
border-radius: 8rpx;
height: 438rpx;
position: relative;
width: 100%;
}
.box_title {
position: absolute;
left: 50%;
top: 0;
transform: translate(-50%, 0);
height: 56rpx;
width: 320rpx;
background-image: linear-gradient(142deg, #ffead1 0%, #e6bb8a 100%);
border-radius: 36rpx;
z-index: 1;
text-align: center;
line-height: 56rpx;
}
.box_title_text::before {
content: "";
position: absolute;
top: 50%;
left: -70%;
transform: translate(0, -50%);
width: 62rpx;
height: 2rpx;
background: #683800;
}
.box_title_text {
color: #683800;
font-size: 28rpx;
position: relative;
}
.box_title_text::after {
content: "";
position: absolute;
top: 50%;
right: -70%;
transform: translate(0, -50%);
width: 62rpx;
height: 2rpx;
background: #683800;
}
.box_container {
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 410rpx;
background: #ffffff;
width: 100%;
border-radius: 8px;
}
.box_content_text {
width: 100%;
box-sizing: border-box;
padding: 68rpx 48rpx 40rpx 48rpx;
font-size: 28rpx;
color: #606060;
/* line-height: 56rpx; */
text-align: center;
}
.info_tip{
color: #666666;
font-size: 24rpx;
margin-top: 34rpx;
}
.info_num{
color: #8A303A;
font-size: 28rpx;
font-weight: 500;
margin-top: 4px;
}
.info_line{
width: calc(100% - 48rpx);
height: 2rpx;
background: rgba(0, 0, 0, 0.1);
margin: 0 auto;
margin-bottom: 24rpx;
}
.info_diff{
color: #333;
font-size: 28rpx;
text-align: center;
}
.info_open_btn{
color: #19c34e;
font-size: 24rpx;
text-decoration: underline;
margin-top: 6rpx;
text-align: center;
}
.box_btn_groups {
position: absolute;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 88rpx;
display: flex;
border-top: 2px solid #e5e5e5;
}
.btn_wrap {
text-align: center;
line-height: 88rpx;
color: #333333;
font-size: 28rpx;
width: 50%;
}
.dr_line {
position: absolute;
left: 50%;
top: 0;
bottom: 0;
width: 1px;
transform: translate(-50%, 0);
background: #e5e5e5;
}
.spc_text {
color: #8A303A;
}
.bottom_modal {
position: absolute;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 80%;
background: white;
display: flex;
flex-direction: column;
}
.bottom_title_wrapper {
position: absolute;
left: 0;
right: 0;
top: 0;
width: 100%;
height: 88rpx;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
padding: 0 40rpx;
background: white;
z-index: 1000;
}
.title_label {
font-size: 32rpx;
color: #282829;
}
.bottom_scoll_wrap {
width: 100%;
height: calc(100% - 196rpx);
overflow: hidden;
overflow-y: scroll;
box-sizing: border-box;
padding: 20rpx;
}
.bottem_item_width {
width: 224rpx;
}
.bottem_item_title_height {
height: 98rpx;
}
/* 优惠券 */
.coupons_widget{
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
padding: 0 40rpx;
margin-top: 16rpx;
margin-bottom: 32rpx;
}
.coupons_widget > .left_wrap{
display: flex;
align-items: center;
}
.coupons_widget > .left_wrap >.logo{
width: 40rpx;
height: 40rpx;
margin-right: 8rpx;
}
.coupons_widget > .left_wrap >.text{
font-weight: 400;
font-size: 28rpx;
color: #333333;
}
.right_Wrap{
display: flex;
align-items: center;
}
.price_text{
font-weight: 400;
font-size: 28rpx;
color: #F10016;
}
.right_Wrap_icon{
width: 14rpx;
height: 28rpx;
margin-left: 8rpx;
}
\ No newline at end of file \ No newline at end of file
/* packageEquity/pages/commodity/detail/detail.wxss */
\ No newline at end of file \ No newline at end of file
page {
background: white;
}
.goods_scroll_wrapper {
padding: 46rpx 0 40rpx 40rpx;
position: relative;
overflow: hidden;
white-space: nowrap;
}
.scroll_element {
width: 288rpx;
height: 380rpx;
border-radius: 16rpx;
border: 2rpx solid #FFFFFF;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
margin-right: 10rpx;
display: inline-block;
position: relative;
vertical-align: top;
}
.image_icon_wrapper {
position: relative;
}
.image_icon {
width: 288rpx;
height: 178rpx;
border-radius: 16rpx 16rpx 0 0;
}
.image_vip {
position: absolute;
right: 0rpx;
top: 0rpx;
width: 120rpx;
height: 28rpx;
}
.vip_text {
position: absolute;
right: 16rpx;
top: 0rpx;
z-index: 3;
font-size: 20rpx;
font-weight: 500;
color: #FFFFFF;
}
.element_title {
box-sizing: border-box;
padding: 18rpx 14rpx 0 18rpx;
min-height: 88rpx;
font-size: 32rpx;
font-weight: 400;
color: #999999;
line-height: 44rpx;
white-space: pre-wrap;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
}
.element_sale_price {
box-sizing: border-box;
padding: 10rpx 0 0 18rpx;
display: flex;
font-size: 40rpx;
font-weight: 600;
color: #999999;
line-height: 56rpx;
/* align-items: flex-end; */
}
.price_min_icon {
font-size: 24rpx;
font-weight: 400;
line-height: 60rpx;
margin-right: 6rpx;
}
.element_o_price {
font-size: 24rpx;
font-weight: 400;
line-height: 34rpx;
text-decoration: line-through;
box-sizing: border-box;
/* padding: 0 0 0 18rpx; */
color: #999999;
position: absolute;
left: 18rpx;
bottom: 4rpx;
}
.scroll_element_active {
box-shadow: 0px 4rpx 8rpx 0px #ffebe6;
border: 2rpx solid #8A303A;
}
.selected {
color: #8A303A;
}
.selected1 {
color: #282829;
font-size: 500;
}
.flex_cc {
display: flex;
align-items: center;
justify-content: center;
}
.more_btn {
width: 80rpx;
height: 348rpx;
background: rgba(228, 228, 228, 0.95);
border-radius: 12rpx;
position: absolute;
right: 0;
top: 56rpx;
font-size: 28rpx;
font-weight: 600;
color: #666666;
line-height: 40rpx;
flex-direction: column;
}
.roate {
width: 0;
height: 0;
border-right: 10rpx solid transparent;
border-left: 10rpx solid transparent;
border-top: 10rpx solid #666666;
margin-top: 20rpx;
}
.goods_desc_wrapper {
box-sizing: border-box;
padding: 0 40rpx;
}
.line_wrapper {
border-bottom: 2rpx solid #DEDEDE;
padding: 28rpx 0;
display: flex;
align-items: center;
justify-content: space-between;
}
.line_label {
font-size: 28rpx;
font-weight: 500;
color: #282829;
line-height: 40rpx;
display: flex;
align-items: center;
}
.line_label > .logo{
width: 40rpx;
height: 40rpx;
margin-right: 8rpx;
}
.line_tip {
font-size: 24rpx;
font-weight: 400;
color: #717171;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
margin-left: 16rpx;
width: 350rpx;
}
.line_con {
font-size: 24rpx;
font-weight: 400;
color: #656566;
}
.line_con > .logo {
width: 16rpx;
height: 24rpx;
margin-left: 8rpx;
}
.line_icon {
width: 40rpx;
height: 40rpx;
margin-left: 10rpx;
}
.class1 {
font-size: 28rpx;
font-weight: 400;
color: #666666;
}
.class2 {
font-size: 28rpx;
font-weight: 400;
color: #8A303A;
}
.class3 {
display: flex;
align-items: center;
font-size: 28rpx;
font-weight: 400;
color: #666666;
}
.class4 {
color: #8A303A;
font-weight: 500;
}
.class5{
font-weight: 400;
color: #8A303A;
}
.class6{
font-weight: 600;
font-size: 40rpx;
color: #8A303A;
}
.rich_title {
margin-top: 30rpx;
padding-left: 40rpx;
display: flex;
align-items: center;
margin-bottom: 18rpx;
}
.title_icon {
width: 6rpx;
height: 32rpx;
background: #8A303A;
}
.title_text {
font-size: 32rpx;
font-weight: 600;
color: #282829;
margin-left: 16rpx;
}
.rich_wrapper {
padding: 0 40rpx;
}
.rich_text {
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #282829 !important;
line-height: 44rpx;
background: white !important;
}
.fixed_btn {
position: fixed;
left: 0;
right: 0;
bottom: 0;
min-height: 100rpx;
display: flex;
align-items: center;
justify-content: space-between;
background: white;
box-sizing: border-box;
padding: 0 32rpx 0 90rpx;
}
.buy_btn {
width: 468rpx;
height: 80rpx;
background: #8A303A;
border-radius: 200rpx;
font-size: 28rpx;
font-weight: 600;
color: #FFFFFF;
}
.icon_text {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.card_icon {
width: 52rpx;
height: 52rpx;
}
.card_text {
font-size: 24rpx;
font-weight: 400;
color: #666666;
line-height: 34rpx;
}
.disableBtn {
background-color: #999 !important;
}
.noStorck {
padding: 28rpx 0;
font-size: 32rpx;
font-weight: 600;
color: #8A303A;
background: rgba(252, 91, 50, 0.2);
}
.overlay {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, .7);
z-index: 999;
}
.overlay_boxs {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.box_body {
width: 72%;
height: 612rpx;
display: flex;
flex-direction: column;
align-items: center;
}
.boxs_icon {
width: 288rpx;
height: 60rpx;
margin: 0 auto;
}
.boxs_content {
border-radius: 8rpx;
height: 438rpx;
position: relative;
width: 100%;
}
.box_title {
position: absolute;
left: 50%;
top: 0;
transform: translate(-50%, 0);
height: 56rpx;
width: 320rpx;
background-image: linear-gradient(142deg, #ffead1 0%, #e6bb8a 100%);
border-radius: 36rpx;
z-index: 1;
text-align: center;
line-height: 56rpx;
}
.box_title_text::before {
content: "";
position: absolute;
top: 50%;
left: -70%;
transform: translate(0, -50%);
width: 62rpx;
height: 2rpx;
background: #683800;
}
.box_title_text {
color: #683800;
font-size: 28rpx;
position: relative;
}
.box_title_text::after {
content: "";
position: absolute;
top: 50%;
right: -70%;
transform: translate(0, -50%);
width: 62rpx;
height: 2rpx;
background: #683800;
}
.box_container {
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 410rpx;
background: #ffffff;
width: 100%;
border-radius: 8px;
}
.box_content_text {
width: 100%;
box-sizing: border-box;
padding: 68rpx 48rpx 40rpx 48rpx;
font-size: 28rpx;
color: #606060;
line-height: 56rpx;
}
.info_diff{
color: #333;
font-size: 28rpx;
text-align: center;
text-align: center;
}
.info_open_btn{
color: #19c34e;
font-size: 24rpx;
text-decoration: underline;
margin-top: 6rpx;
text-align: center;
}
.box_btn_groups {
position: absolute;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 88rpx;
display: flex;
border-top: 2px solid #e5e5e5;
}
.btn_wrap {
text-align: center;
line-height: 88rpx;
color: #333333;
font-size: 28rpx;
width: 50%;
}
.dr_line {
position: absolute;
left: 50%;
top: 0;
bottom: 0;
width: 1px;
transform: translate(-50%, 0);
background: #e5e5e5;
}
.spc_text {
color: #8A303A;
}
.bottom_modal {
position: absolute;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 80%;
background: white;
display: flex;
flex-direction: column;
}
.bottom_title_wrapper {
position: absolute;
left: 0;
right: 0;
top: 0;
width: 100%;
height: 88rpx;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
padding: 0 40rpx;
background: white;
z-index: 1000;
}
.title_label {
font-size: 32rpx;
color: #282829;
}
.bottom_scoll_wrap {
width: 100%;
height: calc(100% - 19rpx);
overflow: hidden;
overflow-y: scroll;
box-sizing: border-box;
padding: 20rpx;
}
.bottem_item_width {
width: 224rpx;
}
.bottem_item_title_height {
height: 98rpx;
}
.check_icon_sty {
width: 36rpx;
height: 36rpx;
position: absolute;
right: 20rpx;
bottom: 20rpx;
}
.check_icon_sty_max {
position: absolute;
right: 20rpx;
bottom: 45rpx;
}
\ No newline at end of file \ No newline at end of file
page {
background: white;
}
.goods_scroll_wrapper {
padding: 46rpx 0 40rpx 40rpx;
position: relative;
overflow: hidden;
white-space: nowrap;
}
.scroll_element {
width: 288rpx;
height: 380rpx;
border-radius: 16rpx;
border: 2rpx solid #FFFFFF;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
margin-right: 10rpx;
display: inline-block;
position: relative;
vertical-align: top;
}
.image_icon_wrapper {
position: relative;
}
.image_icon {
width: 288rpx;
height: 178rpx;
border-radius: 16rpx 16rpx 0 0;
}
.image_vip {
position: absolute;
right: 0rpx;
top: 0rpx;
width: 120rpx;
height: 28rpx;
}
.vip_text {
position: absolute;
right: 16rpx;
top: 0rpx;
z-index: 3;
font-size: 20rpx;
font-weight: 500;
color: #FFFFFF;
}
.element_title {
box-sizing: border-box;
padding: 18rpx 14rpx 0 18rpx;
min-height: 88rpx;
font-size: 32rpx;
font-weight: 400;
color: #999999;
line-height: 44rpx;
white-space: pre-wrap;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
}
.element_sale_price {
box-sizing: border-box;
padding: 10rpx 0 0 18rpx;
display: flex;
font-size: 40rpx;
font-weight: 600;
color: #999999;
line-height: 56rpx;
/* align-items: flex-end; */
}
.price_min_icon {
font-size: 24rpx;
font-weight: 400;
line-height: 60rpx;
margin-right: 6rpx;
}
.element_o_price {
font-size: 24rpx;
font-weight: 400;
line-height: 34rpx;
text-decoration: line-through;
box-sizing: border-box;
/* padding: 0 0 0 18rpx; */
color: #999999;
position: absolute;
left: 18rpx;
bottom: 4rpx;
}
.scroll_element_active {
box-shadow: 0px 4rpx 8rpx 0px #ffebe6;
border: 2rpx solid #8A303A;
}
.selected {
color: #8A303A;
}
.selected1 {
color: #282829;
font-size: 500;
}
.flex_cc {
display: flex;
align-items: center;
justify-content: center;
}
.more_btn {
width: 80rpx;
height: 348rpx;
background: rgba(228, 228, 228, 0.95);
border-radius: 12rpx;
position: absolute;
right: 0;
top: 56rpx;
font-size: 28rpx;
font-weight: 600;
color: #666666;
line-height: 40rpx;
flex-direction: column;
}
.roate {
width: 0;
height: 0;
border-right: 10rpx solid transparent;
border-left: 10rpx solid transparent;
border-top: 10rpx solid #666666;
margin-top: 20rpx;
}
.goods_desc_wrapper {
box-sizing: border-box;
padding: 0 40rpx;
}
.line_wrapper {
border-bottom: 2rpx solid #DEDEDE;
padding: 28rpx 0;
display: flex;
align-items: center;
justify-content: space-between;
}
.line_label {
font-size: 28rpx;
font-weight: 500;
color: #282829;
line-height: 40rpx;
display: flex;
align-items: center;
}
.line_label > .logo{
width: 40rpx;
height: 40rpx;
margin-right: 8rpx;
}
.line_tip {
font-size: 24rpx;
font-weight: 400;
color: #717171;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
margin-left: 16rpx;
width: 350rpx;
}
.line_con {
font-size: 24rpx;
font-weight: 400;
color: #656566;
}
.line_con > .logo {
width: 16rpx;
height: 24rpx;
margin-left: 8rpx;
}
.line_icon {
width: 40rpx;
height: 40rpx;
margin-left: 10rpx;
}
.class1 {
font-size: 28rpx;
font-weight: 400;
color: #666666;
}
.class2 {
font-size: 28rpx;
font-weight: 400;
color: #8A303A;
}
.class3 {
display: flex;
align-items: center;
font-size: 28rpx;
font-weight: 400;
color: #666666;
}
.class4 {
color: #8A303A;
font-weight: 500;
}
.class5{
font-weight: 400;
color: #8A303A;
}
.class6{
font-weight: 600;
font-size: 40rpx;
color: #8A303A;
}
.rich_title {
margin-top: 30rpx;
padding-left: 40rpx;
display: flex;
align-items: center;
margin-bottom: 18rpx;
}
.title_icon {
width: 6rpx;
height: 32rpx;
background: #8A303A;
}
.title_text {
font-size: 32rpx;
font-weight: 600;
color: #282829;
margin-left: 16rpx;
}
.rich_wrapper {
padding: 0 40rpx;
}
.rich_text {
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #282829 !important;
line-height: 44rpx;
background: white !important;
}
.fixed_btn {
position: fixed;
left: 0;
right: 0;
bottom: 0;
min-height: 100rpx;
display: flex;
align-items: center;
justify-content: space-between;
background: white;
box-sizing: border-box;
padding: 0 32rpx 0 90rpx;
}
.buy_btn {
width: 468rpx;
height: 80rpx;
background: #8A303A;
border-radius: 200rpx;
font-size: 28rpx;
font-weight: 600;
color: #FFFFFF;
}
.icon_text {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.card_icon {
width: 52rpx;
height: 52rpx;
}
.card_text {
font-size: 24rpx;
font-weight: 400;
color: #666666;
line-height: 34rpx;
}
.disableBtn {
background-color: #999 !important;
}
.noStorck {
padding: 28rpx 0;
font-size: 32rpx;
font-weight: 600;
color: #8A303A;
background: rgba(252, 91, 50, 0.2);
}
.overlay {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, .7);
z-index: 999;
}
.overlay_boxs {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.box_body {
width: 72%;
height: 612rpx;
display: flex;
flex-direction: column;
align-items: center;
}
.boxs_icon {
width: 288rpx;
height: 60rpx;
margin: 0 auto;
}
.boxs_content {
border-radius: 8rpx;
height: 438rpx;
position: relative;
width: 100%;
}
.box_title {
position: absolute;
left: 50%;
top: 0;
transform: translate(-50%, 0);
height: 56rpx;
width: 320rpx;
background-image: linear-gradient(142deg, #ffead1 0%, #e6bb8a 100%);
border-radius: 36rpx;
z-index: 1;
text-align: center;
line-height: 56rpx;
}
.box_title_text::before {
content: "";
position: absolute;
top: 50%;
left: -70%;
transform: translate(0, -50%);
width: 62rpx;
height: 2rpx;
background: #683800;
}
.box_title_text {
color: #683800;
font-size: 28rpx;
position: relative;
}
.box_title_text::after {
content: "";
position: absolute;
top: 50%;
right: -70%;
transform: translate(0, -50%);
width: 62rpx;
height: 2rpx;
background: #683800;
}
.box_container {
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 410rpx;
background: #ffffff;
width: 100%;
border-radius: 8px;
}
.box_content_text {
width: 100%;
box-sizing: border-box;
padding: 68rpx 48rpx 40rpx 48rpx;
font-size: 28rpx;
color: #606060;
line-height: 56rpx;
}
.info_diff{
color: #333;
font-size: 28rpx;
text-align: center;
text-align: center;
}
.info_open_btn{
color: #19c34e;
font-size: 24rpx;
text-decoration: underline;
margin-top: 6rpx;
text-align: center;
}
.box_btn_groups {
position: absolute;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 88rpx;
display: flex;
border-top: 2px solid #e5e5e5;
}
.btn_wrap {
text-align: center;
line-height: 88rpx;
color: #333333;
font-size: 28rpx;
width: 50%;
}
.dr_line {
position: absolute;
left: 50%;
top: 0;
bottom: 0;
width: 1px;
transform: translate(-50%, 0);
background: #e5e5e5;
}
.spc_text {
color: #8A303A;
}
.bottom_modal {
position: absolute;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 80%;
background: white;
display: flex;
flex-direction: column;
}
.bottom_title_wrapper {
position: absolute;
left: 0;
right: 0;
top: 0;
width: 100%;
height: 88rpx;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
padding: 0 40rpx;
background: white;
z-index: 1000;
}
.title_label {
font-size: 32rpx;
color: #282829;
}
.bottom_scoll_wrap {
width: 100%;
height: calc(100% - 19rpx);
overflow: hidden;
overflow-y: scroll;
box-sizing: border-box;
padding: 20rpx;
}
.bottem_item_width {
width: 224rpx;
}
.bottem_item_title_height {
height: 98rpx;
}
.check_icon_sty {
width: 36rpx;
height: 36rpx;
position: absolute;
right: 20rpx;
bottom: 20rpx;
}
.check_icon_sty_max {
position: absolute;
right: 20rpx;
bottom: 45rpx;
}
\ No newline at end of file \ No newline at end of file
/* packageEquity/pages/commodity/list/list.wxss */
\ No newline at end of file \ No newline at end of file
page {
background: white;
}
.commodity-list-container {
box-sizing: border-box;
padding: 32rpx;
}
.reLocation_wrap {
width: 100%;
height: 240rpx;
}
.loca_icon {
width: 40rpx;
height: 48rpx;
}
.loca_text {
margin-left: 8rpx;
font-size: 24rpx;
color: #282828;
text-decoration: underline;
}
.flex_cc {
display: flex;
align-items: center;
justify-content: center;
}
\ No newline at end of file \ No newline at end of file
page {
background: white;
}
.commodity-list-container {
box-sizing: border-box;
padding: 32rpx;
}
.reLocation_wrap {
width: 100%;
height: 240rpx;
}
.loca_icon {
width: 40rpx;
height: 48rpx;
}
.loca_text {
margin-left: 8rpx;
font-size: 24rpx;
color: #282828;
text-decoration: underline;
}
.flex_cc {
display: flex;
align-items: center;
justify-content: center;
}
\ No newline at end of file \ No newline at end of file
...@@ -227,25 +227,9 @@ ...@@ -227,25 +227,9 @@
} }
} }
// .footer::before {
// content: '';
// left: 0;
// right: 0;
// width: 100%;
// border-radius: 50%;
// background: transparent;
// position: absolute;
// height: 48rpx;
// top: -24rpx;
// z-index: 999;
// box-shadow: 0 2rpx 198rpx 0 #eec9962e;
// }
.footer { .footer {
width: 580rpx; width: 580rpx;
height: 318rpx; height: 318rpx;
background: #353946;
box-shadow: 0 2rpx 40rpx 0 #eec9964a, 0 4rpx 4rpx 0 #00000080, inset 0 4rpx 12rpx 0 #717481;
border-radius: 0 0 0 32rpx 32rpx; border-radius: 0 0 0 32rpx 32rpx;
position: absolute; position: absolute;
left: 0; left: 0;
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</block> </block>
<view style="height: 120rpx;"></view> <view style="height: 120rpx;"></view>
</view> </view>
<view class="footer"> <view style="background: url({{IMGURL}}{{IMGURKBASE}}c_bag_g_icon.png);background-size: 100% 100%;" class="footer">
<view class="successText">恭喜您获得了三张优惠券!</view> <view class="successText">恭喜您获得了三张优惠券!</view>
<view class="look_btn">去查看</view> <view class="look_btn">去查看</view>
</view> </view>
......
Page({
data: {
freeDay: 0,
paddingH: 86,
textpadding: 508,
showAuthBtn: true
},
toPostFreeCard(merchantId, phone, userInfo) {
let para = {
merchantId,
phone
}
wx.p.api.couponsApi.tolqFreecard(para).then(res => {
wx.hideLoading()
const { errId, code, message } = res
if ((code == -1 && errId == 20313) || (code == -1 && errId == 20322)) {
wx.showModal({
title: '提示',
content: res.message,
confirmText: '确定',
showCancel: false,
confirmColor: '#F13C3D'
})
return
}
let bindInfo = {
code,
errId,
message,
data: {
sessionId: userInfo.sessionId
}
}
let temp = encodeURIComponent(JSON.stringify(bindInfo))
// //埋点
// let trackobj = {
// ...this.data.tempOptions,
// phone: para.phone
// }
// if (this.data.tempOptions) {
// wx.p.cache.storageApi.reportData(trackobj, false, true)
// }
wx.p.storage.set('bindInfo', temp)
// wx.p.router.reLaunch('/pages/tab/shopMall/index?tabIndex=1', { notIntercept: true })
wx.reLaunch({
url: '/pages/tab/equity/index',
});
})
},
toGetFreeCardDay(merchantId) {
wx.p.api.couponsApi
.getFreeCardDay({
merchantId
})
.then(res => {
if (res) {
this.setData({
freeDay: res.freeDay || 0
})
}
})
},
tofreeReceive() {
// if(this.op){
// wx.p.wxApi.showLoading()
// this.freeLogin()
// return
// }
let { loginInfo } = this.data
let { merchantId, phone } = loginInfo
if (!phone) {
return
}
wx.p.wxApi.showLoading()
this.toPostFreeCard(merchantId, phone, loginInfo)
},
login() {
wx.p.api.userApi.login().then(res => {
if (res.data) {
console.log(res.data)
let { phone, sessionId } = res.data
wx.p.authStatus = phone ? false : true
if (res.data.isLogin) {
wx.p.cache.storageApi.setUserInfo(res.data)
wx.p.cache.storageApi.setSessionId(res.data.sessionId)
// this.handlerCustomerId()
}
this.setData({
loginInfo: res.data,
showAuthBtn: phone ? false : true,
sessionId
})
}
})
},
getPhoneNumber({ detail }) {
const { sessionId } = this.data
if (!sessionId) return
wx.p.api.userApi.authUserPhone(detail, sessionId).then(({ data, code, message }) => {
wx.hideLoading()
if (code == '0') {
wx.p.authStatus = false
wx.p.cache.storageApi.setUserInfo(data)
wx.p.cache.storageApi.setSessionId(data.sessionId)
let { merchantId, phone } = data
this.toPostFreeCard(merchantId, phone, data)
// this.handlerCustomerId()
} else wx.p.wxApi.showToast(message)
})
},
onLoad(options) {
let system = wx.getSystemInfoSync()
const {merchantId} = wx.p.storage.get('merchant_info')
if (options && options.scene) {
this.getLiveActivityId(decodeURIComponent(options.scene))
} else {
this.toGetFreeCardDay(merchantId)
this.login()
}
this.setData({
paddingH: system.windowHeight * 0.11,
textpadding: system.windowHeight * 0.31
})
// 埋点---定保
// if (options.activity_id) {
// this.data.tempOptions = options
// wx.p.cache.storageApi.reportData(options, true, false)
// }
},
// 获取scene
getLiveActivityId(str) {
wx.p.api.shopmallApi
.getLiveActivityId({
id: str.split('=')[1]
})
.then(({ code, data }) => {
if (code == 0) {
let op = {}
data.scene.split('&').map(item => {
const [key, val] = item.split('=')
op[key] = val
})
if (op.merchantId) wx.p.storage.set('srcm_shopmall_merchant_id', op.merchantId)
if (op.openId) {
wx.setStorageSync('showServicesMerchantId', op.merchantId);
wx.p.eventbus.emit('SERVICES', true)
this.phone = op.phone
this.merchantId = op.merchantId
this.setData({
showAuthBtn: false,
})
this.op = op
} else {
this.login()
}
this.toGetFreeCardDay(op.merchantId)
}
})
},
// 客户id
// handlerCustomerId() {
// let customerId = wx.p.storage.get('srcm_shopmall_customer_id')
// if (customerId) wx.p.api.userApi.updataCustomerPhone()
// },
// freeLogin() {
// let op = this.op
// // wx.clearStorageSync();
// ssoApi.loginByOpenId({
// openId: op.openId
// }).then(({
// code,
// data,
// message
// }) => {
// wx.p.authStatus = code != 0
// if (code == '0') {
// wx.p.cache.storageApi.setUserInfo(data)
// wx.p.cache.storageApi.setSessionId(data.sessionId)
// wx.p.authStatus = false
// this.sessionId = data.sessionId
// this.toPostFreeCard(op.merchantId, op.phone, data)
// // wx.p.storage.set('srcm_shopmall_merchant_id', op.merchantId)
// // wx.setStorageSync('showServicesMerchantId', op.merchantId);
// // wx.p.eventbus.emit('SERVICES', true)
// // wx.p.storage.set('bindInfo', temp)
// // wx.p.router.reLaunch('/pages/tab/shopMall/index?tabIndex=1', { notIntercept: true })
// } else {
// wx.p.wxApi.showToast(message || '系统异常')
// }
// })
// },
onUnload: function () {
//wx.p.cache.storageApi.customerbehavior(2)
}
})
{
"navigationStyle": "custom"
}
\ No newline at end of file \ No newline at end of file
.freecard_container {
width: 100%;
height: 100vh;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
}
.bgIcon {
width: 100%;
height: 100%;
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
}
.wrapper1 {
box-sizing: border-box;
padding: 0 52rpx 0 54rpx;
width: 100%;
position: relative;
z-index: 100;
}
.wrapper2 {
box-sizing: border-box;
padding: 0 78rpx 0 96rpx;
position: absolute;
left: 0;
right: 0;
top: 238rpx;
width: 100%;
z-index: 100;
}
.auth-button {
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
opacity: 0;
z-index: 102;
}
.btnText {
position: absolute;
left: 50%;
bottom: 30rpx;
transform: translate(-50%, 0);
font-size: 44rpx;
font-weight: 600;
color: #FD6037;
letter-spacing: 2rpx;
z-index: 101;
}
.dayText {
font-size: 80rpx;
font-weight: 600;
color: #FFF8E4;
text-shadow: 0rpx 4rpx 8rpx #E3612C;
position: absolute;
left: 265rpx;
bottom: 70rpx;
display: flex;
align-items: center;
justify-content: center;
width: 180rpx;
}
.mintext {
font-size: 56rpx;
font-weight: 600;
color: #FFF8E4;
text-shadow: 0rpx 4rpx 8rpx #E3612C;
margin-left: 10rpx;
margin-top: 8rpx;
}
.bottomIcon {
width: 100%;
/* height: 414rpx; */
}
.animaiton {
animation: scaleDrew 2.5s infinite;
}
@keyframes scaleDrew {
/* 定义关键帧、scaleDrew是需要绑定到选择器的关键帧名称 */
0% {
transform: scale(1);
}
25% {
transform: scale(0.9);
}
50% {
transform: scale(1);
}
75% {
transform: scale(0.9);
}
}
\ No newline at end of file \ No newline at end of file
<view class="freecard_container" style="padding-bottom:{{paddingH}}rpx;box-sizing: border-box;">
<glsx-image webp class="bgIcon"src="equity/freecard_bg_icon.png" />
<view class="wrapper2" style="top:{{textpadding}}rpx">
<view class="dayText">
{{freeDay}}
<text class="mintext">天</text>
</view>
<glsx-image webp class="bottomIcon" mode="widthFix" src="equity/mini_new_freecard_icon_text.png" />
</view>
<view class="wrapper1">
<!-- <view class="btnText" bind:tap="tofreeReceive">免费领取</view> -->
<block wx:if="{{showAuthBtn}}">
<button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" class="auth-button"></button>
</block>
<glsx-image webp bind:tap="tofreeReceive" webp class="bottomIcon animaiton" mode="widthFix" src="equity/freecard_btn_icon_new.png" />
</view>
<view style="height:22rpx"></view>
<view class="wrapper1">
<glsx-image webp class="bottomIcon" webp mode="widthFix" src="equity/new_freecard_icon.png" />
</view>
</view>
<services/>
\ No newline at end of file \ No newline at end of file
import { equityApi } from '~/api/api'
Page({ Page({
data: {}, data: {},
onLoad: function (options) { onLoad: function (options) {
this.getOrderInfo(options.orderCode) this.getOrderInfo(options.orderCode)
}, },
getOrderInfo(orderCode) { getOrderInfo(orderCode) {
equityApi.orderDetailData({ orderCode }).then(res => { wx.p.api.equityApi.orderDetailData({ orderCode }).then(res => {
let richText = res.useNotes let richText = res.useNotes
res.warrantyDate = res.warrantyDate ? new Date(res.warrantyDate).format('yyyy-MM-dd hh:mm:ss') : '' res.warrantyDate = res.warrantyDate ? new Date(res.warrantyDate).format('yyyy-MM-dd hh:mm:ss') : ''
if (richText) { if (richText) {
...@@ -18,14 +17,14 @@ Page({ ...@@ -18,14 +17,14 @@ Page({
}) })
}, },
previewImage() { previewImage() {
wx.$api.previewImage({ wx.p.wxApi.previewImage({
current: this.data.order.qrcode, current: this.data.order.qrcode,
urls: [this.data.order.qrcode] urls: [this.data.order.qrcode]
}) })
}, },
setCopyData(e) { setCopyData(e) {
wx.$api.setCopyData(e.currentTarget.dataset.item, () => { wx.p.wxApi.setCopyData(e.currentTarget.dataset.item, () => {
wx.$api.showToast('复制成功') wx.p.wxApi.showToast('复制成功')
}) })
} }
}) })
/* packageEquity/pages/kaqDetail/kaqDetail.wxss */
\ No newline at end of file \ No newline at end of file
/* pages/couponDetail/couponDetail.wxss */
page{
background: white;
}
.coupon_info{
display: flex;
flex-direction: column;
align-items: center;
}
.logo{
height: 92rpx;
width: 92rpx;
margin: 62rpx 0 40rpx;
}
.name{
height: 44rpx;
font-size: 32rpx;
font-family: PingFang-SC-Heavy, PingFang-SC;
font-weight: 800;
color: #333333;
line-height: 44rpx;
}
.valid_date{
margin: 10rpx 0;
}
.order, .valid_date{
height: 28rpx;
font-size: 20rpx;
font-family: PingFang-SC-Medium, PingFang-SC;
font-weight: 500;
color: #999999;
line-height: 28rpx;
}
.qrcode{
width: 320rpx;
height: 320rpx;
border: 1rpx solid #999999;
}
.card_pannel{
margin: 40rpx;
background: linear-gradient(164deg, #ff9900 0%, rgba(254, 190, 0, 0.81) 100%);
height: 354rpx;
border-radius: 32rpx;
box-sizing: border-box;
padding: 46rpx;
opacity: 0.86;
margin-bottom: 80rpx;
position: relative;
}
.card_panner_conten{
display: flex;
align-items: center;
margin-top: 40rpx;
}
.card_line{
max-width: 470tpx;
font-size: 28rpx;
font-weight: 400;
color: #ffffff;
line-height: 40rpx;
text-shadow: 0px 4rpx 8rpx rgba(254, 96, 0, 0.24);
}
.card_btn{
margin-left: 20rpx;
display: inline-block;
text-align: center;
width: 72rpx;
height: 36rpx;
line-height: 36rpx;
background: #ffffff;
border-radius: 32rpx;
font-size: 20rpx;
color: #666666;
}
.title{
height: 44rpx;
font-size: 32rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #666666;
}
.tip{
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #999999;
}
\ No newline at end of file \ No newline at end of file
/* pages/couponDetail/couponDetail.wxss */
page{
background: white;
}
.coupon_info{
display: flex;
flex-direction: column;
align-items: center;
}
.logo{
height: 92rpx;
width: 92rpx;
margin: 62rpx 0 40rpx;
}
.name{
height: 44rpx;
font-size: 32rpx;
font-family: PingFang-SC-Heavy, PingFang-SC;
font-weight: 800;
color: #333333;
line-height: 44rpx;
}
.valid_date{
margin: 10rpx 0;
}
.order, .valid_date{
height: 28rpx;
font-size: 20rpx;
font-family: PingFang-SC-Medium, PingFang-SC;
font-weight: 500;
color: #999999;
line-height: 28rpx;
}
.qrcode{
width: 320rpx;
height: 320rpx;
border: 1rpx solid #999999;
}
.card_pannel{
margin: 40rpx;
background: linear-gradient(164deg, #ff9900 0%, rgba(254, 190, 0, 0.81) 100%);
height: 354rpx;
border-radius: 32rpx;
box-sizing: border-box;
padding: 46rpx;
opacity: 0.86;
margin-bottom: 80rpx;
position: relative;
}
.card_panner_conten{
display: flex;
align-items: center;
margin-top: 40rpx;
}
.card_line{
max-width: 470tpx;
font-size: 28rpx;
font-weight: 400;
color: #ffffff;
line-height: 40rpx;
text-shadow: 0px 4rpx 8rpx rgba(254, 96, 0, 0.24);
}
.card_btn{
margin-left: 20rpx;
display: inline-block;
text-align: center;
width: 72rpx;
height: 36rpx;
line-height: 36rpx;
background: #ffffff;
border-radius: 32rpx;
font-size: 20rpx;
color: #666666;
}
.title{
height: 44rpx;
font-size: 32rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #666666;
}
.tip{
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #999999;
}
\ No newline at end of file \ No newline at end of file
...@@ -31,9 +31,12 @@ page{ ...@@ -31,9 +31,12 @@ page{
position: absolute; position: absolute;
left: 40rpx; left: 40rpx;
top: 36rpx; top: 36rpx;
font-size: 36rpx; background: linear-gradient(125deg, #F0EED7 100%, #F2EAAB 100%) !important;
color: #8e5310; -webkit-background-clip: text !important;
text-shadow: 0 4rpx 8rpx rgba(254, 96, 0, 0.24); background-clip: text !important;
color: transparent !important;
font-weight: 500;
font-size: 32rpx;
} }
.card_title_1 { .card_title_1 {
......
<view class="open-container-page"> <view class="open-container-page">
<view class="top_widget"> <view class="top_widget">
<glsx-image webp class="top_icon_bg" webp src="{{IMGURKBASE}}pt_vip_bg.png" /> <glsx-image webp class="top_icon_bg" webp src="{{IMGURKBASE}}pt_vip_bg.png" />
<view class="card_title">{{memberInfo.equityName}}</view>
<!-- <glsx-image webp mode="widthFix" class="top_icon_bg" webp src="equity/scrm_index_bg.png" /> <!-- <glsx-image webp mode="widthFix" class="top_icon_bg" webp src="equity/scrm_index_bg.png" />
<view class="mini_title">{{ isOpen ? "已开通" : "未开通" }}</view> <view class="mini_title">{{ isOpen ? "已开通" : "未开通" }}</view>
<view class="card_title">{{memberInfo.equityName}}</view> <view class="card_title">{{memberInfo.equityName}}</view>
......
// packageEquity/pages/package/package.js // packageEquity/pages/package/package.js
// import USER from '~/api/usersApi/index' // import wx.p.api.userApi from '~/api/usersApi/index'
// import { setNavigationBarTitleText } from '~/utils/cache/storageApi' // import { setNavigationBarTitleText } from '~/utils/cache/storageApi'
// import { decodeUrlLink } from '~/utils/format' // import { decodeUrlLink } from '~/utils/format'
Page({ Page({
...@@ -16,7 +16,6 @@ Page({ ...@@ -16,7 +16,6 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
console.log(wx.p);
this.setNaviTitle() this.setNaviTitle()
// decodeUrlLink(options) // decodeUrlLink(options)
if (!options.id) { if (!options.id) {
...@@ -32,26 +31,26 @@ Page({ ...@@ -32,26 +31,26 @@ Page({
// options.action_type = 1 // options.action_type = 1
// options.item_id = options.id // options.item_id = options.id
// this.data.recommandOptions = options // this.data.recommandOptions = options
// wx.$util.reportData(options, false, false, true) // wx.p.cache.storageApi.reportData(options, false, false, true)
// } // }
// if (options.activity_id) { // if (options.activity_id) {
// this.data.options = options // this.data.options = options
// wx.$util.reportData(options, true, false) // wx.p.cache.storageApi.reportData(options, true, false)
// } // }
}, },
// 登录 // 登录
// login() { // login() {
// USER.login().then(res => { // wx.p.api.userApi.login().then(res => {
// if (res.data) { // if (res.data) {
// wx.$authStatus = res.data.phone ? false : true // wx.p.authStatus = res.data.phone ? false : true
// this.setNaviTitle(res.data.merchantName) // this.setNaviTitle(res.data.merchantName)
// this.setData({ // this.setData({
// sessionId: res.data.sessionId, // sessionId: res.data.sessionId,
// showAuthBtn: res.data.phone ? false : true // showAuthBtn: res.data.phone ? false : true
// }) // })
// if (res.data.isLogin) { // if (res.data.isLogin) {
// wx.$util.setUserInfo(res.data) // wx.p.cache.storageApi.setUserInfo(res.data)
// wx.$util.setSessionId(res.data.sessionId) // wx.p.cache.storageApi.setSessionId(res.data.sessionId)
// this.handlerCustomerId() // this.handlerCustomerId()
// } // }
// } // }
...@@ -59,26 +58,26 @@ Page({ ...@@ -59,26 +58,26 @@ Page({
// }, // },
// 设置标题名称 // 设置标题名称
setNaviTitle(tile) { setNaviTitle(tile) {
const MERCHANT_INFO = wx.p.storage.get('merchant_info') const {merchantName} = wx.p.storage.get('merchant_info')
wx.setNavigationBarTitle({ wx.setNavigationBarTitle({
title:MERCHANT_INFO.merchantName title:merchantName
}) })
}, },
// getPhoneNumber({ detail }) { getPhoneNumber({ detail }) {
// const { sessionId } = this.data const { sessionId } = this.data
// if (!sessionId) return if (!sessionId) return
// USER.authUserPhone(detail, sessionId).then(({ data, code, message }) => { wx.p.api.userApi.authUserPhone(detail, sessionId).then(({ data, code, message }) => {
// wx.hideLoading() wx.hideLoading()
// if (code == '0') { if (code == '0') {
// wx.$Track.setTrack({}, 3) // wx.$Track.setTrack({}, 3)
// wx.$authStatus = false wx.p.authStatus = false
// wx.$util.setUserInfo(data) wx.p.cache.storageApi.setUserInfo(data)
// wx.$util.setSessionId(data.sessionId) wx.p.cache.storageApi.setSessionId(data.sessionId)
// this.toCreatePackageNum() this.toCreatePackageNum()
// this.handlerCustomerId() // this.handlerCustomerId()
// } else wx.p.wxApi.showToast(message) } else wx.p.wxApi.showToast(message)
// }) })
// }, },
// 获取套餐详情 // 获取套餐详情
getPackageDetail(id) { getPackageDetail(id) {
wx.p.api.couponsApi wx.p.api.couponsApi
...@@ -142,19 +141,19 @@ Page({ ...@@ -142,19 +141,19 @@ Page({
success() { success() {
let temp = JSON.stringify(jumpParam) let temp = JSON.stringify(jumpParam)
wx.navigateTo({ wx.navigateTo({
url: '/packageShopmall/packageEquity/pages/success/success?order=' + temp url: '/packageEquity/pages/success/success?order=' + temp
}) })
if (_this.data.options) { // if (_this.data.options) {
wx.$util.reportData(_this.data.options, false, true) // wx.p.cache.storageApi.reportData(_this.data.options, false, true)
} // }
if (_this.data.recommandOptions) { // if (_this.data.recommandOptions) {
let options = _this.data.recommandOptions // let options = _this.data.recommandOptions
options.item_type = 4 // options.item_type = 4
options.action_type = 3 // options.action_type = 3
options.item_id = options.id // options.item_id = options.id
options.order_id = orderCode // options.order_id = orderCode
wx.$util.reportData(options, false, false, true) // wx.p.cache.storageApi.reportData(options, false, false, true)
} // }
}, },
fail(res) { fail(res) {
if (res.errMsg == 'requestPayment:fail cancel') { if (res.errMsg == 'requestPayment:fail cancel') {
...@@ -167,8 +166,8 @@ Page({ ...@@ -167,8 +166,8 @@ Page({
}, },
// 客户id // 客户id
handlerCustomerId() { handlerCustomerId() {
let customerId = wx.$storage.get('srcm_shopmall_customer_id') // let customerId = wx.$storage.get('srcm_shopmall_customer_id')
if (customerId) USER.updataCustomerPhone() // if (customerId) wx.p.api.userApi.updataCustomerPhone()
}, },
// 价格格式化 // 价格格式化
// priceFormat(num, point = 2) { // priceFormat(num, point = 2) {
...@@ -188,6 +187,6 @@ Page({ ...@@ -188,6 +187,6 @@ Page({
// } // }
// }, // },
onUnload: function () { onUnload: function () {
// wx.$util.customerbehavior(2) // wx.p.cache.storageApi.customerbehavior(2)
} }
}) })
/* packageEquity/pages/package/package.wxss */ /* packageEquity/pages/package/package.wxss */
.package-container {
width: 100%;
box-sizing: border-box;
padding: 0 32rpx;
}
.top_wrapper {
width: 100%;
height: 160rpx;
background-image: url("https://img02.glsx.com.cn/weapp/resource/miniprogram/glsx/equity/scrm_package_bg.png");
background-size: 100% 160rpx;
box-sizing: border-box;
padding-left: 128rpx;
display: flex;
align-items: center;
font-size: 36rpx;
color: #fff;
}
.title_widget {
width: 100%;
color: #282829;
font-size: 36rpx;
margin: 32rpx 0 24rpx 0;
text-align: center;
font-weight: 500;
}
.title_num {
color: #C57463;
margin: 0 10rpx;
}
.package_content_wrapper {
box-sizing: border-box;
background: #fff;
border-radius: 8rpx;
width: 100%;
padding: 24rpx;
}
.package_element {
position: relative;
height: 82rpx;
margin-bottom: 48rpx;
}
.ele_top {
width: 70%;
color: #282829;
font-size: 28rpx;
font-weight: 500;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.ele_right {
color: #282829;
font-size: 24rpx;
position: absolute;
right: 0;
top: 4rpx;
font-weight: 500;
}
.ele_left {
color: #b1b1b3;
font-size: 24rpx;
position: absolute;
left: 40rpx;
bottom: 0;
}
.ele_bottom {
color: #b1b1b3;
font-size: 24rpx;
position: absolute;
right: 0;
bottom: 0;
}
.content_tip {
color: #656566;
font-size: 22rpx;
box-sizing: border-box;
padding-left: 24rpx;
word-wrap: break-word;
}
.fixed-button-wrap {
position: fixed;
left: 0;
right: 0;
bottom: 0;
background: #F5F5F5;
box-sizing: border-box;
padding: 0 32rpx;
padding-bottom: 40rpx;
padding-top: 20rpx;
}
.button-item {
width: 100%;
height: 88rpx;
background: #892F3B;
border-radius: 8rpx;
display: flex;
align-items: center;
justify-content: center;
font-weight: 500;
font-size: 28rpx;
color: #FFFFFF;
}
.auth-button {
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
opacity: 0;
z-index: 102;
}
.price_total_title {
font-size: 36rpx;
font-weight: 500;
color: #282829;
margin: 32rpx 0 24rpx 0;
text-align: center;
}
.statistical_wrapper {
/* margin: 0 32rpx; */
box-sizing: border-box;
padding: 32rpx 24rpx;
background: #FFFFFF;
border-radius: 16rpx;
}
.price_line_item {
display: flex;
align-items: center;
}
.line_label {
font-size: 24rpx;
font-weight: 500;
color: #282829;
line-height: 34rpx;
width: 40%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.line_num {
width: 20%;
font-size: 24rpx;
font-weight: 500;
color: #656566;
line-height: 34rpx;
text-align: center;
}
.line_price {
width: 40%;
font-size: 24rpx;
font-weight: 500;
color: #656566;
line-height: 34rpx;
text-align: right;
display: flex;
align-items: center;
justify-content: flex-end;
}
.total_desc {
font-size: 28rpx;
font-weight: 500;
color: #282829;
line-height: 40rpx;
text-align: center;
margin-bottom: 22rpx;
}
.price_text {
font-size: 32rpx;
font-weight: 500;
color: #FC5B32;
line-height: 44rpx;
margin: 0 10rpx;
}
\ No newline at end of file \ No newline at end of file
/* packageEquity/pages/package/package.wxss */
.package-container {
width: 100%;
box-sizing: border-box;
padding: 0 32rpx;
}
.top_wrapper {
width: 100%;
height: 160rpx;
background-image: url("https://img02.glsx.com.cn/weapp/resource/miniprogram/glsx/equity/scrm_package_bg.png");
background-size: 100% 160rpx;
box-sizing: border-box;
padding-left: 128rpx;
display: flex;
align-items: center;
font-size: 36rpx;
color: #fff;
}
.title_widget {
width: 100%;
color: #282829;
font-size: 36rpx;
margin: 32rpx 0 24rpx 0;
text-align: center;
font-weight: 500;
}
.title_num {
color: #C57463;
margin: 0 10rpx;
}
.package_content_wrapper {
box-sizing: border-box;
background: #fff;
border-radius: 8rpx;
width: 100%;
padding: 24rpx;
}
.package_element {
position: relative;
height: 82rpx;
margin-bottom: 48rpx;
}
.ele_top {
width: 70%;
color: #282829;
font-size: 28rpx;
font-weight: 500;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.ele_right {
color: #282829;
font-size: 24rpx;
position: absolute;
right: 0;
top: 4rpx;
font-weight: 500;
}
.ele_left {
color: #b1b1b3;
font-size: 24rpx;
position: absolute;
left: 40rpx;
bottom: 0;
}
.ele_bottom {
color: #b1b1b3;
font-size: 24rpx;
position: absolute;
right: 0;
bottom: 0;
}
.content_tip {
color: #656566;
font-size: 22rpx;
box-sizing: border-box;
padding-left: 24rpx;
word-wrap: break-word;
}
.fixed-button-wrap {
position: fixed;
left: 0;
right: 0;
bottom: 0;
background: #F5F5F5;
box-sizing: border-box;
padding: 0 32rpx;
padding-bottom: 40rpx;
padding-top: 20rpx;
}
.button-item {
width: 100%;
height: 88rpx;
background: #892F3B;
border-radius: 8rpx;
display: flex;
align-items: center;
justify-content: center;
font-weight: 500;
font-size: 28rpx;
color: #FFFFFF;
}
.auth-button {
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
opacity: 0;
z-index: 102;
}
.price_total_title {
font-size: 36rpx;
font-weight: 500;
color: #282829;
margin: 32rpx 0 24rpx 0;
text-align: center;
}
.statistical_wrapper {
/* margin: 0 32rpx; */
box-sizing: border-box;
padding: 32rpx 24rpx;
background: #FFFFFF;
border-radius: 16rpx;
}
.price_line_item {
display: flex;
align-items: center;
}
.line_label {
font-size: 24rpx;
font-weight: 500;
color: #282829;
line-height: 34rpx;
width: 40%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.line_num {
width: 20%;
font-size: 24rpx;
font-weight: 500;
color: #656566;
line-height: 34rpx;
text-align: center;
}
.line_price {
width: 40%;
font-size: 24rpx;
font-weight: 500;
color: #656566;
line-height: 34rpx;
text-align: right;
display: flex;
align-items: center;
justify-content: flex-end;
}
.total_desc {
font-size: 28rpx;
font-weight: 500;
color: #282829;
line-height: 40rpx;
text-align: center;
margin-bottom: 22rpx;
}
.price_text {
font-size: 32rpx;
font-weight: 500;
color: #FC5B32;
line-height: 44rpx;
margin: 0 10rpx;
}
\ No newline at end of file \ No newline at end of file
import { equityApi } from '~/api/api'
Page({ Page({
data: { data: {
orderStatus: 2 orderStatus: 2
}, },
getPackageDetail(orderCode) { getPackageDetail(orderCode) {
equityApi.packageOrderDetail({ orderCode }).then(res => { wx.p.api.equityApi.packageOrderDetail({ orderCode }).then(res => {
if (res.createDate) { if (res.createDate) {
res.createDate = new Date(res.createDate).format('yyyy-MM-dd hh:mm:ss') res.createDate = new Date(res.createDate).format('yyyy-MM-dd hh:mm:ss')
} }
...@@ -26,7 +25,7 @@ Page({ ...@@ -26,7 +25,7 @@ Page({
let { discountType, useChannel, useMemberType } = item let { discountType, useChannel, useMemberType } = item
let detailInfo = { xx: 'xx' } let detailInfo = { xx: 'xx' }
if (discountType == 2 || discountType == 4) { if (discountType == 2 || discountType == 4) {
wx.$router.go('/packageShopmall/packageMall/pages/coupon/coupon', { wx.$router.go('/packageMall/pages/coupon/coupon', {
userCouponId: item.id, userCouponId: item.id,
useMemberType, useMemberType,
detailInfo detailInfo
...@@ -36,27 +35,27 @@ Page({ ...@@ -36,27 +35,27 @@ Page({
/**线上商品代金券 */ /**线上商品代金券 */
if (discountType == 3 && useChannel == 1) { if (discountType == 3 && useChannel == 1) {
// if(this.data.useMemberType == 1) { // if(this.data.useMemberType == 1) {
// wx.$api.showToast('代金券已使用') // wx.p.wxApi.showToast('代金券已使用')
// return // return
// } // }
wx.$router.go('/packageShopmall/packageMine/pages/coupon/recommend/recommend', { wx.$router.go('/packageMine/pages/coupon/recommend/recommend', {
couponInfo: item couponInfo: item
}) })
return return
} }
wx.navigateTo({ wx.navigateTo({
url: '/packageShopmall/packageMine/pages/coupon/detail/detail?item=' + temp url: '/packageMine/pages/coupon/detail/detail?item=' + temp
}) })
}, },
// 套餐提交申请售后 // 套餐提交申请售后
packageSumbit() { packageSumbit() {
wx.$api.showLoading() wx.p.wxApi.showLoading()
const { packageInfo } = this.data const { packageInfo } = this.data
let para = { let para = {
orderCode: packageInfo.orderCode, orderCode: packageInfo.orderCode,
reason: packageInfo.reason reason: packageInfo.reason
} }
equityApi.packageApply(para).then(res => { wx.p.api.equityApi.packageApply(para).then(res => {
wx.hideLoading() wx.hideLoading()
this.getPackageDetail(packageInfo.orderCode) this.getPackageDetail(packageInfo.orderCode)
}) })
......
/* packageEquity/pages/packageDetail/packageDetail.wxss */
\ No newline at end of file \ No newline at end of file
page {
background: #F5F5F5;
}
.package-detail-container {
box-sizing: border-box;
padding: 32rpx;
}
.wrapper {
background: #FFFFFF;
border-radius: 8rpx;
box-sizing: border-box;
padding: 36rpx 24rpx 44rpx 24rpx;
position: relative;
}
.line_widget {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 24rpx;
}
.left_wrap {
width: 80%;
}
.color_icon {
width: 20rpx;
height: 20rpx;
border-radius: 50%;
background: linear-gradient(180deg, rgba(252, 91, 50, 0.14) 0%, #FC5B32 100%);
margin-right: 10rpx;
}
.line_label {
font-size: 28rpx;
font-weight: 600;
color: #282829;
width: 90%;
}
.right_btn {
width: 138rpx;
height: 48rpx;
border-radius: 24rpx;
border: 2rpx solid #FC5B32;
font-size: 24rpx;
font-weight: 400;
color: #FC5B32;
}
.textarea_text {
font-size: 24rpx;
font-weight: 500;
color: #656566;
line-height: 34rpx;
word-break: break-all;
}
.row_wrap {
margin-bottom: 20rpx;
}
.row_label {
font-size: 24rpx;
font-weight: 500;
color: #282829;
}
.row_value {
font-size: 24rpx;
font-weight: 400;
color: #B1B1B3;
margin-left: 32rpx;
}
.image_icon_text {
position: absolute;
right: 32rpx;
top: 32rpx;
}
.image_icon {
width: 40rpx;
height: 40rpx;
}
.image_text {
font-size: 18rpx;
font-weight: 400;
color: #FC5B32;
line-height: 22rpx;
margin-top: 6rpx;
}
.flex_sc {
display: flex;
align-items: center;
}
.flex_cc {
display: flex;
align-items: center;
justify-content: center;
}
.hide-text {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.afterSale_wrapper{
width: 100%;
background-image: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
border-radius: 8rpx;
box-sizing: border-box;
padding: 37rpx 24rpx 24rpx 24rpx;
margin-bottom: 32rpx;
}
.sale_icon{
width: 60rpx;
height: 60rpx;
}
.sale_text{
margin-left: 12rpx;
font-size: 40rpx;
color: #2c2c2c;
}
.return_message{
margin-top: 59rpx;
position: relative;
}
.title_one{
font-size: 36rpx;
color: #282829;
position: relative;
}
.price_icon {
font-size: 36rpx;
color: #fc5b32;
margin-left: 28rpx;
}
.title_two {
font-size: 24rpx;
color: #282829;
margin-top: 20rpx;
}
.restBtn{
position: absolute;
top: 0;
right: 0;
border: 2rpx solid #fc5b32;
border-radius: 24rpx;
width: 138rpx;
height: 48rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 24rpx;
color: #fc5b32;
}
\ No newline at end of file \ No newline at end of file
page {
background: #F5F5F5;
}
.package-detail-container {
box-sizing: border-box;
padding: 32rpx;
}
.wrapper {
background: #FFFFFF;
border-radius: 8rpx;
box-sizing: border-box;
padding: 36rpx 24rpx 44rpx 24rpx;
position: relative;
}
.line_widget {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 24rpx;
}
.left_wrap {
width: 80%;
}
.color_icon {
width: 20rpx;
height: 20rpx;
border-radius: 50%;
background: linear-gradient(180deg, rgba(252, 91, 50, 0.14) 0%, #FC5B32 100%);
margin-right: 10rpx;
}
.line_label {
font-size: 28rpx;
font-weight: 600;
color: #282829;
width: 90%;
}
.right_btn {
width: 138rpx;
height: 48rpx;
border-radius: 24rpx;
border: 2rpx solid #FC5B32;
font-size: 24rpx;
font-weight: 400;
color: #FC5B32;
}
.textarea_text {
font-size: 24rpx;
font-weight: 500;
color: #656566;
line-height: 34rpx;
word-break: break-all;
}
.row_wrap {
margin-bottom: 20rpx;
}
.row_label {
font-size: 24rpx;
font-weight: 500;
color: #282829;
}
.row_value {
font-size: 24rpx;
font-weight: 400;
color: #B1B1B3;
margin-left: 32rpx;
}
.image_icon_text {
position: absolute;
right: 32rpx;
top: 32rpx;
}
.image_icon {
width: 40rpx;
height: 40rpx;
}
.image_text {
font-size: 18rpx;
font-weight: 400;
color: #FC5B32;
line-height: 22rpx;
margin-top: 6rpx;
}
.flex_sc {
display: flex;
align-items: center;
}
.flex_cc {
display: flex;
align-items: center;
justify-content: center;
}
.hide-text {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.afterSale_wrapper{
width: 100%;
background-image: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
border-radius: 8rpx;
box-sizing: border-box;
padding: 37rpx 24rpx 24rpx 24rpx;
margin-bottom: 32rpx;
}
.sale_icon{
width: 60rpx;
height: 60rpx;
}
.sale_text{
margin-left: 12rpx;
font-size: 40rpx;
color: #2c2c2c;
}
.return_message{
margin-top: 59rpx;
position: relative;
}
.title_one{
font-size: 36rpx;
color: #282829;
position: relative;
}
.price_icon {
font-size: 36rpx;
color: #fc5b32;
margin-left: 28rpx;
}
.title_two {
font-size: 24rpx;
color: #282829;
margin-top: 20rpx;
}
.restBtn{
position: absolute;
top: 0;
right: 0;
border: 2rpx solid #fc5b32;
border-radius: 24rpx;
width: 138rpx;
height: 48rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 24rpx;
color: #fc5b32;
}
\ No newline at end of file \ No newline at end of file
Page({
data: {
IMGURL: 'https://img02.glsx.com.cn/weapp/resource/miniprogram/hmd/',
IMGURKBASE: 'equity/version/1_0_0/',
show:false,
},
onLoad() {
},
toGetMemeber(){
this.toShowSuccess()
},
toShowSuccess() {
this.setData({
show: true
})
wx.setPageStyle({
style: {
overflow: 'hidden'
}
})
},
// 关闭弹框放开页面滚动
toCloseModal() {
this.setData({
show: false
})
wx.setPageStyle({
style: {
overflow: 'unset'
}
})
},
})
{
"usingComponents": {},
"navigationBarTitleText":"领取优惠券"
}
\ No newline at end of file \ No newline at end of file
.container {
position: relative;
min-height: 1448rpx;
}
.page_title {
background: linear-gradient(125deg, #FEE2CB 0%, #E8AD80 100%) !important;
-webkit-background-clip: text !important;
background-clip: text !important;
color: transparent !important;
font-weight: 600;
font-size: 76rpx;
position: absolute;
top: 128rpx;
left: 50%;
transform: translateX(-50%);
width: 100%;
text-align: center;
}
.page_bg_icon {
width: 100%;
height: 576rpx;
position: absolute;
left: 50%;
top: 72rpx;
transform: translateX(-50%);
}
.footer_bg_icon {
position: absolute;
bottom: 0;
right: 0;
left: 0;
height: 261.64rpx;
}
.btn_wrap_bg {
position: absolute;
left: 50%;
bottom: 128rpx;
transform: translateX(-50%);
height: 528rpx;
width: calc(100% - 48rpx);
display: flex;
flex-direction: column;
align-items: center;
background-image: linear-gradient(180deg, #9D4A4A 25%, #762626 100%);
box-shadow: inset 0 4rpx 6rpx 0 #ffffff80;
border-radius: 32rpx;
.title::before {
content: "";
position: absolute;
top: 50%;
left: -70%;
transform: translate(0, -50%);
width: 62rpx;
height: 2rpx;
background: linear-gradient(125deg, #FEE2CB 0%, #E8AD80 100%);
}
.title {
margin-top: 68rpx;
background: linear-gradient(125deg, #FEE2CB 0%, #E8AD80 100%) !important;
-webkit-background-clip: text !important;
background-clip: text !important;
color: transparent !important;
font-weight: 600;
font-size: 40rpx;
position: relative;
}
.title::after {
content: "";
position: absolute;
top: 50%;
right: -70%;
transform: translate(0, -50%);
width: 62rpx;
height: 2rpx;
background: linear-gradient(125deg, #E8AD80 0%, #FEE2CB 100%);
}
.input_wrap {
width: 606rpx;
height: 104rpx;
background: #30343E;
border: 2rpx solid #A9A9A9;
border-radius: 16rpx;
margin-top: 48rpx;
box-sizing: border-box;
padding-left: 32rpx;
}
.input-placeholder {
font-weight: 400;
font-size: 28rpx;
color: #A2A2A2;
}
.int_widget {
color: white;
height: 104rpx;
}
.btn_icon {
width: 460.98rpx;
height: 104rpx;
margin-top: 30rpx;
}
}
.modal_container {
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
background: rgba($color: #000000, $alpha: 0.5);
z-index: 99;
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
.modal_close_icon {
position: absolute;
right: 40rpx;
top: 108rpx;
width: 60rpx;
height: 60rpx;
}
.inner {
width: 580rpx;
height: 682rpx;
background: #582E2E;
border: 2rpx solid #9E6D6D;
box-shadow: 0 2rpx 198rpx 0 #eec9962e;
border-radius: 32rpx;
margin-top: 320rpx;
box-sizing: border-box;
padding: 40rpx;
position: relative;
.list_wrap {
height: 364rpx;
overflow: hidden;
overflow-y: scroll;
}
.coupons_item {
width: 500rpx;
height: 120rpx;
background-image: linear-gradient(86deg, #FFE1C8 0%, #FFF8EC 28%, #FFC49A 98%);
margin-bottom: 24rpx;
border-radius: 8rpx;
position: relative;
.left_box {
padding-left: 16rpx;
display: flex;
flex-direction: column;
justify-content: center;
height: 100%;
.c_title {
font-weight: 500;
font-size: 24rpx;
color: #333333;
}
.c_tip {
font-weight: 400;
font-size: 20rpx;
color: #333333;
margin-top: 8rpx;
}
}
.right_box {
width: 120rpx;
height: 48rpx;
background-image: linear-gradient(180deg, #FFE5C0 0%, #F7DCBC 23%, #E5BB90 99%);
border-radius: 46rpx;
display: flex;
align-items: center;
justify-content: center;
font-weight: 500;
font-size: 20rpx;
color: #333333;
position: absolute;
right: 22rpx;
top: 50%;
transform: translateY(-50%);
}
.circle_up {
position: absolute;
top: -10rpx;
right: 161rpx;
width: 20rpx;
height: 20rpx;
border-radius: 50%;
background: #343845;
}
.circle_bottom {
position: absolute;
bottom: -10rpx;
right: 161rpx;
width: 20rpx;
height: 20rpx;
border-radius: 50%;
background: #343845;
}
.line {
width: 2rpx;
height: 86rpx;
opacity: 0.32;
background: #C59A7A;
position: absolute;
top: 50%;
right: 171rpx;
transform: translateY(-50%);
}
}
.footer {
width: 580rpx;
height: 318rpx;
border-radius: 0 0 0 32rpx 32rpx;
position: absolute;
left: 0;
right: 0;
bottom: 0;
.successText {
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 172.32rpx;
font-weight: 600;
font-size: 36rpx;
width: 100%;
text-align: center;
color: #F9DBB5;
}
.look_btn {
width: 290rpx;
height: 92rpx;
background-image: linear-gradient(180deg, #FAE6CA 0%, #F7DCBC 24%, #E2B795 39%, #D7A682 61%, #C79C78 78%, #CFAC87 100%);
box-shadow: inset 0 2rpx 6rpx 0 #624e3480;
border-radius: 46rpx;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 36rpx;
color: #353946;
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 37.2rpx;
}
}
}
}
\ No newline at end of file \ No newline at end of file
<view style="height:1448rpx;background: url({{IMGURL}}{{IMGURKBASE}}wine_c_bg_icon.png);background-size: 100% 100%;" class="container">
<view class="page_title">生活权益会员</view>
<view style="background: url({{IMGURL}}{{IMGURKBASE}}direct_bg_icon_2.png);background-size: 100% 100%;" class="btn_wrap_bg">
<view class="title">领取会员</view>
<view class="input_wrap">
<input maxlength="11" class="int_widget" placeholder="请输入领取手机号" placeholder-class="input-placeholder" />
</view>
<glsx-image bind:tap="toGetMemeber" webp class="btn_icon" src="{{IMGURKBASE}}direct_btn_bg.png" />
</view>
<glsx-image webp class="page_bg_icon" src="{{IMGURKBASE}}wine_bg_icon.png" />
<glsx-image webp class="footer_bg_icon" src="{{IMGURKBASE}}direct_bg_icon_1.png?v=1.0" />
<!-- 弹框 -->
<view wx:if="{{show}}" class="modal_container">
<glsx-image catch:tap="toCloseModal" webp class="modal_close_icon" src="{{IMGURKBASE}}modal_close_icon.png" />
<view class="inner">
<view class="list_wrap">
<block wx:for="{{[1,2,3,4,5]}}" wx:key="index">
<view class="coupons_item">
<view class="left_box">
<view class="c_title">优惠券名称</view>
<view class="c_tip">有效期:4444444444</view>
</view>
<view class="right_box">去使用</view>
<view class="circle_up"></view>
<view class="circle_bottom"></view>
<view class="line"></view>
</view>
</block>
<view style="height: 120rpx;"></view>
</view>
<view style="background: url({{IMGURL}}{{IMGURKBASE}}c_bag_r_icon.png);background-size: 100% 100%;" class="footer">
<view class="successText">恭喜您获得了三张优惠券!</view>
<view class="look_btn">去查看</view>
</view>
</view>
</view>
</view>
\ No newline at end of file \ No newline at end of file
import { commonApi, equityApi } from '~/api/api'
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
...@@ -46,13 +45,13 @@ Page({ ...@@ -46,13 +45,13 @@ Page({
filePath: tempFiles, //选择图片返回的相对路径 filePath: tempFiles, //选择图片返回的相对路径
encoding: 'base64', //编码格式 encoding: 'base64', //编码格式
success(_res) { success(_res) {
wx.$api.showLoading('上传中...') wx.p.wxApi.showLoading('上传中...')
commonApi wx.p.api.common
.uploadImg({ .uploadImg({
file: `${type}@${_res.data}` file: `${type}@${_res.data}`
}) })
.then(img => { .then(img => {
wx.$api.hideLoading() wx.p.wxApi.hideLoading()
_this.data.upImageURL = [] _this.data.upImageURL = []
_this.data.upImageURL.push(img) _this.data.upImageURL.push(img)
_this.setData({ _this.setData({
...@@ -67,26 +66,26 @@ Page({ ...@@ -67,26 +66,26 @@ Page({
// 提交 // 提交
sumbit() { sumbit() {
if (this.data.isPackage) { if (this.data.isPackage) {
wx.$api.showLoading() wx.p.wxApi.showLoading()
this.packageSumbit() this.packageSumbit()
return return
} }
if (!this.data.desc) { if (!this.data.desc) {
wx.$api.showToast('请输入申请描述') wx.p.wxApi.showToast('请输入申请描述')
return return
} }
if (!this.data.upImageURL.length) { if (!this.data.upImageURL.length) {
wx.$api.showToast('请上传图片') wx.p.wxApi.showToast('请上传图片')
return return
} }
const { query, desc, upImageURL, isPackage } = this.data const { query, desc, upImageURL, isPackage } = this.data
wx.$api.showLoading() wx.p.wxApi.showLoading()
let para = { let para = {
orderCode: query.orderCode, orderCode: query.orderCode,
reason: desc, reason: desc,
refundImg: upImageURL[0] refundImg: upImageURL[0]
} }
equityApi.createdSale(para).then(res => { wx.p.api.equityApi.createdSale(para).then(res => {
wx.hideLoading() wx.hideLoading()
this.setData({ this.setData({
showWaiting: true showWaiting: true
...@@ -94,11 +93,11 @@ Page({ ...@@ -94,11 +93,11 @@ Page({
setTimeout(() => { setTimeout(() => {
if (isPackage) { if (isPackage) {
wx.redirectTo({ wx.redirectTo({
url: '/packageShopmall/packageEquity/pages/packageDetail/packageDetail?orderCode=' + query.orderCode url: '/packageEquity/pages/packageDetail/packageDetail?orderCode=' + query.orderCode
}) })
} else { } else {
wx.redirectTo({ wx.redirectTo({
url: '/packageShopmall/packageEquity/pages/saleDetail/saleDetail?orderCode=' + query.orderCode url: '/packageEquity/pages/saleDetail/saleDetail?orderCode=' + query.orderCode
}) })
} }
}, 3000) }, 3000)
...@@ -111,14 +110,14 @@ Page({ ...@@ -111,14 +110,14 @@ Page({
orderCode: query.orderCode, orderCode: query.orderCode,
reason: desc reason: desc
} }
equityApi.packageApply(para).then(res => { wx.p.api.equityApi.packageApply(para).then(res => {
wx.hideLoading() wx.hideLoading()
this.setData({ this.setData({
showWaiting: true showWaiting: true
}) })
setTimeout(() => { setTimeout(() => {
wx.redirectTo({ wx.redirectTo({
url: '/packageShopmall/packageEquity/pages/packageDetail/packageDetail?orderCode=' + query.orderCode url: '/packageEquity/pages/packageDetail/packageDetail?orderCode=' + query.orderCode
}) })
// wx.navigateBack({ // wx.navigateBack({
// delta: 1 // delta: 1
......
/* packageEquity/pages/saleApply/saleApply.wxss */
\ No newline at end of file \ No newline at end of file
.apply-container{
box-sizing: border-box;
padding: 30rpx;
}
.box{
background: #FFFFFF;
border-radius: 12rpx;
padding: 0px 32rpx;
margin-bottom: 20rpx;
}
.box_title{
font-size: 32rpx;
line-height: 60rpx;
font-weight: 500;
color: #333333;
}
.textarea-placeholder{
padding: 0;
}
/* .box_input{
min-height: 240rpx;
} */
.textarea_wrap{
width: 100%;
min-height: 240rpx;
word-break: break-all;
}
.image_up_load{
margin: 20rpx 0px;
width: 160rpx;
height: 160rpx;
position: relative;
}
.box_wrap{
height: 100rpx;
background: #FFFFFF;
border-radius: 12rpx;
padding: 0px 32rpx;
margin-bottom: 30rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
.box_price{
font-size: 40rpx;
font-weight: 500;
color: #008FFF;
}
.apply_btn{
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 88rpx;
color: #FFFFFF;
font-weight: 500;
background: #008FFF;
border-radius: 44rpx;
margin: 40rpx auto;
font-size: 36rpx;
}
.sales-h{
margin-bottom: 60rpx;
text-align: center;
line-height: 60rpx;
}
.successIcon{
width: 100rpx;
height: 100rpx;
margin-top: 200rpx;
}
.sales-icon {
font-size: 100rpx;
color: #19c341;
margin-top: 100rpx;
}
.sales-status-1{
height: 66rpx;
font-size: 48rpx;
font-weight: 500;
color: #333333;
line-height: 66rpx;
}
.sales-status-2 {
font-size: 32rpx;
font-weight: 400;
color: #999999;
line-height: 44rpx;
margin-top: 16rpx;
}
\ No newline at end of file \ No newline at end of file
.apply-container{
box-sizing: border-box;
padding: 30rpx;
}
.box{
background: #FFFFFF;
border-radius: 12rpx;
padding: 0px 32rpx;
margin-bottom: 20rpx;
}
.box_title{
font-size: 32rpx;
line-height: 60rpx;
font-weight: 500;
color: #333333;
}
.textarea-placeholder{
padding: 0;
}
/* .box_input{
min-height: 240rpx;
} */
.textarea_wrap{
width: 100%;
min-height: 240rpx;
word-break: break-all;
}
.image_up_load{
margin: 20rpx 0px;
width: 160rpx;
height: 160rpx;
position: relative;
}
.box_wrap{
height: 100rpx;
background: #FFFFFF;
border-radius: 12rpx;
padding: 0px 32rpx;
margin-bottom: 30rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
.box_price{
font-size: 40rpx;
font-weight: 500;
color: #008FFF;
}
.apply_btn{
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 88rpx;
color: #FFFFFF;
font-weight: 500;
background: #008FFF;
border-radius: 44rpx;
margin: 40rpx auto;
font-size: 36rpx;
}
.sales-h{
margin-bottom: 60rpx;
text-align: center;
line-height: 60rpx;
}
.successIcon{
width: 100rpx;
height: 100rpx;
margin-top: 200rpx;
}
.sales-icon {
font-size: 100rpx;
color: #19c341;
margin-top: 100rpx;
}
.sales-status-1{
height: 66rpx;
font-size: 48rpx;
font-weight: 500;
color: #333333;
line-height: 66rpx;
}
.sales-status-2 {
font-size: 32rpx;
font-weight: 400;
color: #999999;
line-height: 44rpx;
margin-top: 16rpx;
}
\ No newline at end of file \ No newline at end of file
import { equityApi } from '~/api/api'
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
...@@ -11,7 +10,7 @@ Page({ ...@@ -11,7 +10,7 @@ Page({
// 获取售后详情 // 获取售后详情
getSaleDetail(orderCode) { getSaleDetail(orderCode) {
equityApi.saleDetailInfo({ orderCode }).then(res => { wx.p.api.equityApi.saleDetailInfo({ orderCode }).then(res => {
res.reason = decodeURIComponent(res.reason) res.reason = decodeURIComponent(res.reason)
res.createDate = new Date(res.createDate).format('yyyy-MM-dd hh:mm:ss') res.createDate = new Date(res.createDate).format('yyyy-MM-dd hh:mm:ss')
this.setData({ this.setData({
...@@ -20,7 +19,7 @@ Page({ ...@@ -20,7 +19,7 @@ Page({
}) })
}, },
previewImage() { previewImage() {
wx.$api.previewImage({ wx.p.wxApi.previewImage({
current: this.data.detail.img, current: this.data.detail.img,
urls: [this.data.detail.img] urls: [this.data.detail.img]
}) })
......
/* packageEquity/pages/saleDetail/saleDetail.wxss */
\ No newline at end of file \ No newline at end of file
page{
background: white;
}
.sale_detail_page{
box-sizing: border-box;
padding: 30rpx;
width: 100%;
}
.box{
display: flex;
flex-direction: column;
justify-content: center;
}
.title{
text-align: center;
height: 66rpx;
font-size: 48rpx;
font-weight: 500;
color: #333333;
line-height: 66rpx;
}
.tip{
text-align: center;
font-size: 32rpx;
font-weight: 400;
color: #999999;
line-height: 44rpx;
margin-top: 16rpx;
}
.sale_content{
margin-top: 40rpx;
}
.content_line{
display: flex;
align-items: center;
margin-top: 20rpx;
}
.title_line{
font-size: 28rpx;
font-weight: 400;
color: #333333;
}
.content_info{
font-size: 28rpx;
font-weight: 500;
color: #999999;
}
.title_price{
color: #FF9900;
}
.iamge_wrap{
width: 100%;
display: flex;
justify-content: center;
}
.sale_image{
margin-top: 40rpx;
width: 192rpx;
height: auto;
}
\ No newline at end of file \ No newline at end of file
page{
background: white;
}
.sale_detail_page{
box-sizing: border-box;
padding: 30rpx;
width: 100%;
}
.box{
display: flex;
flex-direction: column;
justify-content: center;
}
.title{
text-align: center;
height: 66rpx;
font-size: 48rpx;
font-weight: 500;
color: #333333;
line-height: 66rpx;
}
.tip{
text-align: center;
font-size: 32rpx;
font-weight: 400;
color: #999999;
line-height: 44rpx;
margin-top: 16rpx;
}
.sale_content{
margin-top: 40rpx;
}
.content_line{
display: flex;
align-items: center;
margin-top: 20rpx;
}
.title_line{
font-size: 28rpx;
font-weight: 400;
color: #333333;
}
.content_info{
font-size: 28rpx;
font-weight: 500;
color: #999999;
}
.title_price{
color: #FF9900;
}
.iamge_wrap{
width: 100%;
display: flex;
justify-content: center;
}
.sale_image{
margin-top: 40rpx;
width: 192rpx;
height: auto;
}
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!