作者 lihongjuan

1

@@ -56,11 +56,59 @@ @@ -56,11 +56,59 @@
56 }); 56 });
57 return promise; 57 return promise;
58 }, 58 },
  59 + upload(filetype, file) {
  60 + let that=this
  61 + var promise = new Promise((resolve, reject) => {
  62 + wx.showNavigationBarLoading()
  63 + wx.showLoading({
  64 + title: '上传中',
  65 + })
  66 + let url = that.globalData.baseUrl+'common/upload';
  67 + console.log(url)
  68 + let head = {
  69 + 'token':uni.getStorageSync('token'),
  70 + 'XX-Device-Type': ''
  71 + }
  72 + console.log(head)
  73 + let typename = {
  74 + filetype: filetype
  75 + }
  76 + wx.uploadFile({
  77 + url: url, //仅为示例,非真实的接口地址
  78 + filePath: file,
  79 + name: 'file',
  80 + header: head,
  81 + formData: typename,
  82 + success: function (res) {
  83 + console.log('上传文件后', res)
  84 + let temdata = JSON.parse(res.data);
  85 + console.log(temdata)
  86 + let urlobj = {
  87 +
  88 + url: temdata.data.url
  89 + }
  90 + resolve(urlobj);
  91 +
  92 + },
  93 + fail: function (res) {
  94 + reject('网络出错');
  95 + wx.hideNavigationBarLoading()
  96 + wx.hideLoading()
  97 + },
  98 + complete: () => {
  99 + wx.hideNavigationBarLoading()
  100 + wx.hideLoading()
  101 + },
  102 + })
  103 + });
  104 + return promise;
  105 + },
59 globalData: { 106 globalData: {
60 userInfo: null, 107 userInfo: null,
61 - baseUrl: 'http://zhongmian.w.brotop.cn/api/' 108 + baseUrl: 'http://zhongmian.w.brotop.cn/api/',
  109 + imgurl:'http://zhongmian.w.brotop.cn/'
62 }, 110 },
63 - 111 +
64 onHide: function() { 112 onHide: function() {
65 console.log('App Hide') 113 console.log('App Hide')
66 } 114 }
@@ -74,6 +122,33 @@ @@ -74,6 +122,33 @@
74 height: 100%; 122 height: 100%;
75 } 123 }
76 124
  125 + /* 省份选择 */
  126 + .proselect{
  127 + width:120rpx;
  128 + height:60rpx;
  129 + border:2rpx solid rgba(238,238,238,1);
  130 + color:#fff;
  131 + font-size:24rpx;
  132 + border-radius: 40rpx;
  133 + padding: 0 10rpx;
  134 + box-sizing: border-box;
  135 + margin-left:16rpx;
  136 + }
  137 + .proname{
  138 + width:90rpx;
  139 + overflow: hidden;
  140 + text-overflow: ellipsis;
  141 + white-space: nowrap;
  142 + margin-right:5rpx;
  143 + }
  144 + .release-text-content{
  145 + height:120rpx;
  146 + display: -webkit-box;
  147 + -webkit-box-orient: vertical;
  148 + -webkit-line-clamp: 3;
  149 + overflow: hidden;
  150 + }
  151 +
77 .content.title { 152 .content.title {
78 padding-top: var(--status-bar-height); 153 padding-top: var(--status-bar-height);
79 box-sizing: border-box; 154 box-sizing: border-box;
@@ -165,7 +165,7 @@ @@ -165,7 +165,7 @@
165 { 165 {
166 "path": "pages/luntan/addcontract", 166 "path": "pages/luntan/addcontract",
167 "style": { 167 "style": {
168 - "navigationBarTitleText": "添加合同", 168 + "navigationBarTitleText": "发布帖子",
169 "navigationBarBackgroundColor": "#fff", 169 "navigationBarBackgroundColor": "#fff",
170 "navigationBarTextStyle": "black" 170 "navigationBarTextStyle": "black"
171 } 171 }
@@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
18 </view> 18 </view>
19 <view class="navright" @click="cartlist"> 19 <view class="navright" @click="cartlist">
20 <image src="../../static/cart.png" mode=""></image> 20 <image src="../../static/cart.png" mode=""></image>
21 - <view class="cartnum">16</view> 21 + <view class="cartnum">{{carttotal}}</view>
22 </view> 22 </view>
23 </view> 23 </view>
24 <view class="homehead"> 24 <view class="homehead">
@@ -153,14 +153,8 @@ @@ -153,14 +153,8 @@
153 <view class="chahao" @click="hidejifen"> 153 <view class="chahao" @click="hidejifen">
154 <image src="../../static/chahao.png" mode=""></image> 154 <image src="../../static/chahao.png" mode=""></image>
155 </view> 155 </view>
156 -  
157 -  
158 </view> 156 </view>
159 -  
160 -  
161 </view> 157 </view>
162 -  
163 -  
164 </view> 158 </view>
165 159
166 <!-- 底部导航 --> 160 <!-- 底部导航 -->
@@ -207,13 +201,37 @@ @@ -207,13 +201,37 @@
207 keyword: '', 201 keyword: '',
208 order: '', 202 order: '',
209 page: 1, 203 page: 1,
210 - shoplist: [] 204 + shoplist: [],
  205 + carttotal:''
211 } 206 }
212 }, 207 },
213 onLoad() { 208 onLoad() {
214 - this.getfoodlist() 209 + this.getfoodlist();
  210 + let token=uni.getStorageSync("token");
  211 + if(token!=''){
  212 + this.getcartnum()
  213 + }
215 }, 214 },
216 methods: { 215 methods: {
  216 +
  217 + // 获取购物车气泡
  218 + getcartnum(){
  219 + let that = this;
  220 + var url = 'car/bubble';
  221 + var params = {
  222 +
  223 + }
  224 + app.post(url, params).then((res) => {
  225 + console.log(res);
  226 + this.carttotal=res.data.data.total
  227 +
  228 +
  229 +
  230 + }).catch((err) => {
  231 +
  232 + })
  233 + },
  234 +
217 // 抽奖专区 235 // 抽奖专区
218 choujiang() { 236 choujiang() {
219 uni.navigateTo({ 237 uni.navigateTo({
@@ -2,37 +2,195 @@ @@ -2,37 +2,195 @@
2 <view class="content"> 2 <view class="content">
3 <view class="addtop flextwo"> 3 <view class="addtop flextwo">
4 <view class='addtopleft'>发布省份</view> 4 <view class='addtopleft'>发布省份</view>
5 - <view class="addprovince flexone">  
6 - <view class="proname">北京</view>  
7 - <view class="xiala">  
8 - <image src="../../static/huixia.png" mode=""></image> 5 +
  6 + <picker @change="bindproChange" :value="index" :range="provincelist" range-key="name">
  7 + <view class="addprovince flexone">
  8 + <view class="proname">{{provincename}}</view>
  9 + <view class="xiala">
  10 + <image src="../../static/huixia.png" mode=""></image>
  11 + </view>
9 </view> 12 </view>
10 - </view> 13 + </picker>
11 </view> 14 </view>
12 - 15 +
13 <view class="contracttext"> 16 <view class="contracttext">
14 <view class="title"> 17 <view class="title">
15 - <input type="text" placeholder="加个标题哦~" placeholder-class="entertitle"/> 18 + <input type="text" placeholder="加个标题哦~" placeholder-class="entertitle" @input="entertitle" />
16 </view> 19 </view>
17 <view class="contractcontent"> 20 <view class="contractcontent">
18 - <textarea value="" placeholder="请输入帖子内容" placeholder-class="entertitle"/>  
19 - </view> 21 + <textarea value="" placeholder="请输入帖子内容" placeholder-class="entertitle" @input="entercontent" />
  22 + </view>
20 <view class='addpicox flexone'> 23 <view class='addpicox flexone'>
21 - <view class="addpic">  
22 - <image src="../../static/add.png" mode=""></image> 24 + <view class="addpic" v-for="(item,index) in image" :key="index">
  25 + <image :src="item" mode=""></image>
  26 + <view class="delimg" @click="deleteimg" :data-url="item">
  27 + <image src="../../static/close.png" mode=""></image>
  28 + </view>
23 </view> 29 </view>
24 - <view class="addpic"> 30 + <view class="addpic" @click="chooseImage">
25 <image src="../../static/add.png" mode=""></image> 31 <image src="../../static/add.png" mode=""></image>
26 </view> 32 </view>
27 -  
28 </view> 33 </view>
29 34
30 35
31 </view> 36 </view>
  37 +
  38 + <view class="buybtn surebtn" @click="sure">确定</view>
32 </view> 39 </view>
33 </template> 40 </template>
34 41
35 <script> 42 <script>
  43 + import app from "../../App.vue";
  44 + export default {
  45 + data() {
  46 + return {
  47 + type:'',
  48 + provincelist: [],
  49 + provincename:'',
  50 + index:0,
  51 + province_id:'',
  52 + image:[],
  53 + title:'',
  54 + content:''
  55 + }
  56 + },
  57 + onLoad(options) {
  58 + this.type=options.type;
  59 + this.getprovincelist()
  60 + },
  61 + methods: {
  62 +
  63 + // 输入标题
  64 + entertitle(e){
  65 + this.title=e.detail.value
  66 + },
  67 + //输入内容
  68 + entercontent(e){
  69 + this.content=e.detail.value
  70 + },
  71 + // 获取省份列表
  72 + getprovincelist() {
  73 + let that = this;
  74 + var url = 'forum/get_province';
  75 + var params = {
  76 + is_forum_hot: ''
  77 + }
  78 + console.log('7766554', params)
  79 + app.post(url, params).then((res) => {
  80 + console.log(res);
  81 + that.provincelist = res.data.data;
  82 + this.provincename=res.data.data[0].name;
  83 + that.province_id=res.data.data[0].id;
  84 + // 获取论坛列表
  85 + this.getluntanlist()
  86 +
  87 + }).catch((err) => {
  88 +
  89 + })
  90 + },
  91 +
  92 + bindproChange(e){
  93 + this.index = e.target.value;
  94 + this.provincename=this.provincelist[e.target.value].name;
  95 + this.province_id=this.provincelist[e.target.value].id;
  96 + this.page=1;
  97 + this.luntanlist=[];
  98 + },
  99 +
  100 + // 上传图片
  101 + chooseImage() {
  102 + let that = this;
  103 + uni.chooseImage({
  104 + count: 9,
  105 + sizeType: ['original', 'compressed'],
  106 + success: function (res) {
  107 + console.log(res)
  108 + console.log(res.tempFilePaths);
  109 + console.log(res.tempFilePaths[0])
  110 +
  111 + res.tempFilePaths.forEach(function(value,index,array){
  112 + app.upload('image', value, "post").then((res) => {
  113 + console.log('上传文件', res);
  114 + let url = app.globalData.imgurl+res.url;
  115 + that.image.push(url)
  116 +
  117 +
  118 + console.log(that.image)
  119 +
  120 +
  121 + }).catch((err) => {
  122 + console.log(err)
  123 + })
  124 + })
  125 +
  126 + },
  127 + fail: function (res) { }
  128 + })
  129 + },
  130 +
  131 + deleteimg(e){
  132 + console.log(e)
  133 + var url=e.currentTarget.dataset.url;
  134 + console.log(url)
  135 + for(var i=0;i<this.image.length;i++){
  136 + if(url==this.image[i]){
  137 + this.image.splice(i,1);
  138 + }
  139 + }
  140 + this.image=this.image;
  141 + console.log(this.iamge)
  142 +
  143 + },
  144 + sure(){
  145 + let that = this;
  146 + if(that.title==''){
  147 + uni.showToast({
  148 + title:"请输入标题",
  149 + icon:'none'
  150 + })
  151 + return false
  152 + }
  153 + if(that.content==''){
  154 + uni.showToast({
  155 + title:"请输入帖子内容",
  156 + icon:'none'
  157 + })
  158 + return false
  159 + }
  160 + var url = 'forum/get_province';
  161 + var params = {
  162 + type:that.type,
  163 + province_id:that.province_id,
  164 + title:that.title,
  165 + content:that.content,
  166 + images:that.image.join(",")
  167 + }
  168 + console.log('7766554', params)
  169 + app.post(url, params).then((res) => {
  170 + console.log(res);
  171 + uni.showToast({
  172 + title:'发布成功',
  173 + icon:"none"
  174 + })
  175 + setTimeout(function(){
  176 + uni.navigateTo({
  177 + url:'/pages/luntan/luntan'
  178 + })
  179 + },1500)
  180 +
  181 + }).catch((err) => {
  182 +
  183 + })
  184 + }
  185 +
  186 +
  187 +
  188 +
  189 +
  190 + }
  191 +
  192 + }
  193 +
36 </script> 194 </script>
37 195
38 <style> 196 <style>
@@ -40,14 +198,30 @@ @@ -40,14 +198,30 @@
40 page{ 198 page{
41 background:#F7F6F9 ; 199 background:#F7F6F9 ;
42 } 200 }
  201 +
  202 + .surebtn{
  203 + position: fixed;
  204 + bottom:0;
  205 + left:32rpx;
  206 + bottom:32rpx;
  207 + }
43 .addpic{ 208 .addpic{
44 - width:160rpx;  
45 - height:160rpx; 209 + width:150rpx;
  210 + height:150rpx;
46 font-size: 0; 211 font-size: 0;
47 - margin-right:28rpx; 212 + margin-right:18rpx;
48 margin-bottom:20rpx; 213 margin-bottom:20rpx;
  214 + position: relative;
49 215
50 } 216 }
  217 + .delimg{
  218 + width:40rpx;
  219 + height:40rpx;
  220 + font-size: 0;
  221 + position: absolute;
  222 + top:-20rpx;
  223 + right:-20rpx;
  224 + }
51 .entertitle{ 225 .entertitle{
52 color:#BDC4CE; 226 color:#BDC4CE;
53 font-size: 28rpx; 227 font-size: 28rpx;
@@ -62,7 +236,7 @@ @@ -62,7 +236,7 @@
62 font-size: 28rpx; 236 font-size: 28rpx;
63 } 237 }
64 .contracttext{ 238 .contracttext{
65 - padding: 0 32rpx; 239 + padding: 0 32rpx 20rpx;
66 box-sizing: border-box; 240 box-sizing: border-box;
67 background: #fff; 241 background: #fff;
68 margin-top:16rpx; 242 margin-top:16rpx;
@@ -110,5 +284,6 @@ @@ -110,5 +284,6 @@
110 } 284 }
111 .addpicox{ 285 .addpicox{
112 margin-top:20rpx; 286 margin-top:20rpx;
  287 + flex-wrap: wrap;
113 } 288 }
114 </style> 289 </style>
@@ -2,36 +2,37 @@ @@ -2,36 +2,37 @@
2 <view class='content'> 2 <view class='content'>
3 <view class="examinetop flexone"> 3 <view class="examinetop flexone">
4 <view class="examinetopleft"> 4 <view class="examinetopleft">
5 - <image src="../../static/userpic.png" mode=""></image> 5 + <image :src="userinfo.avatar" mode=""></image>
6 </view> 6 </view>
7 <view class="examintopright"> 7 <view class="examintopright">
8 - <view class='examinename'>我是用户昵称</view>  
9 - <view class='examinelist flexone'>  
10 - <view class='examineitem'>帮工</view>  
11 - <view class='examineitem'>配送员</view>  
12 - <view class='examineitem'>销售员</view> 8 + <view class='examinename'>{{userinfo.nickname}}</view>
  9 + <view class='examinelist flexone' v-if="label.length!=0">
  10 + <view class='examineitem' v-for="(item,index) in userinfo.label" :key="index">{{item.name_label}}</view>
13 </view> 11 </view>
14 </view> 12 </view>
15 </view> 13 </view>
16 <view class="helplist flexone"> 14 <view class="helplist flexone">
17 - <view class="helpitem flexfour"> 15 + <view class="helpitem flexfour" @click="examinetext(item)" v-for="(item,index) in questionlist" :key="index">
18 <view class="helpitemtop"> 16 <view class="helpitemtop">
19 - <image src="../../static/banggong.png" mode=""></image> 17 + <image :src="item.image" mode=""></image>
20 </view> 18 </view>
21 - <view class="helpitemname">帮工考试</view> 19 + <view class="helpitemname">{{item.name}}</view>
22 </view> 20 </view>
23 - <view class="helpitem flexfour"> 21 +
  22 + <!-- <view class="helpitem flexfour" @click="examinetext">
24 <view class="helpitemtop"> 23 <view class="helpitemtop">
25 <image src="../../static/car.png" mode=""></image> 24 <image src="../../static/car.png" mode=""></image>
26 </view> 25 </view>
27 <view class="helpitemname">配送员考试</view> 26 <view class="helpitemname">配送员考试</view>
28 </view> 27 </view>
29 - <view class="helpitem flexfour"> 28 + <view class="helpitem flexfour" @click="examinetext">
30 <view class="helpitemtop"> 29 <view class="helpitemtop">
31 <image src="../../static/xiaoshou.png" mode=""></image> 30 <image src="../../static/xiaoshou.png" mode=""></image>
32 </view> 31 </view>
33 <view class="helpitemname">销售员考试</view> 32 <view class="helpitemname">销售员考试</view>
34 </view> 33 </view>
  34 + -->
  35 +
35 </view> 36 </view>
36 <view class="examinrule"> 37 <view class="examinrule">
37 <view class='examineruletitle'>考试规则</view> 38 <view class='examineruletitle'>考试规则</view>
@@ -42,7 +43,34 @@ @@ -42,7 +43,34 @@
42 则考试规则考试规则考试规则考试规则 43 则考试规则考试规则考试规则考试规则
43 </view> 44 </view>
44 </view> 45 </view>
45 - 46 +
  47 + <!-- 发布 -->
  48 + <view class="release-news" v-if="publish">
  49 + <view class="release-content">
  50 + <view class="nav-wrap publishnav">
  51 + <view class="navigator" @click="publishitezi" :data-id="1">
  52 + <image src="../../static/helppeople.png"></image>
  53 + <text>帮工招聘求职</text>
  54 + </view>
  55 + <view class="navigator" @click="publishitezi" :data-id="2">
  56 + <image src="../../static/mianturn.png"></image>
  57 + <text>面坊求购转让</text>
  58 + </view>
  59 + <view class="navigator" @click="publishitezi" :data-id="3">
  60 + <image src="../../static/friend.png"></image>
  61 + <text>征婚交友</text>
  62 + </view>
  63 + <view class="navigator" @click="publishitezi" :data-id="4">
  64 + <image src="../../static/zhonglogo.png"></image>
  65 + <text>中面集团</text>
  66 + </view>
  67 + </view>
  68 + <!-- close -->
  69 + <view class="close" @click="hidepublish">
  70 + <image src="../../static/publishchahao.png" />
  71 + </view>
  72 + </view>
  73 + </view>
46 <!-- 底部导航 --> 74 <!-- 底部导航 -->
47 <view class="teacherfooter"> 75 <view class="teacherfooter">
48 <view class="teacherfootitem" @click="footerseljump" data-id="1"> 76 <view class="teacherfootitem" @click="footerseljump" data-id="1">
@@ -64,7 +92,6 @@ @@ -64,7 +92,6 @@
64 <view class="teacherfootname" :class="footersel==3?'activename':''">考试</view> 92 <view class="teacherfootname" :class="footersel==3?'activename':''">考试</view>
65 </view> 93 </view>
66 </view> 94 </view>
67 -  
68 </view> 95 </view>
69 </template> 96 </template>
70 97
@@ -73,15 +100,23 @@ @@ -73,15 +100,23 @@
73 export default { 100 export default {
74 data() { 101 data() {
75 return { 102 return {
76 - footersel:3 103 + footersel:3,
  104 + publish:false,
  105 + questionlist:[],
  106 + userinfo:'',
  107 + label:''
  108 +
77 } 109 }
78 }, 110 },
79 onLoad() { 111 onLoad() {
80 -  
81 -  
82 - 112 + this.getquestionlist();
  113 + // 获取用户信息
  114 + this.getuserinfo()
83 }, 115 },
84 methods: { 116 methods: {
  117 + hidepublish() {
  118 + this.publish = false
  119 + },
85 footerseljump(e){ 120 footerseljump(e){
86 let id=e.currentTarget.dataset.id; 121 let id=e.currentTarget.dataset.id;
87 if(id==1){ 122 if(id==1){
@@ -92,8 +127,59 @@ @@ -92,8 +127,59 @@
92 uni.navigateTo({ 127 uni.navigateTo({
93 url:"/pages/luntan/examine" 128 url:"/pages/luntan/examine"
94 }) 129 })
95 - }  
96 - } 130 + }else if(id==2){
  131 + this.publish=true
  132 + }
  133 + },
  134 + // 获取用户信息
  135 + getuserinfo(){
  136 + let that = this;
  137 + var url = 'member/index';
  138 + var params = {
  139 +
  140 + }
  141 + console.log('7766554', params)
  142 + app.post(url, params).then((res) => {
  143 + console.log(res);
  144 + that.userinfo=res.data.data;
  145 + that.label=res.data.data.label
  146 +
  147 +
  148 + }).catch((err) => {
  149 +
  150 + })
  151 + },
  152 + // 获取问卷列表
  153 + getquestionlist(){
  154 + let that = this;
  155 + var url = 'question/get_questionnaire';
  156 + var params = {
  157 +
  158 + }
  159 + console.log('7766554', params)
  160 + app.post(url, params).then((res) => {
  161 + console.log(res);
  162 + that.questionlist=res.data.data
  163 +
  164 + }).catch((err) => {
  165 +
  166 + })
  167 + },
  168 +
  169 + //帮工考试
  170 + examinetext(item){
  171 + let id=item.id
  172 + uni.navigateTo({
  173 + url:'/pages/luntan/examintext?id='+id
  174 + })
  175 + },
  176 + // 发布评论
  177 + publishitezi(e){
  178 + let type=e.currentTarget.dataset.id;
  179 + uni.navigateTo({
  180 + url:'/pages/luntan/addcontract?type='+type
  181 + })
  182 + },
97 183
98 } 184 }
99 185
@@ -101,6 +187,10 @@ @@ -101,6 +187,10 @@
101 </script> 187 </script>
102 188
103 <style> 189 <style>
  190 + page{
  191 + background: #fff;
  192 + }
  193 +
104 /* page{ 194 /* page{
105 padding: 0 32rpx; 195 padding: 0 32rpx;
106 box-sizing: border-box; 196 box-sizing: border-box;
@@ -182,3 +272,185 @@ @@ -182,3 +272,185 @@
182 } 272 }
183 273
184 </style> 274 </style>
  275 +
  276 +<style>
  277 + page {
  278 + background: #F9F9F9;
  279 + }
  280 + .release-text-content{
  281 + height:120rpx;
  282 + display: -webkit-box;
  283 + -webkit-box-orient: vertical;
  284 + -webkit-line-clamp: 3;
  285 + overflow: hidden;
  286 + }
  287 + .enterwordk{
  288 + color:#BDC4CE;
  289 + font-size: 24rpx;
  290 +
  291 + }
  292 + .proselect{
  293 + width:120rpx;
  294 + height:60rpx;
  295 + border:2rpx solid rgba(238,238,238,1);
  296 + color:#fff;
  297 + font-size:24rpx;
  298 + border-radius: 40rpx;
  299 + padding: 0 10rpx;
  300 + box-sizing: border-box;
  301 + margin-left:16rpx;
  302 + }
  303 + .proname{
  304 + width:90rpx;
  305 + overflow: hidden;
  306 + text-overflow: ellipsis;
  307 + white-space: nowrap;
  308 + margin-right:5rpx;
  309 + }
  310 + .down-ico{
  311 + width:16rpx;
  312 + height:16rpx;
  313 + font-size: 0;
  314 + }
  315 + .publishnav {
  316 + padding: 0 !important;
  317 + }
  318 +
  319 + .homeimg {
  320 + width: 88rpx;
  321 + height: 88rpx;
  322 + font-size: 0;
  323 + }
  324 +
  325 + .search-input {
  326 + width: 470rpx !important;
  327 + }
  328 +
  329 + /* 搜素 */
  330 + .search-wrap {
  331 + width: 750rpx;
  332 + padding: 14rpx 0;
  333 + box-sizing: border-box;
  334 + background: #C29445;
  335 + z-index:99;
  336 + position: fixed;
  337 + top: var(--status-bar-height);
  338 + left: 0;
  339 +
  340 + }
  341 +
  342 + .nav-wrap {
  343 + background: #fff;
  344 + display: flex;
  345 + justify-content: space-between;
  346 + padding: 32rpx 64rpx;
  347 + margin-bottom: 16rpx;
  348 + margin-top: calc(var(--status-bar-height) + 100rpx);;
  349 + }
  350 +
  351 + .nav-wrap .navigator {
  352 + text-align: center;
  353 + }
  354 +
  355 + .nav-wrap .navigator image {
  356 + width: 88rpx;
  357 + height: 88rpx;
  358 + margin: auto;
  359 + }
  360 +
  361 + .nav-wrap .navigator text {
  362 + width: 104rpx;
  363 + display: block;
  364 + color: #3D454C;
  365 + font-size: 26rpx;
  366 + }
  367 +
  368 + .new-release-wrap .new-release-title {
  369 + height: 84rpx;
  370 + line-height: 84rpx;
  371 + padding-left: 32rpx;
  372 + position: relative;
  373 + background: #fff;
  374 + font-size: 32rpx;
  375 + color: #061220;
  376 + border-bottom: 1px solid #E3E2E1;
  377 + }
  378 +
  379 + .new-release-wrap .new-release-title:after {
  380 + content: "";
  381 + position: absolute;
  382 + top: 20rpx;
  383 + left: 0;
  384 + height: 44rpx;
  385 + width: 8rpx;
  386 + background: var(--themeColor);
  387 + border-top-right-radius: 6rpx;
  388 + border-bottom-right-radius: 6rpx;
  389 + }
  390 +
  391 + .release-news {
  392 + position: fixed;
  393 + width: 750rpx;
  394 + height: 100%;
  395 + bottom: 0;
  396 + left: 0;
  397 + background: rgba(0, 0, 0, 0.5);
  398 + z-index: 10;
  399 + }
  400 +
  401 + .release-news .release-content {
  402 + position: absolute;
  403 + width: 750rpx;
  404 + bottom: 0;
  405 + left: 0;
  406 + background: #fff;
  407 + z-index: 1000;
  408 + padding: 60rpx;
  409 + box-sizing: border-box;
  410 + border-top-left-radius: 40rpx;
  411 + border-top-right-radius: 40rpx;
  412 + }
  413 +
  414 + .release-news .meun-lists {
  415 + display: flex;
  416 + justify-content: space-between;
  417 + }
  418 +
  419 + .release-news .meun-lists navigator {
  420 + text-align: center;
  421 + }
  422 +
  423 + .release-news .meun-lists navigator image {
  424 + width: 88rpx;
  425 + height: 88rpx;
  426 + margin: auto;
  427 + }
  428 +
  429 + .release-news .meun-lists navigator text {
  430 + width: 104rpx;
  431 + display: block;
  432 + color: #3D454C;
  433 + font-size: 26rpx;
  434 + }
  435 +
  436 + .release-news .close {
  437 + display: flex;
  438 + justify-content: center;
  439 + margin-top: 38rpx;
  440 + }
  441 +
  442 + .release-news .close image {
  443 + width: 60rpx;
  444 + height: 60rpx;
  445 + }
  446 + .search-wrap .navigator:nth-child(3){
  447 + /* font-size: 20rpx; */
  448 + }
  449 + /* .proname{
  450 +
  451 + overflow: hidden;
  452 + text-overflow: ellipsis;
  453 + white-space: nowrap;
  454 + } */
  455 +</style>
  456 +
1 <template> 1 <template>
2 <view class="content"> 2 <view class="content">
3 <view class="texttitle"> 3 <view class="texttitle">
4 - 3.老人每天综合摄入食盐量最好控制在( )克以  
5 - 下(多选) 4 + 1.{{present_data.question_name}}({{present_data.type==1?'单选':'多选'}})
6 </view> 5 </view>
7 <view class="textlist"> 6 <view class="textlist">
8 <view class='textitem flex'> 7 <view class='textitem flex'>
@@ -53,6 +52,48 @@ @@ -53,6 +52,48 @@
53 </template> 52 </template>
54 53
55 <script> 54 <script>
  55 + import app from "../../App.vue";
  56 + export default {
  57 + data() {
  58 + return {
  59 + questionnaire_id:'',
  60 + present_data:[],
  61 + last_data:[],
  62 + next_data:[]
  63 +
  64 + }
  65 + },
  66 + onLoad(options) {
  67 +
  68 + this.questionnaire_id=options.id;
  69 + this.getqusetion();
  70 +
  71 + },
  72 + methods: {
  73 + getqusetion(){
  74 + let that = this;
  75 +
  76 + var url = 'question/get_question';
  77 + var params = {
  78 + questionnaire_id:that.questionnaire_id
  79 + }
  80 +
  81 + console.log(params)
  82 + app.post(url, params,"post").then((res) => {
  83 + console.log(res);
  84 + that.present_data=res.data.data.present_data;
  85 + that.last_data=res.data.data.last_data;
  86 + that.next_data=res.data.data.next_data;
  87 + }).catch((err) => {
  88 + console.log(err)
  89 +
  90 + })
  91 + },
  92 +
  93 + }
  94 +
  95 + }
  96 +
56 </script> 97 </script>
57 98
58 <style> 99 <style>
@@ -9,7 +9,8 @@ @@ -9,7 +9,8 @@
9 </view> 9 </view>
10 <view class="search-input navigator" url="/pages/searchGoods/index" open-type="navigate"> 10 <view class="search-input navigator" url="/pages/searchGoods/index" open-type="navigate">
11 <icon type="search" size="12" color="#BDC4CE" style="margin-right:10rpx;"/> 11 <icon type="search" size="12" color="#BDC4CE" style="margin-right:10rpx;"/>
12 - 请输入关键词搜索 12 + <input type="text" placeholder="请输入关键词搜索" @confirm="finish" @input="enterword" class="enterwordk" placeholder-class="enterwordk">
  13 +
13 </view> 14 </view>
14 <picker @change="bindproChange" :value="index" :range="provincelist" range-key="name"> 15 <picker @change="bindproChange" :value="index" :range="provincelist" range-key="name">
15 <!-- <view class="uni-input">{{array[index]}}</view> --> 16 <!-- <view class="uni-input">{{array[index]}}</view> -->
@@ -21,19 +22,19 @@ @@ -21,19 +22,19 @@
21 </view> 22 </view>
22 <!-- nav --> 23 <!-- nav -->
23 <view class="nav-wrap"> 24 <view class="nav-wrap">
24 - <view class="navigator" @click="zhaopin"> 25 + <view class="navigator" @click="zhaopin" :data-id="1">
25 <image src="../../static/helppeople.png"></image> 26 <image src="../../static/helppeople.png"></image>
26 <text>帮工招聘求职</text> 27 <text>帮工招聘求职</text>
27 </view> 28 </view>
28 - <view class="navigator"> 29 + <view class="navigator" @click="zhaopin" :data-id="2">
29 <image src="../../static/mianturn.png"></image> 30 <image src="../../static/mianturn.png"></image>
30 <text>面坊求购转让</text> 31 <text>面坊求购转让</text>
31 </view> 32 </view>
32 - <view class="navigator"> 33 + <view class="navigator" @click="zhaopin" :data-id="3">
33 <image src="../../static/friend.png"></image> 34 <image src="../../static/friend.png"></image>
34 <text>征婚交友</text> 35 <text>征婚交友</text>
35 </view> 36 </view>
36 - <view class="navigator"> 37 + <view class="navigator" @click="zhaopin" :data-id="4">
37 <image src="../../static/zhonglogo.png"></image> 38 <image src="../../static/zhonglogo.png"></image>
38 <text>中面集团</text> 39 <text>中面集团</text>
39 </view> 40 </view>
@@ -42,44 +43,50 @@ @@ -42,44 +43,50 @@
42 <view class="new-release-wrap"> 43 <view class="new-release-wrap">
43 <!-- title --> 44 <!-- title -->
44 <view class="new-release-title">最新发布</view> 45 <view class="new-release-title">最新发布</view>
45 - <!-- content -->  
46 - <view class="new-release-content" v-for="(item,index) in luntanlist" :key="index">  
47 - <!-- 头像,名称,等级 -->  
48 - <view class="userinfo-wrap" @click="usercenter">  
49 - <image src="../../static/userpic.png"></image>  
50 - <text class="title">{{item.nickname}}</text>  
51 - <view class="VIP">  
52 - <image src="../../static/huiyuan.png"></image>  
53 - VIP5  
54 - </view>  
55 - </view>  
56 - <!-- type -->  
57 - <view class="type-wrap">  
58 - 帮工招聘求职  
59 - <text>帮工</text>  
60 - <text>配送员</text>  
61 - <text>销售员</text>  
62 - </view> 46 +
  47 + <view class="nodata" v-if="luntanlist.length==0">暂无数据</view>
  48 + <view v-else>
63 <!-- content --> 49 <!-- content -->
64 - <view class="release-text">  
65 - <view class="release-text-title">  
66 - 帖子标题帖子标题帖子标题帖子标题帖子帖子 50 + <view class="new-release-content" v-for="(item,index) in luntanlist" :key="index" @click="luntandetail(item)" >
  51 + <!-- 头像,名称,等级 -->
  52 + <view class="userinfo-wrap" @click.stop="usercenter(item)">
  53 + <image :src="item.user.avatar"></image>
  54 + <text class="title">{{item.nickname}}</text>
  55 + <view class="VIP">
  56 + <image src="../../static/huiyuan.png"></image>
  57 + {{item.user.level.name1}}
  58 + </view>
67 </view> 59 </view>
68 - <view class="release-text-content">  
69 - 帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容... 60 + <!-- type -->
  61 + <view class="type-wrap">
  62 + 帮工招聘求职
  63 + <text v-for="(item,index) in item.user.label" :key="index">{{item.name_label}}</text>
  64 + <!-- <text>配送员</text>
  65 + <text>销售员</text> -->
70 </view> 66 </view>
71 - </view>  
72 - <!-- 点赞, 人数 -->  
73 - <view class="thumbs-number">  
74 - <view class="thumbs">  
75 - <image src="../../static/tienozan.png"></image>  
76 - 399 67 + <!-- content -->
  68 + <view class="release-text">
  69 + <view class="release-text-title">
  70 + {{item.title}}
  71 + </view>
  72 + <view class="release-text-content">
  73 + <rich-text :nodes="item.content"></rich-text>
  74 + </view>
77 </view> 75 </view>
78 - <view class="number">  
79 - <image src="../../static/userpeopel.png"></image>  
80 - 399 76 + <!-- 点赞, 人数 -->
  77 + <view class="thumbs-number" @click.stop="praisedian(item,index)">
  78 + <view class="thumbs">
  79 + <image src="../../static/tienozan.png" v-if="item.is_praise==2"></image>
  80 + <image src="../../static/tiezan.png" v-else></image>
  81 + {{item.praise}}
  82 + </view>
  83 + <view class="number">
  84 + <image src="../../static/userpeopel.png"></image>
  85 + {{item.view}}
  86 + </view>
81 </view> 87 </view>
82 </view> 88 </view>
  89 +
83 </view> 90 </view>
84 91
85 92
@@ -90,29 +97,31 @@ @@ -90,29 +97,31 @@
90 <view class="release-news" v-if="publish"> 97 <view class="release-news" v-if="publish">
91 <view class="release-content"> 98 <view class="release-content">
92 <view class="nav-wrap publishnav"> 99 <view class="nav-wrap publishnav">
93 - <view class="navigator" @click="zhaopin"> 100 + <view class="navigator" @click="publishitezi" :data-id="1">
94 <image src="../../static/helppeople.png"></image> 101 <image src="../../static/helppeople.png"></image>
95 <text>帮工招聘求职</text> 102 <text>帮工招聘求职</text>
96 </view> 103 </view>
97 - <view class="navigator"> 104 + <view class="navigator" @click="publishitezi" :data-id="2">
98 <image src="../../static/mianturn.png"></image> 105 <image src="../../static/mianturn.png"></image>
99 <text>面坊求购转让</text> 106 <text>面坊求购转让</text>
100 </view> 107 </view>
101 - <view class="navigator"> 108 + <view class="navigator" @click="publishitezi" :data-id="3">
102 <image src="../../static/friend.png"></image> 109 <image src="../../static/friend.png"></image>
103 <text>征婚交友</text> 110 <text>征婚交友</text>
104 </view> 111 </view>
105 - <view class="navigator"> 112 + <view class="navigator" @click="publishitezi" :data-id="4">
106 <image src="../../static/zhonglogo.png"></image> 113 <image src="../../static/zhonglogo.png"></image>
107 <text>中面集团</text> 114 <text>中面集团</text>
108 </view> 115 </view>
109 </view> 116 </view>
110 - <!-- close --> 117 + <!-- close -->
111 <view class="close" @click="hidepublish"> 118 <view class="close" @click="hidepublish">
112 <image src="../../static/publishchahao.png" /> 119 <image src="../../static/publishchahao.png" />
113 </view> 120 </view>
114 </view> 121 </view>
115 </view> 122 </view>
  123 +
  124 +
116 <!-- 底部导航 --> 125 <!-- 底部导航 -->
117 <view class="teacherfooter"> 126 <view class="teacherfooter">
118 <view class="teacherfootitem" @click="footerseljump" :data-id="1"> 127 <view class="teacherfootitem" @click="footerseljump" :data-id="1">
@@ -152,7 +161,6 @@ @@ -152,7 +161,6 @@
152 index:0, 161 index:0,
153 luntanlist:[], 162 luntanlist:[],
154 keyword:'' 163 keyword:''
155 -  
156 } 164 }
157 }, 165 },
158 onLoad() { 166 onLoad() {
@@ -163,6 +171,25 @@ @@ -163,6 +171,25 @@
163 hidepublish() { 171 hidepublish() {
164 this.publish = false 172 this.publish = false
165 }, 173 },
  174 +
  175 + // 输入关键字
  176 + enterword(e){
  177 + this.keyword=e.detail.value;
  178 + console.log(this.keyword)
  179 + },
  180 + // 输入完成
  181 + finish(){
  182 + this.page=1;
  183 + this.luntanlist=[];
  184 + this.getluntanlist();
  185 + },
  186 +
  187 + // 论坛详情
  188 + luntandetail(item){
  189 + uni.navigateTo({
  190 + url:'/pages/luntan/luntandetail?id='+item.id
  191 + })
  192 + },
166 // 获取省份列表 193 // 获取省份列表
167 getprovincelist() { 194 getprovincelist() {
168 let that = this; 195 let that = this;
@@ -183,10 +210,13 @@ @@ -183,10 +210,13 @@
183 210
184 }) 211 })
185 }, 212 },
  213 +
186 bindproChange(e){ 214 bindproChange(e){
187 this.index = e.target.value; 215 this.index = e.target.value;
188 this.provincename=this.provincelist[e.target.value].name; 216 this.provincename=this.provincelist[e.target.value].name;
189 this.province_id=this.provincelist[e.target.value].id; 217 this.province_id=this.provincelist[e.target.value].id;
  218 + this.page=1;
  219 + this.luntanlist=[];
190 // 获取论坛列表 220 // 获取论坛列表
191 this.getluntanlist(); 221 this.getluntanlist();
192 }, 222 },
@@ -197,7 +227,7 @@ @@ -197,7 +227,7 @@
197 var params = { 227 var params = {
198 keyword:that.keyword, 228 keyword:that.keyword,
199 province_id: that.province_id, 229 province_id: that.province_id,
200 - type: that.type, 230 + type: '',
201 page: that.page, 231 page: that.page,
202 pageNum: 10 232 pageNum: 10
203 } 233 }
@@ -213,6 +243,44 @@ @@ -213,6 +243,44 @@
213 243
214 }) 244 })
215 }, 245 },
  246 + praisedian(item,index){
  247 + let that = this;
  248 + if(that.luntanlist[index].is_praise==2){
  249 + uni.showToast({
  250 + title:'点赞成功',
  251 + icon:'none'
  252 + })
  253 + that.luntanlist[index].is_praise=1;
  254 + that.luntanlist[index].praise=that.luntanlist[index].praise+1
  255 + }else{
  256 + uni.showToast({
  257 + title:'取消点赞成功',
  258 + icon:'none'
  259 + })
  260 + that.luntanlist[index].is_praise=2;
  261 + that.luntanlist[index].praise=that.luntanlist[index].praise-1
  262 + }
  263 +
  264 + that.luntanlist=that.luntanlist;
  265 +
  266 + var url = 'forum/praise';
  267 + var params = {
  268 + forum_id:item.id
  269 + }
  270 + console.log('参数',params)
  271 + app.post(url, params).then((res) => {
  272 + console.log(res);
  273 +
  274 +
  275 +
  276 + }).catch((err) => {
  277 + console.log(err)
  278 +
  279 + })
  280 +
  281 +
  282 + },
  283 +
216 // 返回首页 284 // 返回首页
217 homeback() { 285 homeback() {
218 console.log(43898934894) 286 console.log(43898934894)
@@ -220,10 +288,27 @@ @@ -220,10 +288,27 @@
220 url: '/pages/homepage/homepage' 288 url: '/pages/homepage/homepage'
221 }) 289 })
222 }, 290 },
  291 +
  292 + // 进入论坛主页
  293 + usercenter(item){
  294 + let user=JSON.stringify(item.user)
  295 + uni.navigateTo({
  296 + url:'/pages/luntan/luntanpage?userid='+item.user_id+'&user='+user
  297 + })
  298 + },
223 // 论坛列表 299 // 论坛列表
224 - zhaopin() { 300 + zhaopin(e) {
  301 + let id=e.currentTarget.dataset.id;
225 uni.navigateTo({ 302 uni.navigateTo({
226 - url: '../luntan/luntanlist' 303 + url: '../luntan/luntanlist?id='+id
  304 + })
  305 + },
  306 +
  307 + // 发布评论
  308 + publishitezi(e){
  309 + let type=e.currentTarget.dataset.id;
  310 + uni.navigateTo({
  311 + url:'/pages/luntan/addcontract?type='+type
227 }) 312 })
228 }, 313 },
229 // 底部导航跳转 314 // 底部导航跳转
@@ -252,6 +337,18 @@ @@ -252,6 +337,18 @@
252 page { 337 page {
253 background: #F9F9F9; 338 background: #F9F9F9;
254 } 339 }
  340 + .release-text-content{
  341 + height:120rpx;
  342 + display: -webkit-box;
  343 + -webkit-box-orient: vertical;
  344 + -webkit-line-clamp: 3;
  345 + overflow: hidden;
  346 + }
  347 + .enterwordk{
  348 + color:#BDC4CE;
  349 + font-size: 24rpx;
  350 +
  351 + }
255 .proselect{ 352 .proselect{
256 width:120rpx; 353 width:120rpx;
257 height:60rpx; 354 height:60rpx;
@@ -295,7 +392,7 @@ @@ -295,7 +392,7 @@
295 padding: 14rpx 0; 392 padding: 14rpx 0;
296 box-sizing: border-box; 393 box-sizing: border-box;
297 background: #C29445; 394 background: #C29445;
298 - 395 + z-index:99;
299 position: fixed; 396 position: fixed;
300 top: var(--status-bar-height); 397 top: var(--status-bar-height);
301 left: 0; 398 left: 0;
1 <template> 1 <template>
2 <view class="content"> 2 <view class="content">
3 <view class="posts-details-wrap"> 3 <view class="posts-details-wrap">
4 - <!-- content -->  
5 - <view class="release-text-title">  
6 - 帖子标题帖子标题帖子标题帖子标题帖子帖子  
7 - </view>  
8 - <view class="new-release-content" @click="tiezifu">  
9 - <!-- 头像,名称,等级 -->  
10 - <view class="userinfo-wrap">  
11 - <image src="../../icons/nav2.png"></image>  
12 - <view class="userinfo">  
13 - <view class="userinfo-vip">  
14 - <text class="title">我是用户昵称</text>  
15 - <view class="VIP">  
16 - <image src="../../icons/vip.png"></image>  
17 - VIP5  
18 - </view>  
19 - </view>  
20 - <view class="time">  
21 - 1小时  
22 - </view>  
23 - </view>  
24 - </view>  
25 - <!-- type -->  
26 - <view class="type-wrap">  
27 - <text style="margin-left:0">帮工</text>  
28 - <text>配送员</text>  
29 - <text>销售员</text>  
30 - </view>  
31 - <!-- content -->  
32 - <view class="release-text">  
33 - <view class="release-text-content">  
34 - 帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容  
35 - <image src="../../icons/banner.png" mode="widthFix" />  
36 - <image src="../../icons/banner.png" mode="widthFix" />  
37 - <image src="../../icons/banner.png" mode="widthFix" />  
38 - </view>  
39 - </view>  
40 - <!-- 点赞, 人数 -->  
41 - <view class="thumbs-number">  
42 - <view class="thumbs">  
43 - <image src="../../icons/thumbs1.png"></image>  
44 - 399  
45 - </view>  
46 - <view class="number">  
47 - <image src="../../icons/number.png"></image>  
48 - 399  
49 - </view>  
50 - </view>  
51 - </view>  
52 - <view class="new-release-content">  
53 - <!-- 头像,名称,等级 -->  
54 - <view class="userinfo-wrap">  
55 - <image src="../../icons/nav2.png"></image>  
56 - <view class="userinfo">  
57 - <view class="userinfo-vip">  
58 - <text class="title">我是用户昵称</text>  
59 - <view class="VIP">  
60 - <image src="../../icons/vip.png"></image>  
61 - VIP5  
62 - </view>  
63 - </view>  
64 - </view>  
65 - </view>  
66 - <!-- type -->  
67 - <view class="type-wrap">  
68 - 帮工招聘求职  
69 - <text >帮工</text>  
70 - <text>配送员</text>  
71 - <text>销售员</text>  
72 - </view>  
73 - <!-- content -->  
74 - <view class="release-text">  
75 - <view class="release-text-content">  
76 - 帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容  
77 - <image src="../../icons/banner.png" mode="widthFix" />  
78 - <image src="../../icons/banner.png" mode="widthFix" />  
79 - <image src="../../icons/banner.png" mode="widthFix" />  
80 - </view>  
81 - </view>  
82 - <!-- 点赞, 人数 -->  
83 - <view class="thumbs-number">  
84 - <view class="thumbs">  
85 - <image src="../../icons/thumbs1.png"></image>  
86 - 399  
87 - </view>  
88 - <view class="number">  
89 - <image src="../../icons/number.png"></image>  
90 - 399  
91 - </view>  
92 - </view>  
93 - </view> 4 + <!-- content -->
  5 + <view class="release-text-title">
  6 + {{tiezidetail.title}}
  7 + </view>
  8 + <!-- @click="tiezifu" -->
  9 + <view class="new-release-content">
  10 + <!-- 头像,名称,等级 -->
  11 + <view class="userinfo-wrap">
  12 + <image :src="user.avatar"></image>
  13 + <view class="userinfo">
  14 + <view class="userinfo-vip">
  15 + <text class="title">{{user.nickname}}</text>
  16 + <view class="VIP">
  17 + <image src="../../icons/vip.png"></image>
  18 + {{level.name1}}
  19 + </view>
  20 + </view>
  21 + <view class="time">
  22 + 1小时
  23 + </view>
  24 + </view>
  25 + </view>
  26 + <!-- type -->
  27 + <view class="type-wrap">
  28 + <text style="margin-left:0" v-for="(item,index) in label" :key="index">{{item.name_label}}</text>
  29 + <!-- <text>配送员</text>
  30 + <text>销售员</text> -->
  31 + </view>
  32 + <!-- content -->
  33 + <view class="release-text">
  34 + <view class="release-text-content">
  35 + <rich-text :nodes="tiezidetail.content"></rich-text>
  36 +
  37 + </view>
  38 +
  39 + <view class="imagebox">
  40 +
  41 + <image :src="item" mode="widthFix" v-for="(item,index) in tiezidetail.images" :key="index"/>
  42 +
  43 + </view>
  44 + </view>
  45 + <!-- 点赞, 人数 -->
  46 + <view class="thumbs-number">
  47 + <view class="thumbs" @click="tiezizan">
  48 + <image src="../../icons/thumbs1.png" v-if="tiezidetail.is_praise==2"></image>
  49 + <image src="../../static/tiezan.png" v-else></image>
  50 + {{tiezidetail.praise}}
  51 + </view>
  52 + <view class="number">
  53 + <image src="../../icons/number.png"></image>
  54 + {{tiezidetail.view}}
  55 + </view>
  56 + </view>
  57 + </view>
  58 +
  59 +
  60 +
  61 + <view>
  62 + <!-- 论坛列表 -->
  63 + <view class="new-release-content" v-for="(item,index) in commentlist" :key="index">
  64 + <!-- 头像,名称,等级 -->
  65 + <view class="userinfo-wrap">
  66 + <image :src="item.user.avatar"></image>
  67 + <view class="userinfo">
  68 + <view class="userinfo-vip">
  69 + <text class="title">{{item.user.nickname}}</text>
  70 + <view class="VIP">
  71 + <image src="../../icons/vip.png"></image>
  72 + {{item.user.level.name1}}
  73 + </view>
  74 + </view>
  75 + </view>
  76 + </view>
  77 + <!-- type -->
  78 + <view class="type-wrap" v-if="item.user.label.length!=0">
  79 + 帮工招聘求职
  80 + <text v-for="(item,index) in item.user.label" :key="index">{{item.name_label}}</text>
  81 +
  82 + </view>
  83 + <!-- content -->
  84 + <view class="release-text">
  85 + <view class="release-text-content">
  86 + <rich-text :nodes="item.content"></rich-text>
  87 + </view>
  88 +
  89 + <!-- <view class="imagebox">
  90 + <image src="../../icons/banner.png" mode=""></image>
  91 + <image :src="item" mode="widthFix" v-for="(item,index) in tiezidetail.images" :key="index"/>
  92 +
  93 + </view> -->
  94 + </view>
  95 + <!-- 点赞, 人数 -->
  96 + <view class="thumbs-number">
  97 + <view class="thumbs" @click="dianzan(item,index)">
  98 + <image src="../../icons/thumbs1.png" v-if="item.is_praise==2"></image>
  99 + <image src="../../static/tiezan.png" mode="" v-else></image>
  100 + {{item.praise}}
  101 + </view>
  102 + <!-- <view class="number">
  103 + <image src="../../icons/number.png"></image>
  104 + {{item.view}}
  105 + </view> -->
  106 + </view>
  107 + </view>
  108 + </view>
94 </view> 109 </view>
95 <!-- footer --> 110 <!-- footer -->
96 <view class="footer"> 111 <view class="footer">
97 - <view class="search">  
98 - <input type="text" confirm-type="send" placeholder-class="placeholder" placeholder="写点什么..."/>  
99 - <view class="search-btn">  
100 - <image src="../../static/write.png"/>  
101 -  
102 - </view>  
103 - </view>  
104 - </view>  
105 -  
106 - 112 + <view class="search">
  113 + <input type="text" confirm-type="send" class="shuru" placeholder-class="placeholder" @input="entercomment" placeholder="写点什么..." />
  114 + <!-- <view class="search-btn">
  115 + <image src="../../static/write.png" />
107 116
  117 + </view> -->
  118 + <view class='sendname' @click="sendcomment">发送</view>
  119 + </view>
  120 + </view>
108 </view> 121 </view>
109 </template> 122 </template>
110 123
111 <script> 124 <script>
112 import app from "../../App.vue"; 125 import app from "../../App.vue";
113 - export default {  
114 - data() {  
115 - return {  
116 - showbanben: false  
117 - }  
118 - },  
119 - onLoad() {  
120 -  
121 -  
122 -  
123 - },  
124 - methods: {  
125 - tiezifu(){  
126 - uni.navigateTo({  
127 - url:'./luntandetailsecond'  
128 - })  
129 - }  
130 -  
131 - }  
132 -  
133 - } 126 + export default {
  127 + data() {
  128 + return {
  129 + showbanben: false,
  130 + forum_id: '',
  131 + page: 1,
  132 + tiezidetail: '',
  133 + commentlist:[],
  134 + comment:'',
  135 + level:'',
  136 + user:'',
  137 + label:''
  138 + }
  139 + },
  140 + onLoad(options) {
  141 + this.forum_id = options.id;
  142 + this.getformdetail();
  143 + this.getcommentlist()
  144 + },
  145 + methods: {
  146 + // 获取帖子详情
  147 + getformdetail() {
  148 + let that = this;
  149 + var url = 'forum/get_forum_detail';
  150 + var params = {
  151 + forum_id: that.forum_id
  152 + }
  153 + console.log('参数', params)
  154 + app.post(url, params).then((res) => {
  155 + console.log(res);
  156 + that.tiezidetail = res.data.data;
  157 + that.user=res.data.data.user;
  158 + that.level=res.data.data.user.level;
  159 + that.label=res.data.data.user.label;
  160 +
  161 + }).catch((err) => {
  162 + console.log(err)
  163 +
  164 + })
  165 + },
  166 +
  167 + // 帖子详情点赞
  168 + tiezizan(){
  169 + let that=this;
  170 + if(that.tiezidetail.is_praise==2){
  171 + that.tiezidetail.is_praise=1;
  172 + that.tiezidetail.praise=that.tiezidetail.praise+1;
  173 +
  174 + uni.showToast({
  175 + title:"点赞成功",
  176 + icon:'none'
  177 + })
  178 + }else{
  179 + that.tiezidetail.is_praise=2;
  180 + that.tiezidetail.praise=that.tiezidetail.praise-1;
  181 +
  182 + uni.showToast({
  183 + title:"取消点赞成功",
  184 + icon:'none'
  185 + })
  186 + }
  187 +
  188 + that.tiezidetail=that.tiezidetail
  189 + var url = 'forum/praise';
  190 + var params = {
  191 + forum_id:that.forum_id
  192 + }
  193 + console.log('参数', params)
  194 + app.post(url, params).then((res) => {
  195 +
  196 +
  197 + }).catch((err) => {
  198 + console.log(err)
  199 +
  200 + })
  201 + },
  202 + // 获取评论列表
  203 + getcommentlist() {
  204 + let that = this;
  205 + var url = 'comments/get_comments';
  206 + var params = {
  207 + forum_id: that.forum_id,
  208 + page: that.page,
  209 + pageNum: 10
  210 + }
  211 + console.log('参数', params)
  212 + app.post(url, params).then((res) => {
  213 + console.log(res);
  214 + this.commentlist=this.commentlist.concat(res.data.data)
  215 +
  216 + }).catch((err) => {
  217 + console.log(err)
  218 +
  219 + })
  220 + },
  221 +
  222 + // 评论列表点赞
  223 + dianzan(item,index){
  224 + let that=this;
  225 + console.log(item,index)
  226 + if(this.commentlist[index].is_praise==2){
  227 + uni.showToast({
  228 + title:'点赞成功',
  229 + icon:'none'
  230 + })
  231 + this.commentlist[index].is_praise=1
  232 + this.commentlist[index].praise=this.commentlist[index].praise+1
  233 + }else{
  234 + this.commentlist[index].is_praise=2;
  235 + this.commentlist[index].praise=this.commentlist[index].praise-1
  236 + uni.showToast({
  237 + title:'取消点赞成功',
  238 + icon:'none'
  239 + })
  240 + }
  241 + this.commentlist=this.commentlist
  242 +
  243 + var url = 'comments/praise';
  244 + var params = {
  245 + comments_id:item.id
  246 + }
  247 + console.log('参数', params)
  248 + app.post(url, params).then((res) => {
  249 +
  250 +
  251 + }).catch((err) => {
  252 + console.log(err)
  253 +
  254 + })
  255 +
  256 + },
  257 +
  258 + dian(){
  259 + let that = this;
  260 + var url = 'comments/get_comments';
  261 + var params = {
  262 + forum_id: that.forum_id,
  263 + page: that.page,
  264 + pageNum: 10
  265 + }
  266 + console.log('参数', params)
  267 + app.post(url, params).then((res) => {
  268 + console.log(res);
  269 + this.commentlist=this.commentlist.concat(res.data.data)
  270 +
  271 + }).catch((err) => {
  272 + console.log(err)
  273 +
  274 + })
  275 + },
  276 + tiezifu() {
  277 + uni.navigateTo({
  278 + url: './luntandetailsecond'
  279 + })
  280 + },
  281 + // 输入评论
  282 + entercomment(e){
  283 + this.comment=e.detail.value;
  284 + },
  285 +
  286 + // 发送评论
  287 + sendcomment(){
  288 + let that = this;
  289 + var url = 'comments/publish_comments';
  290 + var params = {
  291 + forum_id: that.forum_id,
  292 + content:that.comment
  293 +
  294 + }
  295 + console.log('参数', params)
  296 + app.post(url, params).then((res) => {
  297 + console.log(res);
  298 + uni.showToast({
  299 + title:'评论成功',
  300 + icon:'none'
  301 + })
  302 + that.page=1;
  303 + that.commentlist=[];
  304 + that.getcommentlist()
  305 +
  306 +
  307 + }).catch((err) => {
  308 + console.log(err)
  309 +
  310 + })
  311 + },
  312 +
  313 +
  314 + },
  315 + onReachBottom() {
  316 + let newpage=this.page;
  317 + newpage++;
  318 + this.page=newpage;
  319 + this.getcommentlist()
  320 + }
  321 +
  322 + }
134 </script> 323 </script>
135 324
136 <style> 325 <style>
137 page { 326 page {
138 - background: #f9f9f9; 327 + background: #f9f9f9;
  328 + }
  329 + .sendname{
  330 + color:#C29445;
  331 + font-size: 28rpx;
  332 + margin-left:10rpx;
139 } 333 }
  334 +
  335 + .imagebox{
  336 + margin-top:16rpx;
  337 + }
  338 + .imagebox image{
  339 + width:686rpx;
  340 + height:280rpx;
  341 + }
  342 + .shuru {
  343 + font-size: 24rpx;
  344 + color: #BDC4CE;
  345 + }
  346 +
140 .posts-details-wrap { 347 .posts-details-wrap {
141 - margin-top: 20rpx;  
142 - padding-bottom: 92rpx; 348 + margin-top: 20rpx;
  349 + padding-bottom: 92rpx;
143 } 350 }
  351 +
144 .posts-details-wrap .release-text-title { 352 .posts-details-wrap .release-text-title {
145 - font-size: 32rpx;  
146 - color: #061220;  
147 - font-weight: bold;  
148 - overflow: hidden;  
149 - text-overflow: ellipsis;  
150 - white-space: nowrap;  
151 - padding: 32rpx;  
152 - padding-bottom: 0;  
153 - background: #fff; 353 + font-size: 32rpx;
  354 + color: #061220;
  355 + font-weight: bold;
  356 + overflow: hidden;
  357 + text-overflow: ellipsis;
  358 + white-space: nowrap;
  359 + padding: 32rpx;
  360 + padding-bottom: 0;
  361 + background: #fff;
154 } 362 }
  363 +
155 .new-release-content { 364 .new-release-content {
156 - padding: 32rpx;  
157 - background: #fff;  
158 - margin-bottom: 20rpx; 365 + padding: 32rpx;
  366 + background: #fff;
  367 + margin-bottom: 20rpx;
159 } 368 }
  369 +
160 .new-release-content .userinfo-wrap { 370 .new-release-content .userinfo-wrap {
161 - display: flex;  
162 - justify-content: flex-start;  
163 - align-items: center;  
164 - margin-bottom: 16rpx; 371 + display: flex;
  372 + justify-content: flex-start;
  373 + align-items: center;
  374 + margin-bottom: 16rpx;
165 } 375 }
  376 +
166 .new-release-content .userinfo-wrap image { 377 .new-release-content .userinfo-wrap image {
167 - width: 64rpx;  
168 - height: 64rpx; 378 + width: 64rpx;
  379 + height: 64rpx;
169 } 380 }
  381 +
170 .new-release-content .userinfo-wrap .userinfo { 382 .new-release-content .userinfo-wrap .userinfo {
171 - display: flex;  
172 - flex-direction: column; 383 + display: flex;
  384 + flex-direction: column;
173 } 385 }
  386 +
174 .new-release-content .userinfo-wrap .userinfo-vip { 387 .new-release-content .userinfo-wrap .userinfo-vip {
175 - display: flex;  
176 - justify-content: flex-start;  
177 - align-items: center; 388 + display: flex;
  389 + justify-content: flex-start;
  390 + align-items: center;
178 } 391 }
  392 +
179 .new-release-content .userinfo-wrap .userinfo-vip .title { 393 .new-release-content .userinfo-wrap .userinfo-vip .title {
180 - font-size: 28rpx;  
181 - padding: 0 20rpx;  
182 - color: #061220;  
183 - font-weight: bold; 394 + font-size: 28rpx;
  395 + padding: 0 20rpx;
  396 + color: #061220;
  397 + font-weight: bold;
184 } 398 }
  399 +
185 .new-release-content .userinfo-wrap .userinfo-vip .VIP { 400 .new-release-content .userinfo-wrap .userinfo-vip .VIP {
186 - width: 100rpx;  
187 - height: 40rpx;  
188 - background: linear-gradient(90deg, #f4d297 0%, #fcbf75 100%);  
189 - color: #784700;  
190 - display: flex;  
191 - justify-content: center;  
192 - align-items: center;  
193 - font-size: 22rpx;  
194 - border-radius: 50rpx; 401 + width: 100rpx;
  402 + height: 40rpx;
  403 + background: linear-gradient(90deg, #f4d297 0%, #fcbf75 100%);
  404 + color: #784700;
  405 + display: flex;
  406 + justify-content: center;
  407 + align-items: center;
  408 + font-size: 22rpx;
  409 + border-radius: 50rpx;
195 } 410 }
  411 +
196 .new-release-content .userinfo-wrap .userinfo-vip .VIP image { 412 .new-release-content .userinfo-wrap .userinfo-vip .VIP image {
197 - width: 24rpx;  
198 - height: 20rpx; 413 + width: 24rpx;
  414 + height: 20rpx;
199 } 415 }
  416 +
200 .new-release-content .userinfo-wrap .time { 417 .new-release-content .userinfo-wrap .time {
201 - color: #BDC4CE;  
202 - font-size: 20rpx;  
203 - padding-left: 20rpx; 418 + color: #BDC4CE;
  419 + font-size: 20rpx;
  420 + padding-left: 20rpx;
204 } 421 }
  422 +
205 .new-release-content .type-wrap { 423 .new-release-content .type-wrap {
206 - color: #BDC4CE;  
207 - font-size: 28rpx;  
208 - display: flex;  
209 - justify-content: flex-start;  
210 - align-items: center;  
211 - margin-bottom: 16rpx; 424 + color: #BDC4CE;
  425 + font-size: 28rpx;
  426 + display: flex;
  427 + justify-content: flex-start;
  428 + align-items: center;
  429 + margin-bottom: 16rpx;
212 } 430 }
  431 +
213 .new-release-content .type-wrap text:nth-child(1) { 432 .new-release-content .type-wrap text:nth-child(1) {
214 - margin-left: 16rpx; 433 + margin-left: 16rpx;
215 } 434 }
  435 +
216 .new-release-content .type-wrap text { 436 .new-release-content .type-wrap text {
217 - margin-right: 16rpx;  
218 - text-align: center;  
219 - color: #C29445;  
220 - font-size: 22rpx;  
221 - border-radius: 50rpx;  
222 - border: 1px solid #EEEEEE;  
223 - padding: 5rpx 20rpx; 437 + margin-right: 16rpx;
  438 + text-align: center;
  439 + color: #C29445;
  440 + font-size: 22rpx;
  441 + border-radius: 50rpx;
  442 + border: 1px solid #EEEEEE;
  443 + padding: 5rpx 20rpx;
224 } 444 }
  445 +
225 .new-release-content .release-text .release-text-content { 446 .new-release-content .release-text .release-text-content {
226 - font-size: 28rpx;  
227 - color: #3C444C;  
228 - box-sizing: border-box; 447 + font-size: 28rpx;
  448 + color: #3C444C;
  449 + box-sizing: border-box;
229 } 450 }
  451 +
230 .new-release-content .release-text .release-text-content image { 452 .new-release-content .release-text .release-text-content image {
231 - margin-top: 16rpx; 453 + margin-top: 16rpx;
232 } 454 }
  455 +
233 .new-release-content .thumbs-number { 456 .new-release-content .thumbs-number {
234 - display: flex;  
235 - justify-content: flex-end;  
236 - align-items: center;  
237 - padding-top: 10rpx; 457 + display: flex;
  458 + justify-content: flex-end;
  459 + align-items: center;
  460 + padding-top: 10rpx;
238 } 461 }
  462 +
239 .new-release-content .thumbs-number .thumbs { 463 .new-release-content .thumbs-number .thumbs {
240 - margin-right: 16rpx; 464 + margin-right: 16rpx;
241 } 465 }
  466 +
242 .new-release-content .thumbs-number .thumbs, 467 .new-release-content .thumbs-number .thumbs,
243 .new-release-content .thumbs-number .number { 468 .new-release-content .thumbs-number .number {
244 - color: #5B5E64;  
245 - font-size: 28rpx;  
246 - display: flex;  
247 - align-items: center; 469 + color: #5B5E64;
  470 + font-size: 28rpx;
  471 + display: flex;
  472 + align-items: center;
248 } 473 }
  474 +
249 .new-release-content .thumbs-number .thumbs image, 475 .new-release-content .thumbs-number .thumbs image,
250 .new-release-content .thumbs-number .number image { 476 .new-release-content .thumbs-number .number image {
251 - width: 28rpx;  
252 - height: 28rpx;  
253 - margin-right: 8rpx; 477 + width: 28rpx;
  478 + height: 28rpx;
  479 + margin-right: 8rpx;
254 } 480 }
  481 +
255 .footer { 482 .footer {
256 - width: 100vw;  
257 - position: fixed;  
258 - bottom: 0;  
259 - left: 0;  
260 - z-index: 1000;  
261 - padding: 14rpx 0;  
262 - background: #fff; 483 + width: 100vw;
  484 + position: fixed;
  485 + bottom: 0;
  486 + left: 0;
  487 + z-index: 1000;
  488 + padding: 14rpx 0;
  489 + background: #fff;
263 } 490 }
  491 +
264 .footer .search { 492 .footer .search {
265 - padding: 0 32rpx;  
266 - display: flex;  
267 - justify-content: flex-start;  
268 - align-items: center;  
269 - z-index: 1000; 493 + padding: 0 32rpx;
  494 + display: flex;
  495 + justify-content: flex-start;
  496 + align-items: center;
  497 + z-index: 1000;
270 } 498 }
  499 +
271 .footer .search .placeholder { 500 .footer .search .placeholder {
272 - font-size: 24rpx;  
273 - color: #BDC4CE; 501 + font-size: 24rpx;
  502 + color: #BDC4CE;
274 } 503 }
  504 +
275 .footer .search input { 505 .footer .search input {
276 - height: 60rpx;  
277 - width: 80vw;  
278 - border: 1px solid #eee;  
279 - background: #F9F9F9;  
280 - border-radius: 50px;  
281 - padding-left: 20rpx; 506 + height: 60rpx;
  507 + width: 80vw;
  508 + border: 1px solid #eee;
  509 + background: #F9F9F9;
  510 + border-radius: 50px;
  511 + padding-left: 20rpx;
282 } 512 }
  513 +
283 .footer .search .search-btn { 514 .footer .search .search-btn {
284 - margin-left: 28rpx; 515 + margin-left: 28rpx;
285 } 516 }
  517 +
286 .footer .search .search-btn image { 518 .footer .search .search-btn image {
287 - width: 44rpx;  
288 - height: 44rpx; 519 + width: 44rpx;
  520 + height: 44rpx;
289 } 521 }
290 -  
291 </style> 522 </style>
@@ -7,25 +7,34 @@ @@ -7,25 +7,34 @@
7 <view class="searchimg"> 7 <view class="searchimg">
8 <image src="../../static/search.png" mode=""></image> 8 <image src="../../static/search.png" mode=""></image>
9 </view> 9 </view>
10 - <input type="text" confirm-type="search" placeholder-class="placeholder" placeholder="请输入关键词搜索" />  
11 - <view class="search-btn"> 10 + <input type="text" confirm-type="search" placeholder-class="placeholder" placeholder="请输入关键词搜索" @confirm="finish"
  11 + @input="enterword" />
  12 + <!-- <view class="search-btn">
12 北京 13 北京
13 <image src="../../static/huixia.png" /> 14 <image src="../../static/huixia.png" />
14 - </view> 15 + </view> -->
  16 +
  17 + <picker @change="bindproChange" :value="index" :range="provincelist" range-key="name">
  18 + <!-- <view class="uni-input">{{array[index]}}</view> -->
  19 + <view class="proselect flexthree">
  20 + <text class="proname">{{provincename}}</text>
  21 + <image class="down-ico" src="../../static/huixia.png" />
  22 + </view>
  23 + </picker>
15 </view> 24 </view>
16 <!-- nav --> 25 <!-- nav -->
17 <view class="nav-menus"> 26 <view class="nav-menus">
18 <scroll-view class="nav-menu" scroll-x="true"> 27 <scroll-view class="nav-menu" scroll-x="true">
19 - <view class="active"> 28 + <view :class="kindtype=='1'?'active':''" @click="kindchange" :data-id="1">
20 帮工招聘求职 29 帮工招聘求职
21 </view> 30 </view>
22 - <view> 31 + <view :class="kindtype=='2'?'active':''" @click="kindchange" :data-id="2">
23 面坊转让求购 32 面坊转让求购
24 </view> 33 </view>
25 - <view> 34 + <view :class="kindtype=='3'?'active':''" @click="kindchange" :data-id="3">
26 征婚交友 35 征婚交友
27 </view> 36 </view>
28 - <view> 37 + <view :class="kindtype=='4'?'active':''" @click="kindchange" :data-id="4">
29 中面集团 38 中面集团
30 </view> 39 </view>
31 </scroll-view> 40 </scroll-view>
@@ -34,123 +43,47 @@ @@ -34,123 +43,47 @@
34 <!-- 列表 --> 43 <!-- 列表 -->
35 <view class="list"> 44 <view class="list">
36 <!-- content --> 45 <!-- content -->
37 - <view class="new-release-content" @click="luntandetail">  
38 - <!-- 头像,名称,等级 -->  
39 - <view class="userinfo-wrap">  
40 - <image src="../../icons/nav2.png"></image>  
41 - <text class="title">我是用户昵称</text>  
42 - <view class="VIP">  
43 - <image src="../../icons/vip.png"></image>  
44 - VIP5  
45 - </view>  
46 - </view>  
47 - <!-- type -->  
48 - <view class="type-wrap">  
49 - 帮工招聘求职  
50 - <text>帮工</text>  
51 - <text>配送员</text>  
52 - <text>销售员</text>  
53 - </view>  
54 - <!-- content -->  
55 - <view class="release-text">  
56 - <view class="release-text-title">  
57 - 帖子标题帖子标题帖子标题帖子标题帖子帖子  
58 - </view>  
59 - <view class="release-text-content">  
60 - 帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容...  
61 - </view>  
62 - </view>  
63 - <!-- 点赞, 人数 -->  
64 - <view class="thumbs-number">  
65 - <view class="thumbs">  
66 - <image src="../../icons/thumbs.png"></image>  
67 - 399  
68 - </view>  
69 - <view class="number">  
70 - <image src="../../icons/number.png"></image>  
71 - 399  
72 - </view>  
73 - </view>  
74 - </view>  
75 - <view class="new-release-content"> 46 + <view class="new-release-content" v-for="(item,index) in luntanlist" :key="index" @click="luntandetail(item)">
76 <!-- 头像,名称,等级 --> 47 <!-- 头像,名称,等级 -->
77 <view class="userinfo-wrap"> 48 <view class="userinfo-wrap">
78 - <image src="../../icons/nav2.png"></image>  
79 - <text class="title">我是用户昵称</text> 49 + <image :src="item.user.avatar"></image>
  50 + <text class="title">{{item.user.nickname}}</text>
80 <view class="VIP"> 51 <view class="VIP">
81 <image src="../../icons/vip.png"></image> 52 <image src="../../icons/vip.png"></image>
82 - VIP5 53 + {{item.user.level.name1}}
83 </view> 54 </view>
84 </view> 55 </view>
85 <!-- type --> 56 <!-- type -->
86 <view class="type-wrap"> 57 <view class="type-wrap">
87 帮工招聘求职 58 帮工招聘求职
88 - <text>帮工</text>  
89 - <text>配送员</text>  
90 - <text>销售员</text> 59 + <text v-for="(item,index) in item.user.label" :key="index">{{item.name_label}}</text>
  60 + <!-- <text>配送员</text>
  61 + <text>销售员</text> -->
91 </view> 62 </view>
92 <!-- content --> 63 <!-- content -->
93 <view class="release-text"> 64 <view class="release-text">
94 <view class="release-text-title"> 65 <view class="release-text-title">
95 - 帖子标题帖子标题帖子标题帖子标题帖子帖子 66 + {{item.title}}
96 </view> 67 </view>
97 <view class="release-text-content"> 68 <view class="release-text-content">
98 - 帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容... 69 + <rich-text :nodes="item.content"></rich-text>
99 </view> 70 </view>
100 </view> 71 </view>
101 <!-- 点赞, 人数 --> 72 <!-- 点赞, 人数 -->
102 - <view class="thumbs-number"> 73 + <view class="thumbs-number" @click.stop="praisedian(item,index)">
103 <view class="thumbs"> 74 <view class="thumbs">
104 - <image src="../../icons/thumbs1.png"></image>  
105 - 399 75 + <image src="../../static/tienozan.png" v-if="item.is_praise==2"></image>
  76 + <image src="../../static/tiezan.png" v-else></image>
  77 + {{item.praise}}
106 </view> 78 </view>
107 <view class="number"> 79 <view class="number">
108 <image src="../../icons/number.png"></image> 80 <image src="../../icons/number.png"></image>
109 - 399  
110 - </view>  
111 - </view>  
112 - </view>  
113 - <view class="new-release-content">  
114 - <!-- 头像,名称,等级 -->  
115 - <view class="userinfo-wrap">  
116 - <image src="../../icons/nav2.png"></image>  
117 - <text class="title">我是用户昵称</text>  
118 - <view class="VIP">  
119 - <image src="../../icons/vip.png"></image>  
120 - VIP5  
121 - </view>  
122 - </view>  
123 - <!-- type -->  
124 - <view class="type-wrap">  
125 - 帮工招聘求职  
126 - <text>帮工</text>  
127 - <text>配送员</text>  
128 - <text>销售员</text>  
129 - </view>  
130 - <!-- content -->  
131 - <view class="release-text">  
132 - <view class="release-text-title">  
133 - 帖子标题帖子标题帖子标题帖子标题帖子帖子  
134 - </view>  
135 - <view class="release-text-content">  
136 - 帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容  
137 - <image src="../../icons/banner.png" mode="widthFix" />  
138 - <image src="../../icons/banner.png" mode="widthFix" />  
139 - <image src="../../icons/banner.png" mode="widthFix" />  
140 - </view>  
141 - </view>  
142 - <!-- 点赞, 人数 -->  
143 - <view class="thumbs-number">  
144 - <view class="thumbs">  
145 - <image src="../../icons/thumbs1.png"></image>  
146 - 399  
147 - </view>  
148 - <view class="number">  
149 - <image src="../../icons/number.png"></image>  
150 - 399 81 + {{item.view}}
151 </view> 82 </view>
152 </view> 83 </view>
153 </view> 84 </view>
  85 +
  86 +
154 </view> 87 </view>
155 </view> 88 </view>
156 89
@@ -164,19 +97,131 @@ @@ -164,19 +97,131 @@
164 export default { 97 export default {
165 data() { 98 data() {
166 return { 99 return {
167 - showbanben: false 100 + showbanben: false,
  101 + kindtype: '',
  102 + provincelist: [],
  103 + province_id:'',
  104 + provincename: '',
  105 + index: 0,
  106 + keyword: '',
  107 + luntanlist: []
168 } 108 }
169 }, 109 },
170 - onLoad() { 110 + onLoad(options) {
  111 + this.kindtype = options.id;
  112 + this.getprovincelist()
  113 + },
  114 + methods: {
  115 + kindchange(e) {
  116 + this.kindtype = e.currentTarget.dataset.id;
  117 + this.page = 1;
  118 + this.luntanlist = [];
  119 + this.getluntanlist()
  120 + },
171 121
  122 + // 输入完成
  123 + finish() {
  124 + this.page = 1;
  125 + this.luntanlist = [];
  126 + // this.getluntanlist()
  127 + },
172 128
  129 + // 输入关键字
  130 + enterword(e) {
  131 + this.keyword = e.detail.value
  132 + },
173 133
174 - },  
175 - methods: { 134 + // 获取省份列表
  135 + getprovincelist() {
  136 + let that = this;
  137 + var url = 'forum/get_province';
  138 + var params = {
  139 + is_forum_hot: ''
  140 + }
  141 + console.log('7766554', params)
  142 + app.post(url, params).then((res) => {
  143 + console.log(res);
  144 + that.provincelist = res.data.data;
  145 + this.provincename = res.data.data[0].name;
  146 + that.province_id = res.data.data[0].id;
  147 + // 获取论坛列表
  148 + this.getluntanlist()
  149 +
  150 + }).catch((err) => {
  151 +
  152 + })
  153 + },
  154 + bindproChange(e) {
  155 + this.index = e.target.value;
  156 + this.provincename = this.provincelist[e.target.value].name;
  157 + this.province_id = this.provincelist[e.target.value].id;
  158 + this.page = 1;
  159 + this.luntanlist = [];
  160 + // 获取论坛列表
  161 + this.getluntanlist();
  162 + },
176 163
177 - luntandetail() { 164 + // 获取论坛列表
  165 + getluntanlist() {
  166 + let that = this;
  167 + var url = 'forum/get_forum';
  168 + var params = {
  169 + keyword: that.keyword,
  170 + province_id: that.province_id,
  171 + type: that.kindtype,
  172 + page: that.page,
  173 + pageNum: 10
  174 + }
  175 + console.log('参数', params)
  176 + app.post(url, params).then((res) => {
  177 + console.log(res);
  178 + that.luntanlist = that.luntanlist.concat(res.data.data);
  179 + console.log('9999', this.luntanlist)
  180 +
  181 +
  182 + }).catch((err) => {
  183 + console.log(err)
  184 +
  185 + })
  186 + },
  187 + praisedian(item,index){
  188 + let that = this;
  189 + if(that.luntanlist[index].is_praise==2){
  190 + uni.showToast({
  191 + title:'点赞成功',
  192 + icon:'none'
  193 + })
  194 + that.luntanlist[index].is_praise=1;
  195 + that.luntanlist[index].praise=that.luntanlist[index].praise+1
  196 + }else{
  197 + uni.showToast({
  198 + title:'取消点赞成功',
  199 + icon:'none'
  200 + })
  201 + that.luntanlist[index].is_praise=2;
  202 + that.luntanlist[index].praise=that.luntanlist[index].praise-1
  203 + }
  204 +
  205 + that.luntanlist=that.luntanlist;
  206 +
  207 + var url = 'forum/praise';
  208 + var params = {
  209 + forum_id:item.id
  210 + }
  211 + console.log('参数',params)
  212 + app.post(url, params).then((res) => {
  213 + console.log(res);
  214 +
  215 +
  216 +
  217 + }).catch((err) => {
  218 + console.log(err)
  219 +
  220 + })
  221 + },
  222 + luntandetail(item) {
178 uni.navigateTo({ 223 uni.navigateTo({
179 - url:'./luntandetail' 224 + url:'/pages/luntan/luntandetail?id='+item.id
180 }) 225 })
181 } 226 }
182 } 227 }
@@ -193,6 +238,16 @@ @@ -193,6 +238,16 @@
193 position: relative; 238 position: relative;
194 } 239 }
195 240
  241 + .proname {
  242 + color: #BDC4CE;
  243 + font-size: 24rpx;
  244 + }
  245 +
  246 + .down-ico {
  247 + width: 16rpx;
  248 + height: 16rpx;
  249 + }
  250 +
196 .searchimg { 251 .searchimg {
197 width: 28rpx; 252 width: 28rpx;
198 height: 28rpx; 253 height: 28rpx;
@@ -3,13 +3,13 @@ @@ -3,13 +3,13 @@
3 <view class="personal-wrap"> 3 <view class="personal-wrap">
4 <!-- 头像,名称,等级 --> 4 <!-- 头像,名称,等级 -->
5 <view class="user-info"> 5 <view class="user-info">
6 - <image src="../../icons/nav2.png" /> 6 + <image :src="user.avatar" />
7 <view class="name-vip-type"> 7 <view class="name-vip-type">
8 <view class="name-vip"> 8 <view class="name-vip">
9 - <text class="title">我是用户昵称</text> 9 + <text class="title">{{user.nickname}}</text>
10 <view class="VIP"> 10 <view class="VIP">
11 <image src="../../icons/vip.png"></image> 11 <image src="../../icons/vip.png"></image>
12 - VIP5 12 + {{user.level.name1}}
13 </view> 13 </view>
14 </view> 14 </view>
15 <view class="type"> 15 <view class="type">
@@ -20,82 +20,51 @@ @@ -20,82 +20,51 @@
20 </view> 20 </view>
21 </view> 21 </view>
22 <!-- content --> 22 <!-- content -->
23 - <view class="new-release-content">  
24 - <!-- 头像,名称,等级 -->  
25 - <view class="userinfo-wrap">  
26 - <image src="../../icons/nav2.png"></image>  
27 - <text class="title">我是用户昵称</text>  
28 - <view class="VIP">  
29 - <image src="../../icons/vip.png"></image>  
30 - VIP5  
31 - </view>  
32 - </view>  
33 - <!-- type -->  
34 - <view class="type-wrap">  
35 - 帮工招聘求职  
36 - <text>帮工</text>  
37 - <text>配送员</text>  
38 - <text>销售员</text>  
39 - </view>  
40 - <!-- content -->  
41 - <view class="release-text">  
42 - <view class="release-text-title">  
43 - 帖子标题帖子标题帖子标题帖子标题帖子帖子  
44 - </view>  
45 - <view class="release-text-content">  
46 - 帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容...  
47 - </view>  
48 - </view>  
49 - <!-- 点赞, 人数 -->  
50 - <view class="thumbs-number">  
51 - <view class="thumbs">  
52 - <image src="../../icons/thumbs.png"></image>  
53 - 399  
54 - </view>  
55 - <view class="number">  
56 - <image src="../../icons/number.png"></image>  
57 - 399  
58 - </view>  
59 - </view>  
60 - </view>  
61 - <view class="new-release-content">  
62 - <!-- 头像,名称,等级 -->  
63 - <view class="userinfo-wrap">  
64 - <image src="../../icons/nav2.png"></image>  
65 - <text class="title">我是用户昵称</text>  
66 - <view class="VIP">  
67 - <image src="../../icons/vip.png"></image>  
68 - VIP5  
69 - </view>  
70 - </view>  
71 - <!-- type -->  
72 - <view class="type-wrap">  
73 - 帮工招聘求职  
74 - <text>帮工</text>  
75 - <text>配送员</text>  
76 - <text>销售员</text>  
77 - </view>  
78 - <!-- content -->  
79 - <view class="release-text">  
80 - <view class="release-text-title">  
81 - 帖子标题帖子标题帖子标题帖子标题帖子帖子 23 +
  24 + <view class="nodata" v-if="personlist.length==0">暂无数据</view>
  25 + <view v-else>
  26 + <view class="new-release-content" v-for="(item,index) in personlist" :key="index" @click="luntandetail(item)">
  27 + <!-- 头像,名称,等级 -->
  28 + <view class="userinfo-wrap">
  29 + <image :src="item.user.avatar"></image>
  30 + <text class="title">{{item.user.nickname}}</text>
  31 + <view class="VIP">
  32 + <image src="../../icons/vip.png"></image>
  33 + {{item.user.level.name1}}
  34 + </view>
82 </view> 35 </view>
83 - <view class="release-text-content">  
84 - 帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容... 36 + <!-- type -->
  37 + <view class="type-wrap">
  38 + 帮工招聘求职
  39 + <text>帮工</text>
  40 + <text>配送员</text>
  41 + <text>销售员</text>
85 </view> 42 </view>
86 - </view>  
87 - <!-- 点赞, 人数 -->  
88 - <view class="thumbs-number">  
89 - <view class="thumbs">  
90 - <image src="../../icons/thumbs1.png"></image>  
91 - 399 43 + <!-- content -->
  44 + <view class="release-text">
  45 + <view class="release-text-title">
  46 + {{item.title}}
  47 + </view>
  48 + <view class="release-text-content">
  49 + <rich-text :nodes="item.content"></rich-text>
  50 + </view>
92 </view> 51 </view>
93 - <view class="number">  
94 - <image src="../../icons/number.png"></image>  
95 - 399 52 + <!-- 点赞, 人数 -->
  53 + <view class="thumbs-number">
  54 + <view class="thumbs">
  55 + <image src="../../icons/thumbs.png"></image>
  56 + {{item.praise}}
  57 + </view>
  58 + <view class="number">
  59 + <image src="../../icons/number.png"></image>
  60 + {{item.view}}
  61 + </view>
96 </view> 62 </view>
97 </view> 63 </view>
  64 +
  65 +
98 </view> 66 </view>
  67 +
99 </view> 68 </view>
100 69
101 70
@@ -103,20 +72,44 @@ @@ -103,20 +72,44 @@
103 </template> 72 </template>
104 73
105 <script> 74 <script>
  75 + import app from "../../App.vue";
106 export default { 76 export default {
107 data() { 77 data() {
108 return { 78 return {
109 - showbanben: false 79 + showbanben: false,
  80 + user_id: '',
  81 + page: 1,
  82 + personlist: [],
  83 + user: ''
110 } 84 }
111 }, 85 },
112 - onLoad() {  
113 -  
114 -  
115 - 86 + onLoad(options) {
  87 + console.log(options)
  88 + this.user_id = options.userid;
  89 + this.user = JSON.parse(options.user);
  90 + console.log(this.user)
  91 + this.getpersonpage()
116 }, 92 },
117 methods: { 93 methods: {
118 hidebanben() { 94 hidebanben() {
119 - this.showbanben = false 95 + this.showbanben = false;
  96 +
  97 + },
  98 + // 获取个人主页
  99 + getpersonpage() {
  100 + let that = this;
  101 + let url = 'forum/get_user_forum';
  102 + var params = {
  103 + user_id: that.user_id,
  104 + page: that.page,
  105 + pageNum: 10
  106 + }
  107 + app.post(url, params).then((res) => {
  108 + console.log(res);
  109 + console.log(res.data.data.length)
  110 + that.personlist = that.personlist.concat(res.data.data);
  111 + console.log(that.personlist.length)
  112 + })
120 }, 113 },
121 // 更多 114 // 更多
122 goodkind() { 115 goodkind() {
@@ -141,7 +134,14 @@ @@ -141,7 +134,14 @@
141 uni.navigateTo({ 134 uni.navigateTo({
142 url: '/pages/homepage/miaosha' 135 url: '/pages/homepage/miaosha'
143 }) 136 })
144 - } 137 + },
  138 +
  139 + // 论坛详情
  140 + luntandetail(item){
  141 + uni.navigateTo({
  142 + url:'/pages/luntan/luntandetail?id='+item.id
  143 + })
  144 + },
145 } 145 }
146 146
147 } 147 }
@@ -152,6 +152,14 @@ @@ -152,6 +152,14 @@
152 background: #F9F9F9; 152 background: #F9F9F9;
153 } 153 }
154 154
  155 + .release-text-content {
  156 + height: 120rpx;
  157 + display: -webkit-box;
  158 + -webkit-box-orient: vertical;
  159 + -webkit-line-clamp: 3;
  160 + overflow: hidden;
  161 + }
  162 +
155 .personal-wrap .user-info { 163 .personal-wrap .user-info {
156 display: flex; 164 display: flex;
157 justify-content: flex-start; 165 justify-content: flex-start;
@@ -4,6 +4,7 @@ @@ -4,6 +4,7 @@
4 <image :src="goodtail.image" mode=""></image> 4 <image :src="goodtail.image" mode=""></image>
5 </view> 5 </view>
6 <view v-if="type==1"> 6 <view v-if="type==1">
  7 +
7 <view class="tailbox boxsizing" v-if="goodtail.is_seckill==2"> 8 <view class="tailbox boxsizing" v-if="goodtail.is_seckill==2">
8 <view class="tailname"> 9 <view class="tailname">
9 {{goodtail.name}} 10 {{goodtail.name}}
@@ -28,8 +29,8 @@ @@ -28,8 +29,8 @@
28 </view> 29 </view>
29 <view class="tailhezi flextwo"> 30 <view class="tailhezi flextwo">
30 <view class="tailhezileft flexone"> 31 <view class="tailhezileft flexone">
31 - <view class="saleprice">¥{{item.seckill_price}}</view>  
32 - <view class="oldprice">¥{{item.goods_price}}</view> 32 + <view class="saleprice">¥{{goodtail.seckill_price}}</view>
  33 + <view class="oldprice">¥{{goodtail.goods_price}}</view>
33 </view> 34 </view>
34 </view> 35 </view>
35 <view class='miaodu flextwo'> 36 <view class='miaodu flextwo'>
@@ -97,72 +98,78 @@ @@ -97,72 +98,78 @@
97 <rich-text :nodes="goodtail.content"></rich-text> 98 <rich-text :nodes="goodtail.content"></rich-text>
98 </view> 99 </view>
99 <view class="goodcomment" v-else> 100 <view class="goodcomment" v-else>
100 - <view class="goodcommentop flexone">  
101 - <view class="topitem" @click="commenttype" :data-id="0">全部(60万)</view>  
102 - <view class="topitem" @click="commenttype" :data-id="1">好评(16万)</view>  
103 - <view class="topitem" @click="commenttype" :data-id="2">中评(10万)</view>  
104 - <view class="topitem" @click="commenttype" :data-id="3">差评(600)</view>  
105 - </view>  
106 - <view class="commentlist">  
107 - <view class="jianintro photobox" bindtap="comdetail">  
108 - <view class="comtop flextwo">  
109 - <view class="comleft">  
110 - <image src="../../static/userpic.png"></image>  
111 - </view>  
112 - <view class="comright">  
113 -  
114 - <view class="comrtop">  
115 - <view class="usertop flextwo">  
116 - <view class="comrname">皖湘情</view>  
117 - <view class="comdate">2019年10月12日</view>  
118 - </view>  
119 - <view class="star starone flexone">  
120 - <view class="staritem">  
121 - <image src="../../static/starredk.png"></image>  
122 - </view>  
123 - <view class="staritem">  
124 - <image src="../../static/starredk.png"></image>  
125 - </view>  
126 - <view class="staritem">  
127 - <image src="../../static/starredk.png"></image>  
128 - </view>  
129 - <view class="staritem">  
130 - <image src="../../static/starredk.png"></image>  
131 - </view>  
132 - <view class="staritem">  
133 - <image src="../../static/starredk.png"></image> 101 + <view class="nodata" v-if="commentlist.length==0">暂无评论</view>
  102 + <view v-else>
  103 + <view class="goodcommentop flexone" >
  104 + <view class="topitem" @click="commenttype" :data-id="0">全部({{total}})</view>
  105 + <view class="topitem" @click="commenttype" :data-id="1">好评({{total1}})</view>
  106 + <view class="topitem" @click="commenttype" :data-id="2">中评({{total2}})</view>
  107 + <view class="topitem" @click="commenttype" :data-id="3">差评({{total3}})</view>
  108 + </view>
  109 + <view class="commentlist">
  110 + <view class="jianintro photobox" bindtap="comdetail">
  111 + <view class="comtop flextwo">
  112 + <view class="comleft">
  113 + <image src="../../static/userpic.png"></image>
  114 + </view>
  115 + <view class="comright">
  116 +
  117 + <view class="comrtop">
  118 + <view class="usertop flextwo">
  119 + <view class="comrname">皖湘情</view>
  120 + <view class="comdate">2019年10月12日</view>
134 </view> 121 </view>
135 - <view class="staritem">  
136 - <image src="../../static/starred.png"></image> 122 + <view class="star starone flexone">
  123 + <view class="staritem">
  124 + <image src="../../static/starredk.png"></image>
  125 + </view>
  126 + <view class="staritem">
  127 + <image src="../../static/starredk.png"></image>
  128 + </view>
  129 + <view class="staritem">
  130 + <image src="../../static/starredk.png"></image>
  131 + </view>
  132 + <view class="staritem">
  133 + <image src="../../static/starredk.png"></image>
  134 + </view>
  135 + <view class="staritem">
  136 + <image src="../../static/starredk.png"></image>
  137 + </view>
  138 + <view class="staritem">
  139 + <image src="../../static/starred.png"></image>
  140 + </view>
137 </view> 141 </view>
  142 +
138 </view> 143 </view>
139 -  
140 </view> 144 </view>
141 </view> 145 </view>
142 - </view>  
143 - <view class="commenttext">  
144 - 太给力了!!要加紧学习了啊太给力了!!要加紧学习了啊太给力了!!要加紧学习了啊  
145 - </view>  
146 - <view class="commentimg flexone">  
147 - <view class="commentimgitem">  
148 - <image src="../../static/shop.png" mode=""></image>  
149 - </view>  
150 - <view class="commentimgitem">  
151 - <image src="../../static/shop.png" mode=""></image> 146 + <view class="commenttext">
  147 + 太给力了!!要加紧学习了啊太给力了!!要加紧学习了啊太给力了!!要加紧学习了啊
152 </view> 148 </view>
153 - <view class="commentimgitem">  
154 - <image src="../../static/shop.png" mode=""></image> 149 + <view class="commentimg flexone">
  150 + <view class="commentimgitem">
  151 + <image src="../../static/shop.png" mode=""></image>
  152 + </view>
  153 + <view class="commentimgitem">
  154 + <image src="../../static/shop.png" mode=""></image>
  155 + </view>
  156 + <view class="commentimgitem">
  157 + <image src="../../static/shop.png" mode=""></image>
  158 + </view>
155 </view> 159 </view>
156 </view> 160 </view>
157 </view> 161 </view>
  162 +
158 </view> 163 </view>
  164 +
  165 +
159 </view> 166 </view>
160 <!-- 底部购物车 --> 167 <!-- 底部购物车 -->
161 <view class='cartbot flextwo'> 168 <view class='cartbot flextwo'>
162 <view class='cartbotleft'> 169 <view class='cartbotleft'>
163 <view class='cartimg'> 170 <view class='cartimg'>
164 <image src="../../static/cartche.png" mode=""></image> 171 <image src="../../static/cartche.png" mode=""></image>
165 - <view class="cartnum">32</view> 172 + <view class="cartnum">{{carttotal}}</view>
166 </view> 173 </view>
167 174
168 </view> 175 </view>
@@ -252,10 +259,15 @@ @@ -252,10 +259,15 @@
252 addtype: '', //1 加入购物车 2立即购买 259 addtype: '', //1 加入购物车 2立即购买
253 cartnumber: 1, 260 cartnumber: 1,
254 arr: [], 261 arr: [],
255 - page:1,  
256 - star_type:'', 262 + page: 1,
  263 + star_type: '',
257 // 评论列表 264 // 评论列表
258 - commentlist:[] 265 + commentlist: [],
  266 + total:'',
  267 + total1:'',
  268 + total2:'',
  269 + total3:'',
  270 + carttotal:''
259 271
260 } 272 }
261 }, 273 },
@@ -270,20 +282,42 @@ @@ -270,20 +282,42 @@
270 } else { 282 } else {
271 this.getshopgoodtail() 283 this.getshopgoodtail()
272 } 284 }
  285 +
  286 + // 获取购物车气泡
  287 + this.getcartnum()
273 288
274 }, 289 },
275 methods: { 290 methods: {
  291 +
  292 + // 获取购物车气泡
  293 + getcartnum(){
  294 + let that = this;
  295 + var url = 'car/bubble';
  296 + var params = {
  297 +
  298 + }
  299 + app.post(url, params).then((res) => {
  300 + console.log(res);
  301 + this.carttotal=res.data.data.total
  302 +
  303 +
  304 +
  305 + }).catch((err) => {
  306 +
  307 + })
  308 + },
  309 +
276 hideshu() { 310 hideshu() {
277 this.shuwrap = false 311 this.shuwrap = false
278 }, 312 },
279 // 评论切换 313 // 评论切换
280 - commenttype(e){  
281 - this.star_type=e.currentTarget.dataset.id; 314 + commenttype(e) {
  315 + this.star_type = e.currentTarget.dataset.id;
282 }, 316 },
283 // 顶部导航切换 317 // 顶部导航切换
284 navtap(e) { 318 navtap(e) {
285 this.selnav = e.currentTarget.dataset.id; 319 this.selnav = e.currentTarget.dataset.id;
286 - if(this.selnav==1){ 320 + if (this.selnav == 1) {
287 if (this.type == 1) { 321 if (this.type == 1) {
288 this.getgoodtail(); 322 this.getgoodtail();
289 } else if (this.type == 2) { 323 } else if (this.type == 2) {
@@ -291,9 +325,9 @@ @@ -291,9 +325,9 @@
291 } else { 325 } else {
292 this.getshopgoodtail() 326 this.getshopgoodtail()
293 } 327 }
294 - }else{  
295 - this.page=1;  
296 - this.commentlist=[]; 328 + } else {
  329 + this.page = 1;
  330 + this.commentlist = [];
297 this.getcommentlist(); 331 this.getcommentlist();
298 } 332 }
299 }, 333 },
@@ -316,25 +350,29 @@ @@ -316,25 +350,29 @@
316 console.log(this.cartnumber) 350 console.log(this.cartnumber)
317 this.cartnumber = this.cartnumber 351 this.cartnumber = this.cartnumber
318 }, 352 },
319 - 353 +
320 // 获取评论列表 354 // 获取评论列表
321 - getcommentlist(){ 355 + getcommentlist() {
322 let that = this; 356 let that = this;
323 var url = 'goods_comments/get_list'; 357 var url = 'goods_comments/get_list';
324 var params = { 358 var params = {
325 - type:that.type,  
326 - goods_id:that.goodid,  
327 - star_type:that.star_type,  
328 - page:that.page,  
329 - pageNum:10 359 + type: '',
  360 + goods_id: that.goodid,
  361 + star_type: that.star_type,
  362 + page: that.page,
  363 + pageNum: 10
330 } 364 }
331 app.post(url, params).then((res) => { 365 app.post(url, params).then((res) => {
332 console.log(res); 366 console.log(res);
333 - that.commentlist=that.commentlist.concat(res.data.data)  
334 -  
335 - 367 + that.commentlist = that.commentlist.concat(res.data.data.list);
  368 + that.total=res.data.data.total;
  369 + that.total1=res.data.data.total1;
  370 + that.total2=res.data.data.total2
  371 + that.total3=res.data.data.total3
  372 +
  373 +
336 }).catch((err) => { 374 }).catch((err) => {
337 - 375 +
338 }) 376 })
339 }, 377 },
340 //获取面坊商品详情 378 //获取面坊商品详情
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <view class="page"> 2 <view class="page">
3 <view class="boxb"> 3 <view class="boxb">
4 <view class="container"> 4 <view class="container">
5 - <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"> 5 + <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">
6 <view class="couponleft" v-if="item.is_get==1"> 6 <view class="couponleft" v-if="item.is_get==1">
7 <image src="../../static/cartnosel.png" mode=""></image> 7 <image src="../../static/cartnosel.png" mode=""></image>
8 </view> 8 </view>
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 <view class="price" :class="item.is_get==1?'wordacticve':''">¥1</view> 14 <view class="price" :class="item.is_get==1?'wordacticve':''">¥1</view>
15 <view class="right"> 15 <view class="right">
16 <view class="bname"> 16 <view class="bname">
17 - <text :class="item.is_get==1?'wordacticve':''">抵用</text> 17 + <text :class="item.is_get==1?'wordacticve':''">抵用</text>
18 <!-- <text>待使用</text> --> 18 <!-- <text>待使用</text> -->
19 </view> 19 </view>
20 <view class="tips" :class="item.is_get==1?'wordacticve':''">{{item.name}}</view> 20 <view class="tips" :class="item.is_get==1?'wordacticve':''">{{item.name}}</view>
@@ -272,8 +272,8 @@ @@ -272,8 +272,8 @@
272 <view class="buyitemname">微信支付</view> 272 <view class="buyitemname">微信支付</view>
273 </view> 273 </view>
274 <view class="selimg" > 274 <view class="selimg" >
275 - <image src="../../static/selactive.png" mode="" v-if="pay_type==1"></image>  
276 - <image src="../../static/active.png" mode="" v-else></image> 275 + <image src="../../static/selright.png" mode="" v-if="pay_type==1"></image>
  276 + <image src="../../static/meisel.png" mode="" v-else></image>
277 </view> 277 </view>
278 </view> 278 </view>
279 <view class="buyitem boxsizing flextwo"> 279 <view class="buyitem boxsizing flextwo">
@@ -285,8 +285,8 @@ @@ -285,8 +285,8 @@
285 <view class="buyitemname">支付宝</view> 285 <view class="buyitemname">支付宝</view>
286 </view> 286 </view>
287 <view class="selimg" @click.stop="paytype" :data-id="2"> 287 <view class="selimg" @click.stop="paytype" :data-id="2">
288 - <image src="../../static/selactive.png" mode="" v-if="pay_type==2"></image>  
289 - <image src="../../static/active.png" mode="" v-else></image> 288 + <image src="../../static/selright.png" mode="" v-if="pay_type==2"></image>
  289 + <image src="../../static/meisel.png" mode="" v-else></image>
290 </view> 290 </view>
291 </view> 291 </view>
292 292
@@ -298,8 +298,8 @@ @@ -298,8 +298,8 @@
298 <view class="buyitemname">余额支付</view> 298 <view class="buyitemname">余额支付</view>
299 </view> 299 </view>
300 <view class="selimg" > 300 <view class="selimg" >
301 - <image src="../../static/selactive.png" mode="" v-if="pay_type==3"></image>  
302 - <image src="../../static/active.png" mode="" v-else></image> 301 + <image src="../../static/selright.png" mode="" v-if="pay_type==3"></image>
  302 + <image src="../../static/meisel.png" mode="" v-else></image>
303 </view> 303 </view>
304 </view> 304 </view>
305 <view class="buyitem boxsizing flextwo" @click.stop="paytype" :data-id="4"> 305 <view class="buyitem boxsizing flextwo" @click.stop="paytype" :data-id="4">
@@ -311,8 +311,8 @@ @@ -311,8 +311,8 @@
311 <view class="buyitemname">赊吧支付</view> 311 <view class="buyitemname">赊吧支付</view>
312 </view> 312 </view>
313 <view class="selimg" > 313 <view class="selimg" >
314 - <image src="../../static/selactive.png" mode="" v-if="pay_type==4"></image>  
315 - <image src="../../static/active.png" mode="" v-else></image> 314 + <image src="../../static/selright.png" mode="" v-if="pay_type==4"></image>
  315 + <image src="../../static/meisel.png" mode="" v-else></image>
316 </view> 316 </view>
317 </view> 317 </view>
318 </view> 318 </view>
@@ -391,10 +391,8 @@ @@ -391,10 +391,8 @@
391 }], 391 }],
392 goodpeiname:'请选择配送方式', 392 goodpeiname:'请选择配送方式',
393 pay_type:-1, 393 pay_type:-1,
394 - user_ticket_id:''  
395 -  
396 -  
397 - 394 + user_ticket_id:'',
  395 + order_id:''
398 396
399 397
400 // data1 面坊 data2 积分 data3 店铺 398 // data1 面坊 data2 积分 data3 店铺
@@ -444,7 +442,6 @@ @@ -444,7 +442,6 @@
444 enterjifen(e){ 442 enterjifen(e){
445 this.jifen=e.detail.vlaue 443 this.jifen=e.detail.vlaue
446 }, 444 },
447 -  
448 // 面坊商品备注 445 // 面坊商品备注
449 entermianfangrmark(e){ 446 entermianfangrmark(e){
450 console.log(e) 447 console.log(e)
@@ -534,22 +531,46 @@ @@ -534,22 +531,46 @@
534 score:that.jifen, 531 score:that.jifen,
535 remark1:that.remark1, 532 remark1:that.remark1,
536 remark2:that.remark2, 533 remark2:that.remark2,
537 - pay_type:that.pay_type  
538 - 534 + pay_type:that.pay_type,
  535 + user_address_id:that.addressitem.id
539 } 536 }
540 console.log(that.seldata) 537 console.log(that.seldata)
541 console.log(params) 538 console.log(params)
542 app.post(url, params,"post").then((res) => { 539 app.post(url, params,"post").then((res) => {
543 console.log(res); 540 console.log(res);
544 - uni.navigateTo({  
545 - url:'/pages/nearshop/sureorder'  
546 - }) 541 + that.order_id=res.data.data.order_id;
  542 + that.paymoney()
  543 + // uni.navigateTo({
  544 + // url:'/pages/nearshop/sureorder'
  545 + // })
547 546
548 }).catch((err) => { 547 }).catch((err) => {
549 console.log(err) 548 console.log(err)
550 549
551 }) 550 })
552 - } 551 + },
  552 + // 支付接口
  553 + paymoney(){
  554 + let that = this;
  555 +
  556 + var url = 'order/pay';
  557 + var params = {
  558 + order_id:that.order_id
  559 + }
  560 +
  561 + console.log(params)
  562 + app.post(url, params,"post").then((res) => {
  563 + console.log(res);
  564 + uni.showToast({
  565 + title:'支付成功',
  566 + icon:'none'
  567 + })
  568 +
  569 + }).catch((err) => {
  570 + console.log(err)
  571 +
  572 + })
  573 + },
553 574
554 575
555 }, 576 },
1 1
2 var isReady=false;var onReadyCallbacks=[]; 2 var isReady=false;var onReadyCallbacks=[];
3 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}}; 3 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}};
4 -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"}}]; 4 +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"}}];
5 __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()})}}); 5 __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()})}});
6 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}}}}); 6 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}}}});