作者 lihongjuan

1

<template>
<view class="canvas-img-code">
<canvas :style="{width:width+'px',height:height+'px'}" canvas-id="imgcanvas" @error="canvasIdErrorCallback" @click="refresh"></canvas>
</view>
</template>
<script>
export default {
name: "picyan",
//属性
props: {
picname: {
type: String,//属性类型
value: ""
},
},
data(){
return {
width:120,height:35
}
},
mounted:function(){
var _self=this;
_self.init();
},
methods: {
refresh(){
this.init()
},
init:function(){
console.log('start');
var context = uni.createCanvasContext('imgcanvas',this),w=this.width,h=this.height;
context.setFillStyle("white");
context.setLineWidth(5);
context.fillRect(0, 0, w, h);
var pool=["A","B","C","D","E","F","G","H","I","J","K","L","I","M","N","O","P","Q","R","S","T","U","V","W","S","Y","Z","1","2","3","4","5","6","7","8","9","0"],str='';
for(var i=0;i<4;i++){
var c=pool[this.rn(0,pool.length-1)];//随机的字
var deg=this.rn(-30,30);//字体的旋转角度
context.setFontSize(18);
context.setTextBaseline("top");
context.setFillStyle(this.rc(80,150));
context.save();
context.translate(30*i+15,parseInt(h/1.5));
context.rotate(deg*Math.PI/180);
context.fillText(c,-15+5,-15);
context.restore();
str+=c;
this.$emit("picname",str)
}
uni.setStorage({
key:'imgcode',
data:str,
});
for(var i=0;i<40;i++){
context.beginPath();
context.arc(this.rn(0,w),this.rn(0,h),1,0,2*Math.PI);
context.closePath();
context.setFillStyle(this.rc(150,200));
context.fill();
}
context.draw(); console.log('end');
},
rc:function(min,max){
var r=this.rn(min,max);
var g=this.rn(min,max);
var b=this.rn(min,max);
return "rgb("+r+","+g+","+b+")";
},
rn:function(max,min){
return parseInt(Math.random()*(max-min))+min;
},
canvasIdErrorCallback: function (e) {
console.error(e.detail.errMsg)
}
}
}
</script>
<style lang="scss">
canvas{
height:50rpx;
}
.canvas-img-code{display: inline-block}
</style>
\ No newline at end of file
... ...
... ... @@ -21,6 +21,16 @@
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/login/loginmine",
"style": {
"navigationBarTitleText": "活动规则",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
}
},
{
... ... @@ -31,7 +41,22 @@
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/usercenter/bindphone",
"style": {
"navigationBarTitleText": "绑定手机号",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/usercenter/bindmima",
"style": {
"navigationBarTitleText": "设置密码",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/guide/judge",
... ...
... ... @@ -19,16 +19,20 @@
<input type="text" value="" placeholder="请输入验证码" placeholder-class="enter" @input="entercode" />
</view>
</view>
<view class="shortyanzheng" @click="changenum">{{rangenum}}</view>
<picyan @picname="getpic"></picyan>
<!-- <view class="shortyanzheng" @click="changenum">{{rangenum}}</view> -->
</view>
<view class="loginbtn rightbtn" @click="setmima">下一步</view>
</view>
</view>
</template>
<script>
import app from "../../App.vue";
import picyan from "../../components/picyan/picyan.vue";
export default {
components:{
picyan
},
data() {
return {
rangenum: '',
... ... @@ -39,11 +43,16 @@
onLoad() {
// // 生成随机验证码
var randomNum = ('000000' + Math.floor(Math.random() * 999999)).slice(-6);
this.rangenum = randomNum;
console.log(this.rangenum)
// var randomNum = ('000000' + Math.floor(Math.random() * 999999)).slice(-6);
// this.rangenum = randomNum;
// console.log(this.rangenum)
},
methods: {
getpic(e){
console.log('我是子组件的值',e);
this.rangenum=e
},
// 刷新验证码
changenum() {
var randomNum = ('000000' + Math.floor(Math.random() * 999999)).slice(-6);
... ...
... ... @@ -81,6 +81,7 @@
data() {
return {
width:120,height:45,
tipstwo: false,
tipsone: false,
currentTime: 60,
... ... @@ -91,9 +92,12 @@
setcode: '',
type: '',
}
},
methods: {
// 输入手机号
enterphone(e) {
this.phone = e.detail.value
... ... @@ -348,12 +352,12 @@
}
},
onLaunch: function() {
console.log('App Launch,app启动')
},
onShow: function() {
},
onHide: function() {
console.log('App Hide,app不再展现在前台')
... ...
<template>
<view class="canvas-img-code">
<canvas :style="{width:width+'px',height:height+'px'}" canvas-id="imgcanvas" @error="canvasIdErrorCallback"></canvas>
</view>
</template>
<script>
export default {
data(){
return {
width:120,height:45,
codeImg:''
}
},
mounted:function(){
var _self=this;
setTimeout(function(){
_self.init();
},2000)
this.getcode()
},
onLoad() {
},
methods: {
init:function(){
console.log('start');
var context = uni.createCanvasContext('imgcanvas',this),w=this.width,h=this.height;
context.setFillStyle("white");
context.setLineWidth(5);
context.fillRect(150, 50, w, h);
console.log(context)
var pool=["A","B","C","D","E","F","G","H","I","J","K","L","I","M","N","O","P","Q","R","S","T","U","V","W","S","Y","Z","1","2","3","4","5","6","7","8","9","0"],str='';
for(var i=0;i<4;i++){
var c=pool[this.rn(0,pool.length-1)];//随机的字
var deg=this.rn(-30,30);//字体的旋转角度
context.setFontSize(18);
context.setTextBaseline("top");
context.setFillStyle(this.rc(80,150));
context.save();
context.translate(30*i+15,parseInt(h/1.5));
context.rotate(deg*Math.PI/180);
context.fillText(c,-15+5,-15);
context.restore();
str+=c;
console.log(str)
}
uni.setStorage({
key:'imgcode',
data:str,
});
for(var i=0;i<40;i++){
context.beginPath();
context.arc(this.rn(0,w),this.rn(0,h),1,0,2*Math.PI);
context.closePath();
context.setFillStyle(this.rc(150,200));
context.fill();
}
context.draw(); console.log('end');
},
rc:function(min,max){
var r=this.rn(min,max);
var g=this.rn(min,max);
var b=this.rn(min,max);
return "rgb("+r+","+g+","+b+")";
},
rn:function(max,min){
return parseInt(Math.random()*(max-min))+min;
},
refresh:function()
{
this.init();
},
canvasIdErrorCallback: function (e) {
console.error(e.detail.errMsg)
}
}
}
</script>
<style lang="scss">
.canvas-img-code{display: inline-block}
</style>
\ No newline at end of file
... ...
... ... @@ -19,8 +19,10 @@
<input type="text" value="" placeholder="请输入验证码" placeholder-class="enter" @input="entercode" />
</view>
</view>
<view class="shortyanzheng" @click="changenum">{{rangenum}}</view>
<picyan @picname="getpic"></picyan>
<!-- <view class="shortyanzheng" @click="changenum">{{rangenum}}</view> -->
</view>
<view class="registerbot">
<view class="loginword wordregister">
登录即表示同意 <text class="xieyi" @click="xieyi" :data-type="1">用户协议</text>和<text class="xieyi" @click="xieyi" :data-type="2">隐私协议</text>
... ... @@ -34,7 +36,11 @@
<script>
import app from "../../App.vue";
import picyan from "../../components/picyan/picyan.vue";
export default {
components:{
picyan
},
data() {
return {
showbanben: false,
... ... @@ -45,11 +51,16 @@
},
onLoad() {
// // 生成随机验证码
var randomNum = ('000000' + Math.floor(Math.random() * 999999)).slice(-6);
this.rangenum = randomNum;
// var randomNum = ('000000' + Math.floor(Math.random() * 999999)).slice(-6);
// this.rangenum = randomNum;
},
methods: {
// 获取子组件的值
getpic(e){
console.log('我是子组件的值',e);
this.rangenum=e
},
changenum() {
var randomNum = ('000000' + Math.floor(Math.random() * 999999)).slice(-6);
... ...
... ... @@ -25,7 +25,7 @@
</view>
</view>
<view class="helplist flexone">
<view class="helpitem flexfour" @click="examinetext(item)" v-for="(item,index) in questionlist" :key="index">
<view class="helpitem flexfour" @click="isexamine==false?examinetext(item):''" v-for="(item,index) in questionlist" :key="index">
<view class="helpitemtop">
<image :src="item.image" mode=""></image>
</view>
... ... @@ -72,7 +72,8 @@
questionlist: [],
userinfo: '',
label: '',
token:''
token:'',
isexamine:false
}
},
... ... @@ -138,6 +139,7 @@
url: '/pages/login/loginindex'
})
} else {
this.isexamine=true
let id = item.id;
uni.navigateTo({
url: '/pages/luntan/examintext?id=' + id
... ... @@ -147,6 +149,9 @@
},
},
onShow() {
this.isexamine=false
}
}
... ...
... ... @@ -15,24 +15,28 @@
export default {
data() {
return {
score:''
score:'',
id:''
}
},
onLoad(options) {
this.score=options.score
this.score=options.score;
this.id=options.id
},
methods: {
backluntan(){
uni.switchTab({
uni.navigateTo({
url:'/pages/luntan/luntan'
url:'/pages/luntan/examine'
})
},
// 重新考试
renewkaoshi(){
uni.navigateTo({
url:'/pages/luntan/examine'
url:'/pages/luntan/examintext?id='+this.id
})
}
... ...
... ... @@ -20,12 +20,14 @@
<image src="../../static/wrong.png" mode=""></image>
</view> -->
</view>
</view>
<view class="textlist" v-else>
<view class='textitem flex' :class="item.answer==1&&item.chose==true?'selright':item.answer==2&&item.chose==true?'selwrong flextwo':''" v-for="(item,index) in present_data.option" :key="index" >
<view class='textitem flex' :class="item.answer==1?'selright':item.answer==2&&item.chose==true?'selwrong flextwo':''" v-for="(item,index) in present_data.option" :key="index" >
<view class="flex">
<view class="textitemleft" >
<image src="../../static/selright.png" mode="" v-if="item.answer==1&&item.chose==true"></image>
<image src="../../static/selright.png" mode="" v-if="item.answer==1"></image>
<image src="../../static/slewrong.png" mode="" v-else-if="item.answer==2&&item.chose==true"></image>
<image src="../../static/meisel.png" mode="" v-else></image>
</view>
... ... @@ -286,7 +288,7 @@
})
setTimeout(function(){
uni.navigateTo({
url:'/pages/luntan/examineresult?score='+that.score
url:'/pages/luntan/examineresult?score='+that.score+'&id='+that.questionnaire_id
})
},1500)
... ...
... ... @@ -46,12 +46,12 @@
<view class="new-release-wrap">
<!-- title -->
<view class="flexone tiezitop">
<view class="new-release-title">热门话题</view>
<view class="new-release-title">最高点赞</view>
<view class="new-release-title" :class="order==1?'zuiactive':''" @click="orderrange" :data-id="1">热门话题</view>
<view class="new-release-title" :class="order==2?'zuiactive':''" @click="orderrange" :data-id="2">最高点赞</view>
</view>
<view class="nodata" v-if="luntanlist.length==0">暂无数据</view>
<view class="nodata" v-if="isshowluntan">暂无数据</view>
<view v-else>
<!-- content -->
<view class="new-release-content" v-for="(item,index) in luntanlist" :key="index" @click="luntandetail(item)">
... ... @@ -166,17 +166,34 @@
index: 0,
luntanlist: [],
keyword: '',
currentTabIndex:2
currentTabIndex:2,
order:1,
isshowluntan:false,
protype:''
}
},
onLoad() {
console.log('3434747878')
this.getluntanlist()
uni.setStorageSync("provincename","")
// 获取省份列表
this.getprovincelist();
},
methods: {
hidepublish() {
this.publish = false
},
// 最新和最热
orderrange(e){
this.order=e.currentTarget.dataset.id;
this.page=1;
this.luntanlist=[];
this.getluntanlist()
},
// 选择城市
selprovince(){
uni.navigateTo({
... ... @@ -273,9 +290,13 @@
console.log('7766554', params)
app.post(url, params).then((res) => {
console.log(res);
that.provincelist = res.data.data;
if(that.protype!=1){
console.log(397839843909090)
this.provincename = res.data.data[0].name;
that.province_id = res.data.data[0].id;
}
that.provincelist = res.data.data;
// 获取论坛列表
this.getluntanlist()
... ... @@ -301,14 +322,18 @@
keyword: that.keyword,
province_id: that.province_id,
type: '',
order:that.order,
page: that.page,
pageNum: 10
}
console.log('参数', params)
app.post(url, params).then((res) => {
console.log(res);
// console.log(res);
that.luntanlist = that.luntanlist.concat(res.data.data);
console.log('9999', this.luntanlist)
// console.log('9999', this.luntanlist)
if(that.luntanlist.length==0){
that.isshowluntan=true
}
}).catch((err) => {
... ... @@ -414,14 +439,28 @@
}
},
onShow() {
let that=this;
console.log(888888888888888888)
uni.$on('provinceid',function(data){
console.log('343744',data)
that.province_id=data.provinceid;
that.protype=data.protype;
console.log(that.province_id)
that.getprovincelist();
})
this.publish=false;
this.page=1;
this.luntanlist=[];
// 获取当前地理位置
this.getlocation();
uni.hideTabBar({
})
// 获取省份列表
this.getprovincelist();
// 获取当前地理位置
this.getlocation();
// this.getluntanlist()
}
... ... @@ -434,6 +473,7 @@
page {
background: #F9F9F9;
}
.tiezitop{
width:750rpx!important;
background: #fff;
... ... @@ -629,6 +669,9 @@
border-radius: 50%;
}
.zuiactive{
color:#FF9417!important;
}
/* .proname{
overflow: hidden;
... ...
... ... @@ -73,6 +73,8 @@
this.selall=-1;
this.selcurrent=0;
uni.setStorageSync("provincename",item.name);
uni.$emit('provinceid',{provinceid:item.id,protype:1})
uni.navigateBack({
checked:true
})
... ... @@ -83,6 +85,8 @@
this.selhot=-1;
this.selcurrent=0;
uni.setStorageSync("provincename",item.name);
console.log(item.id)
uni.$emit('provinceid',{provinceid:item.id,protype:1})
uni.navigateBack({
checked:true
})
... ...
<template>
<view class="content">
<view class="loginbox loginboxmima">
<view class="setpassword flextwo">
<view class="flexone inputk">
<view class="setpasswordleft">密码</view>
<view class="setpasswordright">
<input type="password" placeholder="6-16个字符以内,区分大小写" @input="enterfirstcode" v-if="passtrue">
<input type="text" placeholder="6-16个字符以内,区分大小写" @input="enterfirstcode" v-else>
</view>
</view>
<view class="eye" @click="chosepassword">
<image src="../../static/closeeye.png" mode="" v-if="passtrue"></image>
<image src="../../static/openeye.png" mode="" v-else></image>
</view>
</view>
<view class="setpassword flextwo">
<view class="flexone inputk">
<view class="setpasswordleft">确认密码</view>
<view class="setpasswordright">
<input type="password" placeholder="请再次输入" @input="entersecondcode" v-if="passtruek">
<input type="text" placeholder="请再次输入" @input="entersecondcode" v-else>
</view>
</view>
<view class="eye" @click="chosepasswordk">
<image src="../../static/closeeye.png" mode="" v-if="passtruek"></image>
<image src="../../static/openeye.png" mode="" v-else></image>
</view>
</view>
</view>
<view class="loginbtn finish" @click="finish">完成</view>
</view>
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
firstcode: '',
secondcode: '',
phone: '',
passtrue:true,
passtruek:true
}
},
onLoad(options) {
this.phone = options.phone
},
methods: {
chosepassword(){
this.passtrue=!this.passtrue
},
chosepasswordk(){
this.passtruek=!this.passtruek
},
enterfirstcode(e) {
this.firstcode = e.detail.value
},
entersecondcode(e) {
this.secondcode = e.detail.value
},
finish() {
let that = this;
if(that.firstcode==''){
uni.showToast({
title:'请输入密码',
icon:"none"
})
return false
}
if(this.secondcode==''){
uni.showToast({
title:'请输入确认密码',
icon:"none"
})
return false
}
if(this.firstcode!=this.secondcode){
uni.showToast({
title:'两次输入密码不一致',
icon:'none'
})
return false
}
var url = 'user/setting_password';
var params = {
mobile: that.phone,
password: that.firstcode,
affirm_password: that.secondcode
}
console.log('988765',params)
app.post(url, params).then((res) => {
console.log(res);
wx.showToast({
title:"重置密码成功",
icon:'none'
})
setTimeout(function(){
uni.reLaunch({
url:'/pages/login/accountpassword'
})
},1500)
}).catch((err) => {
uni.showToast({
title:err.msg,
icon:'none'
})
})
}
}
}
</script>
<style>
@import url('../../base/login');
page {
overflow-y: hidden;
}
</style>
... ...
<template>
<view class="content">
<view class="loginbox loginboxmima">
<view class="loginboxitem flex">
<view class="boxitemleftkk">
手机号
</view>
<view class="boxitemright">
<input type="number" value="" placeholder="请输入手机号" placeholder-class="enter" @input="enterphone" />
</view>
</view>
<view class="loginboxitem flextwo">
<view class="flex">
<view class="boxitemleftkk">
验证码
</view>
<view class="boxitemright yanzhengk">
<input type="text" value="" placeholder="请输入验证码" placeholder-class="enter" @input="enteryan" />
</view>
</view>
<picyan @picname="getpic"></picyan>
<!-- <view class="shortyanzheng" @click="changenum">{{rangenum}}</view> -->
</view>
<view class="loginboxitem flextwo">
<view class="flex">
<view class="boxitemleftkk">
短信验证码
</view>
<view class="boxitemright">
<input type="text" :value="code" placeholder="请输入短信验证码" placeholder-class="enter" @input="entercode" />
</view>
</view>
<view class="cardyan" @click="getcode" v-if="disable==false">{{time}}</view>
<view class="cardyan" v-else>{{time}}</view>
</view>
</view>
<view class="next" @click="finish">完成</view>
</view>
</template>
<script>
import app from "../../App.vue";
import picyan from "../../components/picyan/picyan.vue";
var interval = null;
export default {
components:{
picyan
},
data() {
return {
showbanben: false,
rangenum: '',
phone: '',
code: '',
disable: false,
currentTime: 60,
time: '获取验证码',
yancode:''
}
},
onLoad() {
console.log(348344390)
// // 生成随机验证码
// var randomNum = ('000000' + Math.floor(Math.random() * 999999)).slice(-6);
// this.rangenum = randomNum;
},
methods: {
getpic(e) {
console.log('我是子组件的值', e);
this.rangenum = e
},
changenum() {
var randomNum = ('000000' + Math.floor(Math.random() * 999999)).slice(-6);
this.rangenum = randomNum;
},
// 输入手机号
enterphone(e) {
this.phone = e.detail.value
},
// 输入验证码
entercode(e) {
this.code = e.detail.value
},
enteryan(e){
this.yancode=e.detail.value
},
// 获取验证码
getcode() {
let that = this;
that.disable = true;
if (that.phone == '') {
uni.showToast({
title: "请输入手机号",
icon: "none"
})
that.disable = false;
return false
}
if (that.phone != '') {
if (!(/^1[3456789]\d{9}$/.test(that.phone))) {
wx.showToast({
title: '请输入正确的手机号',
icon: 'none'
})
that.disable = false;
return false;
}
}
let currentTime = that.currentTime;
let url = "user/get_code";
let param = {
mobile: that.phone,
};
console.log('8888', param)
app.post(url, param, 'get').then(r => {
console.log(r)
that.setcode = r.data.data.code;
that.code = r.data.data.code;
interval = setInterval(function() {
currentTime--;
that.time = currentTime + '秒';
console.log(that.time)
if (currentTime <= 0) {
clearInterval(interval)
that.time = '重新发送';
that.currentTime = 61;
that.disable = false;
}
}, 1000)
}).catch(err => {
console.log(err);
})
},
// 下一步
finish() {
console.log(34348483)
let that=this;
console.log('66666',that.rangenum);
console.log(that.yancode)
if (that.phone == '') {
uni.showToast({
title: "请输入手机号",
icon: "none"
})
that.disable = false;
return false
}
if (that.phone != '') {
if (!(/^1[3456789]\d{9}$/.test(that.phone))) {
wx.showToast({
title: '请输入正确的手机号',
icon: 'none'
})
that.disable = false;
return false;
}
}
if(that.yancode==''){
uni.showToast({
title:'请输入验证码',
icon:"none"
})
return false
}
if(that.yancode!=that.rangenum){
console.log(that.yancode);
console.log(that.rangenum)
uni.showToast({
title:'验证码错误',
icon:"none"
})
return false
}
if (that.code == '') {
uni.showToast({
title: "请输入短信验证码",
icon: 'none'
})
return false
}
if(that.code!=that.setcode){
uni.showToast({
title: "短信验证码错误",
icon: 'none'
})
return false
}
let url = "user/update_mobile";
let params={
mobile:that.phone,
code:that.setcode,
}
console.log('参数',params)
app.post(url, params).then((res) => {
console.log(res);
uni.showToast({
title:"绑定成功",
icon:'none'
})
setTimeout(function(){
uni.$emit('phone',that.phone)
uni.navigateBack({
checked:true
})
},1500)
}).catch((err) => {
console.log(err)
uni.showToast({
title:err.msg,
icon:'none'
})
})
},
}
}
</script>
<style>
@import url('../../base/login');
page {
overflow-y: hidden;
}
.yanzhengk{
width:170rpx;
}
.boxitemleftkk {
color: #3D454C;
font-size: 28rpx;
width: 130rpx;
}
.next {
width: 686rpx;
height: 88rpx;
background: #C29445;
color: #fff;
font-size: 32rpx;
text-align: center;
line-height: 88rpx;
position: fixed;
bottom: 14rpx;
left: 32rpx;
}
</style>
... ...
... ... @@ -2,6 +2,7 @@
<view class="page">
<view class="tapnav flexone">
<!-- :class="order==2?'nearactive':''" -->
<!-- :class="order==3?'nearactive':''" -->
... ... @@ -27,6 +28,173 @@
<view class="searchbtn" @click="search">搜索</view>
</view> -->
<view v-if="order==1">
<view class="nodata" v-if="publishlist.length==0">暂无数据</view>
<view class="box" v-else>
<view class="item" v-for="(item,index) in publishlist" :key="index" @click="luntandetail(item)">
<!-- <view class="titlebox">
<view class="type" v-if="item.status==1">审核中</view>
<view class="type" v-if="item.status==2">审核通过</view>
<view class="type" v-if="item.status==3">审未通过</view>
<view class="type" v-if="item.status==4">管理员已删除</view>
<view class="word">{{item.title}}</view>
<image src="../../static/del.png" class="del" @click.stop="del(item)"></image>
</view> -->
<view class="wordarea">
{{item.content}}
</view>
<view class="numbox">
<view class="time">{{item.creatssssetime}}</view>
<view class="btnbox">
<view class="zan">
<view>
<image src="../../static/tienozan.png" mode="widthFix" class="icon" v-if="item.is_praise==2"></image>
<image src="../../static/zan.png" mode="widthFix" class="icon" v-else></image>
</view>
{{item.praise}}
</view>
<view class="people">
<image src="../../static/people.png" mode="widthFix" class="icon"></image>{{item.view}}
</view>
</view>
</view>
</view>
<!-- <view class="item">
<view class="titlebox">
<view class="type">审核中</view>
<view class="word">帖子标题帖子标题帖子标题帖子帖...</view>
<image src="../../static/del.png" mode="widthFix" class="del"></image>
</view>
<view class="wordarea">
帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容...
</view>
<view class="numbox">
<view class="time">2019-10-10 15:30:30</view>
<view class="btnbox">
<view class="zan">
<image src="../../static/zan.png" mode="widthFix" class="icon"></image>399
</view>
<view class="people">
<image src="../../static/people.png" mode="widthFix" class="icon"></image>399
</view>
</view>
</view>
</view>
<view class="item">
<view class="titlebox">
<view class="type">审核中</view>
<view class="word">帖子标题帖子标题帖子标题帖子帖...</view>
<image src="../../static/del.png" mode="widthFix" class="del"></image>
</view>
<view class="wordarea">
帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容...
</view>
<view class="numbox">
<view class="time">2019-10-10 15:30:30</view>
<view class="btnbox">
<view class="zan">
<image src="../../static/zan.png" mode="widthFix" class="icon"></image>399
</view>
<view class="people">
<image src="../../static/people.png" mode="widthFix" class="icon"></image>399
</view>
</view>
</view>
</view>
-->
</view>
</view>
<view v-else-if="order==2">
<view class="nodata" v-if="commentlist.length==0">暂无数据</view>
<view class="box" v-else>
<view class="item" v-for="(item,index) in commentlist" :key="index">
<!-- <view class="titlebox">
<view class="type" v-if="item.status==1">审核中</view>
<view class="type" v-if="item.status==2">审核通过</view>
<view class="type" v-if="item.status==3">审未通过</view>
<view class="type" v-if="item.status==4">管理员已删除</view>
<view class="word">{{item.title}}</view>
<image src="../../static/del.png" class="del" @click.stop="del(item)"></image>
</view> -->
<view class="wordarea">
{{item.content}}
</view>
<view class="time" style="margin-top:10rpx;">{{item.forum.title}}</view>
<view class="numbox">
<view class="time">{{item.createtime}}</view>
<view class="btnbox">
<view class="zan">
<view>
<image src="../../static/tienozan.png" mode="widthFix" class="icon" v-if="item.is_praise==2"></image>
<image src="../../static/zan.png" mode="widthFix" class="icon" v-else></image>
</view>
{{item.praise}}
</view>
<view class="people">
<image src="../../static/people.png" mode="widthFix" class="icon"></image>{{item.view}}
</view>
</view>
</view>
</view>
<!-- <view class="item">
<view class="titlebox">
<view class="type">审核中</view>
<view class="word">帖子标题帖子标题帖子标题帖子帖...</view>
<image src="../../static/del.png" mode="widthFix" class="del"></image>
</view>
<view class="wordarea">
帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容...
</view>
<view class="numbox">
<view class="time">2019-10-10 15:30:30</view>
<view class="btnbox">
<view class="zan">
<image src="../../static/zan.png" mode="widthFix" class="icon"></image>399
</view>
<view class="people">
<image src="../../static/people.png" mode="widthFix" class="icon"></image>399
</view>
</view>
</view>
</view>
<view class="item">
<view class="titlebox">
<view class="type">审核中</view>
<view class="word">帖子标题帖子标题帖子标题帖子帖...</view>
<image src="../../static/del.png" mode="widthFix" class="del"></image>
</view>
<view class="wordarea">
帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容...
</view>
<view class="numbox">
<view class="time">2019-10-10 15:30:30</view>
<view class="btnbox">
<view class="zan">
<image src="../../static/zan.png" mode="widthFix" class="icon"></image>399
</view>
<view class="people">
<image src="../../static/people.png" mode="widthFix" class="icon"></image>399
</view>
</view>
</view>
</view>
-->
</view>
</view>
<view v-else>
<view class="nodata" v-if="publishlist.length==0">暂无数据</view>
<view class="box" v-else>
<view class="item" v-for="(item,index) in publishlist" :key="index" @click="luntandetail(item)">
... ... @@ -47,7 +215,11 @@
<view class="time">{{item.creatssssetime}}</view>
<view class="btnbox">
<view class="zan">
<image src="../../static/zan.png" mode="widthFix" class="icon"></image>{{item.praise}}
<view>
<image src="../../static/tienozan.png" mode="widthFix" class="icon" v-if="item.is_praise==2"></image>
<image src="../../static/zan.png" mode="widthFix" class="icon" v-else></image>
</view>
{{item.praise}}
</view>
<view class="people">
<image src="../../static/people.png" mode="widthFix" class="icon"></image>{{item.view}}
... ... @@ -102,6 +274,9 @@
</view>
</view>
<!-- 发布 -->
<view class="release-news" v-if="publish">
<view class="release-content">
... ... @@ -172,14 +347,20 @@
dateone: currentDate,
footersel: 3,
publish: false,
order: '',
order: 1,
pagezan:1,
zanlist:[],
pagecoment:1,
commentlist:[]
}
},
onLoad() {
this.getpublish()
// 获取我的点赞
this.getmayzan();
// 我的评论
this.getmycomment()
},
computed: {
startDate() {
return this.getDate('start');
... ... @@ -209,6 +390,19 @@
// 顶部切换
rangge(e) {
this.order = e.currentTarget.dataset.id;
this.page= 1,
this.publishlist= [];
this.pagezan=1;
this.zanlist=[];
this.pagecoment=1;
this.commentlist=[];
if(this.order==1){
this.getmayzan()
}else if(this.order==2){
this.getmycomment()
}else{
this.getpublish()
}
// this.shoplist = [];
// this.page = 1;
// this.getshoplist()
... ... @@ -292,6 +486,65 @@
});
},
// 我的点赞
getmayzan(){
let that = this;
// 将时间转换成时间戳
// if(that.CompareDate(that.date,that.dateone)==true){
// uni.showToast({
// title:'结束日期要大于开始日期',
// icon:"none"
// })
// return false
// }
var url = 'forum/get_my_forum_praise';
var params = {
starttime:'',
endtime: '',
page: that.pagezan,
pageNum: ''
}
console.log('7766554', params)
app.post(url, params).then((res) => {
console.log(res);
that.publishlist = that.publishlist.concat(res.data.data);
console.log(that.publishlist)
}).catch((err) => {
console.log(err)
})
},
// 获取我的评论
getmycomment(){
let that = this;
// 将时间转换成时间戳
// if(that.CompareDate(that.date,that.dateone)==true){
// uni.showToast({
// title:'结束日期要大于开始日期',
// icon:"none"
// })
// return false
// }
var url = 'forum/get_my_forum_comments';
var params = {
starttime:'',
endtime: '',
page: that.pagecoment,
pageNum: ''
}
console.log('7766554', params)
app.post(url, params).then((res) => {
console.log(res);
that.commentlist = that.commentlist.concat(res.data.data);
console.log(that.commentlist)
}).catch((err) => {
console.log(err)
})
},
getDate(type) {
const date = new Date();
let year = date.getFullYear();
... ... @@ -329,17 +582,34 @@
}
},
onReachBottom() {
if(this.order==3){
let newpage = this.page;
newpage++;;
this.page = newpage;
this.getpublish()
}else if(this.order==1){
let newpage=this.pagezan
newpage++;
this.pagezan=newpage;
this.zanlist=[];
this.getmayzan()
}else{
let newpage=this.pagecoment
newpage++;
this.pagecoment=newpage;
this.getmycomment()
}
}
}
</script>
<style>
@import url('../../base/homepage');
.nodata{
margin-top:200rpx;
}
.tapnav{
padding: 20rpx 32rpx;
box-sizing: border-box;
... ... @@ -350,6 +620,8 @@
top:0;
left:0;
z-index:9;
}
page {
background: #F7F7F7;
... ... @@ -463,6 +735,7 @@
-webkit-line-clamp: 3;
overflow: hidden;
height: auto;
word-wrap: break-word;
}
.numbox {
... ...
... ... @@ -96,11 +96,19 @@
// 注册、
register(){
uni.navigateTo({
url:'/pages/login/register'
url:'/pages/usercenter/bindphone'
})
}
},
onShow() {
let that=this;
console.log(3234344398)
uni.$once('phone',function(data){
console.log(data)
that.mobile=data
})
}
}
</script>
... ...
var isReady=false;var onReadyCallbacks=[];
var __uniConfig = {"pages":["pages/homepage/homepage","pages/login/loginindex","pages/homepage/choujiangrule","pages/guide/judge","pages/guide/guide","pages/luntan/video","pages/nearshop/jiankong","pages/usercenter/cardrenzheng","pages/homepage/map","pages/homepage/map","pages/usercenter/fenxiaomyteam","pages/usercenter/fenxiaotidetail","pages/usercenter/fenxiaodingdan","pages/usercenter/fenxiaoyongjin","pages/usercenter/myfenxiao","pages/nearshop/allprovince","pages/usercenter/orderdetail","pages/nearshop/selectcoupon","pages/nearshop/cartbox","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/nearshop/shopcomment","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"},"tabBar":{"color":"#BDC4CE","selectedColor":"#EE8B27","borderStyle":"black","backgroundColor":"#ffffff","list":[{"pagePath":"pages/homepage/homepage","iconPath":"../../static/index.png","selectedIconPath":"../../static/indexactive.png","text":"首页"},{"pagePath":"pages/nearshop/nearshop","iconPath":"../../static/nearshop.png","selectedIconPath":"../../static/nearshopactive.png","text":"附近店铺"},{"pagePath":"pages/luntan/luntan","iconPath":"../../static/luntan.png","selectedIconPath":"../../static/luntanactive.png","text":"中面论坛"},{"pagePath":"pages/usercenter/my","iconPath":"../../static/user.png","selectedIconPath":"../../static/useractive.png","text":"个人中心"}]},"renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"zhongmian","compilerVersion":"2.6.16","entryPagePath":"pages/homepage/homepage","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/homepage/homepage","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white","navigationStyle":"custom","bounce":"none"}},{"path":"/pages/login/loginindex","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/choujiangrule","meta":{},"window":{"navigationBarTitleText":"活动规则","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/guide/judge","meta":{},"window":{"enablePullDownRefresh":false,"onReachBottomDistance":100,"navigationStyle":"custom","contentAdjust":false,"bounce":"none"}},{"path":"/pages/guide/guide","meta":{},"window":{"enablePullDownRefresh":false,"onReachBottomDistance":100,"navigationStyle":"custom","contentAdjust":false,"bounce":"none"}},{"path":"/pages/luntan/video","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/jiankong","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/cardrenzheng","meta":{},"window":{"navigationBarTitleText":"身份认证","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/map","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/fenxiaomyteam","meta":{},"window":{"navigationBarTitleText":"我的团队","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/fenxiaotidetail","meta":{},"window":{"navigationBarTitleText":"提现明细","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/fenxiaodingdan","meta":{},"window":{"navigationBarTitleText":"分销订单","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/fenxiaoyongjin","meta":{},"window":{"navigationBarTitleText":"分销佣金","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myfenxiao","meta":{},"window":{"navigationBarTitleText":"我的分销","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/allprovince","meta":{},"window":{"navigationBarTitleText":"全部省份","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/orderdetail","meta":{},"window":{"navigationBarTitleText":"订单详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/selectcoupon","meta":{},"window":{"navigationBarTitleText":"选择优惠券","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/cartbox","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":{"isQuit":true,"isTabBar":true},"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":{"isQuit":true,"isTabBar":true},"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","navigationStyle":"custom","bounce":"none"}},{"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/nearshop/shopcomment","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":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"我的","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/wallet","meta":{},"window":{"navigationBarTitleText":"我的钱包","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white"}},{"path":"/pages/usercenter/setUp","meta":{},"window":{"navigationBarTitleText":"设置","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/personalData","meta":{},"window":{"navigationBarTitleText":"个人资料","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/address","meta":{},"window":{"navigationBarTitleText":"地址管理","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/addAddress","meta":{},"window":{"navigationBarTitleText":"新增收货地址","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}}];
var __uniConfig = {"pages":["pages/homepage/homepage","pages/login/loginindex","pages/login/loginmine","pages/homepage/choujiangrule","pages/usercenter/bindphone","pages/usercenter/bindmima","pages/guide/judge","pages/guide/guide","pages/luntan/video","pages/nearshop/jiankong","pages/usercenter/cardrenzheng","pages/homepage/map","pages/homepage/map","pages/usercenter/fenxiaomyteam","pages/usercenter/fenxiaotidetail","pages/usercenter/fenxiaodingdan","pages/usercenter/fenxiaoyongjin","pages/usercenter/myfenxiao","pages/nearshop/allprovince","pages/usercenter/orderdetail","pages/nearshop/selectcoupon","pages/nearshop/cartbox","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/nearshop/shopcomment","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"},"tabBar":{"color":"#BDC4CE","selectedColor":"#EE8B27","borderStyle":"black","backgroundColor":"#ffffff","list":[{"pagePath":"pages/homepage/homepage","iconPath":"../../static/index.png","selectedIconPath":"../../static/indexactive.png","text":"首页"},{"pagePath":"pages/nearshop/nearshop","iconPath":"../../static/nearshop.png","selectedIconPath":"../../static/nearshopactive.png","text":"附近店铺"},{"pagePath":"pages/luntan/luntan","iconPath":"../../static/luntan.png","selectedIconPath":"../../static/luntanactive.png","text":"中面论坛"},{"pagePath":"pages/usercenter/my","iconPath":"../../static/user.png","selectedIconPath":"../../static/useractive.png","text":"个人中心"}]},"renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"zhongmian","compilerVersion":"2.6.16","entryPagePath":"pages/homepage/homepage","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/homepage/homepage","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white","navigationStyle":"custom","bounce":"none"}},{"path":"/pages/login/loginindex","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/loginmine","meta":{},"window":{"navigationBarTitleText":"活动规则","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/choujiangrule","meta":{},"window":{"navigationBarTitleText":"活动规则","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/bindphone","meta":{},"window":{"navigationBarTitleText":"绑定手机号","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/bindmima","meta":{},"window":{"navigationBarTitleText":"设置密码","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/guide/judge","meta":{},"window":{"enablePullDownRefresh":false,"onReachBottomDistance":100,"navigationStyle":"custom","contentAdjust":false,"bounce":"none"}},{"path":"/pages/guide/guide","meta":{},"window":{"enablePullDownRefresh":false,"onReachBottomDistance":100,"navigationStyle":"custom","contentAdjust":false,"bounce":"none"}},{"path":"/pages/luntan/video","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/jiankong","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/cardrenzheng","meta":{},"window":{"navigationBarTitleText":"身份认证","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/map","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/fenxiaomyteam","meta":{},"window":{"navigationBarTitleText":"我的团队","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/fenxiaotidetail","meta":{},"window":{"navigationBarTitleText":"提现明细","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/fenxiaodingdan","meta":{},"window":{"navigationBarTitleText":"分销订单","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/fenxiaoyongjin","meta":{},"window":{"navigationBarTitleText":"分销佣金","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myfenxiao","meta":{},"window":{"navigationBarTitleText":"我的分销","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/allprovince","meta":{},"window":{"navigationBarTitleText":"全部省份","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/orderdetail","meta":{},"window":{"navigationBarTitleText":"订单详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/selectcoupon","meta":{},"window":{"navigationBarTitleText":"选择优惠券","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/cartbox","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":{"isQuit":true,"isTabBar":true},"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":{"isQuit":true,"isTabBar":true},"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","navigationStyle":"custom","bounce":"none"}},{"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/nearshop/shopcomment","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":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"我的","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/wallet","meta":{},"window":{"navigationBarTitleText":"我的钱包","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white"}},{"path":"/pages/usercenter/setUp","meta":{},"window":{"navigationBarTitleText":"设置","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/personalData","meta":{},"window":{"navigationBarTitleText":"个人资料","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/address","meta":{},"window":{"navigationBarTitleText":"地址管理","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/addAddress","meta":{},"window":{"navigationBarTitleText":"新增收货地址","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}}];
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}});
... ...