Browse Source

修改赋能中心显示,屏蔽一些不容易审核通过的功能

master
xuxu 5 years ago
parent
commit
33f22a4b43
  1. 5
      config.js
  2. 9
      pages/resource/detail/index.js
  3. 7
      pages/resource/detail/index.wxml
  4. 7
      pages/topics/index.js
  5. 4
      pages/topics/index.wxml
  6. 9
      pages/topics/talents/index.wxml
  7. 14
      utils/http.js

5
config.js

@ -1,5 +1,6 @@
const config = {
// api_url: 'http://192.168.42.44:8083/fqsb', // 服务器地址
api_url: 'https://shibeirencai.elinkit.com.cn:7101/fqsb'
// api_url: 'http://192.168.42.39:7101/fqsb', // 服务器地址
api_url: 'https://shibeirencai.elinkit.com.cn:7101/fqsb' // 正式环境
// api_url: 'https://dingoa.elinkit.com.cn/fqsb', // 测试环境
}
export { config }

9
pages/resource/detail/index.js

@ -12,7 +12,8 @@ Page({
unStar: '/images/common/star.png',
star: '/images/common/star_light.png',
detail:{},
isCollect:false
isCollect:false,
show:false
},
/**
@ -22,6 +23,12 @@ Page({
var id = options.id;
topicModel.getResourceDetail(id,res=>{
wx.setNavigationBarTitle({ title:res.result.typeName})
if(res.result.typeCode != 'zcfn'){
this.setData({
show:true
})
}
if(res.result.isCollection == 1){
this.setData({
isCollect:true,

7
pages/resource/detail/index.wxml

@ -19,8 +19,11 @@
</view>
<!-- <web-view src="https://m.qdjqt.com/#/?xihaian=&VNK=e92927fe&source=productList"></web-view> -->
<view class="publish" bindtap="onTap">
<block wx:if="{{show}}">
<view class="publish" bindtap="onTap">
<!-- <image src="/images/topic/publish.png"></image> -->
<text>我要</text>
<text>赋能</text>
</view>
</view>
</block>

7
pages/topics/index.js

@ -29,7 +29,8 @@ Page({
apartment:[],
nodes:'',
rentNode:'',
height:app.globalData.windowHeight - 44
height:app.globalData.windowHeight - 44,
flag:0
},
@ -38,7 +39,9 @@ Page({
*/
onLoad: function () {
this.setData({
flag:app.globalData.flag
})
},
//进入页面判断是否绑定微信号,如果绑定手机号根据segmentIndex的数值fetch留言互动和赋能中心的资源,否则退回注册页面或者首页

4
pages/topics/index.wxml

@ -17,19 +17,23 @@
</scroll-view>
</block>
</van-tab>
<block wx:if="{{flag}}">
<van-tab title="找贷款" name="4">
<block wx:if="{{tab == '4'}}">
<loan detail="{{loan}}" style=""/>
</block>
</van-tab>
</block>
<van-tab title="报需求" name="2">
<talents />
</van-tab>
<block wx:if="{{flag}}">
<van-tab title="交朋友" name="3">
<scroll-view scroll-y style="height:{{height}}px" bindscrolltolower="onReachBottom">
<interactive list="{{topicList}}" bind:deleteTopic="deleteTopic"/>
</scroll-view>
</van-tab>
</block>
</van-tabs>

9
pages/topics/talents/index.wxml

@ -27,8 +27,13 @@
</view>
<block wx:if="{{type == 'rent'}}">
<view class="select-con"><text>工作单位</text><input type="text" bindinput='company' placeholder="请输入" placeholder-style='text-align:right'/></view>
<view class="select-con">
<text>工作单位</text>
<input style="margin-right:20px" type="text" bindinput='company' placeholder="请输入" placeholder-style='text-align:right;color:#ACACAE;'/>
</view>
<view class="select-mark">
<text class="fa fa-angle-right fa-lg" style="color:#ACACAE"></text>
</view>
</block>
<block wx:else>
<!-- 选项 -->

14
utils/http.js

@ -7,7 +7,8 @@ const Method = {
}
// 定义一些通用常量
const HTTPConst = {
TokenURL: '/api/miniuser/getToken'
TokenURL: '/api/miniuser/getToken',
configURL:'/api/config/info'
}
class HTTP {
constructor() {
@ -112,5 +113,16 @@ class HTTP {
})
})
}
getConfig(success){
let params = {
url: HTTPConst.configURL,
method: Method.GET,
data: {
},
success: success
}
this.request(params)
}
}
export { HTTP, Method, HTTPConst }

Loading…
Cancel
Save