diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
index 0d12f45..660fce7 100644
--- a/.hbuilderx/launch.json
+++ b/.hbuilderx/launch.json
@@ -24,7 +24,7 @@
"type" : "uni-app:app-ios"
},
{
- "playground" : "custom",
+ "playground" : "standard",
"type" : "uni-app:app-android"
}
]
diff --git a/config/baseUrl.js b/config/baseUrl.js
index f259e79..672102e 100644
--- a/config/baseUrl.js
+++ b/config/baseUrl.js
@@ -7,7 +7,7 @@ if (process.env.NODE_ENV === 'development') {
// baseUrl = "https://twin-ui.com/demo/";
// baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境
baseUrl = "https://api.nuttyreading.com/"; // 线上正式
- // baseUrl = "http://192.168.110.100:9200/pb/"; // 开发用电脑
+ // baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
// baseUrl = "http://59.110.212.44:9200/pb/";
// baseUrl = "http://192.168.110.100:9100/pb/"; // 开发用电脑
// baseUrl = "http://192.168.110.110:9200/pb/";//磊哥
@@ -20,7 +20,7 @@ if (process.env.NODE_ENV === 'development') {
// baseUrl = "http://59.110.212.44:9100/pb/";
// baseUrl = "https://testapi.nuttyreading.com/";
baseUrl = "https://api.nuttyreading.com/"; //1
- // baseUrl = "http://192.168.110.100:9200/pb/"; // 开发用电脑
+ // baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
// baseUrl = "ws://twin-ui.com:6001/";
// socketUrl = "ws://twin-ui.com:6001/";
}
diff --git a/manifest.json b/manifest.json
index 950e24a..f6e9ef5 100644
--- a/manifest.json
+++ b/manifest.json
@@ -10,8 +10,8 @@
"sizes": "分辨率,192x192",
"src": "图片路径"
}],
- "versionName": "1.2.68",
- "versionCode": 1268,
+ "versionName": "1.2.70",
+ "versionCode": 1270,
"app-plus": {
"compatible": {
"ignoreVersion": true
diff --git a/pages/bookShop/commodityDetail.vue b/pages/bookShop/commodityDetail.vue
index 0a859fb..1ba50f1 100644
--- a/pages/bookShop/commodityDetail.vue
+++ b/pages/bookShop/commodityDetail.vue
@@ -43,27 +43,100 @@
- ¥{{ productInfo.activityPrice }}
+ >VIP优惠图书
+
+ ¥
+ {{ productInfo.vipPrice }}
+ {{ productInfo.activityPrice }}
原价¥{{ productInfo.price }}
-
- ¥{{ productInfo.price }}
+
+
+ VIP优惠图书
+
+ ¥
+ {{ productInfo.vipPrice }}原价¥{{ productInfo.price }}
+
+ ¥{{ productInfo.price }}
+
{{ productInfo.productName }}
(无货)
+ 已售{{
productInfo.sumSales
}}
-
+
@@ -102,6 +175,7 @@
@@ -112,13 +186,91 @@
- {{ item.productName }}
-
+ {{ item.productName }}
+
+
+
+
+ ¥{{ item.vipPrice.toFixed(2) }}
+
+ ¥{{ Number(item.price).toFixed(2) }}
+
+
+
+ ¥{{ item.activityPrice.toFixed(2) }}
+
+ ¥{{ Number(item.price).toFixed(2) }}
+
+
+ ¥{{ Number(item.price).toFixed(2) }}
+ VIP优惠
+
@@ -396,7 +548,7 @@
-
+
- {{ item.productName }}
-
+ {{ item.productName }}
+
+
+
+ ¥{{ item.vipPrice.toFixed(2) }}
+
+ ¥{{ Number(item.price).toFixed(2) }}
+
+
+
+ ¥{{ item.activityPrice.toFixed(2) }}
+
+ ¥{{ Number(item.price).toFixed(2) }}
+
+
+ ¥{{ Number(item.price).toFixed(2) }}
+
+ VIP优惠
+
@@ -476,7 +710,7 @@ import loginVue from "../user/login.vue";
export default {
data() {
return {
- canGetCouponList:[],
+ canGetCouponList: [],
qunyiList: [
{
name: "打卡",
@@ -583,8 +817,8 @@ export default {
musicPlay,
},
methods: {
- // 获取购买后可获得优惠券列表
- async getCanGetCouponList() {
+ // 获取购买后可获得优惠券列表
+ async getCanGetCouponList() {
await this.$http
.request({
url: "common/coupon/couponToProductList",
@@ -600,7 +834,7 @@ export default {
},
})
.then(async (res) => {
- if (res.code != 0) return ;
+ if (res.code != 0) return;
console.log("res优惠券", res);
this.canGetCouponList = res.couponToShopproductPage.records;
})
@@ -1262,6 +1496,7 @@ export default {
}
.spbh {
+ margin-top: 10px;
border: 2rpx solid #fff;
.spbhimg {
@@ -1382,7 +1617,7 @@ export default {
.spbh {
padding-bottom: 10rpx;
- font-size: 26rpx;
+ font-size: 28rpx;
padding: 0 10rpx;
}
@@ -1402,7 +1637,8 @@ export default {
}
.username {
- margin-left: 10rpx;
+ padding-left: 20rpx;
+ text-align: justify;
}
.price {
@@ -1432,7 +1668,7 @@ export default {
}
.username {
- font-size: 24rpx;
+ font-size: 26rpx;
color: #999;
margin-top: 6rpx;
}
@@ -1474,7 +1710,7 @@ export default {
// padding: 20px 10px;
// line-height: 30rpx;
// background-color: #fff;
- font-size: 26rpx;
+ font-size: 28rpx;
color: #555;
// border-radius: 20rpx 20rpx 0 0
}
@@ -1500,7 +1736,7 @@ export default {
background-color: #fff;
padding: 30rpx 30rpx 10rpx 30rpx;
height: auto;
- font-size: 26rpx;
+ font-size: 28rpx;
.commodityPrice {
// background-image: linear-gradient(0deg, #f7fffc 0%, #def0ea 100%);
@@ -1633,7 +1869,7 @@ export default {
}
.quanyi_item {
- font-size: 26rpx;
+ font-size: 28rpx;
width: auto;
border-radius: 10rpx;
diff --git a/pages/bookShop/orderLCont.vue b/pages/bookShop/orderLCont.vue
index 1f8f1b8..661a71c 100644
--- a/pages/bookShop/orderLCont.vue
+++ b/pages/bookShop/orderLCont.vue
@@ -33,8 +33,11 @@
已超时
-
+
@@ -94,6 +97,15 @@
运费 :
¥{{orderContet.shippingPrice}}
+
+ 活动立减:
+ - ¥{{orderContet.districtPrice}}
+
+
+ VIP 专享立减:
+ - ¥{{orderContet.vipDiscountAmount}}
+
+
@@ -317,6 +321,8 @@ import { data } from 'jquery';
"limit": 10,
"page": this.newestpage
}
+
+ console.log('params at line 324:', params)
$http.request({
url: "book/buyOrder/getUserOrderList",
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
diff --git a/pages/bookShop/settlement.vue b/pages/bookShop/settlement.vue
index b461b41..cda7bc5 100644
--- a/pages/bookShop/settlement.vue
+++ b/pages/bookShop/settlement.vue
@@ -1,58 +1,149 @@
-
-
-
-
-
-
- 请添加收货地址
-
-
-
-
- {{adressMoRen.consigneeName}}
-
-
- {{adressMoRen.consigneePhone}}
-
-
- 默认
-
-
-
-
- {{adressMoRen.province}} {{adressMoRen.city}} {{adressMoRen.county}} {{adressMoRen.detailAddress}}
-
-
+
+
+
+
+
+
+ 请添加收货地址
+
-
-
-
+
+
+
+ {{ adressMoRen.consigneeName }}
+
+
+ {{ adressMoRen.consigneePhone }}
+
+ 默认
+
+
+
+ {{ adressMoRen.province }} {{ adressMoRen.city }}
+ {{ adressMoRen.county }} {{ adressMoRen.detailAddress }}
+
+
-
-
-
-
-
- {{item.productName}}
-
-
- ¥{{item.activityPrice*item.productAmount}}
- ¥{{item.price*item.productAmount}}
-
-
-
-
-
+
+
+
-
-
- 商品总价
- ¥{{totalPrice}}
-
-
+ ¥{{ Number(item.price).toFixed(2) }}
+
+
+
+ ¥{{ item.activityPrice.toFixed(2) }}
+
+ ¥{{ Number(item.price).toFixed(2) }}
+
+
+ ¥{{ Number(item.price).toFixed(2) }}
+
+
+
+
+
+
+
+
+
+ 商品总价
+ ¥{{ totalPrice.toFixed(2) }}
+
+
-
-
- 运费
- ¥{{farePrice}}
-
-
-
- 注:如订单包含一种或多种预售书,预售书和现货书需分开发货(即需要收取多次快递首重费用);如多本书会按照实际重量,收取快递续重费用。
-
-
-
-
-
-
-
-
-
- {{item.title}}
- {{userMes.peanutCoin}}天医币可用
- 去充值
-
-
-
-
-
-
-
-
+ 活动立减
+ - ¥{{ districtAmount.toFixed(2) }}
+
+
+
+ VIP 专享立减
+ - ¥{{ vipPrice.toFixed(2) }}
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+ {{ userMes.peanutCoin }}天医币可用
+ 去充值
+
+
+
+
+
+
+
+
-
-
-
-
- 请选择地址
-
-
- 添加地址
-
-
-
-
-
-
- {{item.consigneeName}}
-
-
- {{item.consigneePhone}}
-
-
- 默认
-
-
-
-
-
- {{item.province}} {{item.city}} {{item.county}}
- {{item.detailAddress}}
-
-
-
-
+
+
+
+
+ 请选择地址
+
+
+ 添加地址
+
+
+
+
+
+
+ {{ item.consigneeName }}
+
+
+ {{ item.consigneePhone }}
+
+ 默认
+
+
+
+
+ {{ item.province }} {{ item.city }} {{ item.county }}
+ {{ item.detailAddress }}
+
+
+
+
+
+
+
-
-
-
+
+
+
+ 请选择优惠券
+
+
+
+ ¥
+ {{ item.coupons.couponAmount }}
+ 满{{ item.coupons.useLevel }}元可用
+
+
+ {{ item.coupons.couponName }}
+ 到期时间:{{ item.coupons.expirationDate }}
+
+
+
+
+
+
+
+
+ * 每笔订单只能使用一张优惠价
+
+
+
+
+
+
-
-
-
-
- 请选择优惠券
-
-
-
- ¥
- {{item.coupons.couponAmount}}
- 满{{item.coupons.useLevel}}元可用
-
-
- {{item.coupons.couponName}}
- 到期时间:{{item.coupons.expirationDate}}
-
-
-
-
-
-
-
-
- * 每笔订单只能使用一张优惠价
-
-
-
-
-
-
-
-
-
+
+
\ No newline at end of file
+.chongBtn {
+ background-color: #54a966;
+ color: #fff !important;
+ margin-left: 20rpx;
+ border-radius: 10rpx;
+ padding: 2rpx 10rpx;
+ font-size: 20rpx;
+ display: inline-block;
+}
+
diff --git a/pages/peanut/home.vue b/pages/peanut/home.vue
index b35c35e..25d6e42 100644
--- a/pages/peanut/home.vue
+++ b/pages/peanut/home.vue
@@ -265,28 +265,43 @@
-
+
+ style="position: relative;" @click="goDetail(item.product_id)">
{{ item.product_name }}
-
-
- ¥{{ item.activity_price }}
- ¥{{ item.price }}
-
+
+
- ¥{{ item.price }}
- 已售:{{ item.sum_sales }} 件
+
+ ¥{{(item.vip_price).toFixed(2)}}
+
+ ¥{{(item.price).toFixed(2)}}
+
+
+
+
+
+
+ ¥{{(item.activity_price).toFixed(2)}}
+
+ ¥{{(item.price).toFixed(2)}}
+
+
+
+
+
+
+ ¥{{ item.price }}
+ 已售:{{ item.sum_sales }} 件
+
+ VIP优惠
@@ -460,12 +475,12 @@
// 隐藏原生的tabbar
uni.hideTabBar();
// this.requestIapOrder()
- this.$nextTick(()=>{
+ this.$nextTick(() => {
-this.getAdvertisement()
+ this.getAdvertisement()
+
+ })
-})
-
},
onHide() {
this.page = 1;
@@ -546,27 +561,27 @@ this.getAdvertisement()
...mapMutations(["setUserInfo"]),
async getAdvertisement() {
- await $http
- .request({
- url: "common/mainAd/getMainAd",
- method: "POST",
- data: {
- type: 0,
- },
- header: {
- //默认 无 说明:请求头
- "Content-Type": "application/json",
- },
- })
- .then(async (res) => {
- console.log("res at line 61511111111111111:", res);
- if (res.code == 0 && res.list && res.list.length > 0) {
- this.advertisementList = res.list;
+ await $http
+ .request({
+ url: "common/mainAd/getMainAd",
+ method: "POST",
+ data: {
+ type: 0,
+ },
+ header: {
+ //默认 无 说明:请求头
+ "Content-Type": "application/json",
+ },
+ })
+ .then(async (res) => {
+ console.log("res at line 61511111111111111:", res);
+ if (res.code == 0 && res.list && res.list.length > 0) {
+ this.advertisementList = res.list;
- this.$refs.commonAdvertisement.open();
- }
- });
- },
+ this.$refs.commonAdvertisement.open();
+ }
+ });
+ },
requestAll() {
this.getUserInfo();
this.tjProList = [];
@@ -740,6 +755,7 @@ this.getAdvertisement()
.then((res) => {
if (res.code == 0 && res.result.length > 0) {
this.tjProList = res.result;
+ console.log('列表列表this.tjProList at line 745:', this.tjProList)
} else {
this.tjProList = [];
this.status = 3;
@@ -1803,7 +1819,7 @@ this.getAdvertisement()
display: inline-block;
width: 46%;
border-radius: 20rpx;
- padding: 25rpx;
+ padding: 20rpx;
padding-bottom: 5rpx;
margin: 0 20rpx 20rpx 20rpx;
background-color: #fff;
@@ -1818,7 +1834,7 @@ this.getAdvertisement()
.goodsContent {
.goodsName {
margin-top: 10rpx;
- font-size: 28rpx;
+ font-size: 26rpx;
// font-weight: bold;
}
diff --git a/pages/peanut/shopping.vue b/pages/peanut/shopping.vue
index 7a48536..f64d21e 100644
--- a/pages/peanut/shopping.vue
+++ b/pages/peanut/shopping.vue
@@ -5,20 +5,43 @@
-
-
+
+ VIP优惠
+
-
+
{{item.productName}}
- ¥{{item.activityPrice*item.productAmount}}
- ¥{{item.price*item.productAmount}}
-
+
+ ¥{{(item.vipPrice).toFixed(2)}}
+
+ ¥{{(item.price).toFixed(2)}}
+
+
+
+
+
+
+ ¥{{(item.activityPrice).toFixed(2)}}
+
+ ¥{{(item.price).toFixed(2)}}
+
+
+
+
+
+ ¥{{item.price}}
+
+
@@ -29,13 +52,20 @@