作者 lihongjuan

11

... ... @@ -14,6 +14,14 @@
}
},
{
"path": "pages/nearshop/allprovince",
"style": {
"navigationBarTitleText": "全部省份",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/nearshop/selectcoupon",
"style": {
"navigationBarTitleText": "选择优惠券",
... ...
<template>
<view class="content">
<view class="examineresult">考试结果</view>
<view class="examinefen">33分</view>
<view class="examinefen">{{score}}分</view>
<view class='examinestate'>对不起您没有通过本次考试,请重新答题</view>
<view class="examinebot flexone">
<view class='examinebotleft' @click="backluntan">返回论坛</view>
... ... @@ -15,11 +15,11 @@
export default {
data() {
return {
score:''
}
},
onLoad() {
onLoad(options) {
this.score=options.score
},
... ...
<template>
<view class="content">
<view class="texttitle">
1.{{present_data.question_name}}({{present_data.type==1?'单选':'多选'}})
{{present_data.question_name}}({{present_data.type==1?'单选':'多选'}})
</view>
<view class="textlist">
<view class='textitem flex'>
<view class="textitemleft">
<image src="../../static/meisel.png" mode=""></image>
<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" @click="present_data.canchose==present_data.correct_number?selchose(index):''">
<view class="flex">
<view class="textitemleft" >
<image src="../../static/meisel.png" mode=""></image>
</view>
<view class="textitemright">
{{item.sel}}、{{item.option_name}}
</view>
</view>
<view class="textitemright">
A、6
<view class="wrongimg" v-if="item.answer==2&&item.chose==true">
<image src="../../static/wrong.png" mode=""></image>
</view>
</view>
<view class='textitem flex selright'>
<!-- <view class='textitem flex selright'>
<view class="textitemleft">
<image src="../../static/selright.png" mode=""></image>
</view>
... ... @@ -41,119 +47,246 @@
<view class="textitemright">
A、6
</view>
</view> -->
</view>
<view class="huiyuanbot boxsizing">
<view class="behuiyuanbtn" v-if="next_data!=''&&last_data==''" @click="nextquestion">下一题</view>
<view class="flextwo" v-else-if="last_data!=''">
<view class="behuiyuanbtn btnitem" @click="prequestion">上一题</view>
<view class="behuiyuanbtn btnitem" @click="nextquestion">下一题</view>
</view>
<view class="behuiyuanbtn" v-else @click="sure">确认</view>
</view>
<view class="huiyuanbot boxsizing" >
<view class="behuiyuanbtn">确认</view>
</view>
</view>
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
questionnaire_id:'',
present_data:[],
last_data:[],
next_data:[]
export default {
data() {
return {
questionnaire_id: '',
present_data: [],
last_data: [],
next_data: [],
question_id:'',
score:0,
selitem:0,
//是否在上一题返回的下一题
islast:0,
}
},
onLoad(options) {
this.questionnaire_id = options.id;
this.getqusetion();
},
methods: {
getqusetion() {
let that = this;
var url = 'question/get_question';
var params = {
questionnaire_id: that.questionnaire_id,
question_id:that.question_id
}
console.log(params)
app.post(url, params, "post").then((res) => {
console.log(res);
that.present_data = res.data.data.present_data;
that.present_data.canchose=that.present_data.correct_number;
that.present_data.option.forEach(function(value, index, array) {
value.chose=false;
switch (index) {
case 0:
value.sel = 'A';
break;
case 1:
value.sel = 'B';
break;
case 2:
value.sel = 'C';
break;
case 3:
value.sel = 'D';
break;
}
})
that.present_data = that.present_data;
that.last_data = res.data.data.last_data;
that.next_data = res.data.data.next_data;
}).catch((err) => {
console.log(err)
})
},
// 选择题目
selchose(index){
let that=this;
that.selitem++;
that.present_data.canchose++;
that.present_data.option.forEach(function(value,indexk,array){
if(index==indexk){
value.chose=true;
// value.canchose++;
that.$forceUpdate()
}
})
that.present_data=that.present_data;
that.score=that.score+that.present_data.score;
uni.setStorageSync("present_datak",that.present_data);
uni.setStorageSync("last_datak",that.last_data);
uni.setStorageSync("next_datak",that.next_data);
},
//下一题
nextquestion(){
let that=this;
// this.question_id=this.present_data.id;
this.question_id=2;
if(that.selitem==0){
uni.showToast({
title:"请答题",
icon:"none"
})
}else{
uni.setStorageSync("present_data",that.present_data);
uni.setStorageSync("last_data",that.last_data);
uni.setStorageSync("next_data",that.next_data);
that.selitem==0;
if(that.islast==1){
that.islast=0
this.present_data=uni.getStorageSync("present_datak");
this.last_data=uni.getStorageSync("last_datak");
this.next_data=uni.getStorageSync("next_datak");
}else{
this.getqusetion();
}
}
},
onLoad(options) {
this.questionnaire_id=options.id;
this.getqusetion();
},
methods: {
getqusetion(){
let that = this;
var url = 'question/get_question';
var params = {
questionnaire_id:that.questionnaire_id
}
console.log(params)
app.post(url, params,"post").then((res) => {
console.log(res);
that.present_data=res.data.data.present_data;
that.last_data=res.data.data.last_data;
that.next_data=res.data.data.next_data;
}).catch((err) => {
console.log(err)
})
},
}
}
}
},
// 上一题
prequestion(){
this.present_data=uni.getStorageSync("present_data");
this.last_data=uni.getStorageSync("last_data");
this.next_data=uni.getStorageSync("next_data");
this.islast=1
},
sure(){
let that = this;
var url = 'question/submit_answer';
var params = {
questionnaire_id: that.questionnaire_id,
score:that.score
}
console.log('7766554', params)
app.post(url, params).then((res) => {
console.log(res);
uni.showToast({
title:'提交成功',
icon:'none'
})
setTimeout(function(){
uni.navigateTo({
url:'/pages/luntan/examineresult?score='+that.score
})
},1500)
}).catch((err) => {
that.score, console.log(err)
})
}
}
}
</script>
<style>
page{
page {
padding: 38rpx 32rpx;
box-sizing: border-box;
}
.texttitle{
color:#06121F;
.texttitle {
color: #06121F;
font-size: 32rpx;
}
.textlist{
margin-top:32rpx;
border-top:1rpx solid #f5f5f5;
.textlist {
margin-top: 32rpx;
border-top: 1rpx solid #f5f5f5;
}
.textitem{
.textitem {
padding: 16rpx 32rpx;
box-sizing: border-box;
border:2rpx solid rgba(238,238,238,1);
margin-bottom:16rpx;
border: 2rpx solid rgba(238, 238, 238, 1);
margin-bottom: 16rpx;
}
.selright{
.selright {
background: #FEF0D7;
}
.textitemleft{
width:48rpx;
height:48rpx;
.textitemleft {
width: 48rpx;
height: 48rpx;
font-size: 0;
}
.textitemright{
color:#06121F;
.textitemright {
color: #06121F;
font-size: 32rpx;
margin-left:16rpx;
margin-left: 16rpx;
}
.wrongimg{
width:28rpx;
height:28rpx;
.wrongimg {
width: 28rpx;
height: 28rpx;
font-size: 0;
}
.selwrong{
.selwrong {
background: #FFE0DB;
}
.behuiyuanbtn{
width:686rpx;
height:88rpx;
.behuiyuanbtn {
width: 686rpx;
height: 88rpx;
background: #C29445;
color:#fff;
color: #fff;
font-size: 32rpx;
text-align: center;
line-height: 88rpx;
border-radius: 10rpx;
}
.huiyuanbot{
position:fixed;
.btnitem{
width:300rpx;
}
.huiyuanbot {
position: fixed;
background: #fff;
bottom:100rpx;
left:0;
width:750rpx;
height:116rpx;
bottom: 100rpx;
left: 0;
width: 750rpx;
height: 116rpx;
padding: 14rpx 32rpx;
}
</style>
... ...
... ... @@ -8,17 +8,19 @@
<image class="home-ico" src="../../static/home.png" mode="widthFix" />
</view>
<view class="search-input navigator" url="/pages/searchGoods/index" open-type="navigate">
<icon type="search" size="12" color="#BDC4CE" style="margin-right:10rpx;"/>
<input type="text" placeholder="请输入关键词搜索" @confirm="finish" @input="enterword" class="enterwordk" placeholder-class="enterwordk">
<icon type="search" size="12" color="#BDC4CE" style="margin-right:10rpx;" />
<input type="text" placeholder="请输入关键词搜索" @confirm="finish" @input="enterword" class="enterwordk"
placeholder-class="enterwordk">
</view>
<picker @change="bindproChange" :value="index" :range="provincelist" range-key="name">
<!-- <view class="uni-input">{{array[index]}}</view> -->
<view class="proselect flexthree">
<text class="proname">{{provincename}}</text>
<image class="down-ico" src="../../static/xiala.png" />
</view>
</picker>
<view class="proselect flexthree" @click="selprovince">
<text class="proname">{{provincename}}</text>
<image class="down-ico" src="../../static/xiala.png" />
</view>
<!-- <picker @change="bindproChange" :value="index" :range="provincelist" range-key="name">
</picker> -->
</view>
<!-- nav -->
<view class="nav-wrap">
... ... @@ -34,7 +36,7 @@
<image src="../../static/friend.png"></image>
<text>征婚交友</text>
</view>
<view class="navigator" @click="zhaopin" :data-id="4">
<view class="navigator" @click="zhaopin" :data-id="4">
<image src="../../static/zhonglogo.png"></image>
<text>中面集团</text>
</view>
... ... @@ -43,11 +45,11 @@
<view class="new-release-wrap">
<!-- title -->
<view class="new-release-title">最新发布</view>
<view class="nodata" v-if="luntanlist.length==0">暂无数据</view>
<view v-else>
<!-- content -->
<view class="new-release-content" v-for="(item,index) in luntanlist" :key="index" @click="luntandetail(item)" >
<view class="new-release-content" v-for="(item,index) in luntanlist" :key="index" @click="luntandetail(item)">
<!-- 头像,名称,等级 -->
<view class="userinfo-wrap" @click.stop="usercenter(item)">
<image :src="item.user.avatar"></image>
... ... @@ -86,10 +88,10 @@
</view>
</view>
</view>
</view>
</view>
</view>
... ... @@ -101,15 +103,15 @@
<image src="../../static/helppeople.png"></image>
<text>帮工招聘求职</text>
</view>
<view class="navigator" @click="publishitezi" :data-id="2">
<view class="navigator" @click="publishitezi" :data-id="2">
<image src="../../static/mianturn.png"></image>
<text>面坊求购转让</text>
</view>
<view class="navigator" @click="publishitezi" :data-id="3">
<view class="navigator" @click="publishitezi" :data-id="3">
<image src="../../static/friend.png"></image>
<text>征婚交友</text>
</view>
<view class="navigator" @click="publishitezi" :data-id="4">
<view class="navigator" @click="publishitezi" :data-id="4">
<image src="../../static/zhonglogo.png"></image>
<text>中面集团</text>
</view>
... ... @@ -120,8 +122,7 @@
</view>
</view>
</view>
<!-- 底部导航 -->
<view class="teacherfooter">
<view class="teacherfootitem" @click="footerseljump" :data-id="1">
... ... @@ -157,37 +158,102 @@
type: 1,
page: 1,
provincelist: [],
provincename:'',
index:0,
luntanlist:[],
keyword:''
provincename: '',
index: 0,
luntanlist: [],
keyword: '',
}
},
onLoad() {
// 获取省份列表
this.getprovincelist();
uni.setStorageSync("provincename","")
},
methods: {
hidepublish() {
this.publish = false
},
// 选择城市
selprovince(){
uni.navigateTo({
url:'/pages/nearshop/allprovince'
})
},
getlocation() {
let that=this;
uni.getLocation({
type: 'wgs84',
success: function(res) {
console.log('当前位置的经度:' + res.longitude);
console.log('当前位置的纬度:' + res.latitude);
var point = new plus.maps.Point(res.longitude, res.latitude);
plus.maps.Map.reverseGeocode(
point, {},
function(event) {
console.log(event)
var address = event.address; // 转换后的地理位置
var point = event.coord; // 转换后的坐标信息
var coordType = event.coordType; // 转换后的坐标系类型
console.log(address, 'address');
var reg = /.+?(省|市|自治区|自治州|县|区)/g;
console.log(address.match(reg));
var addressname=address.match(reg);
console.log(addressname);
if(uni.getStorageSync("provincename")==''){
that.provincename=addressname[0];
uni.setStorageSync("provincename",that.provincename)
}else{
that.provincename=uni.getStorageSync("provincename")
}
console.log(that.provincename)
// that.getprovinceid()
// _this.addressList = address.match(reg).toString().split(",");
// _this.address = _this.addressList[1];
// console.log(_this.addressList[0]);
// console.log(_this.addressList[1]);
// console.log(_this.addressList[2]);
},
function(e) {}
);
}
});
},
// 根据城市名字获取id
getprovinceid(){
let that = this;
var url = 'question/get_area';
var params = {
province_name: that.provincename
}
console.log('7766554', params)
app.post(url, params).then((res) => {
console.log(res);
}).catch((err) => {
console.log(err)
})
},
// 输入关键字
enterword(e){
this.keyword=e.detail.value;
enterword(e) {
this.keyword = e.detail.value;
console.log(this.keyword)
},
// 输入完成
finish(){
this.page=1;
this.luntanlist=[];
finish() {
this.page = 1;
this.luntanlist = [];
this.getluntanlist();
},
// 论坛详情
luntandetail(item){
luntandetail(item) {
uni.navigateTo({
url:'/pages/luntan/luntandetail?id='+item.id
url: '/pages/luntan/luntandetail?id=' + item.id
})
},
// 获取省份列表
... ... @@ -201,41 +267,41 @@
app.post(url, params).then((res) => {
console.log(res);
that.provincelist = res.data.data;
this.provincename=res.data.data[0].name;
that.province_id=res.data.data[0].id;
this.provincename = res.data.data[0].name;
that.province_id = res.data.data[0].id;
// 获取论坛列表
this.getluntanlist()
}).catch((err) => {
})
},
bindproChange(e){
this.index = e.target.value;
this.provincename=this.provincelist[e.target.value].name;
this.province_id=this.provincelist[e.target.value].id;
this.page=1;
this.luntanlist=[];
// 获取论坛列表
this.getluntanlist();
bindproChange(e) {
this.index = e.target.value;
this.provincename = this.provincelist[e.target.value].name;
this.province_id = this.provincelist[e.target.value].id;
this.page = 1;
this.luntanlist = [];
// 获取论坛列表
this.getluntanlist();
},
// 获取论坛列表
getluntanlist() {
let that = this;
var url = 'forum/get_forum';
var params = {
keyword:that.keyword,
keyword: that.keyword,
province_id: that.province_id,
type: '',
page: that.page,
pageNum: 10
}
console.log('参数',params)
console.log('参数', params)
app.post(url, params).then((res) => {
console.log(res);
that.luntanlist=that.luntanlist.concat(res.data.data);
console.log('9999',this.luntanlist)
that.luntanlist = that.luntanlist.concat(res.data.data);
console.log('9999', this.luntanlist)
}).catch((err) => {
... ... @@ -243,44 +309,38 @@
})
},
praisedian(item,index){
praisedian(item, index) {
let that = this;
if(that.luntanlist[index].is_praise==2){
if (that.luntanlist[index].is_praise == 2) {
uni.showToast({
title:'点赞成功',
icon:'none'
title: '点赞成功',
icon: 'none'
})
that.luntanlist[index].is_praise=1;
that.luntanlist[index].praise=that.luntanlist[index].praise+1
}else{
that.luntanlist[index].is_praise = 1;
that.luntanlist[index].praise = that.luntanlist[index].praise + 1
} else {
uni.showToast({
title:'取消点赞成功',
icon:'none'
title: '取消点赞成功',
icon: 'none'
})
that.luntanlist[index].is_praise=2;
that.luntanlist[index].praise=that.luntanlist[index].praise-1
that.luntanlist[index].is_praise = 2;
that.luntanlist[index].praise = that.luntanlist[index].praise - 1
}
that.luntanlist=that.luntanlist;
that.luntanlist = that.luntanlist;
var url = 'forum/praise';
var params = {
forum_id:item.id
forum_id: item.id
}
console.log('参数',params)
console.log('参数', params)
app.post(url, params).then((res) => {
console.log(res);
}).catch((err) => {
console.log(err)
})
},
// 返回首页
homeback() {
console.log(43898934894)
... ... @@ -288,27 +348,27 @@
url: '/pages/homepage/homepage'
})
},
// 进入论坛主页
usercenter(item){
let user=JSON.stringify(item.user)
usercenter(item) {
let user = JSON.stringify(item.user)
uni.navigateTo({
url:'/pages/luntan/luntanpage?userid='+item.user_id+'&user='+user
url: '/pages/luntan/luntanpage?userid=' + item.user_id + '&user=' + user
})
},
// 论坛列表
zhaopin(e) {
let id=e.currentTarget.dataset.id;
let id = e.currentTarget.dataset.id;
uni.navigateTo({
url: '../luntan/luntanlist?id='+id
url: '../luntan/luntanlist?id=' + id
})
},
// 发布评论
publishitezi(e){
let type=e.currentTarget.dataset.id;
publishitezi(e) {
let type = e.currentTarget.dataset.id;
uni.navigateTo({
url:'/pages/luntan/addcontract?type='+type
url: '/pages/luntan/addcontract?type=' + type
})
},
// 底部导航跳转
... ... @@ -328,8 +388,18 @@
this.publish = true
}
}
},
onShow() {
// 获取省份列表
this.getprovincelist();
// 获取当前地理位置
this.getlocation();
}
}
</script>
... ... @@ -337,41 +407,47 @@
page {
background: #F9F9F9;
}
.release-text-content{
height:120rpx;
.release-text-content {
height: 120rpx;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
}
.enterwordk{
color:#BDC4CE;
.enterwordk {
color: #BDC4CE;
font-size: 24rpx;
}
.proselect{
width:120rpx;
height:60rpx;
border:2rpx solid rgba(238,238,238,1);
color:#fff;
font-size:24rpx;
.proselect {
width: 120rpx;
height: 60rpx;
border: 2rpx solid rgba(238, 238, 238, 1);
color: #fff;
font-size: 24rpx;
border-radius: 40rpx;
padding: 0 10rpx;
box-sizing: border-box;
margin-left:16rpx;
margin-left: 16rpx;
}
.proname{
width:90rpx;
.proname {
width: 90rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right:5rpx;
margin-right: 5rpx;
}
.down-ico{
width:16rpx;
height:16rpx;
.down-ico {
width: 16rpx;
height: 16rpx;
font-size: 0;
}
.publishnav {
padding: 0 !important;
}
... ... @@ -381,9 +457,11 @@
height: 88rpx;
font-size: 0;
}
.search-input {
width: 470rpx !important;
height:60rpx;
background:rgba(249,249,249,1);
border-radius:32px;
}
/* 搜素 */
... ... @@ -392,11 +470,11 @@
padding: 14rpx 0;
box-sizing: border-box;
background: #C29445;
z-index:99;
position: fixed;
top: var(--status-bar-height);
z-index: 99;
position: fixed;
top: var(--status-bar-height);
left: 0;
}
.nav-wrap {
... ... @@ -405,7 +483,8 @@
justify-content: space-between;
padding: 32rpx 64rpx;
margin-bottom: 16rpx;
margin-top: calc(var(--status-bar-height) + 100rpx);;
margin-top: calc(var(--status-bar-height) + 100rpx);
;
}
.nav-wrap .navigator {
... ... @@ -503,9 +582,11 @@
width: 60rpx;
height: 60rpx;
}
.search-wrap .navigator:nth-child(3){
.search-wrap .navigator:nth-child(3) {
/* font-size: 20rpx; */
}
/* .proname{
overflow: hidden;
... ...
... ... @@ -13,14 +13,14 @@
北京
<image src="../../static/huixia.png" />
</view> -->
<view class="proselect flexthree" @click="selprovince">
<text class="proname">{{provincename}}</text>
<image class="down-ico" src="../../static/huixia.png" />
</view>
<!-- picker @change="bindproChange" :value="index" :range="provincelist" range-key="name">
<picker @change="bindproChange" :value="index" :range="provincelist" range-key="name">
<!-- <view class="uni-input">{{array[index]}}</view> -->
<view class="proselect flexthree">
<text class="proname">{{provincename}}</text>
<image class="down-ico" src="../../static/huixia.png" />
</view>
</picker>
</picker> -->
</view>
<!-- nav -->
<view class="nav-menus">
... ... @@ -72,8 +72,8 @@
<!-- 点赞, 人数 -->
<view class="thumbs-number" @click.stop="praisedian(item,index)">
<view class="thumbs">
<image src="../../static/tienozan.png" v-if="item.is_praise==2"></image>
<image src="../../static/tiezan.png" v-else></image>
<image src="../../static/tienozan.png" v-if="item.is_praise==2"></image>
<image src="../../static/tiezan.png" v-else></image>
{{item.praise}}
</view>
<view class="number">
... ... @@ -100,7 +100,7 @@
showbanben: false,
kindtype: '',
provincelist: [],
province_id:'',
province_id: '',
provincename: '',
index: 0,
keyword: '',
... ... @@ -109,7 +109,8 @@
},
onLoad(options) {
this.kindtype = options.id;
this.getprovincelist()
this.getprovincelist();
uni.setStorageSync("provincename", "")
},
methods: {
kindchange(e) {
... ... @@ -118,6 +119,70 @@
this.luntanlist = [];
this.getluntanlist()
},
selprovince() {
uni.navigateTo({
url: '/pages/nearshop/allprovince'
})
},
getlocation() {
let that = this;
uni.getLocation({
type: 'wgs84',
success: function(res) {
console.log('当前位置的经度:' + res.longitude);
console.log('当前位置的纬度:' + res.latitude);
var point = new plus.maps.Point(res.longitude, res.latitude);
plus.maps.Map.reverseGeocode(
point, {},
function(event) {
console.log(event)
var address = event.address; // 转换后的地理位置
var point = event.coord; // 转换后的坐标信息
var coordType = event.coordType; // 转换后的坐标系类型
console.log(address, 'address');
var reg = /.+?(省|市|自治区|自治州|县|区)/g;
console.log(address.match(reg));
var addressname = address.match(reg);
console.log(addressname);
if (uni.getStorageSync("provincename") == '') {
that.provincename = addressname[0];
uni.setStorageSync("provincename", that.provincename)
} else {
that.provincename = uni.getStorageSync("provincename")
}
console.log(that.provincename)
// that.getprovinceid()
// _this.addressList = address.match(reg).toString().split(",");
// _this.address = _this.addressList[1];
// console.log(_this.addressList[0]);
// console.log(_this.addressList[1]);
// console.log(_this.addressList[2]);
},
function(e) {}
);
}
});
},
// 根据城市名字获取id
getprovinceid() {
let that = this;
var url = 'question/get_area';
var params = {
province_name: that.provincename
}
console.log('7766554', params)
app.post(url, params).then((res) => {
console.log(res);
}).catch((err) => {
console.log(err)
})
},
// 输入完成
finish() {
... ... @@ -158,7 +223,7 @@
this.page = 1;
this.luntanlist = [];
// 获取论坛列表
this.getluntanlist();
this.getluntanlist();
},
// 获取论坛列表
... ... @@ -184,46 +249,49 @@
})
},
praisedian(item,index){
praisedian(item, index) {
let that = this;
if(that.luntanlist[index].is_praise==2){
if (that.luntanlist[index].is_praise == 2) {
uni.showToast({
title:'点赞成功',
icon:'none'
title: '点赞成功',
icon: 'none'
})
that.luntanlist[index].is_praise=1;
that.luntanlist[index].praise=that.luntanlist[index].praise+1
}else{
that.luntanlist[index].is_praise = 1;
that.luntanlist[index].praise = that.luntanlist[index].praise + 1
} else {
uni.showToast({
title:'取消点赞成功',
icon:'none'
title: '取消点赞成功',
icon: 'none'
})
that.luntanlist[index].is_praise=2;
that.luntanlist[index].praise=that.luntanlist[index].praise-1
that.luntanlist[index].is_praise = 2;
that.luntanlist[index].praise = that.luntanlist[index].praise - 1
}
that.luntanlist=that.luntanlist;
that.luntanlist = that.luntanlist;
var url = 'forum/praise';
var params = {
forum_id:item.id
forum_id: item.id
}
console.log('参数',params)
console.log('参数', params)
app.post(url, params).then((res) => {
console.log(res);
}).catch((err) => {
console.log(err)
})
},
luntandetail(item) {
uni.navigateTo({
url:'/pages/luntan/luntandetail?id='+item.id
url: '/pages/luntan/luntandetail?id=' + item.id
})
}
},
onShow() {
this.getlocation()
}
}
... ...
<template>
<view class="content">
<!-- 当前城市 -->
<view class="city">
<view class="localcity flexone">
<view class="localname">定位</view>
<view class="localleft">
<image src="../../static/loaclcity.png" mode=""></image>
</view>
</view>
<view class="citybox flexone">
<view class="cityboxitem " :class="selcurrent==1?'selcityactive':''" wx:key="">{{provincename}}</view>
</view>
</view>
<!-- 热门城市 -->
<view class="city">
<view class="citytop">热门城市</view>
<view class="citybox flexone">
<view class="cityboxitem" :class="selhot==index?'selcityactive':''" v-for="(item,index) in cityarr" :key='' @click="selhotcity(item,index)"
>{{item.name}}</view>
</view>
</view>
<!-- 当前城市 -->
<view class="city">
<view class="citytop">全部城市</view>
<view class="citybox flexone">
<view class="cityboxitem" :class="selall==index?'selcityactive':''" v-for="(item,index) in cityarr" :key='' @click="selallcity(item,index)"
>{{item.name}}</view>
</view>
</view>
</view>
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
showbanben: false,
cityarr:[],
provincename:'',
selhot:-1,
selall:-1,
selcurrent:1
}
},
onLoad() {
this.provincename=uni.getStorageSync("provincename")
this.getprovincelist()
},
methods: {
// 获取省份列表
getprovincelist() {
let that = this;
var url = 'forum/get_province';
var params = {
is_forum_hot: ''
}
console.log('7766554', params)
app.post(url, params).then((res) => {
console.log(res);
that.cityarr = res.data.data;
}).catch((err) => {
})
},
// 选择城市
selhotcity(item,index){
console.log(item);
this.selhot=index;
this.selall=-1;
this.selcurrent=0;
uni.setStorageSync("provincename",item.name);
uni.navigateBack({
checked:true
})
},
selallcity(item,index){
this.selall=index;
this.selhot=-1;
this.selcurrent=0;
uni.setStorageSync("provincename",item.name);
uni.navigateBack({
checked:true
})
},
}
}
</script>
<style>
page{
background: #fff;
}
.city{
border-bottom:16rpx solid #F7F7F7
}
.localcity{
margin-top:34rpx;
}
.localleft{
width:32rpx;
height: 32rpx;
font-size: 0;
margin-left:8rpx;
}
.localname{
color:#3D444C;
font-size: 28rpx;
margin-left:20rpx;
}
.search {
color: #06121e;
font-size: 28rpx;
}
.headmiddle {
width: 596rpx;
}
.tou {
background: #fff;
}
page {
background: #f9f9fb;
}
/* 城市 */
.citybox {
display: flex;
flex-wrap: wrap;
margin-top:26rpx;
}
.city {
padding: 0 12rpx 0 32rpx;
box-sizing: border-box;
}
.citytop{
color:#707070;
font-size: 32rpx;
margin-top:44rpx;
font-weight: bold;
}
.cityboxitem {
width: 216rpx;
height: 68rpx;
background: rgba(255, 255, 255, 1);
border: 1rpx solid rgba(189, 196, 206, 1);
opacity: 1;
border-radius: 8rpx;
color: #06121e;
font-size: 28rpx;
text-align: center;
line-height: 68rpx;
margin-right:14rpx;
margin-bottom:24rpx;
}
.selcityactive{
background:#C29445 ;
color:#fff;
font-size: 28rpx;
}
</style>
... ...
... ... @@ -8,9 +8,9 @@
<view class="infoBox">
<view class="identity">
<view class="name">我是用户昵称</view>
<text class="vip">
<text class="vip flexone">
<image src="../../static/huiyuan.png" mode="widthFix" />
VIP5
<text class="vipname">VIP5</text>
</text>
</view>
<!-- <view class="userType">身份认证 >></view> -->
... ... @@ -129,18 +129,21 @@
<view class="teacherfootname" :class="footersel==4?'activename':''">个人中心</view>
</view>
</view>
</view>
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
footersel: 4
}
},
onLoad() {
//获取个人信息
this.getuserinfo()
},
methods: {
// 设置
set() {
... ... @@ -148,6 +151,28 @@
url: '/pages/usercenter/setUp'
})
},
// 获取用户信息
getuserinfo() {
let that = this;
var url = 'member/index';
var params = {
}
console.log('7766554', params)
app.post(url, params).then((res) => {
console.log(res);
that.userinfo = res.data.data;
that.label = res.data.data.label
}).catch((err) => {
})
},
// 个人资料
personziliao() {
},
// 列表跳转
jump(e) {
let id = e.currentTarget.dataset.id;
... ... @@ -185,30 +210,30 @@
})
},
// 底部导航跳转
selnav(e){
selnav(e) {
console.log(e)
let id=e.currentTarget.dataset.id;
let id = e.currentTarget.dataset.id;
console.log(id)
if(id==1){
if (id == 1) {
uni.navigateTo({
url:'../homepage/homepage'
url: '../homepage/homepage'
})
}else if(id==2){
} else if (id == 2) {
uni.navigateTo({
url:"../nearshop/nearshop"
url: "../nearshop/nearshop"
})
}else if(id==3){
} else if (id == 3) {
uni.navigateTo({
url:"../luntan/luntan"
url: "../luntan/luntan"
})
}else if(id==4){
} else if (id == 4) {
uni.navigateTo({
url:"../usercenter/my"
url: "../usercenter/my"
})
}
},
... ... @@ -267,14 +292,26 @@
}
.vip {
background: linear-gradient(90deg, rgba(244, 210, 151, 1) 0%, rgba(252, 191, 117, 1) 100%);
padding: 0 20rpx;
height: 40rpx;
line-height: 40rpx;
box-sizing: border-box;
background: #F7CB8A;
border-radius: 20rpx;
margin-left: 16rpx;
/* background: linear-gradient(90deg, rgba(244, 210, 151, 1) 0%, rgba(252, 191, 117, 1) 100%);
border-radius: 20rpx;
font-size: 22rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: rgba(120, 71, 0, 1);
padding: 4rpx 12rpx;
margin-left: 16rpx;
margin-left: 16rpx; */
}
.vipname {
color: #784700;
font-size: 22rpx;
}
.vip image {
... ...
... ... @@ -28,9 +28,6 @@
</view>
</view>
<view class="tapnav flextwo huiyuannav boxsizing">
<view class="tapnavitem" :class="sel==1?'huiyuanactive':''" @click="selhui" :data-id="1">个人会员</view>
<view class="tapnavitem" :class="sel==2?'huiyuanactive':''" @click="selhui" :data-id="2">企业会员</view>
... ... @@ -140,7 +137,6 @@
<view class="buybtn">确认支付(¥2560.00)</view>
</view>
</view>
</view>
</template>
... ...
var isReady=false;var onReadyCallbacks=[];
var __uniConfig = {"pages":["pages/homepage/homepage","pages/nearshop/selectcoupon","pages/nearshop/cartbox","pages/login/loginindex","pages/nearshop/cartlist","pages/homepage/collectshop","pages/luntan/examineresult","pages/luntan/examintext","pages/luntan/examine","pages/nearshop/sureorder","pages/login/accountpassword","pages/login/registercode","pages/homepage/mygift","pages/homepage/drawlottery","pages/login/finishregister","pages/homepage/miaosha","pages/luntan/luntan","pages/luntan/addcontract","pages/luntan/luntandetail","pages/luntan/luntandetailsecond","pages/luntan/luntanlist","pages/luntan/luntanpage","pages/nearshop/goodtail","pages/nearshop/shopdetail","pages/usercenter/companyshenhe","pages/usercenter/usercenter","pages/nearshop/nearshop","pages/homepage/goodkind","pages/homepage/jifenshop","pages/homepage/shoplist","pages/homepage/search","pages/login/xieyi","pages/login/setmima","pages/login/register","pages/login/forgetmima","pages/index/index","pages/usercenter/setPassword","pages/usercenter/accountDetails","pages/usercenter/recharge","pages/usercenter/transferAccounts","pages/usercenter/transferDetails","pages/usercenter/cashOut","pages/usercenter/account","pages/usercenter/withdrawalsRecord","pages/usercenter/addCard","pages/usercenter/editCard","pages/usercenter/myCredit","pages/usercenter/myIntegral","pages/usercenter/myCoupon","pages/usercenter/myPublish","pages/usercenter/myOrder","pages/usercenter/shopEvaluate","pages/usercenter/sales","pages/usercenter/myAchievement","pages/usercenter/myCustomer","pages/usercenter/my","pages/usercenter/wallet","pages/usercenter/setUp","pages/usercenter/setUp","pages/usercenter/myIntegral","pages/usercenter/myCoupon","pages/usercenter/myPublish","pages/usercenter/sales","pages/usercenter/personalData","pages/usercenter/address","pages/usercenter/addAddress","pages/usercenter/myCredit","pages/usercenter/myOrder","pages/usercenter/shopEvaluate","pages/usercenter/myAchievement","pages/usercenter/myCustomer"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#fff","backgroundColor":"#fff"},"renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"zhongmian","compilerVersion":"2.6.11","entryPagePath":"pages/homepage/homepage","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/homepage/homepage","meta":{"isQuit":true},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white","navigationStyle":"custom","bounce":"none"}},{"path":"/pages/nearshop/selectcoupon","meta":{},"window":{"navigationBarTitleText":"选择优惠券","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/cartbox","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/loginindex","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/cartlist","meta":{},"window":{"navigationBarTitleText":"购物车","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/collectshop","meta":{},"window":{"navigationBarTitleText":"店铺收藏","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/examineresult","meta":{},"window":{"navigationBarTitleText":"等级考试","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/examintext","meta":{},"window":{"navigationBarTitleText":"等级考试","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/examine","meta":{},"window":{"navigationBarTitleText":"等级考试","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/sureorder","meta":{},"window":{"navigationBarTitleText":"订单详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/accountpassword","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/registercode","meta":{},"window":{"navigationBarTitleText":"注册","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/mygift","meta":{},"window":{"navigationBarTitleText":"我的奖品","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/drawlottery","meta":{},"window":{"navigationBarTitleText":"抽奖专区","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/finishregister","meta":{},"window":{"navigationBarTitleText":"注册","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/miaosha","meta":{},"window":{"navigationBarTitleText":"秒杀商城","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white","titleNView":{"titleSize":"12"}}},{"path":"/pages/luntan/luntan","meta":{},"window":{"navigationBarTitleText":"论坛","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black","navigationStyle":"custom","bounce":"none"}},{"path":"/pages/luntan/addcontract","meta":{},"window":{"navigationBarTitleText":"发布帖子","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntandetail","meta":{},"window":{"navigationBarTitleText":"帖子详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntandetailsecond","meta":{},"window":{"navigationBarTitleText":"帖子详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntanlist","meta":{},"window":{"navigationBarTitleText":"帖子列表","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntanpage","meta":{},"window":{"navigationBarTitleText":"个人主页","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/goodtail","meta":{},"window":{"navigationBarTitleText":"商品详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/shopdetail","meta":{},"window":{"navigationBarTitleText":"店铺详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/companyshenhe","meta":{},"window":{"navigationBarTitleText":"企业会员申请","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/usercenter","meta":{},"window":{"navigationBarTitleText":"会员中心","navigationBarBackgroundColor":"#ECCB90","navigationBarTextStyle":"white"}},{"path":"/pages/nearshop/nearshop","meta":{},"window":{"navigationBarTitleText":"附近店铺","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/goodkind","meta":{},"window":{"navigationBarTitleText":"商品分类","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/jifenshop","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/shoplist","meta":{},"window":{"navigationBarTitleText":"商品列表","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/search","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"white","titleNView":{"type":"transparent","searchInput":{"backgroundColor":"#fff","borderRadius":"6px","placeholder":"请输入搜索内容","disabled":false,"align":"left"},"buttons":[{"float":"right","fontSize":"12","text":"搜索"}]}}},{"path":"/pages/login/xieyi","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/setmima","meta":{},"window":{"navigationBarTitleText":"设置密码","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/register","meta":{},"window":{"navigationBarTitleText":"注册","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/forgetmima","meta":{},"window":{"navigationBarTitleText":"重置密码","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/index/index","meta":{},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/usercenter/setPassword","meta":{},"window":{"navigationBarTitleText":"设置密码","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/accountDetails","meta":{},"window":{"navigationBarTitleText":"账户明细","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/recharge","meta":{},"window":{"navigationBarTitleText":"充值","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/transferAccounts","meta":{},"window":{"navigationBarTitleText":"转账","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/transferDetails","meta":{},"window":{"navigationBarTitleText":"转账详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/cashOut","meta":{},"window":{"navigationBarTitleText":"提现","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/account","meta":{},"window":{"navigationBarTitleText":"选择到账账户","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/withdrawalsRecord","meta":{},"window":{"navigationBarTitleText":"提现记录","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/addCard","meta":{},"window":{"navigationBarTitleText":"添加银行卡","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/editCard","meta":{},"window":{"navigationBarTitleText":"编辑银行卡","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myCredit","meta":{},"window":{"navigationBarTitleText":"我的赊吧","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myIntegral","meta":{},"window":{"navigationBarTitleText":"我的积分","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myCoupon","meta":{},"window":{"navigationBarTitleText":"我的优惠券","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myPublish","meta":{},"window":{"navigationBarTitleText":"我的发布","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myOrder","meta":{},"window":{"navigationBarTitleText":"我的订单","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/shopEvaluate","meta":{},"window":{"navigationBarTitleText":"商品评价","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/sales","meta":{},"window":{"navigationBarTitleText":"销售管理","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myAchievement","meta":{},"window":{"navigationBarTitleText":"我的业绩","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myCustomer","meta":{},"window":{"navigationBarTitleText":"我的客户","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/my","meta":{},"window":{"navigationBarTitleText":"我的","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/wallet","meta":{},"window":{"navigationBarTitleText":"我的钱包","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white"}},{"path":"/pages/usercenter/setUp","meta":{},"window":{"navigationBarTitleText":"设置","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/personalData","meta":{},"window":{"navigationBarTitleText":"个人资料","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/address","meta":{},"window":{"navigationBarTitleText":"地址管理","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/addAddress","meta":{},"window":{"navigationBarTitleText":"新增收货地址","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}}];
var __uniConfig = {"pages":["pages/homepage/homepage","pages/nearshop/allprovince","pages/nearshop/selectcoupon","pages/nearshop/cartbox","pages/login/loginindex","pages/nearshop/cartlist","pages/homepage/collectshop","pages/luntan/examineresult","pages/luntan/examintext","pages/luntan/examine","pages/nearshop/sureorder","pages/login/accountpassword","pages/login/registercode","pages/homepage/mygift","pages/homepage/drawlottery","pages/login/finishregister","pages/homepage/miaosha","pages/luntan/luntan","pages/luntan/addcontract","pages/luntan/luntandetail","pages/luntan/luntandetailsecond","pages/luntan/luntanlist","pages/luntan/luntanpage","pages/nearshop/goodtail","pages/nearshop/shopdetail","pages/usercenter/companyshenhe","pages/usercenter/usercenter","pages/nearshop/nearshop","pages/homepage/goodkind","pages/homepage/jifenshop","pages/homepage/shoplist","pages/homepage/search","pages/login/xieyi","pages/login/setmima","pages/login/register","pages/login/forgetmima","pages/index/index","pages/usercenter/setPassword","pages/usercenter/accountDetails","pages/usercenter/recharge","pages/usercenter/transferAccounts","pages/usercenter/transferDetails","pages/usercenter/cashOut","pages/usercenter/account","pages/usercenter/withdrawalsRecord","pages/usercenter/addCard","pages/usercenter/editCard","pages/usercenter/myCredit","pages/usercenter/myIntegral","pages/usercenter/myCoupon","pages/usercenter/myPublish","pages/usercenter/myOrder","pages/usercenter/shopEvaluate","pages/usercenter/sales","pages/usercenter/myAchievement","pages/usercenter/myCustomer","pages/usercenter/my","pages/usercenter/wallet","pages/usercenter/setUp","pages/usercenter/setUp","pages/usercenter/myIntegral","pages/usercenter/myCoupon","pages/usercenter/myPublish","pages/usercenter/sales","pages/usercenter/personalData","pages/usercenter/address","pages/usercenter/addAddress","pages/usercenter/myCredit","pages/usercenter/myOrder","pages/usercenter/shopEvaluate","pages/usercenter/myAchievement","pages/usercenter/myCustomer"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#fff","backgroundColor":"#fff"},"renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"zhongmian","compilerVersion":"2.6.11","entryPagePath":"pages/homepage/homepage","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/homepage/homepage","meta":{"isQuit":true},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white","navigationStyle":"custom","bounce":"none"}},{"path":"/pages/nearshop/allprovince","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/login/loginindex","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/cartlist","meta":{},"window":{"navigationBarTitleText":"购物车","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/collectshop","meta":{},"window":{"navigationBarTitleText":"店铺收藏","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/examineresult","meta":{},"window":{"navigationBarTitleText":"等级考试","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/examintext","meta":{},"window":{"navigationBarTitleText":"等级考试","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/examine","meta":{},"window":{"navigationBarTitleText":"等级考试","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/sureorder","meta":{},"window":{"navigationBarTitleText":"订单详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/accountpassword","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/registercode","meta":{},"window":{"navigationBarTitleText":"注册","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/mygift","meta":{},"window":{"navigationBarTitleText":"我的奖品","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/drawlottery","meta":{},"window":{"navigationBarTitleText":"抽奖专区","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/finishregister","meta":{},"window":{"navigationBarTitleText":"注册","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/miaosha","meta":{},"window":{"navigationBarTitleText":"秒杀商城","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white","titleNView":{"titleSize":"12"}}},{"path":"/pages/luntan/luntan","meta":{},"window":{"navigationBarTitleText":"论坛","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black","navigationStyle":"custom","bounce":"none"}},{"path":"/pages/luntan/addcontract","meta":{},"window":{"navigationBarTitleText":"发布帖子","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntandetail","meta":{},"window":{"navigationBarTitleText":"帖子详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntandetailsecond","meta":{},"window":{"navigationBarTitleText":"帖子详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntanlist","meta":{},"window":{"navigationBarTitleText":"帖子列表","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/luntan/luntanpage","meta":{},"window":{"navigationBarTitleText":"个人主页","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/goodtail","meta":{},"window":{"navigationBarTitleText":"商品详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/nearshop/shopdetail","meta":{},"window":{"navigationBarTitleText":"店铺详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/companyshenhe","meta":{},"window":{"navigationBarTitleText":"企业会员申请","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/usercenter","meta":{},"window":{"navigationBarTitleText":"会员中心","navigationBarBackgroundColor":"#ECCB90","navigationBarTextStyle":"white"}},{"path":"/pages/nearshop/nearshop","meta":{},"window":{"navigationBarTitleText":"附近店铺","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/goodkind","meta":{},"window":{"navigationBarTitleText":"商品分类","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/jifenshop","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/shoplist","meta":{},"window":{"navigationBarTitleText":"商品列表","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/homepage/search","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"white","titleNView":{"type":"transparent","searchInput":{"backgroundColor":"#fff","borderRadius":"6px","placeholder":"请输入搜索内容","disabled":false,"align":"left"},"buttons":[{"float":"right","fontSize":"12","text":"搜索"}]}}},{"path":"/pages/login/xieyi","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/setmima","meta":{},"window":{"navigationBarTitleText":"设置密码","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/register","meta":{},"window":{"navigationBarTitleText":"注册","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/login/forgetmima","meta":{},"window":{"navigationBarTitleText":"重置密码","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/index/index","meta":{},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/usercenter/setPassword","meta":{},"window":{"navigationBarTitleText":"设置密码","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/accountDetails","meta":{},"window":{"navigationBarTitleText":"账户明细","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/recharge","meta":{},"window":{"navigationBarTitleText":"充值","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/transferAccounts","meta":{},"window":{"navigationBarTitleText":"转账","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/transferDetails","meta":{},"window":{"navigationBarTitleText":"转账详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/cashOut","meta":{},"window":{"navigationBarTitleText":"提现","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/account","meta":{},"window":{"navigationBarTitleText":"选择到账账户","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/withdrawalsRecord","meta":{},"window":{"navigationBarTitleText":"提现记录","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/addCard","meta":{},"window":{"navigationBarTitleText":"添加银行卡","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/editCard","meta":{},"window":{"navigationBarTitleText":"编辑银行卡","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myCredit","meta":{},"window":{"navigationBarTitleText":"我的赊吧","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myIntegral","meta":{},"window":{"navigationBarTitleText":"我的积分","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myCoupon","meta":{},"window":{"navigationBarTitleText":"我的优惠券","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myPublish","meta":{},"window":{"navigationBarTitleText":"我的发布","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myOrder","meta":{},"window":{"navigationBarTitleText":"我的订单","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/shopEvaluate","meta":{},"window":{"navigationBarTitleText":"商品评价","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/sales","meta":{},"window":{"navigationBarTitleText":"销售管理","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myAchievement","meta":{},"window":{"navigationBarTitleText":"我的业绩","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/myCustomer","meta":{},"window":{"navigationBarTitleText":"我的客户","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/my","meta":{},"window":{"navigationBarTitleText":"我的","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/wallet","meta":{},"window":{"navigationBarTitleText":"我的钱包","navigationBarBackgroundColor":"#C29445","navigationBarTextStyle":"white"}},{"path":"/pages/usercenter/setUp","meta":{},"window":{"navigationBarTitleText":"设置","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/personalData","meta":{},"window":{"navigationBarTitleText":"个人资料","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/address","meta":{},"window":{"navigationBarTitleText":"地址管理","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}},{"path":"/pages/usercenter/addAddress","meta":{},"window":{"navigationBarTitleText":"新增收货地址","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black"}}];
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}});
... ...