hebing
This commit is contained in:
@@ -7,20 +7,24 @@ Page({
|
||||
|
||||
dynamic_id: '', //活动id
|
||||
info: '', //详情信息
|
||||
loaded: false,
|
||||
company_id: wx.getStorageSync('company_id'),
|
||||
loaded: false
|
||||
},
|
||||
onLoad(e) {
|
||||
this.setData({
|
||||
dynamic_id: e.id
|
||||
})
|
||||
this.dynamicsDetail();
|
||||
wx.getStorage({
|
||||
key: 'company_id',
|
||||
success: res=>{
|
||||
this.dynamicsDetail(res.data);
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 获取详情
|
||||
*/
|
||||
dynamicsDetail() {
|
||||
wx.$api.companyModule.dynamicsDetail(this.data.company_id, this.data.dynamic_id).then(res => {
|
||||
dynamicsDetail(companyId) {
|
||||
wx.$api.companyModule.dynamicsDetail(companyId, this.data.dynamic_id).then(res => {
|
||||
if (res.content) {
|
||||
var nodes = res.content.replace('<img', '<img style="max-width:100%;height:auto""');
|
||||
}
|
||||
|
||||
@@ -5,10 +5,19 @@ Page({
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
info:''
|
||||
info: '',
|
||||
isLogin:false
|
||||
},
|
||||
onShow() {
|
||||
wx.getStorage({
|
||||
key: 'token',
|
||||
success: () => {
|
||||
this.setData({
|
||||
isLogin:true
|
||||
})
|
||||
this.userInfo();
|
||||
},fail:()=>{ }
|
||||
})
|
||||
},
|
||||
|
||||
userInfo() {
|
||||
@@ -24,5 +33,10 @@ Page({
|
||||
title: '正在完善,看看其他的吧',
|
||||
icon: 'none'
|
||||
})
|
||||
},
|
||||
goLogin(){
|
||||
wx.navigateTo({
|
||||
url: '/pages/login/login',
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -1,3 +1,4 @@
|
||||
<block wx:if='{{isLogin}}'>
|
||||
<!-- 个人中心 -->
|
||||
<view class="userTop">
|
||||
<view class="userTop-head">
|
||||
@@ -8,7 +9,8 @@
|
||||
<!-- <view class="userTop-label"> <text>89</text> 钱包 </view> -->
|
||||
<navigator hover-class="none" class="userTop-label" url="/pages/user/companyMine/myTeam/myTeam">
|
||||
<text>{{info.counter.teams || 10}}</text> 团队 </navigator>
|
||||
<navigator hover-class="none" class="userTop-label" url="/pages/user/companyMine/focusedCompany/focusedCompany">
|
||||
<navigator hover-class="none" class="userTop-label"
|
||||
url="/pages/user/companyMine/focusedCompany/focusedCompany">
|
||||
<text>{{info.counter.subscriptions}}</text> 关注企业 </navigator>
|
||||
</view>
|
||||
<view class="userTop-vip" catchtap="showtoast">
|
||||
@@ -62,7 +64,7 @@
|
||||
<navigator hover-class="none" url="/pages/mall/mall_cart/mall_cart" class="userTool-label">
|
||||
<view class="userTool-label-img">
|
||||
<image src="/static/user_iocn/userTool_02.png"></image>
|
||||
<view class="userTool-label-tips">2</view>
|
||||
<view wx:if='{{info.cart_counts}}' class="userTool-label-tips">{{info.cart_counts}}</view>
|
||||
</view>
|
||||
<text>我的购物车</text>
|
||||
</navigator>
|
||||
@@ -86,7 +88,8 @@
|
||||
</view>
|
||||
<text>项目关注</text>
|
||||
</navigator>
|
||||
<navigator hover-class="none" url="/pages/user/companyMine/myBlockchain/myBlockchain" class="userTool-label">
|
||||
<navigator hover-class="none" url="/pages/user/companyMine/myBlockchain/myBlockchain"
|
||||
class="userTool-label">
|
||||
<view class="userTool-label-img">
|
||||
<image src="/static/user_iocn/userTool_06.png"></image>
|
||||
</view>
|
||||
@@ -107,3 +110,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<storeTabBar pages-url="pages/user/index"></storeTabBar>
|
||||
</block>
|
||||
<block wx:else catchtap="goLogin">
|
||||
去登陸
|
||||
</block>
|
||||
@@ -90,12 +90,6 @@
|
||||
"query": "orderid=20201229132338964625",
|
||||
"scene": null
|
||||
},
|
||||
{
|
||||
"name": "pages/user/companyMine/companyOrder",
|
||||
"pathName": "pages/user/companyMine/companyOrder",
|
||||
"query": "orderid=20201229132338964625",
|
||||
"scene": null
|
||||
},
|
||||
{
|
||||
"name": "pages/user/companyMine/projectDetail/projectDetail",
|
||||
"pathName": "pages/user/companyMine/projectDetail/projectDetail",
|
||||
@@ -141,6 +135,7 @@
|
||||
{
|
||||
"name": "pages/home/index",
|
||||
"pathName": "pages/home/index",
|
||||
"query": "",
|
||||
"scene": null
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user