diff --git a/config.js b/config.js
index 2968860..76bbd47 100644
--- a/config.js
+++ b/config.js
@@ -3,11 +3,11 @@ export const appConfig = {
//appId:"wx3dc65ce9b588727a",//孕育咨询
//baseUrl: 'http://yunyubang.localhost.com',
- // baseUrl:'https://yunyubang.ali251.langye.net',// 'https://yunyubang2021.langye.net', //孕育邦
- baseUrl: 'https://yybtest.ali251.langye.net',
+ baseUrl:'https://yunyubang.ali251.langye.net',// 'https://yunyubang2021.langye.net', //孕育邦
+ // baseUrl: 'https://yybtest.ali251.langye.net',
- // newBaseUrl: 'https://yunyubang.ali251.langye.net',
- newBaseUrl: 'http://yybtest.ali251.langye.net',
+ newBaseUrl: 'https://yunyubang.ali251.langye.net',
+ // newBaseUrl: 'http://yybtest.ali251.langye.net',
//baseUrl:'https://yybtest2021.langye.net',//孕育咨询
openidInfoKey: 'openid_info_yunyubang'
diff --git a/packages/packageBuy/pages/shopDetail/shopDetail.vue b/packages/packageBuy/pages/shopDetail/shopDetail.vue
index 6ea2418..a81e4c7 100644
--- a/packages/packageBuy/pages/shopDetail/shopDetail.vue
+++ b/packages/packageBuy/pages/shopDetail/shopDetail.vue
@@ -8,7 +8,7 @@
- 1334
+ {{viewCounts}}
@@ -239,7 +239,8 @@
id: "",
tel: "18550406975",
showPass: false,
- info: {},
+ info: {},
+ viewCounts:'',
dataList: [],
form: {
product_type: "product",
@@ -307,9 +308,9 @@
} else {
that.form.member_name = info.user_info.wechat_nickname;
}
-
that.loadInfo();
- that.loadPage();
+ that.loadPage();
+
}, true);
@@ -812,7 +813,8 @@
url: "../shopDetail/shopDetail?id=" + id
})
},
- loadInfo: function() {
+ loadInfo: function() {
+ this.loadView();
weixin.request({
api: '/api/member/get-product/' + this.id,
method: 'GET',
@@ -855,6 +857,24 @@
util.alert(res);
}
});
+ },
+ loadView: function() {
+ var that = this;
+ weixin.request({
+ bindThis: that,
+ api: '/api/member/other/pv-count',
+ customLoading: false,
+ data: {
+ url:'/api/member/get-product/' + that.id
+ },
+ utilSuccess: function(r) {
+ console.log("r",r)
+ that.viewCounts = r.total
+ },
+ utilFail: function(res) {
+ util.alert(res);
+ }
+ });
}
}
diff --git a/packages/packageCarecenter/pages/careCenter/productDetail.vue b/packages/packageCarecenter/pages/careCenter/productDetail.vue
index de9bdf5..b18cc8d 100644
--- a/packages/packageCarecenter/pages/careCenter/productDetail.vue
+++ b/packages/packageCarecenter/pages/careCenter/productDetail.vue
@@ -107,7 +107,7 @@
-
+
diff --git a/packages/packageCarecenter/pages/careCenter/serviceDetail.vue b/packages/packageCarecenter/pages/careCenter/serviceDetail.vue
index 4cd298d..ef93acb 100644
--- a/packages/packageCarecenter/pages/careCenter/serviceDetail.vue
+++ b/packages/packageCarecenter/pages/careCenter/serviceDetail.vue
@@ -510,7 +510,6 @@
let user_info = uni.getStorageSync("user_info_yunyubang");
let userProfile = uni.getStorageSync('user_profile');
-
var img = this.imgAvatar;
uni.getImageInfo({
src: userProfile.avatarUrl, // 头像
@@ -1125,7 +1124,9 @@
border-radius: 20rpx;
background: #FFFFFF;
- padding-bottom: 21rpx;
+ padding-bottom: 21rpx;
+ margin-bottom:20rpx;
+ width:330rpx;
&-name {
color: #333333;
@@ -1143,7 +1144,7 @@
padding: 0 24rpx;
margin-top: 13rpx;
-
+
&-item {
background: rgba(255, 87, 138, 0.1);
border-radius: 12rpx;
@@ -1152,7 +1153,8 @@
color: #FF578A;
margin-right: 10rpx;
- padding: 6rpx 15rpx;
+ padding: 6rpx 15rpx;
+ margin-bottom:5rpx;
}
}
diff --git a/packages/packageCarecenter/pages/commonService/serviceDetail.vue b/packages/packageCarecenter/pages/commonService/serviceDetail.vue
index bc64c66..32f64f2 100644
--- a/packages/packageCarecenter/pages/commonService/serviceDetail.vue
+++ b/packages/packageCarecenter/pages/commonService/serviceDetail.vue
@@ -216,20 +216,67 @@
联系优孕月子福利官
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
diff --git a/packages/packageCarecenter/static/avatar.jpg b/packages/packageCarecenter/static/avatar.jpg
new file mode 100644
index 0000000..b7d4a81
Binary files /dev/null and b/packages/packageCarecenter/static/avatar.jpg differ
diff --git a/pages/active/detail.vue b/pages/active/detail.vue
index 2129bec..b081111 100644
--- a/pages/active/detail.vue
+++ b/pages/active/detail.vue
@@ -8,7 +8,7 @@
- 1334
+ {{viewCounts}}
@@ -353,6 +353,7 @@
id: "",
showPass: false,
info: {},
+ viewCounts:'',
dataList: [],
form: {
merchant_id: "",
@@ -865,7 +866,8 @@
utilSuccess: res => {
uni.showToast({
icon:'success',
- title:res.msg
+ title:res.msg,
+ duration:2000
})
this.showPop = false
},
@@ -886,6 +888,7 @@
},
loadInfo: function() {
let that = this
+ that.loadView()
weixin.request({
api: '/api/member/active-show/',
method: 'GET',
@@ -900,12 +903,12 @@
this.info = r;
let apply_end = r.apply_end
let apply_start = r.apply_start
- let startdate = r.start_date+" "+r.start_time
+ let enddate = r.end_date+" "+r.end_time
let nowtime = that.getNowTime()
if(that.compareDate(apply_start,nowtime)){
that.isOrder = false
that.isOrderText = "报名未开始"
- }else if(that.compareDate(nowtime,apply_end)||that.compareDate(nowtime,startdate)){
+ }else if(that.compareDate(nowtime,apply_end)||that.compareDate(nowtime,enddate)){
that.isOrder = false
that.isOrderText = "报名截止"
}else{
@@ -946,6 +949,25 @@
util.alert(res);
}
});
+ },
+ loadView: function() {
+ var that = this;
+ weixin.request({
+ bindThis: that,
+ api: '/api/member/other/pv-count',
+ customLoading: false,
+ data: {
+ url:'/api/member/active-show',
+ body:'id='+that.id
+ },
+ utilSuccess: function(r) {
+ console.log("r",r)
+ that.viewCounts = r.total
+ },
+ utilFail: function(res) {
+ util.alert(res);
+ }
+ });
}
}