作者 lihongjuan

1

... ... @@ -56,11 +56,59 @@
});
return promise;
},
upload(filetype, file) {
let that=this
var promise = new Promise((resolve, reject) => {
wx.showNavigationBarLoading()
wx.showLoading({
title: '上传中',
})
let url = that.globalData.baseUrl+'common/upload';
console.log(url)
let head = {
'token':uni.getStorageSync('token'),
'XX-Device-Type': ''
}
console.log(head)
let typename = {
filetype: filetype
}
wx.uploadFile({
url: url, //仅为示例,非真实的接口地址
filePath: file,
name: 'file',
header: head,
formData: typename,
success: function (res) {
console.log('上传文件后', res)
let temdata = JSON.parse(res.data);
console.log(temdata)
let urlobj = {
url: temdata.data.url
}
resolve(urlobj);
},
fail: function (res) {
reject('网络出错');
wx.hideNavigationBarLoading()
wx.hideLoading()
},
complete: () => {
wx.hideNavigationBarLoading()
wx.hideLoading()
},
})
});
return promise;
},
globalData: {
userInfo: null,
baseUrl: 'http://zhongmian.w.brotop.cn/api/'
baseUrl: 'http://zhongmian.w.brotop.cn/api/',
imgurl:'http://zhongmian.w.brotop.cn/'
},
onHide: function() {
console.log('App Hide')
}
... ... @@ -74,6 +122,33 @@
height: 100%;
}
/* 省份选择 */
.proselect{
width:120rpx;
height:60rpx;
border:2rpx solid rgba(238,238,238,1);
color:#fff;
font-size:24rpx;
border-radius: 40rpx;
padding: 0 10rpx;
box-sizing: border-box;
margin-left:16rpx;
}
.proname{
width:90rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right:5rpx;
}
.release-text-content{
height:120rpx;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
}
.content.title {
padding-top: var(--status-bar-height);
box-sizing: border-box;
... ...
... ... @@ -165,7 +165,7 @@
{
"path": "pages/luntan/addcontract",
"style": {
"navigationBarTitleText": "添加合同",
"navigationBarTitleText": "发布帖子",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
}
... ...
... ... @@ -18,7 +18,7 @@
</view>
<view class="navright" @click="cartlist">
<image src="../../static/cart.png" mode=""></image>
<view class="cartnum">16</view>
<view class="cartnum">{{carttotal}}</view>
</view>
</view>
<view class="homehead">
... ... @@ -153,14 +153,8 @@
<view class="chahao" @click="hidejifen">
<image src="../../static/chahao.png" mode=""></image>
</view>
</view>
</view>
</view>
<!-- 底部导航 -->
... ... @@ -207,13 +201,37 @@
keyword: '',
order: '',
page: 1,
shoplist: []
shoplist: [],
carttotal:''
}
},
onLoad() {
this.getfoodlist()
this.getfoodlist();
let token=uni.getStorageSync("token");
if(token!=''){
this.getcartnum()
}
},
methods: {
// 获取购物车气泡
getcartnum(){
let that = this;
var url = 'car/bubble';
var params = {
}
app.post(url, params).then((res) => {
console.log(res);
this.carttotal=res.data.data.total
}).catch((err) => {
})
},
// 抽奖专区
choujiang() {
uni.navigateTo({
... ...
... ... @@ -2,37 +2,195 @@
<view class="content">
<view class="addtop flextwo">
<view class='addtopleft'>发布省份</view>
<view class="addprovince flexone">
<view class="proname">北京</view>
<view class="xiala">
<image src="../../static/huixia.png" mode=""></image>
<picker @change="bindproChange" :value="index" :range="provincelist" range-key="name">
<view class="addprovince flexone">
<view class="proname">{{provincename}}</view>
<view class="xiala">
<image src="../../static/huixia.png" mode=""></image>
</view>
</view>
</view>
</picker>
</view>
<view class="contracttext">
<view class="title">
<input type="text" placeholder="加个标题哦~" placeholder-class="entertitle"/>
<input type="text" placeholder="加个标题哦~" placeholder-class="entertitle" @input="entertitle" />
</view>
<view class="contractcontent">
<textarea value="" placeholder="请输入帖子内容" placeholder-class="entertitle"/>
</view>
<textarea value="" placeholder="请输入帖子内容" placeholder-class="entertitle" @input="entercontent" />
</view>
<view class='addpicox flexone'>
<view class="addpic">
<image src="../../static/add.png" mode=""></image>
<view class="addpic" v-for="(item,index) in image" :key="index">
<image :src="item" mode=""></image>
<view class="delimg" @click="deleteimg" :data-url="item">
<image src="../../static/close.png" mode=""></image>
</view>
</view>
<view class="addpic">
<view class="addpic" @click="chooseImage">
<image src="../../static/add.png" mode=""></image>
</view>
</view>
</view>
<view class="buybtn surebtn" @click="sure">确定</view>
</view>
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
type:'',
provincelist: [],
provincename:'',
index:0,
province_id:'',
image:[],
title:'',
content:''
}
},
onLoad(options) {
this.type=options.type;
this.getprovincelist()
},
methods: {
// 输入标题
entertitle(e){
this.title=e.detail.value
},
//输入内容
entercontent(e){
this.content=e.detail.value
},
// 获取省份列表
getprovincelist() {
let that = this;
var url = 'forum/get_province';
var params = {
is_forum_hot: ''
}
console.log('7766554', params)
app.post(url, params).then((res) => {
console.log(res);
that.provincelist = res.data.data;
this.provincename=res.data.data[0].name;
that.province_id=res.data.data[0].id;
// 获取论坛列表
this.getluntanlist()
}).catch((err) => {
})
},
bindproChange(e){
this.index = e.target.value;
this.provincename=this.provincelist[e.target.value].name;
this.province_id=this.provincelist[e.target.value].id;
this.page=1;
this.luntanlist=[];
},
// 上传图片
chooseImage() {
let that = this;
uni.chooseImage({
count: 9,
sizeType: ['original', 'compressed'],
success: function (res) {
console.log(res)
console.log(res.tempFilePaths);
console.log(res.tempFilePaths[0])
res.tempFilePaths.forEach(function(value,index,array){
app.upload('image', value, "post").then((res) => {
console.log('上传文件', res);
let url = app.globalData.imgurl+res.url;
that.image.push(url)
console.log(that.image)
}).catch((err) => {
console.log(err)
})
})
},
fail: function (res) { }
})
},
deleteimg(e){
console.log(e)
var url=e.currentTarget.dataset.url;
console.log(url)
for(var i=0;i<this.image.length;i++){
if(url==this.image[i]){
this.image.splice(i,1);
}
}
this.image=this.image;
console.log(this.iamge)
},
sure(){
let that = this;
if(that.title==''){
uni.showToast({
title:"请输入标题",
icon:'none'
})
return false
}
if(that.content==''){
uni.showToast({
title:"请输入帖子内容",
icon:'none'
})
return false
}
var url = 'forum/get_province';
var params = {
type:that.type,
province_id:that.province_id,
title:that.title,
content:that.content,
images:that.image.join(",")
}
console.log('7766554', params)
app.post(url, params).then((res) => {
console.log(res);
uni.showToast({
title:'发布成功',
icon:"none"
})
setTimeout(function(){
uni.navigateTo({
url:'/pages/luntan/luntan'
})
},1500)
}).catch((err) => {
})
}
}
}
</script>
<style>
... ... @@ -40,14 +198,30 @@
page{
background:#F7F6F9 ;
}
.surebtn{
position: fixed;
bottom:0;
left:32rpx;
bottom:32rpx;
}
.addpic{
width:160rpx;
height:160rpx;
width:150rpx;
height:150rpx;
font-size: 0;
margin-right:28rpx;
margin-right:18rpx;
margin-bottom:20rpx;
position: relative;
}
.delimg{
width:40rpx;
height:40rpx;
font-size: 0;
position: absolute;
top:-20rpx;
right:-20rpx;
}
.entertitle{
color:#BDC4CE;
font-size: 28rpx;
... ... @@ -62,7 +236,7 @@
font-size: 28rpx;
}
.contracttext{
padding: 0 32rpx;
padding: 0 32rpx 20rpx;
box-sizing: border-box;
background: #fff;
margin-top:16rpx;
... ... @@ -110,5 +284,6 @@
}
.addpicox{
margin-top:20rpx;
flex-wrap: wrap;
}
</style>
... ...
... ... @@ -2,36 +2,37 @@
<view class='content'>
<view class="examinetop flexone">
<view class="examinetopleft">
<image src="../../static/userpic.png" mode=""></image>
<image :src="userinfo.avatar" mode=""></image>
</view>
<view class="examintopright">
<view class='examinename'>我是用户昵称</view>
<view class='examinelist flexone'>
<view class='examineitem'>帮工</view>
<view class='examineitem'>配送员</view>
<view class='examineitem'>销售员</view>
<view class='examinename'>{{userinfo.nickname}}</view>
<view class='examinelist flexone' v-if="label.length!=0">
<view class='examineitem' v-for="(item,index) in userinfo.label" :key="index">{{item.name_label}}</view>
</view>
</view>
</view>
<view class="helplist flexone">
<view class="helpitem flexfour">
<view class="helpitem flexfour" @click="examinetext(item)" v-for="(item,index) in questionlist" :key="index">
<view class="helpitemtop">
<image src="../../static/banggong.png" mode=""></image>
<image :src="item.image" mode=""></image>
</view>
<view class="helpitemname">帮工考试</view>
<view class="helpitemname">{{item.name}}</view>
</view>
<view class="helpitem flexfour">
<!-- <view class="helpitem flexfour" @click="examinetext">
<view class="helpitemtop">
<image src="../../static/car.png" mode=""></image>
</view>
<view class="helpitemname">配送员考试</view>
</view>
<view class="helpitem flexfour">
<view class="helpitem flexfour" @click="examinetext">
<view class="helpitemtop">
<image src="../../static/xiaoshou.png" mode=""></image>
</view>
<view class="helpitemname">销售员考试</view>
</view>
-->
</view>
<view class="examinrule">
<view class='examineruletitle'>考试规则</view>
... ... @@ -42,7 +43,34 @@
则考试规则考试规则考试规则考试规则
</view>
</view>
<!-- 发布 -->
<view class="release-news" v-if="publish">
<view class="release-content">
<view class="nav-wrap publishnav">
<view class="navigator" @click="publishitezi" :data-id="1">
<image src="../../static/helppeople.png"></image>
<text>帮工招聘求职</text>
</view>
<view class="navigator" @click="publishitezi" :data-id="2">
<image src="../../static/mianturn.png"></image>
<text>面坊求购转让</text>
</view>
<view class="navigator" @click="publishitezi" :data-id="3">
<image src="../../static/friend.png"></image>
<text>征婚交友</text>
</view>
<view class="navigator" @click="publishitezi" :data-id="4">
<image src="../../static/zhonglogo.png"></image>
<text>中面集团</text>
</view>
</view>
<!-- close -->
<view class="close" @click="hidepublish">
<image src="../../static/publishchahao.png" />
</view>
</view>
</view>
<!-- 底部导航 -->
<view class="teacherfooter">
<view class="teacherfootitem" @click="footerseljump" data-id="1">
... ... @@ -64,7 +92,6 @@
<view class="teacherfootname" :class="footersel==3?'activename':''">考试</view>
</view>
</view>
</view>
</template>
... ... @@ -73,15 +100,23 @@
export default {
data() {
return {
footersel:3
footersel:3,
publish:false,
questionlist:[],
userinfo:'',
label:''
}
},
onLoad() {
this.getquestionlist();
// 获取用户信息
this.getuserinfo()
},
methods: {
hidepublish() {
this.publish = false
},
footerseljump(e){
let id=e.currentTarget.dataset.id;
if(id==1){
... ... @@ -92,8 +127,59 @@
uni.navigateTo({
url:"/pages/luntan/examine"
})
}
}
}else if(id==2){
this.publish=true
}
},
// 获取用户信息
getuserinfo(){
let that = this;
var url = 'member/index';
var params = {
}
console.log('7766554', params)
app.post(url, params).then((res) => {
console.log(res);
that.userinfo=res.data.data;
that.label=res.data.data.label
}).catch((err) => {
})
},
// 获取问卷列表
getquestionlist(){
let that = this;
var url = 'question/get_questionnaire';
var params = {
}
console.log('7766554', params)
app.post(url, params).then((res) => {
console.log(res);
that.questionlist=res.data.data
}).catch((err) => {
})
},
//帮工考试
examinetext(item){
let id=item.id
uni.navigateTo({
url:'/pages/luntan/examintext?id='+id
})
},
// 发布评论
publishitezi(e){
let type=e.currentTarget.dataset.id;
uni.navigateTo({
url:'/pages/luntan/addcontract?type='+type
})
},
}
... ... @@ -101,6 +187,10 @@
</script>
<style>
page{
background: #fff;
}
/* page{
padding: 0 32rpx;
box-sizing: border-box;
... ... @@ -182,3 +272,185 @@
}
</style>
<style>
page {
background: #F9F9F9;
}
.release-text-content{
height:120rpx;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
}
.enterwordk{
color:#BDC4CE;
font-size: 24rpx;
}
.proselect{
width:120rpx;
height:60rpx;
border:2rpx solid rgba(238,238,238,1);
color:#fff;
font-size:24rpx;
border-radius: 40rpx;
padding: 0 10rpx;
box-sizing: border-box;
margin-left:16rpx;
}
.proname{
width:90rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right:5rpx;
}
.down-ico{
width:16rpx;
height:16rpx;
font-size: 0;
}
.publishnav {
padding: 0 !important;
}
.homeimg {
width: 88rpx;
height: 88rpx;
font-size: 0;
}
.search-input {
width: 470rpx !important;
}
/* 搜素 */
.search-wrap {
width: 750rpx;
padding: 14rpx 0;
box-sizing: border-box;
background: #C29445;
z-index:99;
position: fixed;
top: var(--status-bar-height);
left: 0;
}
.nav-wrap {
background: #fff;
display: flex;
justify-content: space-between;
padding: 32rpx 64rpx;
margin-bottom: 16rpx;
margin-top: calc(var(--status-bar-height) + 100rpx);;
}
.nav-wrap .navigator {
text-align: center;
}
.nav-wrap .navigator image {
width: 88rpx;
height: 88rpx;
margin: auto;
}
.nav-wrap .navigator text {
width: 104rpx;
display: block;
color: #3D454C;
font-size: 26rpx;
}
.new-release-wrap .new-release-title {
height: 84rpx;
line-height: 84rpx;
padding-left: 32rpx;
position: relative;
background: #fff;
font-size: 32rpx;
color: #061220;
border-bottom: 1px solid #E3E2E1;
}
.new-release-wrap .new-release-title:after {
content: "";
position: absolute;
top: 20rpx;
left: 0;
height: 44rpx;
width: 8rpx;
background: var(--themeColor);
border-top-right-radius: 6rpx;
border-bottom-right-radius: 6rpx;
}
.release-news {
position: fixed;
width: 750rpx;
height: 100%;
bottom: 0;
left: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 10;
}
.release-news .release-content {
position: absolute;
width: 750rpx;
bottom: 0;
left: 0;
background: #fff;
z-index: 1000;
padding: 60rpx;
box-sizing: border-box;
border-top-left-radius: 40rpx;
border-top-right-radius: 40rpx;
}
.release-news .meun-lists {
display: flex;
justify-content: space-between;
}
.release-news .meun-lists navigator {
text-align: center;
}
.release-news .meun-lists navigator image {
width: 88rpx;
height: 88rpx;
margin: auto;
}
.release-news .meun-lists navigator text {
width: 104rpx;
display: block;
color: #3D454C;
font-size: 26rpx;
}
.release-news .close {
display: flex;
justify-content: center;
margin-top: 38rpx;
}
.release-news .close image {
width: 60rpx;
height: 60rpx;
}
.search-wrap .navigator:nth-child(3){
/* font-size: 20rpx; */
}
/* .proname{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} */
</style>
... ...
<template>
<view class="content">
<view class="texttitle">
3.老人每天综合摄入食盐量最好控制在( )克以
下(多选)
1.{{present_data.question_name}}({{present_data.type==1?'单选':'多选'}})
</view>
<view class="textlist">
<view class='textitem flex'>
... ... @@ -53,6 +52,48 @@
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
questionnaire_id:'',
present_data:[],
last_data:[],
next_data:[]
}
},
onLoad(options) {
this.questionnaire_id=options.id;
this.getqusetion();
},
methods: {
getqusetion(){
let that = this;
var url = 'question/get_question';
var params = {
questionnaire_id:that.questionnaire_id
}
console.log(params)
app.post(url, params,"post").then((res) => {
console.log(res);
that.present_data=res.data.data.present_data;
that.last_data=res.data.data.last_data;
that.next_data=res.data.data.next_data;
}).catch((err) => {
console.log(err)
})
},
}
}
</script>
<style>
... ...
... ... @@ -9,7 +9,8 @@
</view>
<view class="search-input navigator" url="/pages/searchGoods/index" open-type="navigate">
<icon type="search" size="12" color="#BDC4CE" style="margin-right:10rpx;"/>
请输入关键词搜索
<input type="text" placeholder="请输入关键词搜索" @confirm="finish" @input="enterword" class="enterwordk" placeholder-class="enterwordk">
</view>
<picker @change="bindproChange" :value="index" :range="provincelist" range-key="name">
<!-- <view class="uni-input">{{array[index]}}</view> -->
... ... @@ -21,19 +22,19 @@
</view>
<!-- nav -->
<view class="nav-wrap">
<view class="navigator" @click="zhaopin">
<view class="navigator" @click="zhaopin" :data-id="1">
<image src="../../static/helppeople.png"></image>
<text>帮工招聘求职</text>
</view>
<view class="navigator">
<view class="navigator" @click="zhaopin" :data-id="2">
<image src="../../static/mianturn.png"></image>
<text>面坊求购转让</text>
</view>
<view class="navigator">
<view class="navigator" @click="zhaopin" :data-id="3">
<image src="../../static/friend.png"></image>
<text>征婚交友</text>
</view>
<view class="navigator">
<view class="navigator" @click="zhaopin" :data-id="4">
<image src="../../static/zhonglogo.png"></image>
<text>中面集团</text>
</view>
... ... @@ -42,44 +43,50 @@
<view class="new-release-wrap">
<!-- title -->
<view class="new-release-title">最新发布</view>
<!-- content -->
<view class="new-release-content" v-for="(item,index) in luntanlist" :key="index">
<!-- 头像,名称,等级 -->
<view class="userinfo-wrap" @click="usercenter">
<image src="../../static/userpic.png"></image>
<text class="title">{{item.nickname}}</text>
<view class="VIP">
<image src="../../static/huiyuan.png"></image>
VIP5
</view>
</view>
<!-- type -->
<view class="type-wrap">
帮工招聘求职
<text>帮工</text>
<text>配送员</text>
<text>销售员</text>
</view>
<view class="nodata" v-if="luntanlist.length==0">暂无数据</view>
<view v-else>
<!-- content -->
<view class="release-text">
<view class="release-text-title">
帖子标题帖子标题帖子标题帖子标题帖子帖子
<view class="new-release-content" v-for="(item,index) in luntanlist" :key="index" @click="luntandetail(item)" >
<!-- 头像,名称,等级 -->
<view class="userinfo-wrap" @click.stop="usercenter(item)">
<image :src="item.user.avatar"></image>
<text class="title">{{item.nickname}}</text>
<view class="VIP">
<image src="../../static/huiyuan.png"></image>
{{item.user.level.name1}}
</view>
</view>
<view class="release-text-content">
帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容...
<!-- type -->
<view class="type-wrap">
帮工招聘求职
<text v-for="(item,index) in item.user.label" :key="index">{{item.name_label}}</text>
<!-- <text>配送员</text>
<text>销售员</text> -->
</view>
</view>
<!-- 点赞, 人数 -->
<view class="thumbs-number">
<view class="thumbs">
<image src="../../static/tienozan.png"></image>
399
<!-- content -->
<view class="release-text">
<view class="release-text-title">
{{item.title}}
</view>
<view class="release-text-content">
<rich-text :nodes="item.content"></rich-text>
</view>
</view>
<view class="number">
<image src="../../static/userpeopel.png"></image>
399
<!-- 点赞, 人数 -->
<view class="thumbs-number" @click.stop="praisedian(item,index)">
<view class="thumbs">
<image src="../../static/tienozan.png" v-if="item.is_praise==2"></image>
<image src="../../static/tiezan.png" v-else></image>
{{item.praise}}
</view>
<view class="number">
<image src="../../static/userpeopel.png"></image>
{{item.view}}
</view>
</view>
</view>
</view>
... ... @@ -90,29 +97,31 @@
<view class="release-news" v-if="publish">
<view class="release-content">
<view class="nav-wrap publishnav">
<view class="navigator" @click="zhaopin">
<view class="navigator" @click="publishitezi" :data-id="1">
<image src="../../static/helppeople.png"></image>
<text>帮工招聘求职</text>
</view>
<view class="navigator">
<view class="navigator" @click="publishitezi" :data-id="2">
<image src="../../static/mianturn.png"></image>
<text>面坊求购转让</text>
</view>
<view class="navigator">
<view class="navigator" @click="publishitezi" :data-id="3">
<image src="../../static/friend.png"></image>
<text>征婚交友</text>
</view>
<view class="navigator">
<view class="navigator" @click="publishitezi" :data-id="4">
<image src="../../static/zhonglogo.png"></image>
<text>中面集团</text>
</view>
</view>
<!-- close -->
<!-- close -->
<view class="close" @click="hidepublish">
<image src="../../static/publishchahao.png" />
</view>
</view>
</view>
<!-- 底部导航 -->
<view class="teacherfooter">
<view class="teacherfootitem" @click="footerseljump" :data-id="1">
... ... @@ -152,7 +161,6 @@
index:0,
luntanlist:[],
keyword:''
}
},
onLoad() {
... ... @@ -163,6 +171,25 @@
hidepublish() {
this.publish = false
},
// 输入关键字
enterword(e){
this.keyword=e.detail.value;
console.log(this.keyword)
},
// 输入完成
finish(){
this.page=1;
this.luntanlist=[];
this.getluntanlist();
},
// 论坛详情
luntandetail(item){
uni.navigateTo({
url:'/pages/luntan/luntandetail?id='+item.id
})
},
// 获取省份列表
getprovincelist() {
let that = this;
... ... @@ -183,10 +210,13 @@
})
},
bindproChange(e){
this.index = e.target.value;
this.provincename=this.provincelist[e.target.value].name;
this.province_id=this.provincelist[e.target.value].id;
this.page=1;
this.luntanlist=[];
// 获取论坛列表
this.getluntanlist();
},
... ... @@ -197,7 +227,7 @@
var params = {
keyword:that.keyword,
province_id: that.province_id,
type: that.type,
type: '',
page: that.page,
pageNum: 10
}
... ... @@ -213,6 +243,44 @@
})
},
praisedian(item,index){
let that = this;
if(that.luntanlist[index].is_praise==2){
uni.showToast({
title:'点赞成功',
icon:'none'
})
that.luntanlist[index].is_praise=1;
that.luntanlist[index].praise=that.luntanlist[index].praise+1
}else{
uni.showToast({
title:'取消点赞成功',
icon:'none'
})
that.luntanlist[index].is_praise=2;
that.luntanlist[index].praise=that.luntanlist[index].praise-1
}
that.luntanlist=that.luntanlist;
var url = 'forum/praise';
var params = {
forum_id:item.id
}
console.log('参数',params)
app.post(url, params).then((res) => {
console.log(res);
}).catch((err) => {
console.log(err)
})
},
// 返回首页
homeback() {
console.log(43898934894)
... ... @@ -220,10 +288,27 @@
url: '/pages/homepage/homepage'
})
},
// 进入论坛主页
usercenter(item){
let user=JSON.stringify(item.user)
uni.navigateTo({
url:'/pages/luntan/luntanpage?userid='+item.user_id+'&user='+user
})
},
// 论坛列表
zhaopin() {
zhaopin(e) {
let id=e.currentTarget.dataset.id;
uni.navigateTo({
url: '../luntan/luntanlist'
url: '../luntan/luntanlist?id='+id
})
},
// 发布评论
publishitezi(e){
let type=e.currentTarget.dataset.id;
uni.navigateTo({
url:'/pages/luntan/addcontract?type='+type
})
},
// 底部导航跳转
... ... @@ -252,6 +337,18 @@
page {
background: #F9F9F9;
}
.release-text-content{
height:120rpx;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
}
.enterwordk{
color:#BDC4CE;
font-size: 24rpx;
}
.proselect{
width:120rpx;
height:60rpx;
... ... @@ -295,7 +392,7 @@
padding: 14rpx 0;
box-sizing: border-box;
background: #C29445;
z-index:99;
position: fixed;
top: var(--status-bar-height);
left: 0;
... ...
<template>
<view class="content">
<view class="posts-details-wrap">
<!-- content -->
<view class="release-text-title">
帖子标题帖子标题帖子标题帖子标题帖子帖子
</view>
<view class="new-release-content" @click="tiezifu">
<!-- 头像,名称,等级 -->
<view class="userinfo-wrap">
<image src="../../icons/nav2.png"></image>
<view class="userinfo">
<view class="userinfo-vip">
<text class="title">我是用户昵称</text>
<view class="VIP">
<image src="../../icons/vip.png"></image>
VIP5
</view>
</view>
<view class="time">
1小时
</view>
</view>
</view>
<!-- type -->
<view class="type-wrap">
<text style="margin-left:0">帮工</text>
<text>配送员</text>
<text>销售员</text>
</view>
<!-- content -->
<view class="release-text">
<view class="release-text-content">
帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容
<image src="../../icons/banner.png" mode="widthFix" />
<image src="../../icons/banner.png" mode="widthFix" />
<image src="../../icons/banner.png" mode="widthFix" />
</view>
</view>
<!-- 点赞, 人数 -->
<view class="thumbs-number">
<view class="thumbs">
<image src="../../icons/thumbs1.png"></image>
399
</view>
<view class="number">
<image src="../../icons/number.png"></image>
399
</view>
</view>
</view>
<view class="new-release-content">
<!-- 头像,名称,等级 -->
<view class="userinfo-wrap">
<image src="../../icons/nav2.png"></image>
<view class="userinfo">
<view class="userinfo-vip">
<text class="title">我是用户昵称</text>
<view class="VIP">
<image src="../../icons/vip.png"></image>
VIP5
</view>
</view>
</view>
</view>
<!-- type -->
<view class="type-wrap">
帮工招聘求职
<text >帮工</text>
<text>配送员</text>
<text>销售员</text>
</view>
<!-- content -->
<view class="release-text">
<view class="release-text-content">
帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容
<image src="../../icons/banner.png" mode="widthFix" />
<image src="../../icons/banner.png" mode="widthFix" />
<image src="../../icons/banner.png" mode="widthFix" />
</view>
</view>
<!-- 点赞, 人数 -->
<view class="thumbs-number">
<view class="thumbs">
<image src="../../icons/thumbs1.png"></image>
399
</view>
<view class="number">
<image src="../../icons/number.png"></image>
399
</view>
</view>
</view>
<!-- content -->
<view class="release-text-title">
{{tiezidetail.title}}
</view>
<!-- @click="tiezifu" -->
<view class="new-release-content">
<!-- 头像,名称,等级 -->
<view class="userinfo-wrap">
<image :src="user.avatar"></image>
<view class="userinfo">
<view class="userinfo-vip">
<text class="title">{{user.nickname}}</text>
<view class="VIP">
<image src="../../icons/vip.png"></image>
{{level.name1}}
</view>
</view>
<view class="time">
1小时
</view>
</view>
</view>
<!-- type -->
<view class="type-wrap">
<text style="margin-left:0" v-for="(item,index) in label" :key="index">{{item.name_label}}</text>
<!-- <text>配送员</text>
<text>销售员</text> -->
</view>
<!-- content -->
<view class="release-text">
<view class="release-text-content">
<rich-text :nodes="tiezidetail.content"></rich-text>
</view>
<view class="imagebox">
<image :src="item" mode="widthFix" v-for="(item,index) in tiezidetail.images" :key="index"/>
</view>
</view>
<!-- 点赞, 人数 -->
<view class="thumbs-number">
<view class="thumbs" @click="tiezizan">
<image src="../../icons/thumbs1.png" v-if="tiezidetail.is_praise==2"></image>
<image src="../../static/tiezan.png" v-else></image>
{{tiezidetail.praise}}
</view>
<view class="number">
<image src="../../icons/number.png"></image>
{{tiezidetail.view}}
</view>
</view>
</view>
<view>
<!-- 论坛列表 -->
<view class="new-release-content" v-for="(item,index) in commentlist" :key="index">
<!-- 头像,名称,等级 -->
<view class="userinfo-wrap">
<image :src="item.user.avatar"></image>
<view class="userinfo">
<view class="userinfo-vip">
<text class="title">{{item.user.nickname}}</text>
<view class="VIP">
<image src="../../icons/vip.png"></image>
{{item.user.level.name1}}
</view>
</view>
</view>
</view>
<!-- type -->
<view class="type-wrap" v-if="item.user.label.length!=0">
帮工招聘求职
<text v-for="(item,index) in item.user.label" :key="index">{{item.name_label}}</text>
</view>
<!-- content -->
<view class="release-text">
<view class="release-text-content">
<rich-text :nodes="item.content"></rich-text>
</view>
<!-- <view class="imagebox">
<image src="../../icons/banner.png" mode=""></image>
<image :src="item" mode="widthFix" v-for="(item,index) in tiezidetail.images" :key="index"/>
</view> -->
</view>
<!-- 点赞, 人数 -->
<view class="thumbs-number">
<view class="thumbs" @click="dianzan(item,index)">
<image src="../../icons/thumbs1.png" v-if="item.is_praise==2"></image>
<image src="../../static/tiezan.png" mode="" v-else></image>
{{item.praise}}
</view>
<!-- <view class="number">
<image src="../../icons/number.png"></image>
{{item.view}}
</view> -->
</view>
</view>
</view>
</view>
<!-- footer -->
<view class="footer">
<view class="search">
<input type="text" confirm-type="send" placeholder-class="placeholder" placeholder="写点什么..."/>
<view class="search-btn">
<image src="../../static/write.png"/>
</view>
</view>
</view>
<view class="search">
<input type="text" confirm-type="send" class="shuru" placeholder-class="placeholder" @input="entercomment" placeholder="写点什么..." />
<!-- <view class="search-btn">
<image src="../../static/write.png" />
</view> -->
<view class='sendname' @click="sendcomment">发送</view>
</view>
</view>
</view>
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
showbanben: false
}
},
onLoad() {
},
methods: {
tiezifu(){
uni.navigateTo({
url:'./luntandetailsecond'
})
}
}
}
export default {
data() {
return {
showbanben: false,
forum_id: '',
page: 1,
tiezidetail: '',
commentlist:[],
comment:'',
level:'',
user:'',
label:''
}
},
onLoad(options) {
this.forum_id = options.id;
this.getformdetail();
this.getcommentlist()
},
methods: {
// 获取帖子详情
getformdetail() {
let that = this;
var url = 'forum/get_forum_detail';
var params = {
forum_id: that.forum_id
}
console.log('参数', params)
app.post(url, params).then((res) => {
console.log(res);
that.tiezidetail = res.data.data;
that.user=res.data.data.user;
that.level=res.data.data.user.level;
that.label=res.data.data.user.label;
}).catch((err) => {
console.log(err)
})
},
// 帖子详情点赞
tiezizan(){
let that=this;
if(that.tiezidetail.is_praise==2){
that.tiezidetail.is_praise=1;
that.tiezidetail.praise=that.tiezidetail.praise+1;
uni.showToast({
title:"点赞成功",
icon:'none'
})
}else{
that.tiezidetail.is_praise=2;
that.tiezidetail.praise=that.tiezidetail.praise-1;
uni.showToast({
title:"取消点赞成功",
icon:'none'
})
}
that.tiezidetail=that.tiezidetail
var url = 'forum/praise';
var params = {
forum_id:that.forum_id
}
console.log('参数', params)
app.post(url, params).then((res) => {
}).catch((err) => {
console.log(err)
})
},
// 获取评论列表
getcommentlist() {
let that = this;
var url = 'comments/get_comments';
var params = {
forum_id: that.forum_id,
page: that.page,
pageNum: 10
}
console.log('参数', params)
app.post(url, params).then((res) => {
console.log(res);
this.commentlist=this.commentlist.concat(res.data.data)
}).catch((err) => {
console.log(err)
})
},
// 评论列表点赞
dianzan(item,index){
let that=this;
console.log(item,index)
if(this.commentlist[index].is_praise==2){
uni.showToast({
title:'点赞成功',
icon:'none'
})
this.commentlist[index].is_praise=1
this.commentlist[index].praise=this.commentlist[index].praise+1
}else{
this.commentlist[index].is_praise=2;
this.commentlist[index].praise=this.commentlist[index].praise-1
uni.showToast({
title:'取消点赞成功',
icon:'none'
})
}
this.commentlist=this.commentlist
var url = 'comments/praise';
var params = {
comments_id:item.id
}
console.log('参数', params)
app.post(url, params).then((res) => {
}).catch((err) => {
console.log(err)
})
},
dian(){
let that = this;
var url = 'comments/get_comments';
var params = {
forum_id: that.forum_id,
page: that.page,
pageNum: 10
}
console.log('参数', params)
app.post(url, params).then((res) => {
console.log(res);
this.commentlist=this.commentlist.concat(res.data.data)
}).catch((err) => {
console.log(err)
})
},
tiezifu() {
uni.navigateTo({
url: './luntandetailsecond'
})
},
// 输入评论
entercomment(e){
this.comment=e.detail.value;
},
// 发送评论
sendcomment(){
let that = this;
var url = 'comments/publish_comments';
var params = {
forum_id: that.forum_id,
content:that.comment
}
console.log('参数', params)
app.post(url, params).then((res) => {
console.log(res);
uni.showToast({
title:'评论成功',
icon:'none'
})
that.page=1;
that.commentlist=[];
that.getcommentlist()
}).catch((err) => {
console.log(err)
})
},
},
onReachBottom() {
let newpage=this.page;
newpage++;
this.page=newpage;
this.getcommentlist()
}
}
</script>
<style>
page {
background: #f9f9f9;
background: #f9f9f9;
}
.sendname{
color:#C29445;
font-size: 28rpx;
margin-left:10rpx;
}
.imagebox{
margin-top:16rpx;
}
.imagebox image{
width:686rpx;
height:280rpx;
}
.shuru {
font-size: 24rpx;
color: #BDC4CE;
}
.posts-details-wrap {
margin-top: 20rpx;
padding-bottom: 92rpx;
margin-top: 20rpx;
padding-bottom: 92rpx;
}
.posts-details-wrap .release-text-title {
font-size: 32rpx;
color: #061220;
font-weight: bold;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding: 32rpx;
padding-bottom: 0;
background: #fff;
font-size: 32rpx;
color: #061220;
font-weight: bold;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding: 32rpx;
padding-bottom: 0;
background: #fff;
}
.new-release-content {
padding: 32rpx;
background: #fff;
margin-bottom: 20rpx;
padding: 32rpx;
background: #fff;
margin-bottom: 20rpx;
}
.new-release-content .userinfo-wrap {
display: flex;
justify-content: flex-start;
align-items: center;
margin-bottom: 16rpx;
display: flex;
justify-content: flex-start;
align-items: center;
margin-bottom: 16rpx;
}
.new-release-content .userinfo-wrap image {
width: 64rpx;
height: 64rpx;
width: 64rpx;
height: 64rpx;
}
.new-release-content .userinfo-wrap .userinfo {
display: flex;
flex-direction: column;
display: flex;
flex-direction: column;
}
.new-release-content .userinfo-wrap .userinfo-vip {
display: flex;
justify-content: flex-start;
align-items: center;
display: flex;
justify-content: flex-start;
align-items: center;
}
.new-release-content .userinfo-wrap .userinfo-vip .title {
font-size: 28rpx;
padding: 0 20rpx;
color: #061220;
font-weight: bold;
font-size: 28rpx;
padding: 0 20rpx;
color: #061220;
font-weight: bold;
}
.new-release-content .userinfo-wrap .userinfo-vip .VIP {
width: 100rpx;
height: 40rpx;
background: linear-gradient(90deg, #f4d297 0%, #fcbf75 100%);
color: #784700;
display: flex;
justify-content: center;
align-items: center;
font-size: 22rpx;
border-radius: 50rpx;
width: 100rpx;
height: 40rpx;
background: linear-gradient(90deg, #f4d297 0%, #fcbf75 100%);
color: #784700;
display: flex;
justify-content: center;
align-items: center;
font-size: 22rpx;
border-radius: 50rpx;
}
.new-release-content .userinfo-wrap .userinfo-vip .VIP image {
width: 24rpx;
height: 20rpx;
width: 24rpx;
height: 20rpx;
}
.new-release-content .userinfo-wrap .time {
color: #BDC4CE;
font-size: 20rpx;
padding-left: 20rpx;
color: #BDC4CE;
font-size: 20rpx;
padding-left: 20rpx;
}
.new-release-content .type-wrap {
color: #BDC4CE;
font-size: 28rpx;
display: flex;
justify-content: flex-start;
align-items: center;
margin-bottom: 16rpx;
color: #BDC4CE;
font-size: 28rpx;
display: flex;
justify-content: flex-start;
align-items: center;
margin-bottom: 16rpx;
}
.new-release-content .type-wrap text:nth-child(1) {
margin-left: 16rpx;
margin-left: 16rpx;
}
.new-release-content .type-wrap text {
margin-right: 16rpx;
text-align: center;
color: #C29445;
font-size: 22rpx;
border-radius: 50rpx;
border: 1px solid #EEEEEE;
padding: 5rpx 20rpx;
margin-right: 16rpx;
text-align: center;
color: #C29445;
font-size: 22rpx;
border-radius: 50rpx;
border: 1px solid #EEEEEE;
padding: 5rpx 20rpx;
}
.new-release-content .release-text .release-text-content {
font-size: 28rpx;
color: #3C444C;
box-sizing: border-box;
font-size: 28rpx;
color: #3C444C;
box-sizing: border-box;
}
.new-release-content .release-text .release-text-content image {
margin-top: 16rpx;
margin-top: 16rpx;
}
.new-release-content .thumbs-number {
display: flex;
justify-content: flex-end;
align-items: center;
padding-top: 10rpx;
display: flex;
justify-content: flex-end;
align-items: center;
padding-top: 10rpx;
}
.new-release-content .thumbs-number .thumbs {
margin-right: 16rpx;
margin-right: 16rpx;
}
.new-release-content .thumbs-number .thumbs,
.new-release-content .thumbs-number .number {
color: #5B5E64;
font-size: 28rpx;
display: flex;
align-items: center;
color: #5B5E64;
font-size: 28rpx;
display: flex;
align-items: center;
}
.new-release-content .thumbs-number .thumbs image,
.new-release-content .thumbs-number .number image {
width: 28rpx;
height: 28rpx;
margin-right: 8rpx;
width: 28rpx;
height: 28rpx;
margin-right: 8rpx;
}
.footer {
width: 100vw;
position: fixed;
bottom: 0;
left: 0;
z-index: 1000;
padding: 14rpx 0;
background: #fff;
width: 100vw;
position: fixed;
bottom: 0;
left: 0;
z-index: 1000;
padding: 14rpx 0;
background: #fff;
}
.footer .search {
padding: 0 32rpx;
display: flex;
justify-content: flex-start;
align-items: center;
z-index: 1000;
padding: 0 32rpx;
display: flex;
justify-content: flex-start;
align-items: center;
z-index: 1000;
}
.footer .search .placeholder {
font-size: 24rpx;
color: #BDC4CE;
font-size: 24rpx;
color: #BDC4CE;
}
.footer .search input {
height: 60rpx;
width: 80vw;
border: 1px solid #eee;
background: #F9F9F9;
border-radius: 50px;
padding-left: 20rpx;
height: 60rpx;
width: 80vw;
border: 1px solid #eee;
background: #F9F9F9;
border-radius: 50px;
padding-left: 20rpx;
}
.footer .search .search-btn {
margin-left: 28rpx;
margin-left: 28rpx;
}
.footer .search .search-btn image {
width: 44rpx;
height: 44rpx;
width: 44rpx;
height: 44rpx;
}
</style>
... ...
... ... @@ -7,25 +7,34 @@
<view class="searchimg">
<image src="../../static/search.png" mode=""></image>
</view>
<input type="text" confirm-type="search" placeholder-class="placeholder" placeholder="请输入关键词搜索" />
<view class="search-btn">
<input type="text" confirm-type="search" placeholder-class="placeholder" placeholder="请输入关键词搜索" @confirm="finish"
@input="enterword" />
<!-- <view class="search-btn">
北京
<image src="../../static/huixia.png" />
</view>
</view> -->
<picker @change="bindproChange" :value="index" :range="provincelist" range-key="name">
<!-- <view class="uni-input">{{array[index]}}</view> -->
<view class="proselect flexthree">
<text class="proname">{{provincename}}</text>
<image class="down-ico" src="../../static/huixia.png" />
</view>
</picker>
</view>
<!-- nav -->
<view class="nav-menus">
<scroll-view class="nav-menu" scroll-x="true">
<view class="active">
<view :class="kindtype=='1'?'active':''" @click="kindchange" :data-id="1">
帮工招聘求职
</view>
<view>
<view :class="kindtype=='2'?'active':''" @click="kindchange" :data-id="2">
面坊转让求购
</view>
<view>
<view :class="kindtype=='3'?'active':''" @click="kindchange" :data-id="3">
征婚交友
</view>
<view>
<view :class="kindtype=='4'?'active':''" @click="kindchange" :data-id="4">
中面集团
</view>
</scroll-view>
... ... @@ -34,123 +43,47 @@
<!-- 列表 -->
<view class="list">
<!-- content -->
<view class="new-release-content" @click="luntandetail">
<!-- 头像,名称,等级 -->
<view class="userinfo-wrap">
<image src="../../icons/nav2.png"></image>
<text class="title">我是用户昵称</text>
<view class="VIP">
<image src="../../icons/vip.png"></image>
VIP5
</view>
</view>
<!-- type -->
<view class="type-wrap">
帮工招聘求职
<text>帮工</text>
<text>配送员</text>
<text>销售员</text>
</view>
<!-- content -->
<view class="release-text">
<view class="release-text-title">
帖子标题帖子标题帖子标题帖子标题帖子帖子
</view>
<view class="release-text-content">
帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容...
</view>
</view>
<!-- 点赞, 人数 -->
<view class="thumbs-number">
<view class="thumbs">
<image src="../../icons/thumbs.png"></image>
399
</view>
<view class="number">
<image src="../../icons/number.png"></image>
399
</view>
</view>
</view>
<view class="new-release-content">
<view class="new-release-content" v-for="(item,index) in luntanlist" :key="index" @click="luntandetail(item)">
<!-- 头像,名称,等级 -->
<view class="userinfo-wrap">
<image src="../../icons/nav2.png"></image>
<text class="title">我是用户昵称</text>
<image :src="item.user.avatar"></image>
<text class="title">{{item.user.nickname}}</text>
<view class="VIP">
<image src="../../icons/vip.png"></image>
VIP5
{{item.user.level.name1}}
</view>
</view>
<!-- type -->
<view class="type-wrap">
帮工招聘求职
<text>帮工</text>
<text>配送员</text>
<text>销售员</text>
<text v-for="(item,index) in item.user.label" :key="index">{{item.name_label}}</text>
<!-- <text>配送员</text>
<text>销售员</text> -->
</view>
<!-- content -->
<view class="release-text">
<view class="release-text-title">
帖子标题帖子标题帖子标题帖子标题帖子帖子
{{item.title}}
</view>
<view class="release-text-content">
帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容...
<rich-text :nodes="item.content"></rich-text>
</view>
</view>
<!-- 点赞, 人数 -->
<view class="thumbs-number">
<view class="thumbs-number" @click.stop="praisedian(item,index)">
<view class="thumbs">
<image src="../../icons/thumbs1.png"></image>
399
<image src="../../static/tienozan.png" v-if="item.is_praise==2"></image>
<image src="../../static/tiezan.png" v-else></image>
{{item.praise}}
</view>
<view class="number">
<image src="../../icons/number.png"></image>
399
</view>
</view>
</view>
<view class="new-release-content">
<!-- 头像,名称,等级 -->
<view class="userinfo-wrap">
<image src="../../icons/nav2.png"></image>
<text class="title">我是用户昵称</text>
<view class="VIP">
<image src="../../icons/vip.png"></image>
VIP5
</view>
</view>
<!-- type -->
<view class="type-wrap">
帮工招聘求职
<text>帮工</text>
<text>配送员</text>
<text>销售员</text>
</view>
<!-- content -->
<view class="release-text">
<view class="release-text-title">
帖子标题帖子标题帖子标题帖子标题帖子帖子
</view>
<view class="release-text-content">
帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容
<image src="../../icons/banner.png" mode="widthFix" />
<image src="../../icons/banner.png" mode="widthFix" />
<image src="../../icons/banner.png" mode="widthFix" />
</view>
</view>
<!-- 点赞, 人数 -->
<view class="thumbs-number">
<view class="thumbs">
<image src="../../icons/thumbs1.png"></image>
399
</view>
<view class="number">
<image src="../../icons/number.png"></image>
399
{{item.view}}
</view>
</view>
</view>
</view>
</view>
... ... @@ -164,19 +97,131 @@
export default {
data() {
return {
showbanben: false
showbanben: false,
kindtype: '',
provincelist: [],
province_id:'',
provincename: '',
index: 0,
keyword: '',
luntanlist: []
}
},
onLoad() {
onLoad(options) {
this.kindtype = options.id;
this.getprovincelist()
},
methods: {
kindchange(e) {
this.kindtype = e.currentTarget.dataset.id;
this.page = 1;
this.luntanlist = [];
this.getluntanlist()
},
// 输入完成
finish() {
this.page = 1;
this.luntanlist = [];
// this.getluntanlist()
},
// 输入关键字
enterword(e) {
this.keyword = e.detail.value
},
},
methods: {
// 获取省份列表
getprovincelist() {
let that = this;
var url = 'forum/get_province';
var params = {
is_forum_hot: ''
}
console.log('7766554', params)
app.post(url, params).then((res) => {
console.log(res);
that.provincelist = res.data.data;
this.provincename = res.data.data[0].name;
that.province_id = res.data.data[0].id;
// 获取论坛列表
this.getluntanlist()
}).catch((err) => {
})
},
bindproChange(e) {
this.index = e.target.value;
this.provincename = this.provincelist[e.target.value].name;
this.province_id = this.provincelist[e.target.value].id;
this.page = 1;
this.luntanlist = [];
// 获取论坛列表
this.getluntanlist();
},
luntandetail() {
// 获取论坛列表
getluntanlist() {
let that = this;
var url = 'forum/get_forum';
var params = {
keyword: that.keyword,
province_id: that.province_id,
type: that.kindtype,
page: that.page,
pageNum: 10
}
console.log('参数', params)
app.post(url, params).then((res) => {
console.log(res);
that.luntanlist = that.luntanlist.concat(res.data.data);
console.log('9999', this.luntanlist)
}).catch((err) => {
console.log(err)
})
},
praisedian(item,index){
let that = this;
if(that.luntanlist[index].is_praise==2){
uni.showToast({
title:'点赞成功',
icon:'none'
})
that.luntanlist[index].is_praise=1;
that.luntanlist[index].praise=that.luntanlist[index].praise+1
}else{
uni.showToast({
title:'取消点赞成功',
icon:'none'
})
that.luntanlist[index].is_praise=2;
that.luntanlist[index].praise=that.luntanlist[index].praise-1
}
that.luntanlist=that.luntanlist;
var url = 'forum/praise';
var params = {
forum_id:item.id
}
console.log('参数',params)
app.post(url, params).then((res) => {
console.log(res);
}).catch((err) => {
console.log(err)
})
},
luntandetail(item) {
uni.navigateTo({
url:'./luntandetail'
url:'/pages/luntan/luntandetail?id='+item.id
})
}
}
... ... @@ -193,6 +238,16 @@
position: relative;
}
.proname {
color: #BDC4CE;
font-size: 24rpx;
}
.down-ico {
width: 16rpx;
height: 16rpx;
}
.searchimg {
width: 28rpx;
height: 28rpx;
... ...
... ... @@ -3,13 +3,13 @@
<view class="personal-wrap">
<!-- 头像,名称,等级 -->
<view class="user-info">
<image src="../../icons/nav2.png" />
<image :src="user.avatar" />
<view class="name-vip-type">
<view class="name-vip">
<text class="title">我是用户昵称</text>
<text class="title">{{user.nickname}}</text>
<view class="VIP">
<image src="../../icons/vip.png"></image>
VIP5
{{user.level.name1}}
</view>
</view>
<view class="type">
... ... @@ -20,82 +20,51 @@
</view>
</view>
<!-- content -->
<view class="new-release-content">
<!-- 头像,名称,等级 -->
<view class="userinfo-wrap">
<image src="../../icons/nav2.png"></image>
<text class="title">我是用户昵称</text>
<view class="VIP">
<image src="../../icons/vip.png"></image>
VIP5
</view>
</view>
<!-- type -->
<view class="type-wrap">
帮工招聘求职
<text>帮工</text>
<text>配送员</text>
<text>销售员</text>
</view>
<!-- content -->
<view class="release-text">
<view class="release-text-title">
帖子标题帖子标题帖子标题帖子标题帖子帖子
</view>
<view class="release-text-content">
帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容...
</view>
</view>
<!-- 点赞, 人数 -->
<view class="thumbs-number">
<view class="thumbs">
<image src="../../icons/thumbs.png"></image>
399
</view>
<view class="number">
<image src="../../icons/number.png"></image>
399
</view>
</view>
</view>
<view class="new-release-content">
<!-- 头像,名称,等级 -->
<view class="userinfo-wrap">
<image src="../../icons/nav2.png"></image>
<text class="title">我是用户昵称</text>
<view class="VIP">
<image src="../../icons/vip.png"></image>
VIP5
</view>
</view>
<!-- type -->
<view class="type-wrap">
帮工招聘求职
<text>帮工</text>
<text>配送员</text>
<text>销售员</text>
</view>
<!-- content -->
<view class="release-text">
<view class="release-text-title">
帖子标题帖子标题帖子标题帖子标题帖子帖子
<view class="nodata" v-if="personlist.length==0">暂无数据</view>
<view v-else>
<view class="new-release-content" v-for="(item,index) in personlist" :key="index" @click="luntandetail(item)">
<!-- 头像,名称,等级 -->
<view class="userinfo-wrap">
<image :src="item.user.avatar"></image>
<text class="title">{{item.user.nickname}}</text>
<view class="VIP">
<image src="../../icons/vip.png"></image>
{{item.user.level.name1}}
</view>
</view>
<view class="release-text-content">
帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容...
<!-- type -->
<view class="type-wrap">
帮工招聘求职
<text>帮工</text>
<text>配送员</text>
<text>销售员</text>
</view>
</view>
<!-- 点赞, 人数 -->
<view class="thumbs-number">
<view class="thumbs">
<image src="../../icons/thumbs1.png"></image>
399
<!-- content -->
<view class="release-text">
<view class="release-text-title">
{{item.title}}
</view>
<view class="release-text-content">
<rich-text :nodes="item.content"></rich-text>
</view>
</view>
<view class="number">
<image src="../../icons/number.png"></image>
399
<!-- 点赞, 人数 -->
<view class="thumbs-number">
<view class="thumbs">
<image src="../../icons/thumbs.png"></image>
{{item.praise}}
</view>
<view class="number">
<image src="../../icons/number.png"></image>
{{item.view}}
</view>
</view>
</view>
</view>
</view>
... ... @@ -103,20 +72,44 @@
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
showbanben: false
showbanben: false,
user_id: '',
page: 1,
personlist: [],
user: ''
}
},
onLoad() {
onLoad(options) {
console.log(options)
this.user_id = options.userid;
this.user = JSON.parse(options.user);
console.log(this.user)
this.getpersonpage()
},
methods: {
hidebanben() {
this.showbanben = false
this.showbanben = false;
},
// 获取个人主页
getpersonpage() {
let that = this;
let url = 'forum/get_user_forum';
var params = {
user_id: that.user_id,
page: that.page,
pageNum: 10
}
app.post(url, params).then((res) => {
console.log(res);
console.log(res.data.data.length)
that.personlist = that.personlist.concat(res.data.data);
console.log(that.personlist.length)
})
},
// 更多
goodkind() {
... ... @@ -141,7 +134,14 @@
uni.navigateTo({
url: '/pages/homepage/miaosha'
})
}
},
// 论坛详情
luntandetail(item){
uni.navigateTo({
url:'/pages/luntan/luntandetail?id='+item.id
})
},
}
}
... ... @@ -152,6 +152,14 @@
background: #F9F9F9;
}
.release-text-content {
height: 120rpx;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
}
.personal-wrap .user-info {
display: flex;
justify-content: flex-start;
... ...
... ... @@ -4,6 +4,7 @@
<image :src="goodtail.image" mode=""></image>
</view>
<view v-if="type==1">
<view class="tailbox boxsizing" v-if="goodtail.is_seckill==2">
<view class="tailname">
{{goodtail.name}}
... ... @@ -28,8 +29,8 @@
</view>
<view class="tailhezi flextwo">
<view class="tailhezileft flexone">
<view class="saleprice">¥{{item.seckill_price}}</view>
<view class="oldprice">¥{{item.goods_price}}</view>
<view class="saleprice">¥{{goodtail.seckill_price}}</view>
<view class="oldprice">¥{{goodtail.goods_price}}</view>
</view>
</view>
<view class='miaodu flextwo'>
... ... @@ -97,72 +98,78 @@
<rich-text :nodes="goodtail.content"></rich-text>
</view>
<view class="goodcomment" v-else>
<view class="goodcommentop flexone">
<view class="topitem" @click="commenttype" :data-id="0">全部(60万)</view>
<view class="topitem" @click="commenttype" :data-id="1">好评(16万)</view>
<view class="topitem" @click="commenttype" :data-id="2">中评(10万)</view>
<view class="topitem" @click="commenttype" :data-id="3">差评(600)</view>
</view>
<view class="commentlist">
<view class="jianintro photobox" bindtap="comdetail">
<view class="comtop flextwo">
<view class="comleft">
<image src="../../static/userpic.png"></image>
</view>
<view class="comright">
<view class="comrtop">
<view class="usertop flextwo">
<view class="comrname">皖湘情</view>
<view class="comdate">2019年10月12日</view>
</view>
<view class="star starone flexone">
<view class="staritem">
<image src="../../static/starredk.png"></image>
</view>
<view class="staritem">
<image src="../../static/starredk.png"></image>
</view>
<view class="staritem">
<image src="../../static/starredk.png"></image>
</view>
<view class="staritem">
<image src="../../static/starredk.png"></image>
</view>
<view class="staritem">
<image src="../../static/starredk.png"></image>
<view class="nodata" v-if="commentlist.length==0">暂无评论</view>
<view v-else>
<view class="goodcommentop flexone" >
<view class="topitem" @click="commenttype" :data-id="0">全部({{total}})</view>
<view class="topitem" @click="commenttype" :data-id="1">好评({{total1}})</view>
<view class="topitem" @click="commenttype" :data-id="2">中评({{total2}})</view>
<view class="topitem" @click="commenttype" :data-id="3">差评({{total3}})</view>
</view>
<view class="commentlist">
<view class="jianintro photobox" bindtap="comdetail">
<view class="comtop flextwo">
<view class="comleft">
<image src="../../static/userpic.png"></image>
</view>
<view class="comright">
<view class="comrtop">
<view class="usertop flextwo">
<view class="comrname">皖湘情</view>
<view class="comdate">2019年10月12日</view>
</view>
<view class="staritem">
<image src="../../static/starred.png"></image>
<view class="star starone flexone">
<view class="staritem">
<image src="../../static/starredk.png"></image>
</view>
<view class="staritem">
<image src="../../static/starredk.png"></image>
</view>
<view class="staritem">
<image src="../../static/starredk.png"></image>
</view>
<view class="staritem">
<image src="../../static/starredk.png"></image>
</view>
<view class="staritem">
<image src="../../static/starredk.png"></image>
</view>
<view class="staritem">
<image src="../../static/starred.png"></image>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="commenttext">
太给力了!!要加紧学习了啊太给力了!!要加紧学习了啊太给力了!!要加紧学习了啊
</view>
<view class="commentimg flexone">
<view class="commentimgitem">
<image src="../../static/shop.png" mode=""></image>
</view>
<view class="commentimgitem">
<image src="../../static/shop.png" mode=""></image>
<view class="commenttext">
太给力了!!要加紧学习了啊太给力了!!要加紧学习了啊太给力了!!要加紧学习了啊
</view>
<view class="commentimgitem">
<image src="../../static/shop.png" mode=""></image>
<view class="commentimg flexone">
<view class="commentimgitem">
<image src="../../static/shop.png" mode=""></image>
</view>
<view class="commentimgitem">
<image src="../../static/shop.png" mode=""></image>
</view>
<view class="commentimgitem">
<image src="../../static/shop.png" mode=""></image>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 底部购物车 -->
<view class='cartbot flextwo'>
<view class='cartbotleft'>
<view class='cartimg'>
<image src="../../static/cartche.png" mode=""></image>
<view class="cartnum">32</view>
<view class="cartnum">{{carttotal}}</view>
</view>
</view>
... ... @@ -252,10 +259,15 @@
addtype: '', //1 加入购物车 2立即购买
cartnumber: 1,
arr: [],
page:1,
star_type:'',
page: 1,
star_type: '',
// 评论列表
commentlist:[]
commentlist: [],
total:'',
total1:'',
total2:'',
total3:'',
carttotal:''
}
},
... ... @@ -270,20 +282,42 @@
} else {
this.getshopgoodtail()
}
// 获取购物车气泡
this.getcartnum()
},
methods: {
// 获取购物车气泡
getcartnum(){
let that = this;
var url = 'car/bubble';
var params = {
}
app.post(url, params).then((res) => {
console.log(res);
this.carttotal=res.data.data.total
}).catch((err) => {
})
},
hideshu() {
this.shuwrap = false
},
// 评论切换
commenttype(e){
this.star_type=e.currentTarget.dataset.id;
commenttype(e) {
this.star_type = e.currentTarget.dataset.id;
},
// 顶部导航切换
navtap(e) {
this.selnav = e.currentTarget.dataset.id;
if(this.selnav==1){
if (this.selnav == 1) {
if (this.type == 1) {
this.getgoodtail();
} else if (this.type == 2) {
... ... @@ -291,9 +325,9 @@
} else {
this.getshopgoodtail()
}
}else{
this.page=1;
this.commentlist=[];
} else {
this.page = 1;
this.commentlist = [];
this.getcommentlist();
}
},
... ... @@ -316,25 +350,29 @@
console.log(this.cartnumber)
this.cartnumber = this.cartnumber
},
// 获取评论列表
getcommentlist(){
getcommentlist() {
let that = this;
var url = 'goods_comments/get_list';
var params = {
type:that.type,
goods_id:that.goodid,
star_type:that.star_type,
page:that.page,
pageNum:10
type: '',
goods_id: that.goodid,
star_type: that.star_type,
page: that.page,
pageNum: 10
}
app.post(url, params).then((res) => {
console.log(res);
that.commentlist=that.commentlist.concat(res.data.data)
that.commentlist = that.commentlist.concat(res.data.data.list);
that.total=res.data.data.total;
that.total1=res.data.data.total1;
that.total2=res.data.data.total2
that.total3=res.data.data.total3
}).catch((err) => {
})
},
//获取面坊商品详情
... ...
... ... @@ -2,7 +2,7 @@
<view class="page">
<view class="boxb">
<view class="container">
<view class="bitem flexone" @click="item.is_get==0?'':selcoupon(item)" :class="item.is_get==1?'borderactive':''" v-for="(item,index) in couponlist" :key="index">
<view class="bitem flexone" @click="item.is_get==1?'':selcoupon(item)" :class="item.is_get==1?'borderactive':''" v-for="(item,index) in couponlist" :key="index">
<view class="couponleft" v-if="item.is_get==1">
<image src="../../static/cartnosel.png" mode=""></image>
</view>
... ... @@ -14,7 +14,7 @@
<view class="price" :class="item.is_get==1?'wordacticve':''">¥1</view>
<view class="right">
<view class="bname">
<text :class="item.is_get==1?'wordacticve':''">抵用</text>
<text :class="item.is_get==1?'wordacticve':''">抵用</text>
<!-- <text>待使用</text> -->
</view>
<view class="tips" :class="item.is_get==1?'wordacticve':''">{{item.name}}</view>
... ...
... ... @@ -272,8 +272,8 @@
<view class="buyitemname">微信支付</view>
</view>
<view class="selimg" >
<image src="../../static/selactive.png" mode="" v-if="pay_type==1"></image>
<image src="../../static/active.png" mode="" v-else></image>
<image src="../../static/selright.png" mode="" v-if="pay_type==1"></image>
<image src="../../static/meisel.png" mode="" v-else></image>
</view>
</view>
<view class="buyitem boxsizing flextwo">
... ... @@ -285,8 +285,8 @@
<view class="buyitemname">支付宝</view>
</view>
<view class="selimg" @click.stop="paytype" :data-id="2">
<image src="../../static/selactive.png" mode="" v-if="pay_type==2"></image>
<image src="../../static/active.png" mode="" v-else></image>
<image src="../../static/selright.png" mode="" v-if="pay_type==2"></image>
<image src="../../static/meisel.png" mode="" v-else></image>
</view>
</view>
... ... @@ -298,8 +298,8 @@
<view class="buyitemname">余额支付</view>
</view>
<view class="selimg" >
<image src="../../static/selactive.png" mode="" v-if="pay_type==3"></image>
<image src="../../static/active.png" mode="" v-else></image>
<image src="../../static/selright.png" mode="" v-if="pay_type==3"></image>
<image src="../../static/meisel.png" mode="" v-else></image>
</view>
</view>
<view class="buyitem boxsizing flextwo" @click.stop="paytype" :data-id="4">
... ... @@ -311,8 +311,8 @@
<view class="buyitemname">赊吧支付</view>
</view>
<view class="selimg" >
<image src="../../static/selactive.png" mode="" v-if="pay_type==4"></image>
<image src="../../static/active.png" mode="" v-else></image>
<image src="../../static/selright.png" mode="" v-if="pay_type==4"></image>
<image src="../../static/meisel.png" mode="" v-else></image>
</view>
</view>
</view>
... ... @@ -391,10 +391,8 @@
}],
goodpeiname:'请选择配送方式',
pay_type:-1,
user_ticket_id:''
user_ticket_id:'',
order_id:''
// data1 面坊 data2 积分 data3 店铺
... ... @@ -444,7 +442,6 @@
enterjifen(e){
this.jifen=e.detail.vlaue
},
// 面坊商品备注
entermianfangrmark(e){
console.log(e)
... ... @@ -534,22 +531,46 @@
score:that.jifen,
remark1:that.remark1,
remark2:that.remark2,
pay_type:that.pay_type
pay_type:that.pay_type,
user_address_id:that.addressitem.id
}
console.log(that.seldata)
console.log(params)
app.post(url, params,"post").then((res) => {
console.log(res);
uni.navigateTo({
url:'/pages/nearshop/sureorder'
})
that.order_id=res.data.data.order_id;
that.paymoney()
// uni.navigateTo({
// url:'/pages/nearshop/sureorder'
// })
}).catch((err) => {
console.log(err)
})
}
},
// 支付接口
paymoney(){
let that = this;
var url = 'order/pay';
var params = {
order_id:that.order_id
}
console.log(params)
app.post(url, params,"post").then((res) => {
console.log(res);
uni.showToast({
title:'支付成功',
icon:'none'
})
}).catch((err) => {
console.log(err)
})
},
},
... ...
var isReady=false;var onReadyCallbacks=[];
var __uniConfig = {"pages":["pages/homepage/homepage","pages/nearshop/selectcoupon","pages/nearshop/cartbox","pages/login/loginindex","pages/nearshop/cartlist","pages/homepage/collectshop","pages/luntan/examineresult","pages/luntan/examintext","pages/luntan/examine","pages/nearshop/sureorder","pages/login/accountpassword","pages/login/registercode","pages/homepage/mygift","pages/homepage/drawlottery","pages/login/finishregister","pages/homepage/miaosha","pages/luntan/luntan","pages/luntan/addcontract","pages/luntan/luntandetail","pages/luntan/luntandetailsecond","pages/luntan/luntanlist","pages/luntan/luntanpage","pages/nearshop/goodtail","pages/nearshop/shopdetail","pages/usercenter/companyshenhe","pages/usercenter/usercenter","pages/nearshop/nearshop","pages/homepage/goodkind","pages/homepage/jifenshop","pages/homepage/shoplist","pages/homepage/search","pages/login/xieyi","pages/login/setmima","pages/login/register","pages/login/forgetmima","pages/index/index","pages/usercenter/setPassword","pages/usercenter/accountDetails","pages/usercenter/recharge","pages/usercenter/transferAccounts","pages/usercenter/transferDetails","pages/usercenter/cashOut","pages/usercenter/account","pages/usercenter/withdrawalsRecord","pages/usercenter/addCard","pages/usercenter/editCard","pages/usercenter/myCredit","pages/usercenter/myIntegral","pages/usercenter/myCoupon","pages/usercenter/myPublish","pages/usercenter/myOrder","pages/usercenter/shopEvaluate","pages/usercenter/sales","pages/usercenter/myAchievement","pages/usercenter/myCustomer","pages/usercenter/my","pages/usercenter/wallet","pages/usercenter/setUp","pages/usercenter/setUp","pages/usercenter/myIntegral","pages/usercenter/myCoupon","pages/usercenter/myPublish","pages/usercenter/sales","pages/usercenter/personalData","pages/usercenter/address","pages/usercenter/addAddress","pages/usercenter/myCredit","pages/usercenter/myOrder","pages/usercenter/shopEvaluate","pages/usercenter/myAchievement","pages/usercenter/myCustomer"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#fff","backgroundColor":"#fff"},"renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"zhongmian","compilerVersion":"2.6.11","entryPagePath":"pages/homepage/homepage","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/homepage/homepage","meta":{"isQuit":true},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white","navigationStyle":"custom","bounce":"none"}},{"path":"/pages/nearshop/selectcoupon","meta":{},"window":{"navigationBarTitleText":"选择优惠券","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/cartbox","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/loginindex","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/cartlist","meta":{},"window":{"navigationBarTitleText":"购物车","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/collectshop","meta":{},"window":{"navigationBarTitleText":"店铺收藏","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/examineresult","meta":{},"window":{"navigationBarTitleText":"等级考试","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/examintext","meta":{},"window":{"navigationBarTitleText":"等级考试","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/examine","meta":{},"window":{"navigationBarTitleText":"等级考试","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/sureorder","meta":{},"window":{"navigationBarTitleText":"订单详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/accountpassword","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/registercode","meta":{},"window":{"navigationBarTitleText":"注册","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/mygift","meta":{},"window":{"navigationBarTitleText":"我的奖品","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/drawlottery","meta":{},"window":{"navigationBarTitleText":"抽奖专区","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/finishregister","meta":{},"window":{"navigationBarTitleText":"注册","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/miaosha","meta":{},"window":{"navigationBarTitleText":"秒杀商城","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white","titleNView":{"titleSize":"12"}}},{"path":"/pages/luntan/luntan","meta":{},"window":{"navigationBarTitleText":"论坛","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black","navigationStyle":"custom","bounce":"none"}},{"path":"/pages/luntan/addcontract","meta":{},"window":{"navigationBarTitleText":"添加合同","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntandetail","meta":{},"window":{"navigationBarTitleText":"帖子详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntandetailsecond","meta":{},"window":{"navigationBarTitleText":"帖子详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntanlist","meta":{},"window":{"navigationBarTitleText":"帖子列表","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntanpage","meta":{},"window":{"navigationBarTitleText":"个人主页","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/goodtail","meta":{},"window":{"navigationBarTitleText":"商品详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/shopdetail","meta":{},"window":{"navigationBarTitleText":"店铺详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/companyshenhe","meta":{},"window":{"navigationBarTitleText":"企业会员申请","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/usercenter","meta":{},"window":{"navigationBarTitleText":"会员中心","navigationBarBackgroundColor":"#ECCB90","navigationBarTextStyle":"white"}},{"path":"/pages/nearshop/nearshop","meta":{},"window":{"navigationBarTitleText":"附近店铺","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/goodkind","meta":{},"window":{"navigationBarTitleText":"商品分类","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/jifenshop","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/shoplist","meta":{},"window":{"navigationBarTitleText":"商品列表","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/search","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"white","titleNView":{"type":"transparent","searchInput":{"backgroundColor":"#fff","borderRadius":"6px","placeholder":"请输入搜索内容","disabled":false,"align":"left"},"buttons":[{"float":"right","fontSize":"12","text":"搜索"}]}}},{"path":"/pages/login/xieyi","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/setmima","meta":{},"window":{"navigationBarTitleText":"设置密码","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/register","meta":{},"window":{"navigationBarTitleText":"注册","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/forgetmima","meta":{},"window":{"navigationBarTitleText":"重置密码","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/index/index","meta":{},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/usercenter/setPassword","meta":{},"window":{"navigationBarTitleText":"设置密码","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/accountDetails","meta":{},"window":{"navigationBarTitleText":"账户明细","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/recharge","meta":{},"window":{"navigationBarTitleText":"充值","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/transferAccounts","meta":{},"window":{"navigationBarTitleText":"转账","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/transferDetails","meta":{},"window":{"navigationBarTitleText":"转账详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/cashOut","meta":{},"window":{"navigationBarTitleText":"提现","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/account","meta":{},"window":{"navigationBarTitleText":"选择到账账户","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/withdrawalsRecord","meta":{},"window":{"navigationBarTitleText":"提现记录","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/addCard","meta":{},"window":{"navigationBarTitleText":"添加银行卡","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/editCard","meta":{},"window":{"navigationBarTitleText":"编辑银行卡","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myCredit","meta":{},"window":{"navigationBarTitleText":"我的赊吧","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myIntegral","meta":{},"window":{"navigationBarTitleText":"我的积分","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myCoupon","meta":{},"window":{"navigationBarTitleText":"我的优惠券","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myPublish","meta":{},"window":{"navigationBarTitleText":"我的发布","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myOrder","meta":{},"window":{"navigationBarTitleText":"我的订单","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/shopEvaluate","meta":{},"window":{"navigationBarTitleText":"商品评价","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/sales","meta":{},"window":{"navigationBarTitleText":"销售管理","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myAchievement","meta":{},"window":{"navigationBarTitleText":"我的业绩","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myCustomer","meta":{},"window":{"navigationBarTitleText":"我的客户","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/my","meta":{},"window":{"navigationBarTitleText":"我的","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/wallet","meta":{},"window":{"navigationBarTitleText":"我的钱包","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white"}},{"path":"/pages/usercenter/setUp","meta":{},"window":{"navigationBarTitleText":"设置","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/personalData","meta":{},"window":{"navigationBarTitleText":"个人资料","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/address","meta":{},"window":{"navigationBarTitleText":"地址管理","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/addAddress","meta":{},"window":{"navigationBarTitleText":"新增收货地址","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}}];
var __uniRoutes = [{"path":"/pages/homepage/homepage","meta":{"isQuit":true},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white","navigationStyle":"custom","bounce":"none"}},{"path":"/pages/nearshop/selectcoupon","meta":{},"window":{"navigationBarTitleText":"选择优惠券","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/cartbox","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/loginindex","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/cartlist","meta":{},"window":{"navigationBarTitleText":"购物车","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/collectshop","meta":{},"window":{"navigationBarTitleText":"店铺收藏","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/examineresult","meta":{},"window":{"navigationBarTitleText":"等级考试","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/examintext","meta":{},"window":{"navigationBarTitleText":"等级考试","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/examine","meta":{},"window":{"navigationBarTitleText":"等级考试","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/sureorder","meta":{},"window":{"navigationBarTitleText":"订单详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/accountpassword","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/registercode","meta":{},"window":{"navigationBarTitleText":"注册","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/mygift","meta":{},"window":{"navigationBarTitleText":"我的奖品","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/drawlottery","meta":{},"window":{"navigationBarTitleText":"抽奖专区","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/finishregister","meta":{},"window":{"navigationBarTitleText":"注册","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/miaosha","meta":{},"window":{"navigationBarTitleText":"秒杀商城","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white","titleNView":{"titleSize":"12"}}},{"path":"/pages/luntan/luntan","meta":{},"window":{"navigationBarTitleText":"论坛","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black","navigationStyle":"custom","bounce":"none"}},{"path":"/pages/luntan/addcontract","meta":{},"window":{"navigationBarTitleText":"发布帖子","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntandetail","meta":{},"window":{"navigationBarTitleText":"帖子详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntandetailsecond","meta":{},"window":{"navigationBarTitleText":"帖子详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntanlist","meta":{},"window":{"navigationBarTitleText":"帖子列表","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntanpage","meta":{},"window":{"navigationBarTitleText":"个人主页","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/goodtail","meta":{},"window":{"navigationBarTitleText":"商品详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/shopdetail","meta":{},"window":{"navigationBarTitleText":"店铺详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/companyshenhe","meta":{},"window":{"navigationBarTitleText":"企业会员申请","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/usercenter","meta":{},"window":{"navigationBarTitleText":"会员中心","navigationBarBackgroundColor":"#ECCB90","navigationBarTextStyle":"white"}},{"path":"/pages/nearshop/nearshop","meta":{},"window":{"navigationBarTitleText":"附近店铺","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/goodkind","meta":{},"window":{"navigationBarTitleText":"商品分类","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/jifenshop","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/shoplist","meta":{},"window":{"navigationBarTitleText":"商品列表","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/search","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"white","titleNView":{"type":"transparent","searchInput":{"backgroundColor":"#fff","borderRadius":"6px","placeholder":"请输入搜索内容","disabled":false,"align":"left"},"buttons":[{"float":"right","fontSize":"12","text":"搜索"}]}}},{"path":"/pages/login/xieyi","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/setmima","meta":{},"window":{"navigationBarTitleText":"设置密码","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/register","meta":{},"window":{"navigationBarTitleText":"注册","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/forgetmima","meta":{},"window":{"navigationBarTitleText":"重置密码","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/index/index","meta":{},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/usercenter/setPassword","meta":{},"window":{"navigationBarTitleText":"设置密码","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/accountDetails","meta":{},"window":{"navigationBarTitleText":"账户明细","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/recharge","meta":{},"window":{"navigationBarTitleText":"充值","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/transferAccounts","meta":{},"window":{"navigationBarTitleText":"转账","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/transferDetails","meta":{},"window":{"navigationBarTitleText":"转账详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/cashOut","meta":{},"window":{"navigationBarTitleText":"提现","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/account","meta":{},"window":{"navigationBarTitleText":"选择到账账户","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/withdrawalsRecord","meta":{},"window":{"navigationBarTitleText":"提现记录","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/addCard","meta":{},"window":{"navigationBarTitleText":"添加银行卡","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/editCard","meta":{},"window":{"navigationBarTitleText":"编辑银行卡","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myCredit","meta":{},"window":{"navigationBarTitleText":"我的赊吧","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myIntegral","meta":{},"window":{"navigationBarTitleText":"我的积分","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myCoupon","meta":{},"window":{"navigationBarTitleText":"我的优惠券","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myPublish","meta":{},"window":{"navigationBarTitleText":"我的发布","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myOrder","meta":{},"window":{"navigationBarTitleText":"我的订单","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/shopEvaluate","meta":{},"window":{"navigationBarTitleText":"商品评价","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/sales","meta":{},"window":{"navigationBarTitleText":"销售管理","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myAchievement","meta":{},"window":{"navigationBarTitleText":"我的业绩","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myCustomer","meta":{},"window":{"navigationBarTitleText":"我的客户","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/my","meta":{},"window":{"navigationBarTitleText":"我的","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/wallet","meta":{},"window":{"navigationBarTitleText":"我的钱包","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white"}},{"path":"/pages/usercenter/setUp","meta":{},"window":{"navigationBarTitleText":"设置","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/personalData","meta":{},"window":{"navigationBarTitleText":"个人资料","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/address","meta":{},"window":{"navigationBarTitleText":"地址管理","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/addAddress","meta":{},"window":{"navigationBarTitleText":"新增收货地址","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}}];
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}});
... ...