意见建议 企获客介绍接口
This commit is contained in:
@@ -25,6 +25,13 @@ const EditCover = data => req({url: "user/info/cover",method: "PUT",data: data})
|
|||||||
const EditNickname = data => req({url: "user/info/nickname",method: "PUT",data: data}) //变更用户昵称
|
const EditNickname = data => req({url: "user/info/nickname",method: "PUT",data: data}) //变更用户昵称
|
||||||
const EditSex= data => req({url: "user/info/sex",method: "PUT",data: data}) //变更用户性别
|
const EditSex= data => req({url: "user/info/sex",method: "PUT",data: data}) //变更用户性别
|
||||||
|
|
||||||
|
// 企业介绍
|
||||||
|
const getQHKIntroduce = () => req({url: "single/qhk_introduce"})
|
||||||
|
|
||||||
|
// 意见建议
|
||||||
|
const suggests = data => req({url: "suggests",method: "post",data: data})
|
||||||
|
|
||||||
|
|
||||||
export default({
|
export default({
|
||||||
userInfo,//用户基本信息
|
userInfo,//用户基本信息
|
||||||
companySubscribesList,//关注企业列表
|
companySubscribesList,//关注企业列表
|
||||||
@@ -33,4 +40,6 @@ export default({
|
|||||||
getUserInfo,//获取用户消息
|
getUserInfo,//获取用户消息
|
||||||
EditNickname,//更改用戶名稱
|
EditNickname,//更改用戶名稱
|
||||||
EditSex,//变更用户性别
|
EditSex,//变更用户性别
|
||||||
|
getQHKIntroduce,//获取行业介绍信息
|
||||||
|
suggests,//意见建议
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -249,3 +249,7 @@ page {
|
|||||||
line-height: 32rpx;
|
line-height: 32rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
image {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
@@ -1,8 +1,33 @@
|
|||||||
Page({
|
Page({
|
||||||
data: {},
|
data: {
|
||||||
|
content: '',
|
||||||
|
},
|
||||||
|
input(e) {
|
||||||
|
this.setData({
|
||||||
|
content: e.detail.value
|
||||||
|
})
|
||||||
|
},
|
||||||
besure() {
|
besure() {
|
||||||
|
if (this.data.content) {
|
||||||
|
wx.$api.user.suggests({
|
||||||
|
content: this.data.content
|
||||||
|
}).then(res => {
|
||||||
|
wx.showToast({
|
||||||
|
title: '操作成功,等待客服联系',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 1000,
|
||||||
|
success: res => {
|
||||||
wx.navigateBack({
|
wx.navigateBack({
|
||||||
delta: 0,
|
delta: 0,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
wx.showToast({
|
||||||
|
title: '信息不能为空哦~',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
<view class="content">
|
<view class="content">
|
||||||
<textarea placeholder="输入您的意见与建议"></textarea>
|
<textarea bindinput="input" placeholder="输入您的意见与建议"></textarea>
|
||||||
<view catchtap="besure">确认提交</view>
|
<view catchtap="besure">确认提交</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -3,5 +3,15 @@ Page({
|
|||||||
nodes: {
|
nodes: {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
wx.$api.user.getQHKIntroduce().then(res => {
|
||||||
|
if (res.content) {
|
||||||
|
var nodes = res.content.replace('<img', '<img style="max-width:100%;height:auto""');
|
||||||
|
this.setData({
|
||||||
|
nodes: nodes,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -1,6 +1 @@
|
|||||||
<image src="/static/images/company_bg4.png" mode="widthFix" style="width:100%;"></image>
|
<rich-text nodes="{{nodes}}"> </rich-text>
|
||||||
<!-- <rich-text nodes="{{nodes}}"></rich-text> -->
|
|
||||||
<view>
|
|
||||||
电子科技有限公司是一家集产品研发,生产及销售的大型高科技电子企业,是全球专业的液晶广告机,液晶电视及液晶拼接墙制造商,从创立伊始,历经多年的稳健发展,以推动国内液晶广告机的普及化为己任,以提升人类视听享受为目标,公司旗下品牌博视(TBOSV)已经成为全球普遍赞誉的知名品牌。上海域展电子科技有限公司成立于2006年。我们凭借着"以品质为根本、以创新求发展"的理念;力争以优质的全方位服务为客户提供具有竞争力价...
|
|
||||||
电子科技有限公司是一家集产品研发,生产及销售的大型高科技电子企业,是全球专业的液晶广告机,液晶电视及液晶拼接墙制造商,从创立伊始,历经多年的稳健发展,以推动国内液晶广告机的普及化为己任,以提升人类视听享受为目标,公司旗下品牌博视(TBOSV)已经成为全球普遍赞誉的知名品牌。上海域展电子科技有限公司成立于2006年。我们凭借着"以品质为根本、以创新求发展"的理念;力争以优质的全方位服务为客户提供具有竞争力价...
|
|
||||||
</view>
|
|
||||||
@@ -1,17 +1,4 @@
|
|||||||
.item {
|
page {
|
||||||
display: flex;
|
padding: 30rpx;
|
||||||
flex-direction: row;
|
|
||||||
justify-content: flex-start;
|
|
||||||
align-items: center;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 30rpx 30rpx;
|
|
||||||
color: #333;
|
|
||||||
font-weight: 400;
|
|
||||||
background-color: #fff;
|
|
||||||
border-top: #f7f7f7 solid 1rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.item image {
|
|
||||||
width: 50rpx;
|
|
||||||
margin-right: 10rpx;
|
|
||||||
}
|
}
|
||||||
@@ -15,3 +15,7 @@
|
|||||||
width: 50rpx;
|
width: 50rpx;
|
||||||
margin-right: 10rpx;
|
margin-right: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
image {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user