Commit 4485ed61 by 杨北旺

提交

1 parent 7c210060
......@@ -115,7 +115,18 @@
"pages/index/index"
],
"plugins": {
"ticketPlugin": {
"version": "2.0.2",
"provider": "wxd5b8312c3a09901a"
},
"express-plugin": {
"version": "1.2.0",
"provider": "wx1b1f66316b427c74"
},
"collectionPlugin": {
"version": "1.2.0",
"provider": "wx5e90fdd843841356"
}
}
},
{
......@@ -153,7 +164,6 @@
"authorize": "/components/Authorize/Authorize",
"popup": "/components/Popup/Popup",
"goods-action": "/components/GoodsAction/GoodsAction",
"glsx-privacy": "glsx-applet-component/GlsxPrivacy/index",
"stepper": "/components/Stepper/Stepper"
},
"style": "v2",
......@@ -167,5 +177,5 @@
}
},
"plugins": {},
"__usePrivacyCheck__": true
"__usePrivacyCheck__": false
}
\ No newline at end of file
......@@ -10,7 +10,7 @@ Component({
selectStrategy(e) {
console.log(e);
const {id} = e.currentTarget.dataset
this.triggerEvent('selectStrategy', {id,notIntercept: true})
this.triggerEvent('selectStrategy', {id})
}
}
})
\ No newline at end of file
......@@ -19,4 +19,4 @@
</view>
</view>
</scroll-view>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
// packageEquity/pages/gCoupons/index.js
import { IMG_URL } from '~/config';
Page({
data: {
IMGURL:IMG_URL,
handleStatus:0
},
onLoad(options) {
this.getEquityCouponsDetail(10785)
if(options.id){
this.getEquityCouponsDetail(options.id)
}
},
// 查询优惠券详情
getEquityCouponsDetail(id){
......@@ -21,10 +24,12 @@ Page({
})
},
// 领取
toGet(){
async toGet(){
const {
detailInfo
} = this.data
const authStatus = await wx.p.router.intercept()
if (authStatus) return
wx.p.wxApi.showLoading()
wx.p.api.couponsApi.getEquityCoupons({couponId:this.couponId,merchantId:detailInfo.merchantId}).then(res=>{
console.log(res);
......
{
"usingComponents": {}
"navigationBarTitleText": "领取优惠券"
}
\ No newline at end of file
.container {
width: 100%;
height: 100vh;
}
.main_box {
width: 100%;
height: 660rpx;
position: absolute;
left: 50%;
bottom: 306rpx;
transform: translateX(-50%);
.title {
position: absolute;
left: 50%;
top: 90rpx;
transform: translateX(-50%);
.price {
font-weight: 600;
font-size: 80rpx;
color: #E5552B;
}
.unit {
margin: 0 8rpx;
}
.unit,
.tip {
font-weight: 600;
font-size: 28rpx;
color: #E5552B;
}
}
.info_box {
display: flex;
align-items: center;
position: absolute;
left: 50%;
top: 218rpx;
transform: translateX(-60%);
.cover {
width: 80rpx;
height: 80rpx;
border-radius: 50%;
}
.right {
padding-left: 20rpx;
.name {
font-weight: 400;
font-size: 24rpx;
color: #D83C14;
}
.desc {
font-weight: 600;
font-size: 30rpx;
color: #7E3F10;
}
}
}
.btn {
width: 50%;
height: 120rpx;
position: absolute;
left: 50%;
bottom: 100rpx;
transform: translateX(-50%);
}
}
.footer_rule_box {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
position: absolute;
left: 50%;
bottom: 140rpx;
transform: translateX(-50%);
.title::before {
content: "";
position: absolute;
top: 50%;
left: -70%;
transform: translate(0, -50%);
width: 18rpx;
height: 2rpx;
background: #CD4E22;
}
.title {
font-weight: 500;
font-size: 30rpx;
color: #CD4E22;
position: relative;
margin-bottom: 8rpx;
}
.title::after {
content: "";
position: absolute;
top: 50%;
right: -70%;
transform: translate(0, -50%);
width: 18rpx;
height: 2rpx;
background: #CD4E22;
}
.line {
font-weight: 400;
font-size: 26rpx;
color: #CD4E22;
}
}
\ No newline at end of file
<button bind:tap="toGet">领取</button>
\ No newline at end of file
<view style="background: url({{IMGURL}}equity/{{handleStatus==1?'lq_get_bg':'lq__wait_bg'}}.png);background-size: 100% 100%;" class="container">
<!-- <glsx-image webp src="equity/wait_lq_bg.png" class="banner"></glsx-image> -->
<view class="main_box">
<view wx:if="{{detailInfo.denomination}}" class="title">
<text class="price">{{detailInfo.denomination || ''}}</text>
<text class="unit">元</text>
<text class="tip">无门槛</text>
</view>
<view class="info_box">
<view class="cover">
<image class="cover" src="{{detailInfo.goodsImage}}" />
</view>
<view class="right">
<view class="name">{{detailInfo.brandName}}</view>
<view class="desc">{{detailInfo.goodsName}}</view>
</view>
</view>
<view class="btn" bind:tap="toGet"></view>
</view>
<view class="footer_rule_box">
<view class="title">规则</view>
<view class="box">
<view class="line">1. 同一用户每张优惠券仅能领取1次,每次1张</view>
<view class="line">2. 优惠券数量有限,领完即止</view>
</view>
</view>
</view>
\ No newline at end of file
......@@ -29,4 +29,4 @@
<authorize scopeType="userLocation" bindsuccess="authSuccess" bindfail="authFail" show="{{showAuth}}" bindcancel="authCancel">
</authorize>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
......@@ -104,7 +104,7 @@ Page({
}
}
})
} else if (env == 'test') {
} else if (env == 'test' || env == 'beta') {
equityList.forEach(el => {
if (el.goodsCategory == '智能出行') {
if (el.equityGoodsGroupDescDtos) {
......
<view class="carlife-box">
<glsx-image webp src="home/carlife_bg.png" class="carlife-img"></glsx-image>
<view class="title-box">
<main-title title="省心出行"></main-title>
</view>
<menu-box boxType="{{0}}" menuList="{{tripMenu}}"></menu-box>
<block wx:if="{{tripMenu.length}}">
<view class="title-box">
<main-title title="省心出行"></main-title>
</view>
<menu-box boxType="{{0}}" menuList="{{tripMenu}}"></menu-box>
</block>
<block wx:if="{{utilList.length}}">
<view class="title-box">
<main-title title="养车服务"></main-title>
......
......@@ -98,7 +98,7 @@ Page({
})
}
})
} else if (env == 'test') {
} else if (env == 'test' || env == 'beta') {
let all = []
equityList.forEach(el => {
if (el.equityGoodsGroupDescDtos) {
......
<view class="homelife-box">
<glsx-image webp src="home/homelife_bg.png" class="homelife-img"></glsx-image>
<view class="title-box">
<main-title title="娱乐推荐"></main-title>
</view>
<menu-box menuList="{{recreationMenu}}"></menu-box>
<view class="title-box">
<main-title title="美食推荐"></main-title>
</view>
<menu-box menuList="{{foodMenu}}"></menu-box>
<block wx:if="{{recreationMenu.length}}">
<view class="title-box">
<main-title title="娱乐推荐"></main-title>
</view>
<menu-box menuList="{{recreationMenu}}"></menu-box>
</block>
<block wx:if="{{foodMenu.length}}">
<view class="title-box">
<main-title title="美食推荐"></main-title>
</view>
<menu-box menuList="{{foodMenu}}"></menu-box>
</block>
<!-- <view class="title-box classify-title-box">
<view class="{{titleActive === index? 'classify-title-active':'classify-title'}}" wx:for="{{classifyTitleList}}" data-index="{{index}}" bind:tap="switchTitle">
{{item}}
......
......@@ -275,4 +275,4 @@
</view>
</view>
<login show="{{showLogin}}"></login>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
......@@ -35,4 +35,4 @@
<view class="btn" bindtap="goPage">确定</view>
</view>
</view>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
......@@ -52,4 +52,4 @@
</view>
<view class="default-btn" bindtap="confirm">{{isEdit?'保存':'添加'}}</view>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
......@@ -29,19 +29,19 @@ Page({
const shareCode = '5759S2m7h'
switch (id) {
case 1:
url = `plugin://collectionPlugin/sbkHome?shareCode=${shareCode}`
url = `plugin://collectionPlugin/sbkHome?shareCode=${shareCode}&extra=wuye`
break;
case 2:
url = `plugin://collectionPlugin/sbkHome?shareCode=${shareCode}`
url = `plugin://collectionPlugin/sbkHome?shareCode=${shareCode}&extra=wuye`
break;
case 3:
url = `plugin://collectionPlugin/naixueHome?shareCode=${shareCode}`
url = `plugin://collectionPlugin/naixueHome?shareCode=${shareCode}&extra=wuye`
break;
case 4:
url = `plugin://ticketPlugin/home?shareCode=${shareCode}&reLocation=true`
url = `plugin://ticketPlugin/home?shareCode=${shareCode}&reLocation=true&extra=wuye`
break;
case 5:
url = `plugin://express-plugin/home?shareCode=${shareCode}`
url = `plugin://express-plugin/home?shareCode=${shareCode}&extra=wuye`
break;
default:
......
......@@ -139,6 +139,7 @@ Page({
isAgree
} = this.data
try {
console.log(detail);
if (detail.errMsg && ['authorized', 'deny'].findIndex(e => detail.errMsg.toLowerCase().includes(e)) != -1) return
if (!detail?.code) throw '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
if (!isAgree) throw '请同意以下用户协议'
......
......@@ -65,4 +65,4 @@
</view>
</view>
</view>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
......@@ -194,7 +194,7 @@ Page({
})
}
})
} else if (env == 'test') {
} else if (env == 'test' || env == 'beta') {
let all = []
equityList.forEach(el => {
if (el.equityGoodsGroupDescDtos) {
......
......@@ -41,4 +41,4 @@
</view>
</view>
<authorize id="authorize" scopeType="userLocation" isShowCheck="{{false}}" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
......@@ -63,6 +63,7 @@ Page({
const { id } = e.detail;
wx.p.router.go("/packageStrategy/pages/strategyDetail/index", {
id,
notIntercept: true
});
},
......
......@@ -58,4 +58,4 @@
<image bind:tap="closeModal" class="close_icon" src="{{IMG_URL}}home/close_modal.png" />
</view>
</view>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
......@@ -9,4 +9,4 @@
</view>
<carOwner id="currentChannel_6" bindshowShoppingCar="showShoppingCarFn" merchantid="{{merchantId}}" channelID="{{currentChannel.id}}"></carOwner>
</view>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
......@@ -148,4 +148,4 @@
<glsx-image bindtap="handleChangeVal" data-attr="isMemberShow" data-val="{{false}}" class="member-close" src="mine/icon-member-close.png"></glsx-image>
</view>
</view>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ 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!