Commit 25696d55 by 谢中龙

联系我放到个人中心去

parent 7196b3ed
......@@ -29,12 +29,15 @@ wxService.page({
pageBackgroundColor: 0,
guidePageModalShow: false,
currHomePageId: '',
skuVOList: []
skuVOList: [],
isQiye: false,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad() {
// 判断环境是不是企业微信
let env = wx.getStorageSync('_qyWeChat');
// 设置 导航栏背景颜色
// wxService.getNavBarBackGroundColor('#000000', '#ff0000')
this.setData(
......@@ -47,6 +50,7 @@ wxService.page({
renderPageOver: false, // 渲染页面结束
// isAuthorization: true,
outoHeigth: 500,
isQiye: env ? true : false
},
() => {
// this.loadMore()
......@@ -70,6 +74,15 @@ wxService.page({
// })
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 @@
"guide-page-modal": "/component/guidePageModal/guidePageModal",
"bottom-tabs": "/component/bottomTabs/bottomTabs",
"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 @@
<!-- 底部补充高度 防止被遮盖 -->
<view class="bottom-fixed" style="padding-bottom:{{paddingBottom}}"></view>
<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 */
@import './../../base/base.wxss';
.cell-me {
position: fixed;
right: 10rpx;
top: 76%;
z-index: 2;
}
.bottom-fixed{
padding-bottom: 40rpx;
}
......
......@@ -33,13 +33,20 @@ wxService.page({
shareBenefitModalShow: false,
currHomePageId: '',
skuVOList: [],
benefitData: ''
benefitData: '',
isQiye: false,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.initPage()
this.initPage();
// 判断环境是不是企业微信
let env = wx.getStorageSync('_qyWeChat');
this.setData({
isQiye: env ? true : false
});
let memberId = options.memberId;
if (memberId) {
......@@ -68,10 +75,10 @@ wxService.page({
},
startmessage(e){
// console.log('startmessage', e)
console.log('联系我插件信息startmessage----', e)
},
completemessage(e){
// console.log('completemessage', e)
console.log('联系我插件信息completemessage----', e)
},
// 获取邀请奖励图片
getShareImg() {
......
......@@ -39,7 +39,7 @@
</view>
</block>
<view class="cell-me">
<view class="cell-me" wx:if="{{!isQiye}}">
<cell
bind:startmessage='startmessage'
isMask="0"
......@@ -49,9 +49,8 @@
buttonText="0"
bubbleColor="cb3c3c"
bind:completemessage="completemessage"
plugid='c9918b9af349c100b285d1b9a4d19ec6' />
plugid='766c50920993bf9c41c6c3d2761a2df5' />
</view>
</view>
<guide-page-modal show="{{guidePageModalShow}}" />
<share-benefit-modal show="{{shareBenefitModalShow}}" benefit-data="{{benefitData}}"/>
......
{
"navigationBarTitleText": "欢迎你",
"navigationBarTitleText": "欢迎你,导购",
"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