新增积分商品功能 以及 在微信公众号优化部分逻辑

master
lemon橪 2021-07-27 18:14:53 +08:00
parent a6fec5cf70
commit a9db24d1ad
9 changed files with 182 additions and 174 deletions

View File

@ -6,10 +6,7 @@
const dev = {
common: "https://common-api.pickmall.cn",
buyer: "https://buyer-api.pickmall.cn",
// common: 'http://192.168.0.101:8890',
// buyer: 'http://192.168.0.101:8888',
// seller: 'http://192.168.0.101:8889',
// manager: 'http://192.168.0.101:8887'
};
// 生产环境

View File

@ -2,8 +2,8 @@
"name" : "lili商城",
"appid" : "__UNI__C100675",
"description" : "",
"versionName" : "4.0.23",
"versionCode" : 4000023,
"versionName" : "4.0.24",
"versionCode" : 4000024,
"transformPx" : false,
"app-plus" : {
"compatible" : {

View File

@ -36,13 +36,7 @@
}
},
{
"path": "pages/navigation/point/point-mall",
"style": {
"navigationBarTitleText": "积分商城",
"enablePullDownRefresh": true
}
},
{
"path": "pages/navigation/search/searchPage",
"style": {
@ -504,6 +498,13 @@
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},{
"path": "point/pointList",
"style": {
"navigationBarTitleText": "积分商城"
}
}
@ -752,12 +753,7 @@
"selectedIconPath": "static/tabbar/category-s.png",
"text": "分类"
},
// {
// "pagePath": "pages/navigation/point/point-mall",
// "iconPath": "static/tabbar/point-mall.png",
// "selectedIconPath": "static/tabbar/point-mall-s.png",
// "text": "积分商城"
// },
{
"pagePath": "pages/tabbar/cart/cartList",
"iconPath": "static/tabbar/cart.png",

View File

@ -6,8 +6,7 @@
<p class="ptips">收银台</p>
<p class="ptips">剩余支付时间
<u-count-down :show-days="false" :show-border="true" font-size="28" color="#008ffa"
border-color="#008ffa" ref="uCountDown" :timestamp="autoCancel"></u-count-down>
<u-count-down :show-days="false" :show-border="true" font-size="28" color="#008ffa" border-color="#008ffa" ref="uCountDown" :timestamp="autoCancel"></u-count-down>
</p>
<p class="ptips">
支付金额
@ -160,6 +159,10 @@
});
// #endif
//
var ua = window.navigator.userAgent.toLowerCase();
// #ifndef MP-WEIXIN
@ -173,6 +176,14 @@
}
// #endif
if (ua.match(/MicroMessenger/i) == 'micromessenger') {
console.log("微信浏览器")
this.payList = res.data.result.support.filter((item) => {
return item != "ALIPAY";
});
}
this.walletValue = res.data.result.walletValue;
this.autoCancel =
(res.data.result.autoCancel - new Date().getTime()) / 1000;
@ -376,93 +387,93 @@
};
</script>
<style scoped lang="scss">
.method_icon {
.method_icon {
vertical-align: middle;
}
}
.method_name {
.method_name {
font-size: 28rpx;
color: #999;
padding-left: 24rpx;
}
}
.row {
.row {
display: flex;
width: 100%;
}
}
/deep/ .u-row {
/deep/ .u-row {
width: 100% !important;
display: flex;
justify-content: space-between !important;
}
}
.method_name,
.col1 {
.method_name,
.col1 {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.col1 {
.col1 {
text-align: center;
flex: 99;
}
}
.col3 {
.col3 {
text-align: right;
flex: 1;
}
}
.payItem {
.payItem {
padding: 13px 25rpx;
border-top: 1px solid #f9f9f9;
line-height: 100rpx;
font-size: 36rpx;
color: #333;
}
}
.ptips {
.ptips {
font-size: 32rpx;
margin: 20rpx 0;
color: #333;
>span {
> span {
font-size: 40rpx;
color: #df5a52;
margin-left: 10rpx;
}
}
}
.img {
.img {
width: 392rpx !important;
height: 296rpx !important;
}
}
.wrapper {
.wrapper {
min-height: 100vh;
height: auto;
background: #f9f9f9;
}
}
.block-4 {
.block-4 {
background: #fff;
color: $u-tips-color;
>p {
> p {
padding: 8rpx;
}
}
}
.box {
.box {
background: #fff;
padding: 40rpx 0;
// justify-content: center; //X
// align-items: center; // Y
}
}
.block {
.block {
text-align: center;
display: block;
width: 100%;
@ -471,13 +482,13 @@
width: 200rpx;
height: 200rpx;
}
}
}
.block-1 {
.block-1 {
margin-top: 80rpx;
}
}
.btns {
.btns {
margin: 0 20rpx;
}
}
</style>

View File

@ -190,10 +190,11 @@
<div class="box6 mp-iphonex-bottom" v-if="orderMessage.priceDetailDTO">
<div class="tabbar-left">
合计
<span class="number">
<span v-if="!orderMessage.priceDetailDTO.payPoint" class="number">
¥
<span>{{ orderMessage.priceDetailDTO.billPrice | unitPrice }}</span>
<span>{{ orderMessage.priceDetailDTO.flowPrice | unitPrice }}</span>
</span>
<span v-else class="number"><span style="margin-right:10rpx;">{{orderMessage.priceDetailDTO.payPoint | unitPrice }}</span>积分</span>
</div>
<div class="navRiv" @click="createTradeFun()">
<!-- #ifndef MP-WEIXIN -->

View File

@ -117,23 +117,23 @@ export default {
methods: {
/** 根据参数显示登录模块 */
methodFilter(code) {
// let way = [];
// this.loginList.forEach((item) => {
// if (code.length != 0) {
// code.forEach((val) => {
// if (item.code == val) {
// way.push(item);
// }
// });
// } else {
// uni.showToast({
// title: '',
// duration: 2000,
// icon:"none"
// });
// }
// });
// this.loginList = way;
let way = [];
this.loginList.forEach((item) => {
if (code.length != 0) {
code.forEach((val) => {
if (item.code == val) {
way.push(item);
}
});
} else {
uni.showToast({
title: '配置有误请联系管理员',
duration: 2000,
icon:"none"
});
}
});
this.loginList = way;
},
/**跳转到登录页面 */
navigateLogin(connectLogin) {

View File

@ -23,7 +23,6 @@
</u-image>
<view class="index-item-title">{{ item.goodsSku.goodsName }}</view>
<view class="index-item-price">
{{ item.points | unitPrice }}积分
<span class="tipsMkt">¥{{ item.goodsSku.price | unitPrice }}</span>
</view>
@ -97,8 +96,9 @@ export default {
}
},
},
async onShow() {
async mounted() {
//
let response = await getPointsCategory();
if (response.data.success) {
@ -273,12 +273,11 @@ page {
.swiper-box {
// #ifdef H5
height: calc(100vh - 294px);
height: calc(100vh - (100rpx + 300rpx + 44px));
// #endif
// #ifndef H5
height: calc(100vh - 200px);
height: calc(100vh - 400rpx);
// #endif
.scroll-v {

View File

@ -1,6 +1,6 @@
<template>
<div class="user-point">
<div class="point-rule">积分规则</div>
<!-- <div class="point-rule">积分规则</div> -->
<div class="point-wrapper">
<u-image shape="circle" :lazy-load="true" width="100" height="100" :src="userInfo.face || '/static/missing-face.png'"></u-image>
<div class="whether-point">
@ -43,6 +43,7 @@ export default {
padding: 20rpx 0;
}
.point-wrapper {
padding-top: 80rpx;
display: flex;
}
.whether-point {

View File

@ -1,7 +1,9 @@
/** 配置楼层模块的跳转 */
export function modelNavigateTo(item) {
let val = item.url;
switch (val.___type) {
case "goods":
uni.navigateTo({
url: "/pages/product/goods?id=" + val.id + "&goodsId=" + val.goodsId,
@ -36,6 +38,7 @@ export function modelNavigateTo(item) {
break;
case "other":
switch (val.title) {
case "首页":
uni.switchTab({
url: `/pages/tabbar/home/index`,
@ -92,8 +95,8 @@ export function modelNavigateTo(item) {
});
break;
case "积分商城":
uni.switchTab({
url: `/pages/navigation/point/point-mall`,
uni.navigateTo({
url: `/pages/promotion/point/pointList`,
});
break;
}