gmf 3 years ago
parent
commit
7c77617bfd
  1. 5
      config.js
  2. 37
      pages/user/index.js
  3. 20
      pages/user/index.wxml
  4. 7
      pages/user/index.wxss
  5. 2
      pages/weChatAuth/index.js
  6. 3
      project.private.config.json

5
config.js

@ -1,7 +1,8 @@
const config = {
// api_url: 'http://10.10.11.54:7101/fqsb', // 服务器地址
// api_url: 'http://10.10.11.44:7101/fqsb', // 服务器地址
api_url: 'https://shibeirencai.elinkit.com.cn:7101/fqsb' // 正式环境
// api_url: 'https://dingoa.elinkit.com.cn/fqsb', // 测试环境
api_url: 'https://shibeirencai.elinkit.com.cn:7101/fqsb' // 正式环境
// api_url: 'http://dingoa.elinkit.com.cn:7100/fqsb', // 测试环境
// api_url: 'http://10.10.11.132:7101/fqsb/', // 本地环境
}
export { config }

37
pages/user/index.js

@ -127,24 +127,24 @@ Page({
id: 3,
name: '政务服务'
},
// {
// id: 4,
// name: '学历教育'
// },
// {
// id: 5,
// name: '场景开放'
// },
// {
// id: 6,
// name: '企业招聘'
// },
// {
// id: 7,
// name: '名人堂'
// },
{
id: 4,
name: '学历教育'
},
{
id: 5,
name: '场景开放'
},
{
id: 6,
name: '企业招聘'
},
{
id: 7,
name: '名人堂'
},
{
id: 8,
name: '法律服务'
},
],
@ -180,11 +180,12 @@ Page({
}
})
}
for (let i = 0; i <pList.length; i += 8) {
serviceData.push(pList.slice(i, i + 8))
for (let i = 0; i <pList.length; i += 6) {
serviceData.push(pList.slice(i, i + 6))
};
// console.log(serviceData)
console.log('service-->',service)
// console.log('servicePublic-->',serviceData)
this.setData({
service: service,
servicePublic: serviceData

20
pages/user/index.wxml

@ -48,15 +48,9 @@
indicator-active-color="rgb(230,208,68)" wx:if="{{talentsType != 0 && talentsType != 9}}">
<block wx:for="{{service}}">
<swiper-item>
<van-grid column-num="5" border="{{false}}">
<van-grid column-num="5" border="{{false}}" style="height:100%">
<block wx:for="{{item}}" wx:for-item="it">
<block wx:if="{{it.app_id}}">
<!-- <van-grid-item use-slot bindtap="jump" data-appid="{{it.app_id}}">
<view class="circular">
<image src="../../images/icon/{{it.server_code}}.png" mode="aspectFit" class="icon"></image>
</view>
<view class="tit">{{it.server_name}}</view>
</van-grid-item> -->
<van-grid-item use-slot url="/pages/service/detail/detail?code={{it.server_code}}&app_id={{it.app_id}}">
<view class="circular">
<image src="../../images/icon/{{it.server_code}}.png" mode="aspectFit" class="icon"></image>
@ -65,12 +59,6 @@
</van-grid-item>
</block>
<block wx:elif="{{it.pic && it.server_code!='jtcx'}}">
<!-- <van-grid-item use-slot bindtap="jump" data-appid="{{it.app_id}}">
<view class="circular">
<image src="../../images/icon/{{it.server_code}}.png" mode="aspectFit" class="icon"></image>
</view>
<view class="tit">{{it.server_name}}</view>
</van-grid-item> -->
<van-grid-item use-slot url="/pages/service/detail/detail?code={{it.server_code}}&pic={{it.pic}}">
<view class="circular">
<image src="../../images/icon/{{it.server_code}}.png" mode="aspectFit" class="icon"></image>
@ -95,7 +83,6 @@
</van-grid-item>
</block>
</block>
</van-grid>
</swiper-item>
@ -104,7 +91,7 @@
</swiper>
<!--普通人才、企业人才-->
<swiper class="nav_public" indicator-dots="{{false}}" indicator-color="rgb(217,217,217)"
<swiper class="nav" indicator-dots="{{false}}" indicator-color="rgb(217,217,217)"
indicator-active-color="rgb(230,208,68)" wx:if="{{talentsType == 0 || talentsType == 9}}">
<block wx:for="{{servicePublic}}">
<swiper-item>
@ -127,7 +114,8 @@
</van-grid-item>
</block>
<block wx:else>
<van-grid-item use-slot url="/pages/service/detail/detail?code={{it.server_code}}&talentsType={{talentsType}}">
<van-grid-item use-slot
url="/pages/service/detail/detail?code={{it.server_code}}&talentsType={{talentsType}}">
<view class="circular">
<image src="../../images/icon/{{it.server_code}}.png" mode="aspectFit" class="icon"></image>
</view>

7
pages/user/index.wxss

@ -89,7 +89,12 @@ page{
.tit{
font-size: 13px;
margin-top: 5px;
color:rgb(103,103,103)
color:rgb(103,103,103);
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: center;
}
.icon{

2
pages/weChatAuth/index.js

@ -29,7 +29,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log(wx.getUserProfile)
console.log(wx.getUserProfile,"33333333")
if (wx.getUserProfile) {
this.setData({
canIUseGetUserProfile: true

3
project.private.config.json

@ -167,5 +167,6 @@
}
},
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"libVersion": "2.24.2"
"libVersion": "2.24.2",
"projectname": "fqsb_wx"
}
Loading…
Cancel
Save