Browse Source

赋能中心我的活动

master
slj 4 years ago
parent
commit
c3e6b774f9
  1. 3
      app.json
  2. 6
      models/topic.js
  3. 117
      pages/resource/detail/index.js
  4. 4
      pages/resource/detail/index.json
  5. 44
      pages/resource/detail/index.wxml
  6. 15
      pages/resource/detail/index.wxss
  7. 19
      pages/resource/index.wxml
  8. 43
      pages/resource/list/index.js
  9. 45
      pages/topics/activity/activityDetail/index.js
  10. 69
      pages/topics/activity/activityDetail/index.wxml
  11. 169
      pages/topics/activity/activitySign/index.js
  12. 7
      pages/topics/activity/activitySign/index.json
  13. 27
      pages/topics/activity/activitySign/index.wxml
  14. 33
      pages/topics/activity/activitySign/index.wxss
  15. 1
      pages/topics/demand/index.js
  16. 1
      pages/user/index.js
  17. 6
      project.private.config.json

3
app.json

@ -45,7 +45,8 @@
"pages/topics/attract/oceanDetail/index", "pages/topics/attract/oceanDetail/index",
"pages/topics/attract/spaceDetail/index", "pages/topics/attract/spaceDetail/index",
"pages/topics/reportDemand/index", "pages/topics/reportDemand/index",
"pages/topics/activity/activityDetail/index" "pages/topics/activity/activityDetail/index",
"pages/topics/activity/activitySign/index"
], ],
"window": { "window": {
"backgroundTextStyle": "light", "backgroundTextStyle": "light",

6
models/topic.js

@ -340,9 +340,9 @@ class TopicModel extends HTTP {
url: TopicBaseUrl.activity_list_url, url: TopicBaseUrl.activity_list_url,
method: Method.POST, method: Method.POST,
data: { data: {
source: source, source:source,
page: page, pageNo:page,
pageSize: 10, pageSize:10,
}, },
success: success success: success
} }

117
pages/resource/detail/index.js

@ -1,6 +1,10 @@
// pages/resource/detail/index.js // pages/resource/detail/index.js
import { TopicModel } from '../../../models/topic.js' import {
import { config } from '../../../config.js' TopicModel
} from '../../../models/topic.js'
import {
config
} from '../../../config.js'
var WxParse = require('../../../components/wxParse/wxParse.js'); var WxParse = require('../../../components/wxParse/wxParse.js');
let topicModel = new TopicModel() let topicModel = new TopicModel()
Page({ Page({
@ -9,38 +13,48 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
titlePic:config.api_url + "/image/head.jpg", titlePic: config.api_url + "/image/head.jpg",
unStar: '/images/common/star.png', unStar: '/images/common/star.png',
star: '/images/common/star_light.png', star: '/images/common/star_light.png',
detail:{}, detail: {},
isCollect:false, isCollect: false,
show:false show: false,
source:'',
currPage: 1,
activityList:[]
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
console.log(options)
var id = options.id; var id = options.id;
topicModel.getResourceDetail(id,res=>{ topicModel.getResourceDetail(id, res => {
wx.setNavigationBarTitle({ title:res.result.typeName}) this.setData({
source:res.result.title
})
this.fetchActivityList()
wx.setNavigationBarTitle({
title: res.result.typeName
})
if(res.result.typeCode != 'zcfn'){ if (res.result.typeCode != 'zcfn') {
this.setData({ this.setData({
show:true show: true
}) })
} }
if(res.result.isCollection == 1){ if (res.result.isCollection == 1) {
this.setData({ this.setData({
isCollect:true, isCollect: true,
}) })
}else{ } else {
this.setData({ this.setData({
isCollect:false, isCollect: false,
}) })
} }
this.setData({ this.setData({
detail:res.result, detail: res.result,
}) })
WxParse.wxParse('article', 'html', this.data.detail.content, this, 5); WxParse.wxParse('article', 'html', this.data.detail.content, this, 5);
@ -96,32 +110,32 @@ Page({
onShareAppMessage: function () { onShareAppMessage: function () {
}, },
previewImage:function(e){ previewImage: function (e) {
// var current = e.target.dataset.src; // var current = e.target.dataset.src;
var th = this; var th = this;
if(th.data.detail.titlePic){ if (th.data.detail.titlePic) {
var urls = [th.data.detail.titlePic]; var urls = [th.data.detail.titlePic];
wx.previewImage({ wx.previewImage({
urls:urls// 需要预览的图片http链接列表 urls: urls // 需要预览的图片http链接列表
}) })
}else{ } else {
return; return;
} }
}, },
onClickCollect:function(){ onClickCollect: function () {
this.setData({ this.setData({
isCollect: !this.data.isCollect isCollect: !this.data.isCollect
}) })
let id = this.data.detail.id let id = this.data.detail.id
topicModel.resourceCollect(id,res =>{ topicModel.resourceCollect(id, res => {
//console.log('收藏') //console.log('收藏')
if(res.code === 200){ if (res.code === 200) {
wx.showToast({ wx.showToast({
title: '收藏成功', title: '收藏成功',
icon: 'none' icon: 'none'
}) })
}else{ } else {
wx.showToast({ wx.showToast({
title: '取消收藏', title: '取消收藏',
icon: 'none' icon: 'none'
@ -131,9 +145,60 @@ Page({
}, },
onTap:function(){ onTap: function () {
wx.navigateTo({ wx.navigateTo({
url: '/pages/resource/demand/index?type=resource&id=' + this.data.detail.id url: '/pages/resource/demand/index?type=resource&id=' + this.data.detail.id
}) })
}, },
//活动
fetchActivityList() {
var th = this;
var page = th.data.currPage;
let source=th.data.source
topicModel.getActivityList(source, page, res => {
console.log('机构活动列表---', res)
const datas = res.result.records
let tempDatas = []
datas.forEach((item, index) => {
tempDatas.push({
activityId: item.id,
title: item.title,
activityImg: item.titlePic,
time: item.createTime,
commentNum:item.commentNum,
dataIndex: index + ((page - 1) * 10),
isTouchMove: false,
})
})
if (page == 1) {
this.setData({
activityList: tempDatas
})
} else {
if (tempDatas.length > 0) {
const list = [...this.data.activityList, ...tempDatas]
this.setData({
activityList: list
})
} else {
const page = this.data.currPage - 1
this.setData({
currPage: page
})
wx.showToast({
title: '已加载全部',
icon: 'none'
})
}
}
wx.stopPullDownRefresh()
})
},
clickListItem(e) {
const activityId = e.detail.activityId;
wx.navigateTo({
url: `/pages/topics/activity/activityDetail/index?activityId=${activityId}`,
})
},
}) })

4
pages/resource/detail/index.json

@ -1,3 +1,5 @@
{ {
"usingComponents": {} "usingComponents": {
"cell": "../../topics/activity/cell/index"
}
} }

44
pages/resource/detail/index.wxml

@ -1,25 +1,37 @@
<!--pages/resource/detail/index.wxml--> <!--pages/resource/detail/index.wxml-->
<import src="../../../components/wxParse/wxParse.wxml"/> <import src="../../../components/wxParse/wxParse.wxml" />
<view class="title"> <view class="title">
<view class="left"> <view class="left">
<view class="articleImg"> <view class="articleImg">
<image src="{{detail.titlePic ? detail.titlePic : titlePic}}" bindtap="previewImage" mode="widthFix" style="width:100%;"></image> <image src="{{detail.titlePic ? detail.titlePic : titlePic}}" bindtap="previewImage" mode="widthFix"
</view> style="width:100%;"></image>
<view class="content">
<view class="tit">{{detail.title}}</view>
<view class="r_type">{{detail.typeName}}</view>
</view>
</view> </view>
<view class="right"> <view class="content">
<image class="artice_collect" src="{{isCollect ? star : unStar}}" bindtap="onClickCollect"></image> <view class="tit">{{detail.title}}</view>
<view class="r_type">{{detail.typeName}}</view>
</view> </view>
</view> </view>
<view class="text"> <view class="right">
<!-- <rich-text nodes="{{detail.content}}"></rich-text> --> <image class="artice_collect" src="{{isCollect ? star : unStar}}" bindtap="onClickCollect"></image>
<template is="wxParse" data="{{wxParseData:article.nodes}}"/>
</view> </view>
</view>
<view class="text">
<!-- <rich-text nodes="{{detail.content}}"></rich-text> -->
<template is="wxParse" data="{{wxParseData:article.nodes}}" />
</view>
<!-- <web-view src="https://m.qdjqt.com/#/?xihaian=&VNK=e92927fe&source=productList"></web-view> --> <!-- <web-view src="https://m.qdjqt.com/#/?xihaian=&VNK=e92927fe&source=productList"></web-view> -->
<!--机构活动-->
<block wx:if="{{activityList.length>0}}">
<view class="section_line"></view>
<view class="resource-activity-lists">
<view class="list-title">机构活动</view>
<block wx:for="{{activityList}}" wx:key="{{index}}">
<cell activityId="{{item.activityId}}" title="{{item.title}}" activityImg="{{item.activityImg}}"
time="{{item.time}}" commentNum="{{item.commentNum}}" bind:clickListItem="clickListItem"
dataIndex="{{item.dataIndex}}" />
</block>
</view>
</block>
<block wx:if="{{show}}"> <block wx:if="{{show}}">
<view class="publish" bindtap="onTap"> <view class="publish" bindtap="onTap">
<text>报需求</text> <text>报需求</text>

15
pages/resource/detail/index.wxss

@ -77,3 +77,18 @@ page{
font-size: 15px; font-size: 15px;
line-height:18px; line-height:18px;
} }
.resource-activity-lists{
width: 100%;
padding: 30rpx 30rpx 120rpx 30rpx;
box-sizing: border-box;
}
.resource-activity-lists .list-title{
font-size: 32rpx;
color: #4f4f4f;
}
.section_line {
padding: 0;
height: 20rpx;
width: 100%;
background-color: #FAFAFA;
}

19
pages/resource/index.wxml

@ -1,27 +1,20 @@
<!--pages/resource/index.wxml--> <!--pages/resource/index.wxml-->
<resource style="width:100%" list="{{list}}"/> <resource style="width:100%" list="{{list}}" />
<van-popup <van-popup show="{{ show }}" bind:close="onClose" custom-style="height: 80%;width:80%">
show="{{ show }}"
bind:close="onClose"
custom-style="height: 80%;width:80%"
>
<view class="tips"> <view class="tips">
<view class="title">赋能政策</view> <view class="title">赋能政策</view>
<!-- <view class="tips-con"> --> <!-- <view class="tips-con"> -->
<scroll-view class="tips-con" scroll-y> <scroll-view class="tips-con" scroll-y>
<rich-text nodes="{{con}}"></rich-text> <rich-text nodes="{{con}}"></rich-text>
</scroll-view> </scroll-view>
<!-- </view> --> <!-- </view> -->
<view class="button"> <view class="button">
<!-- <van-button type="danger" size="large" bind:click="ok" style="width:100%">我知道了</van-button> --> <!-- <van-button type="danger" size="large" bind:click="ok" style="width:100%">我知道了</van-button> -->
<view class="btnView"> <view class="btnView">
<e-ibutton title="我知道了" bind:onTap="ok" size="small"/> <e-ibutton title="我知道了" bind:onTap="ok" size="small" />
</view> </view>
<view class="btn" bindtap="never">不再提示</view> <view class="btn" bindtap="never">不再提示</view>
</view> </view>
</view> </view>
</van-popup> </van-popup>

43
pages/resource/list/index.js

@ -1,26 +1,28 @@
// pages/resource/list/index.js // pages/resource/list/index.js
import { config } from '../../../config.js' import {
config
} from '../../../config.js'
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
properties: { properties: {
list:{ list: {
type:Array, type: Array,
value:[], value: [],
}, },
tp:{ tp: {
type:String, type: String,
value:'1' value: '1'
}, },
apartmentId:String apartmentId: String
}, },
/** /**
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
titlePic:config.api_url + "/image/head.jpg" titlePic: config.api_url + "/image/head.jpg"
}, },
/** /**
@ -28,19 +30,18 @@ Component({
*/ */
methods: { methods: {
detail:function(e){ detail: function (e) {
if (!e.currentTarget.dataset.id){ if (!e.currentTarget.dataset.id) {
return; return;
} }
if(this.properties.tp == '1'){ // 资源列表 if (this.properties.tp == '1') { // 资源列表
if(e.currentTarget.dataset.url){ // 跳转网站 if (e.currentTarget.dataset.url) { // 跳转网站
wx.navigateTo({ wx.navigateTo({
url: '/pages/resource/navigate/index?url=' + encodeURIComponent(e.currentTarget.dataset.url) url: '/pages/resource/navigate/index?url=' + encodeURIComponent(e.currentTarget.dataset.url)
}) })
return; return;
}else if(e.currentTarget.dataset.appid){ // 跳转小程序 } else if (e.currentTarget.dataset.appid) { // 跳转小程序
wx.navigateToMiniProgram({ wx.navigateToMiniProgram({
appId: e.currentTarget.dataset.appid, appId: e.currentTarget.dataset.appid,
// path: 'page/index/index?id=123', // path: 'page/index/index?id=123',
@ -53,26 +54,24 @@ Component({
} }
}) })
return; return;
}else{ // 查看详情 } else { // 查看详情
wx.navigateTo({ wx.navigateTo({
url: '/pages/resource/detail/index?id=' + e.currentTarget.dataset.id url: '/pages/resource/detail/index?id=' + e.currentTarget.dataset.id
}) })
return; return;
} }
}else if(this.properties.tp == '2'){ // 房屋列表 } else if (this.properties.tp == '2') { // 房屋列表
wx.navigateTo({ wx.navigateTo({
url: '/pages/topics/rent/detail/index?id=' + e.currentTarget.dataset.id url: '/pages/topics/rent/detail/index?id=' + e.currentTarget.dataset.id
}) })
return; return;
} }
}, },
onTap:function(){ onTap: function () {
wx.navigateTo({ wx.navigateTo({
url: '/pages/resource/demand/index?type=rent&id=' + this.properties.apartmentId url: '/pages/resource/demand/index?type=rent&id=' + this.properties.apartmentId
}) })
} }
} }
}) })

45
pages/topics/activity/activityDetail/index.js

@ -328,48 +328,27 @@ Page({
//活动报名 //活动报名
onlineSubmit () { onlineSubmit () {
// console.log('在线报名') // console.log('在线报名')
wx.redirectTo({
url: '/pages/weChatAuth/index',
})
// this.setData({ // this.setData({
// disable: true // disable: true
// }) // })
// if (store.hasBindUserInfo()) { if (store.hasBindUserInfo()) {
// this.onlineSignApi() // 在线报名 console.log(store.hasBindUserInfo())
// } else { // this.onlineSignApi() // 在线报名
// wx.redirectTo({ wx.navigateTo({
// url: '/pages/weChatAuth/index', url: `/pages/topics/activity/activitySign/index?activityId=${this.data.activityId}`,
// }) })
// } } else {
}, wx.redirectTo({
onlineSignApi () { url: '/pages/weChatAuth/index',
topicModel.onlineSign(this.data.aId, res => { })
if(res.code == 200){ }
console.log(res.code);
wx.showToast({
title: res.message,
icon: 'none'
})
}
if(res.code != 200){
// console.log(res.code);
this.setData({
disable: false
})
wx.showToast({
title: res.message,
icon: 'none'
})
}
this.fetchDetail()
})
}, },
cancelSignApi () { cancelSignApi () {
this.setData({ this.setData({
disable: true disable: true
}) })
if (store.hasBindUserInfo()) { if (store.hasBindUserInfo()) {
topicModel.cancelOnlineSign(this.data.aId, res => { topicModel.cancelOnlineSign(this.data.activityId, res => {
if(res.code == 200){ if(res.code == 200){
wx.showToast({ wx.showToast({
title: res.message, title: res.message,

69
pages/topics/activity/activityDetail/index.wxml

@ -16,58 +16,63 @@
<view class="page_bd {{showBtn ? 'page_bd_short':''}}"> <view class="page_bd {{showBtn ? 'page_bd_short':''}}">
<template is="wxParse" data="{{wxParseData:activity.nodes}}" /> <template is="wxParse" data="{{wxParseData:activity.nodes}}" />
</view> </view>
<view class="section_line"></view>
<!--留言列表--> <!--留言列表-->
<view class="topic_comment"> <block wx:if="{{commentList.length>0}}">
<view class="topic_comment_top"> <view class="section_line"></view>
<view>活动留言</view> <view class="topic_comment">
<button class="commnetBtn" size="mini" bindtap="onTapComment">留言</button> <view class="topic_comment_top">
</view> <view>活动留言</view>
<!--留言列表--> <button class="commnetBtn" size="mini" bindtap="onTapComment">留言</button>
<view class="comment_info" > </view>
<view class="touch-item {{item.isTouchMove ? 'touch-move-active' : ''}}" data-index="{{index}}" data-name="{{item.userName}}" bindtouchstart="touchstart" bindtouchmove="touchmove" wx:for="{{commentList}}" wx:key="{{index}}"> <!--留言列表-->
<view class="comment_content"> <view class="comment_info">
<view class="comment_info_left"> <view class="touch-item {{item.isTouchMove ? 'touch-move-active' : ''}}" data-index="{{index}}"
<image class="comment_icon" src="{{item.commentAvator}}"></image> data-name="{{item.userName}}" bindtouchstart="touchstart" bindtouchmove="touchmove" wx:for="{{commentList}}"
</view> wx:key="{{index}}">
<view class="comment_info_right"> <view class="comment_content">
<view class="comment_top"> <view class="comment_info_left">
<view class="comment_info_userName">{{item.userName}}</view> <image class="comment_icon" src="{{item.commentAvator}}"></image>
<view class="goodIdeaIcon" wx:if="{{item.isGoldenIdea === 1}}">
<image style="width:100%;height:100%;" src="/images/topic/gidea.png"></image>
</view>
</view> </view>
<view class="comment_info_detail">{{item.detail}}</view> <view class="comment_info_right">
<view class="comment_info_time"> <view class="comment_top">
<view class="comment_info_time_left">{{item.time}}</view> <view class="comment_info_userName">{{item.userName}}</view>
<view class="comment_info_time_right" bindtap="onClickPraise" data-item="{{item}}" data-index='{{index}}'> <view class="goodIdeaIcon" wx:if="{{item.isGoldenIdea === 1}}">
<view class="praiseNum">{{item.praiseNum}}</view> <image style="width:100%;height:100%;" src="/images/topic/gidea.png"></image>
<image class="praiseIcon" src="{{item.isSupport ==='0' ? unPraise : praise}}"></image> </view>
</view>
<view class="comment_info_detail">{{item.detail}}</view>
<view class="comment_info_time">
<view class="comment_info_time_left">{{item.time}}</view>
<view class="comment_info_time_right" bindtap="onClickPraise" data-item="{{item}}"
data-index='{{index}}'>
<view class="praiseNum">{{item.praiseNum}}</view>
<image class="praiseIcon" src="{{item.isSupport ==='0' ? unPraise : praise}}"></image>
</view>
</view> </view>
</view> </view>
</view> </view>
<view class="del" data-index="{{index}}" data-id="{{item.id}}" catchtap="del">删除</view>
</view> </view>
<view class="del" data-index="{{index}}" data-id="{{item.id}}" catchtap="del">删除</view>
</view> </view>
</view> </view>
</view> </block>
<!--活动报名--> <!--活动报名-->
<view class="page_footer"> <view class="page_footer">
<!-- <e-ibutton title="{{disable ? '已报名' : '在线报名'}}" bind:onTap="onlineSubmit" disable="{{disable}}"/> --> <!-- <e-ibutton title="{{disable ? '已报名' : '在线报名'}}" bind:onTap="onlineSubmit" disable="{{disable}}"/> -->
<block wx:if="{{ flag == 0 }}"> <block wx:if="{{ flag == 0 }}">
<e-ibutton title="在线报名" bind:onTap="onlineSubmit" disable="{{disable}}"/> <e-ibutton title="在线报名" bind:onTap="onlineSubmit" disable="{{disable}}" />
</block> </block>
<block wx:if="{{ flag == 1 }}"> <block wx:if="{{ flag == 1 }}">
<e-ibutton title="取消报名" bind:onTap="cancelSignApi" disable="{{disable}}"/> <e-ibutton title="取消报名" bind:onTap="cancelSignApi" disable="{{disable}}" />
</block> </block>
<block wx:if="{{ flag == 2 }}"> <block wx:if="{{ flag == 2 }}">
<e-ibutton title="已报名" bind:onTap="onlineSubmit" disable="true"/> <e-ibutton title="已报名" bind:onTap="onlineSubmit" disable="true" />
</block> </block>
<block wx:if="{{ flag == 3 }}"> <block wx:if="{{ flag == 3 }}">
<e-ibutton title="在线报名" bind:onTap="onlineSubmit" disable="true"/> <e-ibutton title="在线报名" bind:onTap="onlineSubmit" disable="true" />
</block> </block>
</view> </view>
</view> </view>
<modal hidden="{{hiddenmodalput}}" confirm-text="提交" cancel-text="取消" bindcancel="cancel" bindconfirm="confirm"> <modal hidden="{{hiddenmodalput}}" confirm-text="提交" cancel-text="取消" bindcancel="cancel" bindconfirm="confirm">
<textarea bindinput="bingTextAreaInput" value="{{currentComment}}" maxlength="400" placeholder="请输入留言"/> <textarea bindinput="bingTextAreaInput" value="{{currentComment}}" maxlength="400" placeholder="请输入留言" />
</modal> </modal>

169
pages/topics/activity/activitySign/index.js

@ -0,0 +1,169 @@
// pages/topics/activity/activitySign/index.js
import {
store
} from '../../../../utils/store.js'
import {
TopicModel
} from '../../../../models/topic.js'
let topicModel = new TopicModel()
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
aId: '',
username: '',
company: '',
phone: ''
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log(options)
this.setData({
aId: options.activityId
})
this.initFormData()
// console.log(this.data.aId)
},
initFormData() {
let {
nickName,
phone
} = store.readUserInfo()
this.setData({
username: nickName,
phone: phone
})
},
changeCompany: function (e) {
var company = e.detail.value;
this.setData({
company: company
})
},
changeUsername: function (e) {
var username = e.detail.value;
this.setData({
username: username
})
},
changePhone: function (e) {
let isPhoneFlag = this.isPhone(e.detail.value)
if (!isPhoneFlag) {
wx.showToast({
title: '请输入正确格式的手机号',
icon: 'none',
duration: 2000,
})
return;
}
this.setData({
phone: e.detail.value
})
},
isPhone(value) {
if (!/^1(3|4|5|7|8)\d{9}$/.test(value)) {
return false
} else {
return true
}
},
submit() {
var th = this;
if (this.data.username === '') {
wx.showModal({
title: '提示',
content: '请输入姓名',
showCancel: false
})
return
}
if (this.data.phone === '') {
wx.showModal({
title: '提示',
content: '请输入联系电话',
showCancel: false
})
return
}
this.onlineSignApi()
},
//在线报名
onlineSignApi() {
topicModel.onlineSign(this.data.aId, res => {
if (res.code == 200) {
console.log(res.code);
wx.showModal({
title: res.message,
showCancel: false, //是否显示取消按钮
confirmText: "确定", //默认是“确定”
success: function (res) {
app.globalData.currentTab = "5"
wx.switchTab({
url: '../../../topics/index'
})
},
})
}
if (res.code != 200) {
wx.showToast({
title: res.message,
icon: 'none'
})
}
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

7
pages/topics/activity/activitySign/index.json

@ -0,0 +1,7 @@
{
"enablePullDownRefresh": false,
"navigationBarTitleText":"在线报名",
"usingComponents": {
"e-ibutton": "/components/image-button/index"
}
}

27
pages/topics/activity/activitySign/index.wxml

@ -0,0 +1,27 @@
<!--pages/topics/activity/activitySign/index.wxml-->
<view class="container">
<view class="select-view">
<view class="select-con">
<text>姓名</text>
<input style="margin-right:20px;text-align: right;" type="text" bindinput='changeUsername' placeholder="请输入姓名"
placeholder-style='text-align:right;color:#ACACAE;' value="{{username}}"/>
</view>
</view>
<view class="select-view">
<view class="select-con">
<text>工作单位</text>
<input style="margin-right:20px;text-align: right;" type="text" bindinput='changeCompany' placeholder="请输入工作单位"
placeholder-style='text-align:right;color:#ACACAE;' value="{{company}}"/>
</view>
</view>
<view class="select-view">
<view class="select-con">
<text>联系电话</text>
<input style="margin-right:20px;text-align: right;" type="text" bindinput='changePhone' placeholder="请输入联系电话"
placeholder-style='text-align:right;color:#ACACAE;' value="{{phone}}"/>
</view>
</view>
</view>
<view class="btnView">
<e-ibutton title="提交" bind:onTap="submit" />
</view>

33
pages/topics/activity/activitySign/index.wxss

@ -0,0 +1,33 @@
/* pages/topics/activity/activitySign/index.wxss */
.container{
padding: 26rpx 30rpx 0 30rpx;
}
.select-view{
display: flex;
padding: 32rpx 0;
border-bottom: 1px solid #ededed;
font-size: 34rpx;
/* btnView是position:fix,所以为防止遮挡,设置街道选择盒子下边框margin-bottom为100px */
/* margin-bottom: 100px; */
}
.select-con{
margin-left:20px;
flex:1;
display: flex;
justify-content: space-between;
}
input{
flex:1;
margin-left:20px;
margin-top: 3px;
}
.btnView{
position: fixed;
height:50px;
padding: 10px 20px 20px 20px;
bottom: 0;
left: 0;
right: 0;
background-color: white;
}

1
pages/topics/demand/index.js

@ -71,7 +71,6 @@ Component({
this.triggerEvent('deleteTopic', { id: e.detail.id }) this.triggerEvent('deleteTopic', { id: e.detail.id })
}, },
tapDialogButton(e) { tapDialogButton(e) {
if(e.detail.index == 1){ //确认 if(e.detail.index == 1){ //确认
wx.setStorageSync('agreement', '1'); wx.setStorageSync('agreement', '1');
this.setData({ this.setData({

1
pages/user/index.js

@ -122,7 +122,6 @@ Page({
getUserInfo () { getUserInfo () {
userModel.getUserInfo(res => { userModel.getUserInfo(res => {
console.log("getUserInfo"); console.log("getUserInfo");
console.log(res) console.log(res)
let nickName = res.result.nickName let nickName = res.result.nickName
let avatarUrl = res.result.avatarUrl let avatarUrl = res.result.avatarUrl

6
project.private.config.json

@ -146,6 +146,12 @@
"pathName": "pages/weChatAuth/index", "pathName": "pages/weChatAuth/index",
"query": "", "query": "",
"scene": null "scene": null
},
{
"name": "在线报名",
"pathName": "pages/topics/activity/activitySign/index",
"query": "activityId=572afdf78246358d3fc6dfcb4341eb66",
"scene": null
} }
] ]
} }

Loading…
Cancel
Save