Commit 25696d55 by 谢中龙

联系我放到个人中心去

parent 7196b3ed
...@@ -29,12 +29,15 @@ wxService.page({ ...@@ -29,12 +29,15 @@ wxService.page({
pageBackgroundColor: 0, pageBackgroundColor: 0,
guidePageModalShow: false, guidePageModalShow: false,
currHomePageId: '', currHomePageId: '',
skuVOList: [] skuVOList: [],
isQiye: false,
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad() { onLoad() {
// 判断环境是不是企业微信
let env = wx.getStorageSync('_qyWeChat');
// 设置 导航栏背景颜色 // 设置 导航栏背景颜色
// wxService.getNavBarBackGroundColor('#000000', '#ff0000') // wxService.getNavBarBackGroundColor('#000000', '#ff0000')
this.setData( this.setData(
...@@ -47,6 +50,7 @@ wxService.page({ ...@@ -47,6 +50,7 @@ wxService.page({
renderPageOver: false, // 渲染页面结束 renderPageOver: false, // 渲染页面结束
// isAuthorization: true, // isAuthorization: true,
outoHeigth: 500, outoHeigth: 500,
isQiye: env ? true : false
}, },
() => { () => {
// this.loadMore() // this.loadMore()
...@@ -70,6 +74,15 @@ wxService.page({ ...@@ -70,6 +74,15 @@ wxService.page({
// }) // })
wxService.router(`/subPackage/page/pages/subPage/subPage`).search({ pageId }) wxService.router(`/subPackage/page/pages/subPage/subPage`).search({ pageId })
}, },
//联系我方法
startmessage(e) {
console.log('联系我插件信息startmessage----', e)
// console.log('startmessage', e)
},
completemessage(e) {
console.log('联系我插件信息completemessage----', e)
// console.log('completemessage', e)
},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
"guide-page-modal": "/component/guidePageModal/guidePageModal", "guide-page-modal": "/component/guidePageModal/guidePageModal",
"bottom-tabs": "/component/bottomTabs/bottomTabs", "bottom-tabs": "/component/bottomTabs/bottomTabs",
"authorization-modal": "/component/authorization-modal/authorization-modal", "authorization-modal": "/component/authorization-modal/authorization-modal",
"plus": "/component/plus/plus" "plus": "/component/plus/plus",
"cell": "plugin://contactPlugin/cell"
} }
} }
\ No newline at end of file
...@@ -35,3 +35,16 @@ ...@@ -35,3 +35,16 @@
<!-- 底部补充高度 防止被遮盖 --> <!-- 底部补充高度 防止被遮盖 -->
<view class="bottom-fixed" style="padding-bottom:{{paddingBottom}}"></view> <view class="bottom-fixed" style="padding-bottom:{{paddingBottom}}"></view>
<share-benefit-modal show="{{shareBenefitModalShow}}" benefit-data="{{benefitData}}"/> <share-benefit-modal show="{{shareBenefitModalShow}}" benefit-data="{{benefitData}}"/>
<!-- 联系我 -->
<view class="cell-me" wx:if="{{!isQiye}}">
<cell
bind:startmessage='startmessage'
isMask="0"
styleType="2"
blockStyle="bubble"
buttonStyle="light"
buttonText="0"
bubbleColor="cb3c3c"
bind:completemessage="completemessage"
plugid='766c50920993bf9c41c6c3d2761a2df5' />
</view>
/* pages/my/my.wxss */ /* pages/my/my.wxss */
@import './../../base/base.wxss'; @import './../../base/base.wxss';
.cell-me {
position: fixed;
right: 10rpx;
top: 76%;
z-index: 2;
}
.bottom-fixed{ .bottom-fixed{
padding-bottom: 40rpx; padding-bottom: 40rpx;
} }
......
...@@ -33,13 +33,20 @@ wxService.page({ ...@@ -33,13 +33,20 @@ wxService.page({
shareBenefitModalShow: false, shareBenefitModalShow: false,
currHomePageId: '', currHomePageId: '',
skuVOList: [], skuVOList: [],
benefitData: '' benefitData: '',
isQiye: false,
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
this.initPage() this.initPage();
// 判断环境是不是企业微信
let env = wx.getStorageSync('_qyWeChat');
this.setData({
isQiye: env ? true : false
});
let memberId = options.memberId; let memberId = options.memberId;
if (memberId) { if (memberId) {
...@@ -68,10 +75,10 @@ wxService.page({ ...@@ -68,10 +75,10 @@ wxService.page({
}, },
startmessage(e){ startmessage(e){
// console.log('startmessage', e) console.log('联系我插件信息startmessage----', e)
}, },
completemessage(e){ completemessage(e){
// console.log('completemessage', e) console.log('联系我插件信息completemessage----', e)
}, },
// 获取邀请奖励图片 // 获取邀请奖励图片
getShareImg() { getShareImg() {
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</view> </view>
</block> </block>
<view class="cell-me"> <view class="cell-me" wx:if="{{!isQiye}}">
<cell <cell
bind:startmessage='startmessage' bind:startmessage='startmessage'
isMask="0" isMask="0"
...@@ -49,9 +49,8 @@ ...@@ -49,9 +49,8 @@
buttonText="0" buttonText="0"
bubbleColor="cb3c3c" bubbleColor="cb3c3c"
bind:completemessage="completemessage" bind:completemessage="completemessage"
plugid='c9918b9af349c100b285d1b9a4d19ec6' /> plugid='766c50920993bf9c41c6c3d2761a2df5' />
</view> </view>
</view> </view>
<guide-page-modal show="{{guidePageModalShow}}" /> <guide-page-modal show="{{guidePageModalShow}}" />
<share-benefit-modal show="{{shareBenefitModalShow}}" benefit-data="{{benefitData}}"/> <share-benefit-modal show="{{shareBenefitModalShow}}" benefit-data="{{benefitData}}"/>
......
{ {
"navigationBarTitleText": "欢迎你", "navigationBarTitleText": "欢迎你,导购",
"usingComponents": {} "usingComponents": {}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment