Merge branch 'master' of gitee.com:beijing_hongye_huicheng/lilishop-uniapp
commit
6cd36b19b2
|
@ -6,7 +6,7 @@ export default {
|
||||||
downloadLink: "https://pickmall.cn/download-page/index.html", //下载地址,下载app的地址
|
downloadLink: "https://pickmall.cn/download-page/index.html", //下载地址,下载app的地址
|
||||||
shareLink: "https://m-b2b2c.pickmall.cn", //分享地址,也就是在h5中默认的复制地址
|
shareLink: "https://m-b2b2c.pickmall.cn", //分享地址,也就是在h5中默认的复制地址
|
||||||
appid: "wx6f10f29075dc1b0b", //小程序唯一凭证,即 AppID,可在「微信公众平台 - 设置 - 开发设置」页中获得。(需要已经成为开发者,且帐号没有异常状态)
|
appid: "wx6f10f29075dc1b0b", //小程序唯一凭证,即 AppID,可在「微信公众平台 - 设置 - 开发设置」页中获得。(需要已经成为开发者,且帐号没有异常状态)
|
||||||
aMapKey: "d649892b3937a5ad20b76dacb2bcb5bd", //在高德中申请web端key
|
aMapKey: "d649892b3937a5ad20b76dacb2bcb5bd", //在高德中申请Web服务key
|
||||||
scanAuthNavigation:['https://m-b2b2c.pickmall.cn/'], //扫码认证跳转域名配置 会根据此处配置的路由进行跳转
|
scanAuthNavigation:['https://m-b2b2c.pickmall.cn/'], //扫码认证跳转域名配置 会根据此处配置的路由进行跳转
|
||||||
iosAppId:"id1564638363", //AppStore的应用地址id 具体在分享->拷贝链接中查看
|
iosAppId:"id1564638363", //AppStore的应用地址id 具体在分享->拷贝链接中查看
|
||||||
logo:"https://lilishop-oss.oss-cn-beijing.aliyuncs.com/4c864e133c2944efad1f7282ac8a3b9e.png", //logo地址
|
logo:"https://lilishop-oss.oss-cn-beijing.aliyuncs.com/4c864e133c2944efad1f7282ac8a3b9e.png", //logo地址
|
||||||
|
|
|
@ -195,10 +195,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"plugins" : {
|
"plugins" : {
|
||||||
"myPlugin" : {
|
|
||||||
"version" : "1.1.0",
|
|
||||||
"provider" : "wx738958e0f4c894f9"
|
|
||||||
},
|
|
||||||
"live-player-plugin" : {
|
"live-player-plugin" : {
|
||||||
"version" : "1.3.0",
|
"version" : "1.3.0",
|
||||||
"provider" : "wx2b03c6e691cd7370"
|
"provider" : "wx2b03c6e691cd7370"
|
||||||
|
|
|
@ -11,11 +11,11 @@
|
||||||
<u-row class="portrait-box2">
|
<u-row class="portrait-box2">
|
||||||
<u-col span="6" class="portrait-box2-col" :gutter="16">
|
<u-col span="6" class="portrait-box2-col" :gutter="16">
|
||||||
<text>累计获得:</text>
|
<text>累计获得:</text>
|
||||||
<text class="pcolor">{{ pointData.point || 0 }}</text>
|
<text class="pcolor">{{ pointData.totalPoint || 0 }}</text>
|
||||||
</u-col>
|
</u-col>
|
||||||
<u-col span="6" class="portrait-box2-col">
|
<u-col span="6" class="portrait-box2-col">
|
||||||
<text>未使用:</text>
|
<text>剩余积分:</text>
|
||||||
<text class="pcolor">{{ pointData.variablePoint || 0 }}</text>
|
<text class="pcolor">{{ pointData.point || 0 }}</text>
|
||||||
</u-col>
|
</u-col>
|
||||||
</u-row>
|
</u-row>
|
||||||
|
|
||||||
|
|
|
@ -323,7 +323,7 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
this.initData(0);
|
this.initData(0);
|
||||||
}
|
}
|
||||||
this.loadData(this.status);
|
// this.loadData(this.status);
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
if (this.tabCurrentIndex) {
|
if (this.tabCurrentIndex) {
|
||||||
|
@ -331,7 +331,7 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
this.initData(0);
|
this.initData(0);
|
||||||
}
|
}
|
||||||
this.loadData(this.status);
|
// this.loadData(this.status);
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
@ -342,9 +342,9 @@ export default {
|
||||||
let status = Number(options.status);
|
let status = Number(options.status);
|
||||||
this.status = status;
|
this.status = status;
|
||||||
this.tabCurrentIndex = status;
|
this.tabCurrentIndex = status;
|
||||||
if (status == 0) {
|
// if (status == 0) {
|
||||||
this.loadData(status);
|
// this.loadData(status);
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
|
|
|
@ -1,184 +1,184 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="wrapper">
|
<view class="wrapper">
|
||||||
<div class="coupon-empty" v-if="!res">暂无优惠券</div>
|
<div class="coupon-empty" v-if="!res">暂无优惠券</div>
|
||||||
<view class="coupon-List" v-for="(item, index) in couponRes" :key="index">
|
<view class="coupon-List" v-for="(item, index) in couponRes" :key="index">
|
||||||
<view class="coupon-item">
|
<view class="coupon-item">
|
||||||
<view class="top">
|
<view class="top">
|
||||||
<div class="price">
|
<div class="price">
|
||||||
<span v-if="item.couponType == 'DISCOUNT'">{{ item.couponDiscount }}折</span>
|
<span v-if="item.couponType == 'DISCOUNT'">{{ item.couponDiscount }}折</span>
|
||||||
<span v-if="item.couponType == 'PRICE'">¥{{ item.price | unitPrice }}</span>
|
<span v-if="item.couponType == 'PRICE'">¥{{ item.price | unitPrice }}</span>
|
||||||
</div>
|
</div>
|
||||||
<view class="text">
|
<view class="text">
|
||||||
<div class="coupon-List-title">
|
<div class="coupon-List-title">
|
||||||
<view v-if="item.scopeType">
|
<view v-if="item.scopeType">
|
||||||
<span v-if="item.scopeType == 'ALL' && item.id == 'platform'"
|
<span v-if="item.scopeType == 'ALL' && item.id == 'platform'">全平台</span>
|
||||||
>全平台</span
|
<span v-if="item.scopeType == 'PORTION_CATEGORY'">仅限品类</span>
|
||||||
>
|
<view v-else>{{
|
||||||
<span v-if="item.scopeType == 'PORTION_CATEGORY'">仅限品类</span>
|
item.storeName == "platform" ? "全平台" : item.storeName + "店铺"
|
||||||
<view v-else
|
}}使用</view>
|
||||||
>{{
|
</view>
|
||||||
item.storeName == "platform" ? "全平台" : item.storeName + "店铺"
|
</div>
|
||||||
}}使用</view
|
<div>满{{ item.consumeThreshold | unitPrice }}可用</div>
|
||||||
>
|
</view>
|
||||||
</view>
|
<view class="lingqu-btn" @click="getCoupon(item, index)">
|
||||||
</div>
|
<div :class="yhqFlag[index] ? 'cur' : ''">
|
||||||
<div>满{{ item.consumeThreshold | unitPrice }}可用</div>
|
{{ yhqFlag[index] ? "已领取或领完" : "立即领取" }}
|
||||||
</view>
|
</div>
|
||||||
<view class="lingqu-btn" @click="getCoupon(item, index)">
|
</view>
|
||||||
<div :class="yhqFlag[index] ? 'cur' : ''">
|
</view>
|
||||||
{{ yhqFlag[index] ? "已领取或领完" : "立即领取" }}
|
<view class="line"></view>
|
||||||
</div>
|
<view class="time">{{ item.startTime / 1000 | unixToDate }} - {{ item.endTime / 1000 | unixToDate }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line"></view>
|
</view>
|
||||||
<view class="time">{{ item.startTime }} - {{ item.endTime }}</view>
|
</template>
|
||||||
</view>
|
|
||||||
</view>
|
<script>
|
||||||
</view>
|
export default {
|
||||||
</template>
|
data() {
|
||||||
|
return {
|
||||||
<script>
|
yhqFlag: [], //获取优惠券判断是否点击
|
||||||
export default {
|
couponRes: [],
|
||||||
data() {
|
};
|
||||||
return {
|
},
|
||||||
yhqFlag: [], //获取优惠券判断是否点击
|
props: {
|
||||||
couponRes: {},
|
res: {
|
||||||
};
|
type: null,
|
||||||
},
|
default: "",
|
||||||
props: {
|
},
|
||||||
res: {
|
},
|
||||||
type: null,
|
watch: {
|
||||||
default: "",
|
res: {
|
||||||
},
|
handler() {
|
||||||
},
|
if (this.res && this.res.length != 0) {
|
||||||
watch: {
|
Object.keys(this.res).forEach((item) => {
|
||||||
res: {
|
let key = item.split("-")[0];
|
||||||
handler() {
|
if (key === "COUPON") {
|
||||||
if (this.res && this.res.length != 0) {
|
this.couponRes.push(this?.res[item]);
|
||||||
Object.keys(this.res).forEach((item) => {
|
|
||||||
let key = item.split("-")[0];
|
}
|
||||||
if (key === "COUPON") {
|
});
|
||||||
this.couponRes[item] = this?.res[item];
|
}
|
||||||
}
|
},
|
||||||
});
|
immediate: true,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
immediate: true,
|
methods: {
|
||||||
},
|
// 提交优惠券
|
||||||
},
|
getCoupon(item, index) {
|
||||||
methods: {
|
this.yhqFlag[index] = true;
|
||||||
// 提交优惠券
|
this.$emit("getCoupon", item);
|
||||||
getCoupon(item, index) {
|
},
|
||||||
this.yhqFlag[index] = true;
|
},
|
||||||
this.$emit("getCoupon", item);
|
};
|
||||||
},
|
</script>
|
||||||
},
|
|
||||||
};
|
<style lang="scss" scoped>
|
||||||
</script>
|
.coupon-item {
|
||||||
|
width: 100%;
|
||||||
<style lang="scss" scoped>
|
height: 100%;
|
||||||
.coupon-item {
|
display: flex;
|
||||||
width: 100%;
|
flex-direction: column;
|
||||||
height: 100%;
|
justify-content: space-between;
|
||||||
display: flex;
|
}
|
||||||
flex-direction: column;
|
|
||||||
justify-content: space-between;
|
.coupon-List {
|
||||||
}
|
display: flex;
|
||||||
.coupon-List {
|
flex-direction: column;
|
||||||
display: flex;
|
height: 230rpx;
|
||||||
flex-direction: column;
|
background: #e9ebfb;
|
||||||
height: 230rpx;
|
margin: 30rpx 0;
|
||||||
background: #e9ebfb;
|
padding: 10rpx 30rpx;
|
||||||
margin: 30rpx 0;
|
|
||||||
padding: 10rpx 30rpx;
|
.line {
|
||||||
|
height: 1px;
|
||||||
.line {
|
background: #fff;
|
||||||
height: 1px;
|
margin: 0 20rpx;
|
||||||
background: #fff;
|
position: relative;
|
||||||
margin: 0 20rpx;
|
|
||||||
position: relative;
|
&:before,
|
||||||
|
&:after {
|
||||||
&:before,
|
content: "";
|
||||||
&:after {
|
display: block;
|
||||||
content: "";
|
width: 15rpx;
|
||||||
display: block;
|
height: 30rpx;
|
||||||
width: 15rpx;
|
background: #fff;
|
||||||
height: 30rpx;
|
position: absolute;
|
||||||
background: #fff;
|
top: -15rpx;
|
||||||
position: absolute;
|
}
|
||||||
top: -15rpx;
|
|
||||||
}
|
&:before {
|
||||||
|
left: -50rpx;
|
||||||
&:before {
|
}
|
||||||
left: -50rpx;
|
|
||||||
}
|
&:after {
|
||||||
|
right: -50rpx;
|
||||||
&:after {
|
}
|
||||||
right: -50rpx;
|
}
|
||||||
}
|
|
||||||
}
|
.time {
|
||||||
|
flex: 1;
|
||||||
.time {
|
font-size: 24rpx;
|
||||||
flex: 1;
|
align-items: center;
|
||||||
font-size: 24rpx;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
}
|
||||||
align-items: center;
|
}
|
||||||
}
|
|
||||||
}
|
.top {
|
||||||
|
height: 140rpx;
|
||||||
.top {
|
display: flex;
|
||||||
height: 140rpx;
|
|
||||||
display: flex;
|
.price {
|
||||||
|
width: 33%;
|
||||||
.price {
|
justify-content: center;
|
||||||
width: 33%;
|
color: #6772e5;
|
||||||
justify-content: center;
|
font-size: 40rpx;
|
||||||
color: #6772e5;
|
display: flex;
|
||||||
font-size: 40rpx;
|
|
||||||
display: flex;
|
height: 100%;
|
||||||
|
align-items: center;
|
||||||
height: 100%;
|
|
||||||
align-items: center;
|
span {
|
||||||
span {
|
font-size: 50rpx;
|
||||||
font-size: 50rpx;
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
.text {
|
||||||
.text {
|
width: 33%;
|
||||||
width: 33%;
|
display: flex;
|
||||||
display: flex;
|
flex-direction: column;
|
||||||
flex-direction: column;
|
justify-content: center;
|
||||||
justify-content: center;
|
font-size: 26rpx;
|
||||||
font-size: 26rpx;
|
color: 333;
|
||||||
color: 333;
|
margin-left: 40rpx;
|
||||||
margin-left: 40rpx;
|
|
||||||
|
.coupon-List-title {
|
||||||
.coupon-List-title {
|
font-size: 30rpx;
|
||||||
font-size: 30rpx;
|
font-weight: bold;
|
||||||
font-weight: bold;
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
.lingqu-btn {
|
||||||
.lingqu-btn {
|
display: flex;
|
||||||
display: flex;
|
align-items: center;
|
||||||
align-items: center;
|
margin-left: 40rpx;
|
||||||
margin-left: 40rpx;
|
|
||||||
text {
|
text {
|
||||||
width: 140rpx;
|
width: 140rpx;
|
||||||
height: 40rpx;
|
height: 40rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background: #6772e5;
|
background: #6772e5;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
|
|
||||||
&.cur {
|
&.cur {
|
||||||
background: none;
|
background: none;
|
||||||
transform: rotate(45deg) translate(10rpx, -46rpx);
|
transform: rotate(45deg) translate(10rpx, -46rpx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue