diff --git a/common/api/shop.js b/common/api/shop.js
index ab442b0..369489e 100644
--- a/common/api/shop.js
+++ b/common/api/shop.js
@@ -365,6 +365,14 @@ export default {
addrefundall({order_id,reason_info}) {
return vm.$u.post('order/add_refund_all',{order_id,reason_info})
},
+ //提示文字
+ tips(){
+ return vm.$u.post('Shop/tips')
+ },
+ //内容
+ tipsinfo({document_code}){
+ return vm.$u.post('Shop/tipInfo',{document_code})
+ }
}
}
diff --git a/pageB/sdetails/index.vue b/pageB/sdetails/index.vue
index 8822890..75d9f4c 100644
--- a/pageB/sdetails/index.vue
+++ b/pageB/sdetails/index.vue
@@ -37,6 +37,10 @@
{{ goodsInfo.is_collect == 1 ? '已收藏' : '收藏' }}
+
+ 历史销售数量:{{goodsInfo.goods_salenum}}
+ 库存仅剩数量:{{goodsInfo.goods_storage}}
+
@@ -776,7 +780,15 @@ export default {
.goods-name {
line-height: 1.5;
}
+
}
+ .shuliang{
+ padding-top: 33rpx;
+ font-size: 24rpx;
+ color:#656565;
+ display: flex;
+ justify-content: space-between;
+ }
.price-collect {
display: flex;
align-items: center;
@@ -1252,6 +1264,7 @@ export default {
font-size: 30rpx;
color: #ff3131;
}
+
}
}
.num {
diff --git a/pageB/tipsinfo/index.vue b/pageB/tipsinfo/index.vue
new file mode 100644
index 0000000..7f6eb25
--- /dev/null
+++ b/pageB/tipsinfo/index.vue
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages.json b/pages.json
index 144ff1c..d89b4c9 100644
--- a/pages.json
+++ b/pages.json
@@ -80,6 +80,17 @@
{
"root": "pageB",
"pages": [
+ {
+ "path": "tipsinfo/index",
+ "style": {
+ "navigationBarTitleText": "",
+ "app-plus":{
+ "titleNView":{
+ "backgroundColor":"#ffffff"
+ }
+ }
+ }
+ },
{
"path": "playVideo/index",
"style": {
diff --git a/pages/shop/index.vue b/pages/shop/index.vue
index 0058543..28f6882 100644
--- a/pages/shop/index.vue
+++ b/pages/shop/index.vue
@@ -17,7 +17,7 @@
-
+
+
+
+ {{item.document_title}}
@@ -95,12 +99,14 @@
pinTuanPush: {}, // 拼团推荐
activityInfo: {},
areaList: [], // 位置信息
+ tips:[]
}
},
onLoad() {
this.getShopTopList();
this.getLocation(); // 获取定位
this.getStoreActivity();
+ this.gettips()
// this.area = uni.getStorageSync("address") || "请选择";
},
onShow() {
@@ -110,6 +116,21 @@
this.getAllLoaction(); // 获取位置
},
methods: {
+ totips(id){
+ this.$u.route({
+ type:"to",
+ url:"/pageB/tipsinfo/index",
+ params:{
+ id
+ }
+ })
+ },
+ gettips(){
+ this.$u.api.tips().then((res)=>{
+ console.log(res)
+ this.tips = res.data
+ })
+ },
sousuo() {
// console.log(123)
this.$u.route({