作者 lihongjuan

提交

... ... @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>中国面条</title>
</head>
... ...
<script>
let url = location.href.split("?");
let params = url[1].split("&");
let data = {};
params.forEach((n, i) => {
let p = n.split("=");
data[p[0]] = p[1];
});
if (!!data.shareRedirect) {
alert(decodeURIComponent(data.shareRedirect));
window.location.href = decodeURIComponent(data.shareRedirect);
}
</script>
\ No newline at end of file
... ...
... ... @@ -12,8 +12,11 @@ export default {
};
},
mounted(){
this.getuserinfo();
},
created() {
this.getuserinfo()
},
methods: {
... ... @@ -30,7 +33,7 @@ export default {
localStorage.setItem("avatar", res.data.avatar)
localStorage.setItem("address", res.data.address)
localStorage.setItem("nickname", res.data.nickname)
localStorage.setItem("label", JSON.stringify(resd.ata.label))
localStorage.setItem("label", JSON.stringify(res.data.label))
})
... ... @@ -48,6 +51,9 @@ body,
html {
background: #f5f5f5;
}
.container{
overflow-x:hidden;
}
#app {
}
/* a标签去除默认样式 */
... ...

13.4 KB | 宽: | 高:

7.8 KB | 宽: | 高:

  • 两方对比
  • 交换覆盖
  • 透明覆盖
<template>
<div>
<div class="tiezhlist">
<!-- 我的关注 -->
<div class="tiezhlist" v-if="fenlei==1">
<div
class="tieziitem"
v-for="(item, index) in tiezilist"
:key="index"
>
<div class="tiezitop flexone">
<div class="tieziimg">
<img :src="item.avatar ? item.avatar : item.to_user.avatar" alt="" />
</div>
<div class="tieziright">
<div class="tiezirighttop flex">
<div class="timeright">
<div class="tieziming">
{{ item.nickname ? item.nickname : item.to_user.nickname }}
</div>
<div class="tiezifen">{{item.to_user.createtime}}</div>
</div>
<div>
<div class="vipimg">
<img src="../assets/vip_icon@2x.png" alt="" />
<div class="vipname">{{ item.to_user.level.name1 }}</div>
</div>
<div class="tiezizhuan" v-for="(item,index) in item.to_user.label" :key="index" >{{item.name_label}}</div>
</div>
<img
:src="item.logo_image"
class="banggongimg"
alt=""
v-for="(item, index) in item.to_user.label"
:key="index"
/>
<!-- <img
src="../assets/peisong_icon@2x.png"
class="banggongimg"
alt=""
/> -->
<img
src="../assets/yirenzheng_icon@2x.png"
class="banggongimg"
alt=""
v-if="item.to_user.is_card == 1"
/>
</div>
<div class="tiezibto flexone"></div>
</div>
</div>
<div class="tiezicontent">
<div class="teizicontenttop flextwo">
<div class="tiezicontentname">{{ item.to_user.title }}</div>
</div>
<div class="tieziwordbox" v-html="item.to_user.content"></div>
<div
class="teiziimgbox flexone"
v-if="item.video != null"
@click.stop="govideo(item.to_user.video)"
>
<div class="videoimg">
<img :src="item.to_user.video_image" alt="" />
<img src="../assets/bofang_icon@2x.png" alt="" class="videobtn" />
</div>
</div>
<div class="teiziimgbox flexone" v-if="item.to_user.images != null">
<div
class="tieziimgimg"
v-for="(item, indexk) in item.to_user.images"
:key="indexk"
@click.stop="previewimg(index, indexk, item)"
>
<img :src="item" alt="" />
</div>
</div>
</div>
</div>
</div>
<!-- 其余三个种类 -->
<div class="tiezhlist" v-else>
<div
class="tieziitem"
v-for="(item, index) in tiezilist"
... ... @@ -13,11 +95,11 @@
</div>
<div class="tieziright">
<div class="tiezirighttop flex">
<div>
<div class="timeright">
<div class="tieziming">
{{ item.nickname ? item.nickname : item.user.nickname }}
</div>
<div class="tiezifen">30分钟</div>
<div class="tiezifen">{{item.createtime}}</div>
</div>
<div>
... ... @@ -25,10 +107,10 @@
<img src="../assets/vip_icon@2x.png" alt="" />
<div class="vipname">{{ item.user.level.name1 }}</div>
</div>
<div class="tiezizhuan">面坊转让</div>
<div class="tiezizhuan" v-for="(item,index) in item.user.label" :key="index" >{{item.name_label}}</div>
</div>
<img
:src="item"
:src="item.logo_image"
class="banggongimg"
alt=""
v-for="(item, index) in item.user.label"
... ... @@ -52,16 +134,19 @@
<div class="tiezicontent">
<div class="teizicontenttop flextwo">
<div class="tiezicontentname">{{ item.title }}</div>
<!-- <img
<img
src="../assets/xingxing_icon@2x.png"
alt=""
class="starimg"
v-if="item.is_collect==1"
@click.stop="collect(index,item.id)"
/>
<img
src="../assets/weishoucang_icon@2x.png"
<img src="../assets/weishoucang_icon@2x.png"
alt=""
class="starimg"
/> -->
v-else
@click.stop="collect(index,item.id)"
/>
</div>
<div class="tieziwordbox" v-html="item.content"></div>
... ... @@ -115,11 +200,19 @@
</div>
<div class="teizipingitem flexone">
<img
src="../assets/cai_icon@2x.png"
src="../assets/number.png"
alt=""
class="lunimg zanimg"
/>
{{item.view}}
</div>
<div class="teizipingitem flexone" v-if="fenlei==0" @click.stop="del(item)">
<img
src="../assets/del.png"
alt=""
class="lunimg zanimg"
/>
1005
</div>
</div>
</div>
... ... @@ -130,7 +223,7 @@
<script>
import wx from "weixin-js-sdk";
import Vue from "vue";
import { Toast } from "vant";
import { Toast,Dialog } from "vant";
Vue.use(Toast);
export default {
props: ["tiezilist", "showpull", "fenlei"],
... ... @@ -172,6 +265,36 @@ export default {
});
},
// 收藏和取消收藏
collect(index,id){
let that = this;
var url = "/api/forum/collect";
var params = {
forum_id: id
};
console.log("7766554", params);
that.$axios
.post(url, params)
.then(res => {
let newtiezilist=that.tiezilist;
if( newtiezilist[index].is_collect==2){
newtiezilist[index].is_collect=1;
Toast("收藏成功")
}else{
newtiezilist[index].is_collect=2;
Toast("取消收藏成功")
}
that.tiezilist=newtiezilist;
that.$forceUpdate()
that.bannertop = res.data;
})
.catch(err => {
console.log(err);
});
},
// 点赞和取消点赞
praisedian(item, index) {
let that = this;
... ... @@ -216,7 +339,6 @@ export default {
Toast("取消点赞成功");
}
this.tiezilist = this.tiezilist;
var url = "/api/comments/praise";
var params = {
comments_id: item.id
... ... @@ -246,11 +368,48 @@ export default {
},
// 预览图片
previewimg(index, indexk, item) {
wx.previewImage({
current: item, // 当前显示图片的http链接
urls: this.tiezilist[index].images // 需要预览的图片http链接列表
});
}
},
del(item) {
let that = this;
console.log(3443893489809)
Dialog.confirm({
title: "是否撤销帖子"
})
.then(res => {
console.log(3489348);
let that = this;
var url = "/api/forum/delete_forum";
let param = {
forum_id: item.id
};
that.$axios
.post(url, param)
.then(function (res) {
console.log(res);
that.tiezilist.forEach(function(value,index,array){
if(value.id==item.id){
that.tiezilist.splice(index,1)
}
})
that.tiezilist=that.tiezilist;
that.$forceUpdate()
})
.catch(function (err) {
console.log(err);
});
// on confirm
})
.catch(res => {
// on cancel
});
},
}
};
</script>
... ...
.docswiper {
width: 7.5rem;
height: 2rem;
max-height: 3rem;
}
.souimg {
... ... @@ -11,7 +11,7 @@
.bannerimg {
width: 7.5rem;
height: 2rem;
max-height: 3rem;
font-size: 0;
}
... ... @@ -96,7 +96,7 @@
}
.homepagebox {
margin-top: 3rem;
margin-top: 4rem;
margin-bottom: 1.5rem;
}
... ... @@ -122,7 +122,7 @@
}
.homefenlei {
padding: 0.24rem 1.6rem;
padding: 0.24rem 1.6rem 0.24rem 2rem;
box-sizing: border-box;
border-bottom: 0.13rem solid #f5f5f5;
background: #fff;
... ... @@ -204,7 +204,7 @@
.tieziming {
color: #000000;
font-size: 0.28rem;
margin-right: 0.3rem;
/* margin-right: 0.3rem; */
margin-top: 0.1rem;
}
... ... @@ -254,13 +254,14 @@
}
.tieziwordbox {
color: #898989;
color: #333;
font-size: 0.28rem;
margin-top: 0.08rem;
display: -webkit-box;
/* display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
overflow: hidden; */
/* height: 2rem; */
}
.tieziimgimg {
... ... @@ -422,8 +423,7 @@
.writebox {
width: 5.96rem;
height: 0.58rem;
opacity: 0.2;
background: #d3d3d3;
/* background: #d3d3d3; */
border: 1px solid #7f7f7f;
border-radius: 0.29rem;
color: #333;
... ... @@ -584,6 +584,7 @@
background: #fff;
margin-top: 0.32rem;
border-top: 0.16rem solid #f5f5f5;
margin-bottom: 1rem
}
.commentname {
... ... @@ -762,7 +763,7 @@
.resulttop {
width: 7.5rem;
height: 4.1rem;
background: #fff;
/* background: #fff; */
padding-top: 0.93rem;
}
... ... @@ -974,4 +975,8 @@
left: 0;
padding: 0 0.18rem;
box-sizing: border-box;
}
.timeright {
margin-right: 0.2rem;
}
\ No newline at end of file
... ...
... ... @@ -103,7 +103,7 @@ export default {
"pagePath": "/mine",
"iconPath": require("../assets/mine.png"),
"selectedIconPath": require("../assets/mineactive.png"),
"text": "个人中心"
"text": "我的"
}
],
currentTabIndex: this.active,
... ... @@ -176,7 +176,7 @@ export default {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.1rem 0.7rem;
padding: 0.1rem 0.6rem;
box-sizing: border-box;
position: fixed;
bottom: 0;
... ... @@ -194,7 +194,7 @@ export default {
.teacherfootname {
color: #5b5e63;
font-size: 0.22rem;
font-size: 0.26rem;
margin-top: 0.05rem;
}
.shou {
... ...
... ... @@ -15,7 +15,7 @@
<div class="tiezirighttop flex">
<div>
<div class="tieziming">{{ item.user.nickname }}</div>
<div class="tiezifen">30分钟</div>
<div class="tiezifen">{{item.createtime}}</div>
</div>
<div>
... ... @@ -23,7 +23,7 @@
<img src="../assets/vip_icon@2x.png" alt="" />
<div class="vipname">{{ item.user.level.name1 }}</div>
</div>
<div class="tiezizhuan">面坊转让</div>
<div class="tiezizhuan" v-for="(item,index) in item.user.label" :key="index" >{{item.name_label}}</div>
</div>
<img
:src="item"
... ... @@ -32,11 +32,6 @@
v-for="(item, index) in item.user.label"
:key="index"
/>
<!-- <img
src="../assets/peisong_icon@2x.png"
class="banggongimg"
alt=""
/> -->
<img
src="../assets/yirenzheng_icon@2x.png"
class="banggongimg"
... ... @@ -50,16 +45,20 @@
<div class="tiezicontent">
<div class="teizicontenttop flextwo">
<div class="tiezicontentname">{{ item.title }}</div>
<!-- <img
<img
src="../assets/xingxing_icon@2x.png"
alt=""
class="starimg"
v-if="item.is_collect==1"
@click.stop="collect(index,item.id)"
/>
<img
src="../assets/weishoucang_icon@2x.png"
alt=""
class="starimg"
/> -->
@click.stop="collect(index,item.id)"
v-else
/>
</div>
<div class="tieziwordbox" v-html="item.content"></div>
... ... @@ -108,11 +107,11 @@
</div>
<div class="teizipingitem flexone">
<img
src="../assets/cai_icon@2x.png"
src="../assets/number.png"
alt=""
class="lunimg zanimg"
/>
1005
{{item.view}}
</div>
</div>
</div>
... ... @@ -124,6 +123,7 @@
import wx from "weixin-js-sdk";
import Vue from "vue";
import { Toast } from "vant";
Vue.use(Toast);
export default {
props: ["tiezilist", "showpull"],
... ... @@ -164,7 +164,36 @@ export default {
console.log(err);
});
},
// 收藏和取消收藏
collect(index,id){
let that = this;
var url = "/api/forum/collect";
var params = {
forum_id: id
};
console.log("7766554", params);
that.$axios
.post(url, params)
.then(res => {
let newtiezilist=that.tiezilist;
if( newtiezilist[index].is_collect==2){
newtiezilist[index].is_collect=1;
Toast("收藏成功")
}else{
newtiezilist[index].is_collect=2;
Toast("取消收藏成功")
}
that.tiezilist=newtiezilist;
that.$forceUpdate()
that.bannertop = res.data;
})
.catch(err => {
console.log(err);
});
},
// 点赞和取消点赞
praisedian(item, index) {
let that = this;
... ...
... ... @@ -234,6 +234,11 @@ export default {
that.showpull = false;
}
}
that.tiezilist.forEach(function(value,index,array){
value.content=richTextFormat(value.content)
})
that.tiezilist=that.tiezilist;
that.$forceUpdate()
})
.catch(err => {
console.log(err);
... ...
<template>
<div class="container">
<div class="container containberbox">
<!-- <div class="nodata" v-if="present_data==''">暂无考试内容</div> -->
<div>
<div class="texttitle">
... ... @@ -302,15 +302,14 @@ export default {
console.log(that.score)
Toast('提交成功')
localStorage.setItem("present_datak", null)
localStorage.setItem("present_datakarr", null);
this.$router.push({
that.$router.push({
path: '/kaoshiresult',
query: {
score: that.score,
id: that.questionnaire_id,
is_pass: res.data.is_pass
is_pass: res.data.is_pass,
zhengshu:res.data.poster_url
}
})
... ... @@ -398,6 +397,7 @@ export default {
height: 1.16rem;
padding: 0.14rem 0.32rem;
}
.textlist {
.containberbox {
overflow-x: hidden;
}
</style>
... ...
... ... @@ -84,21 +84,23 @@
finished-text="没有更多了"
@load="onLoad"
>
<div
class="tieziitem"
v-for="(item, index) in tiezilist"
:key="index"
@click="luntandetail(item)"
>
<div class="tiezitop flexone">
<div class="tieziimg">
<img :src="item.user.avatar" alt="" />
</div>
<div class="tieziright">
<div class="tieziright" v-if="showlist">
<div class="tiezirighttop flex">
<div>
<div class="timeright">
<div class="tieziming">{{ item.user.nickname }}</div>
<div class="tiezifen">30分钟</div>
<div class="tiezifen">{{item.createtime}}</div>
</div>
<div>
... ... @@ -106,7 +108,7 @@
<img src="../../../assets/vip_icon@2x.png" alt="" />
<div class="vipname">{{ item.user.level.name1 }}</div>
</div>
<div class="tiezizhuan">面坊转让</div>
<div class="tiezizhuan" v-for="(item,index) in item.user.label" :key="index" >{{item.name_label}}</div>
</div>
<img
:src="item"
... ... @@ -133,16 +135,20 @@
<div class="tiezicontent">
<div class="teizicontenttop flextwo">
<div class="tiezicontentname">{{ item.title }}</div>
<!-- <img
<img
src="../../../assets/xingxing_icon@2x.png"
alt=""
class="starimg"
v-if="item.is_collect==1"
@click.stop="collect(index,item.id)"
/>
<img
src="../../../assets/weishoucang_icon@2x.png"
alt=""
class="starimg"
/> -->
v-else
@click.stop="collect(index,item.id)"
/>
</div>
<div class="tieziwordbox" v-html="item.content"></div>
... ... @@ -198,16 +204,17 @@
{{ item.praise }}
</div>
<div class="teizipingitem flexone">
<img
src="../../../assets/cai_icon@2x.png"
alt=""
class="lunimg zanimg"
/>
1005
<img
src="../../../assets/number.png"
alt=""
class="lunimg zanimg"
/>
{{item.view}}
</div>
</div>
</div>
</div>
</van-list>
</div>
</div>
... ... @@ -274,7 +281,8 @@ import tabBar from "@/components/tabsec.vue";
import { Swipe, SwipeItem, List, Toast } from "vant";
import area from "../../../utils/area.js";
import { changename } from "../../../utils/base.js"; //城市去掉市
import { text } from "../../../utils/base.js"; //城市去掉市
import { text } from "../../../utils/base.js"; //富文本格式化
import {richTextFormat} from "../../../utils/base.js" //富文本超出显示省略号
Vue.use(List);
Vue.use(Swipe);
... ... @@ -286,6 +294,7 @@ export default {
data() {
return {
fenlei: 0,
showlist:false,
showpublish: false,
tiezikind: [],
tiezilist: [],
... ... @@ -299,6 +308,7 @@ export default {
province_id: "",
keyword: "",
bannertop: [] // 顶部轮播图
};
},
created() {
... ... @@ -309,6 +319,7 @@ export default {
this.getappid();
// 获取帖子分类
this.gettiezikind();
},
beforeRouteEnter(to, from, next) {
var u = navigator.userAgent;
... ... @@ -322,7 +333,37 @@ export default {
}
},
methods: {
// 获取轮播图
// 收藏和取消收藏
collect(index,id){
let that = this;
var url = "/api/forum/collect";
var params = {
forum_id: id
};
console.log("7766554", params);
that.$axios
.post(url, params)
.then(res => {
let newtiezilist=that.tiezilist;
if( newtiezilist[index].is_collect==2){
newtiezilist[index].is_collect=1;
Toast("收藏成功")
}else{
newtiezilist[index].is_collect=2;
Toast("取消收藏成功")
}
that.tiezilist=newtiezilist;
that.$forceUpdate()
that.bannertop = res.data;
})
.catch(err => {
console.log(err);
});
},
// 获取轮播图
getbannertop() {
let that = this;
var url = "/api/sundry/get_slide2";
... ... @@ -405,33 +446,35 @@ export default {
nonceStr: res.data.nonceStr, // 必填,生成签名的随机串
signature: res.data.signature, // 必填,签名,见附录1
//需要分享的列表项:发送给朋友,分享到朋友圈,分享到QQ,分享到QQ空间
jsApiList: ["getLocation", "previewImage"]
jsApiList: ["imagePreview","geoLocation"]
});
wx.getLocation({
type: "gcj02", // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
success: function (res) {
console.log(res, "获取地理位置");
var url =
"https://restapi.amap.com/v3/geocode/regeo?key=735d888fa7a9599eea4de210edc32335&location=" +
res.longitude +
"," +
res.latitude +
"&output=JSON&batch=false&roadlevel=0";
that.$http
.get(url)
.then(mapres => {
console.log(mapres, "详细地址");
})
.catch(function (maperr) {
that.proname = maperr.regeocode.addressComponent.province;
if (changename(that.proname) != "") {
that.proname = changename(that.proname);
}
localStorage.setItem("proname", that.proname);
that.getprovinceid();
});
}
wx.ready(function() {
wx.getLocation({
type: "gcj02", // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
success: function (res) {
console.log(res, "获取地理位置");
var url =
"https://restapi.amap.com/v3/geocode/regeo?key=735d888fa7a9599eea4de210edc32335&location=" +
res.longitude +
"," +
res.latitude +
"&output=JSON&batch=false&roadlevel=0";
that.$http
.get(url)
.then(mapres => {
console.log(mapres, "详细地址");
})
.catch(function (maperr) {
that.proname = maperr.regeocode.addressComponent.province;
if (changename(that.proname) != "") {
that.proname = changename(that.proname);
}
localStorage.setItem("proname", that.proname);
that.getprovinceid();
});
}
});
});
})
.catch(function (err) {
... ... @@ -461,16 +504,15 @@ export default {
console.log(err);
});
},
// 获取分类列表
gettiezikind() {
let that = this;
console.log(34734894890);
let urlk = window.location.href;
var url = "/api/forum/get_forum_category";
let param = {};
let param = {
type:2
};
that.$axios
.post(url, param)
.then(function (res) {
... ... @@ -481,6 +523,7 @@ export default {
console.log(err);
});
},
// 获取帖子列表
getteizilist() {
let that = this;
... ... @@ -506,11 +549,18 @@ export default {
});
if (that.page > 1) {
if (res.data.length == 0) {
Toast("没有更多了~");
that.showpull = false;
}
}
setTimeout(function(){
that.showlist=true
},200)
console.log(that.tiezilist);
that.tiezilist.forEach(function(value,index,array){
value.content=richTextFormat(value.content)
})
that.tiezilist=that.tiezilist;
that.$forceUpdate()
})
.catch(function (err) {
console.log(err);
... ... @@ -538,7 +588,7 @@ export default {
that.tiezilist = that.tiezilist;
var url = "forum/praise";
var url = "/api/forum/praise";
var params = {
forum_id: item.id
};
... ... @@ -599,7 +649,15 @@ export default {
id: item.id
}
});
} else if (item.id == 5) {
} else if (item.id == 4) {
this.$router.push({
path: "/duanshipinlist",
query: {
id: item.id
}
});
}
else if (item.id == 5) {
this.$router.push({
path: "/zhongmianzixun"
});
... ...
... ... @@ -5,22 +5,25 @@
<div class="weiguitou flexone">
<div class="nameleft">姓名</div>
<div class="nameitem nameitemk">
<input type="text" placeholder="输入姓名" />
<input type="text" placeholder="输入姓名" v-model="name"/>
</div>
</div>
</div>
<div class="weiquanitem flextwo">
<div class="weiquanitem flextwo" @click="choseregion">
<div class="weiguitou flexone">
<div class="nameleft">籍贯</div>
<div class="nameitem nameitemk">
<input type="text" placeholder="输入籍贯" />
{{regionname}}
<!-- <input type="text" placeholder="输入籍贯" v-model="jiguan"/> -->
</div>
</div>
<img src="../../../assets/youjiantou.png" alt="" class="youjian" />
</div>
<div class="weiquanitem flextwo">
<div class="weiquanitem flextwo" @click="chosesex">
<div class="weiguitou flexone">
<div class="nameleft">性别</div>
<div class="nameitem nameitemk"></div>
<div class="nameitem nameitemk">{{sexname}}</div>
</div>
<img src="../../../assets/youjiantou.png" alt="" class="youjian" />
</div>
... ... @@ -28,7 +31,7 @@
<div class="weiguitou flexone">
<div class="nameleft">联系方式</div>
<div class="nameitem nameitemk">
<input type="text" placeholder="输入联系方式" />
<input type="number" placeholder="输入联系方式" v-model="mobile"/>
</div>
</div>
</div>
... ... @@ -36,19 +39,253 @@
<div class="weiguitou flexone">
<div class="nameleft">身份证号</div>
<div class="nameitem nameitemk">
<input type="text" placeholder="输入身份证号" />
<input type="text" placeholder="输入身份证号" v-model="card"/>
</div>
</div>
</div>
<div class="weiquanitem">
<div class="nameleft upheadimg">上传头像</div>
<!-- 上传图片 -->
<div class="addpicox flexone">
<!-- <div class="addpic" v-for="(item, index) in images" :key="index">
<image :src="item" mode=""></image>
<div class="delimg" @click="deleteimg(index)" :data-url="item">
<image src="../../../assets/close.png" mode=""></image>
</div>
</div> -->
<div class="flexone">
<van-uploader
v-model="fileList"
multiple="true"
:after-read="afterRead"
:max-count="1"
style="margin-right: 0.2rem"
/>
<!-- <img src="../../../assets/add.png" alt="" /> -->
</div>
</div>
</div>
</div>
<div class="tuichu">保存</div>
<div class="baocun" @click="save">保存</div>
<!-- 选择男女 -->
<van-picker
title=""
show-toolbar
:columns="columns"
@confirm="onConfirm"
@cancel="onCancel"
v-if="showsex"
/>
<!-- 选择省市区 -->
<van-area title="" :area-list="areaList" :columns-num="2" @confirm="selectregion" @cancel="cancelregion" v-if="showregion"/>
<!-- 图片上传中 -->
<van-loading type="spinner" color="#1989fa" v-if="cardzheng" />
</div>
</template>
<script>
export default {};
import Vue from 'vue';
import { Picker,Area, Toast } from 'vant';
import area from "../../../utils/region.js"
Vue.use(Area);
Vue.use(Picker);
export default {
data(){
return{
columns:["男","女"],
showsex:false,
sexname:'请选择性别',
name:"",
jiguan:'',
card:'',
mobile:"",
id:"",//考试类型
image:'',
chuanimg:'',
fileList:[],
examinee_gender:'',//性别
examinee_province_name:'',
examinee_city_name:'',
areaList:area,
showregion:false,
regionname:'请选择籍贯',
cardzheng:false,//图片上传中
}
},
created(){
document.body.style.backgroundColor = "#fff";
this.id= this.$route.query.id
},
methods:{
save(){
let that = this;
if(that.name==''){
Toast("请输入姓名");
return false
}
if(that.examinee_province_name==''){
Toast("请选择籍贯");
return false
}
if(that.examinee_gender==''){
Toast("请选择性别");
return false
}
if(that.mobile==''){
Toast("请输入联系方式");
return false
}
if (!(/^1[3456789]\d{9}$/.test(that.mobile))) {
Toast("请输入正确的联系方式");
return false;
}
if(that.card==''){
Toast("请输入身份证号");
return false
}
var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
if(!reg.test(that.card)){
Toast("请输入正确的身份证号");
return false
}
if(that.chuanimg==''){
Toast("请选择头像");
return false
}
var url = '/api/member/update_user';
var params = {
examinee_name:that.name,
examinee_province_name:that.examinee_province_name,
examinee_city_name:that.examinee_city_name,
examinee_gender:that.examinee_gender,
examinee_mobile:that.mobile,
examinee_card_number:that.card,
examinee_image:that.chuanimg
}
console.log('7766554', params)
that.$axios.post(url, params).then((res) => {
console.log(res);
Toast('提交成功')
that.$router.push({
path: '/examinetext',
query: { id: that.id }
})
}).catch((err) => {
console.log(err)
})
},
// 上传图片
afterRead(file) {
let that = this;
console.log(file);
console.log(file.length);
that.cardzheng = true;
if (file.length == undefined) {
var formdata = new FormData();
formdata.append("file", file.file);
var url = "/api/common/upload";
that.$uploadFile
.post(url, formdata)
.then(function (res) {
console.log(res);
let url = "https://app.chinesenooddles.com" + res.data.url;
that.image=url;
that.chuanimg=res.data.url;
that.cardzheng=false
})
.catch(err => {
console.log(err);
});
}
},
// 选择性别
chosesex(){
this.showsex=true
},
// 确定选择性别
onConfirm(value, index){
if(value=="男"){
this.examinee_gender=1
}else{
this.examinee_gender=2
}
this.sexname=value;
this.showsex=false
},
// 取消性别选择
onCancel(){
this.showsex=false
},
choseregion(){
this.showregion=true
},
// 确定选择省市区
selectregion(value,index){
console.log(value)
if(value[0].name=='北京市'){
this.regionname=value[0].name
}else if(value[0].name=='天津市'){
this.regionname=value[0].name
}else if(value[0].name=='上海市'){
this.regionname=value[0].name
}else if(value[0].name=='重庆市'){
this.regionname=value[0].name
}else{
this.regionname=value[0].name+value[1].name
}
this.examinee_province_name=value[0].name;
this.examinee_city_name=value[1].name;
this.showregion=false
},
// 取消选择地区
cancelregion(){
this.showregion=false
}
}
};
</script>
<style scoped>
@import "../../style/homepage.css";
.baocun {
width: 6.35rem;
height: 0.97rem;
background: #c68c3e;
border-radius: 0.31rem;
color: #fff;
font-size: 0.32rem;
text-align: center;
line-height: 0.97rem;
margin:2rem auto 0
}
.nameleft{
color: #333;
font-size: 0.28rem;
}
.upheadimg{
margin-bottom:0.2rem
}
/* 选择性别弹层 */
.van-picker{
position:fixed;
left:0;
bottom:0;
width:100%
}
.van-loading {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 99;
}
</style>
... ...
... ... @@ -7,10 +7,20 @@
</div>
<div class="resulttext" v-else>恭喜您通过本次考试!</div>
</div>
<div class="lingzheng" @click="lingzheng">点击领证</div>
<div v-if="id==3">
<div class="lingzheng" @click="rekaoshi" >重新考试</div>
</div>
<div v-else>
<div class="lingzheng" @click="lingzheng" v-if="is_pass == 1">点击领证</div>
<div class="lingzheng" @click="rekaoshi" v-if="is_pass == 2">重新考试</div>
</div>
<div class="register" v-if="miangongshow" @click="hidezheng">
<div class="zhengbox">
<div class="zhengshuimg">
<img :src=zhengshu alt="">
</div>
<!-- <div class="zhengbox">
<img src="../../../assets/zhengbox.png" alt="" />
<div class="miangongbox">
<div class="miangongtop flex">
... ... @@ -49,32 +59,61 @@
</div>
</div>
</div>
</div>
<div class="fanhui">返回首页 10s</div>
</div> -->
<div class="fanhui" @click="back">返回首页{{backtime}}s</div>
</div>
</div>
</template>
<script>
var interval=''
export default {
data() {
return {
miangongshow: false,
score: '',
id: '',
is_pass: ''
is_pass: '',
zhengshu:'',
backtime:10
};
},
created() {
let that=this
this.score = this.$route.query.score;
console.log(this.score)
this.id = this.$route.query.id;
this.is_pass = this.$route.query.is_pass
this.is_pass = this.$route.query.is_pass;
this.zhengshu=this.$route.query.zhengshu;
},
methods: {
lingzheng() {
let that=this;
this.miangongshow = true;
interval=setInterval(function(){
that.backtime=that.backtime-1;
if(that.backtime==0){
that.$router.push({
path:'/mykaoshi'
})
}
},1000)
},
rekaoshi(){
this.$router.push({
path:'/mykaoshi'
})
},
// 返回
back(){
this.$router.push({
path:'/mykaoshi'
})
},
hidezheng() {
this.miangongshow = false;
... ... @@ -85,4 +124,12 @@ export default {
<style scoped>
@import "../../style/homepage.css";
.zhengshuimg{
width:5.88rem;
height:3.76rem;
position: absolute;
top:50%;
left:50%;
transform: translate(-50%,-50%);
}
</style>
... ...
... ... @@ -9,28 +9,25 @@
<div>
<div class="tieziming">{{ userinfo.nickname }}</div>
</div>
<div>
<div class="vipimg">
<div class="vipimg" style="margin-left:0.4rem">
<img src="../../../assets/vip_icon@2x.png" alt="" />
<div class="vipname">{{ userinfo.level.name1 }}</div>
<div class="vipname" >{{ userinfo.level.name1 }}</div>
</div>
</div>
<img
src="../../../assets/banggong_icon@2x.png"
class="banggongimg"
alt=""
/>
<img
src="../../../assets/peisong_icon@2x.png"
class="banggongimg"
alt=""
/>
<img
src="../../../assets/yirenzheng_icon@2x.png"
class="banggongimg"
alt=""
/>
<img
:src="item.logo_image"
class="banggongimg"
alt=""
v-for="(item, index) in userinfo.label"
:key="index"
/>
<img
src="../../../assets/yirenzheng_icon@2x.png"
class="banggongimg"
alt=""
v-if="userinfo.is_card == 1"
/>
</div>
<div class="tiezibto flexone"></div>
</div>
... ... @@ -42,14 +39,14 @@
:key="index"
@click="examinetext(item)"
>
<img :src="item.image" alt="" class="homepageitemimg" />
<img :src="item.imageexaminetext" alt="" class="homepageitemimg" />
<div class="homepageitemname">{{ item.name }}</div>
</div>
</div>
<div class="kaoshirule">
<div class="kaoshiruletitle">考试规则</div>
<div class="kaoshiruletext">
{{ rulecontent }}
<div class="kaoshiruletext" v-html="rulecontent">
</div>
</div>
</div>
... ... @@ -66,6 +63,7 @@ export default {
}
},
created() {
document.body.style.backgroundColor = "#fff";
this.getuserinfo()
this.getrulecontent();
this.getquestionlist()
... ... @@ -85,9 +83,6 @@ export default {
setTimeout(function () {
that.show = true
}, 200)
}).catch((err) => {
console.log(err)
... ... @@ -121,9 +116,6 @@ export default {
that.$axios.post(url, params).then((res) => {
console.log(res);
that.rulecontent = res.data.content == null ? '' : res.data.content
}).catch((err) => {
console.log(err)
... ... @@ -132,7 +124,7 @@ export default {
//帮工考试
examinetext(item) {
this.$router.push({
path: '/examinetext',
path: '/kaoshenginfo',
query: { id: item.id }
})
... ... @@ -140,7 +132,6 @@ export default {
}
};
</script>
<style scoped>
@import "../../style/homepage.css";
</style>
... ...
... ... @@ -7,7 +7,8 @@
<div class="personboxright">
<div class="persondis flexone">
<div class="personname">{{ user.nickname }}</div>
<div
<div v-if='user_id!=null'>
<div
class="personguan"
v-if="user.is_attention == 2"
@click="attentionguan"
... ... @@ -20,9 +21,10 @@
v-if="user.is_attention == 1"
>
取消关注
</div>
</div></div>
</div>
<div class="connectphone">联系方式:15822184563</div>
<div class="connectphone">联系方式:{{user.mobile_hide}}</div>
</div>
</div>
<div class="tiezhlist">
... ... @@ -34,104 +36,7 @@
>
<tiezicontent :tiezilist="personlist" :showpull="showpull" />
</van-list>
<!-- <div class="tieziitem">
<div class="tiezitop flexone">
<div class="tieziimg">
<img src="../../../assets/touxiang_img@2x.png" alt="" />
</div>
<div class="tieziright">
<div class="tiezirighttop flex">
<div>
<div class="tieziming">中面小麦</div>
<div class="tiezifen">30分钟</div>
</div>
<div>
<div class="vipimg">
<img src="../../../assets/vip_icon@2x.png" alt="" />
<div class="vipname">VIP1</div>
</div>
<div class="tiezizhuan">面坊转让</div>
</div>
<img
src="../../../assets/banggong_icon@2x.png"
class="banggongimg"
alt=""
/>
<img
src="../../../assets/peisong_icon@2x.png"
class="banggongimg"
alt=""
/>
<img
src="../../../assets/yirenzheng_icon@2x.png"
class="banggongimg"
alt=""
/>
</div>
<div class="tiezibto flexone"></div>
</div>
</div>
<div class="tiezicontent">
<div class="teizicontenttop flextwo">
<div class="tiezicontentname">滚滚长江东逝水</div>
<img
src="../../../assets/xingxing_icon@2x.png"
alt=""
class="starimg"
/>
<img
src="../../../assets/weishoucang_icon@2x.png"
alt=""
class="starimg"
/>
</div>
<div class="tieziwordbox">滚滚长江东逝水</div>
<div class="teiziimgbox flexone">
<div class="tieziimgimg">
<img src="../../../assets/banner.png" alt="" />
</div>
<div class="tieziimgimg">
<img src="../../../assets/banner.png" alt="" />
</div>
<div class="tieziimgimg">
<img src="../../../assets/banner.png" alt="" />
</div>
<div class="tieziimgimg">
<img src="../../../assets/banner.png" alt="" />
</div>
<div class="tieziimgimg">
<img src="../../../assets/banner.png" alt="" />
</div>
</div>
<div class="tiezipingbot">
<div class="teizipingitem flexone">
<img
src="../../../assets/pinglun_icon@2x.png"
alt=""
class="lunimg"
/>
1005
</div>
<div class="teizipingitem flexone">
<img
src="../../../assets/zan_icon@2x.png"
alt=""
class="lunimg zanimg"
/>
1005
</div>
<div class="teizipingitem flexone">
<img
src="../../../assets/cai_icon@2x.png"
alt=""
class="lunimg zanimg"
/>
1005
</div>
</div>
</div>
</div> -->
</div>
</div>
</template>
... ... @@ -157,7 +62,7 @@ export default {
};
},
created() {
document.title = "征婚交友";
document.title = "个人主页";
this.user_id = this.$route.query.userid;
this.getpersonpage();
},
... ... @@ -231,6 +136,7 @@ export default {
})
.catch(err => {
console.log(err);
Toast(err.msg)
});
},
noattention() {
... ...
... ... @@ -53,11 +53,29 @@
v-model="content"
></textarea>
</div>
<!-- 上传视频 -->
<div v-if="type == 1">
<div class="text">请上传视频大小在25M以下</div>
<div class="addpicox flexone">
<div style="margin-top:0.2rem">
<van-uploader
v-model="fileListvideo"
multiple="false"
:after-read="afterReadvideo"
:max-count="1"
accept="video/*"
:preview-image="true"
style="margin-right: 0.2rem"
/>
</div>
<!-- <div class="addpicox flexone">
<div class="addpic addvideo" v-if="videoimg == ''">
<div class=" ">
<input
... ... @@ -69,10 +87,17 @@
</div>
<img src="../../../assets/add.png" alt="" />
</div>
<div class="addpic addvideo" v-else>
<video :src="videoimg"></video>
<div class="addpic addvideo" v-else style="position: relative;">
<img :src="showimg" alt="">
<img src="../../../assets/bofang_icon@2x.png" alt="" class="videobtn">
<input
type="file"
class="videoimgkk"
accept="video/*"
@change="uploadfileone"
/>
</div>
</div>
</div> -->
</div>
<!-- 上传图片 -->
... ... @@ -96,9 +121,9 @@
</div>
</div>
</div>
<div class="buybtn surebtn" @click="issure == true ? sure() : ''">
<div class="queding">确定</div>
</div>
<div class="queding" @click="issure == true ? sure() : ''">确定</div>
<!-- 选择器 -->
<van-picker
... ... @@ -162,11 +187,12 @@ export default {
title: "", //帖子标题
content: "", //帖子内容
cardzheng: false,
chuanvideo: ""
chuanvideo: "",
showimg:'',//视频第一帧封面图
fileListvideo:[]
};
},
created() {
localStorage.setItem("proname", "天津");
this.proname = localStorage.getItem("proname");
this.getprovinceid();
this.type = this.$route.query.type;
... ... @@ -181,6 +207,35 @@ export default {
},
methods: {
// 上传图片
afterReadvideo(file){
let that=this;
that.cardzheng = true;
console.log(file,'上传的视频');
if (file.length == undefined) {
var formdata = new FormData();
// file.file.name="视频"
formdata.append("file", file.file);
that.delimg.push(file.file.name);
var url = "/api/common/upload";
that.$uploadFile
.post(url, formdata)
.then(function (res) {
console.log(res,'上传视频');
that.videoimg = res.data.url;
// that.fileListvideo=[];
that.getshipinposter()
that.cardzheng = false
// that.cardzheng = false;
// let url = "https://app.chinesenooddles.com" + res.data.url;
// that.images.push(url);
// that.chuanimage.push(res.data.url);
})
.catch(err => {
console.log(err);
});
}
},
afterRead(file) {
let that = this;
console.log(file);
... ... @@ -196,8 +251,8 @@ export default {
.then(function (res) {
console.log(res);
that.cardzheng = false;
let url = "http://tangyuanji.t.brotop.cn" + res.data.url;
that.images.push(url);
let url = "https://app.chinesenooddles.com" + res.data.url;
console.log(that.fileList,'图片数组')
that.chuanimage.push(res.data.url);
})
.catch(err => {
... ... @@ -264,14 +319,33 @@ export default {
console.log(res);
that.cardzheng = false;
that.videoimg = res.data.url;
// that.showvideo = res.data.priview_url;
// that.video_image = res.data.video_image;
that.getshipinposter()
})
.catch(err => {
that.cardzheng = false;
console.log(err);
});
},
// 返回视频封面图
getshipinposter(){
let that=this;
var url = "/api/sundry/get_video_image";
var params = {
video:that.videoimg
};
console.log("7766554", params);
that.$axios
.post(url, params)
.then(res => {
console.log(res);
that.showimg=res.data
})
.catch(err => {
console.log(err, 78767767667);
});
},
// 选择城市
selectcity() {
this.showcity = true;
... ... @@ -453,7 +527,6 @@ export default {
that.issure = true;
return false;
}
var url = "/api/forum/publish_forum";
var params = {
type: that.type,
... ... @@ -492,6 +565,9 @@ export default {
transform: translate(-50%, -50%);
z-index: 99;
}
.van-uploader{
}
.van-picker {
position: fixed;
bottom: 0;
... ... @@ -614,7 +690,7 @@ export default {
}
.proname {
color: #c3c9d2;
color: #333;
font-size: 0.23rem;
}
.xiala {
... ... @@ -631,7 +707,7 @@ export default {
color: #bdc4ce;
font-size: 0.28rem;
}
.buybtn {
.buybtn {
padding: 0.25rem 0.57rem;
box-sizing: border-box;
position: fixed;
... ... @@ -643,7 +719,7 @@ export default {
height: 0.97rem;
background: #c68c3e;
border-radius: 0.31rem;
margin: 0 auto;
margin: 2rem auto 0;
color: #fff;
font-size: 0.32rem;
text-align: center;
... ... @@ -660,19 +736,29 @@ export default {
background: rgba(0, 0, 0, 0);
border: 1px solid #d3d3d3;
border-radius: 0.15rem;
color: #898989;
color:#333;
font-size: 0.28rem;
margin-left: 0.24rem;
}
.enternamek {
width: 1.7rem;
}
.text input{
color:#333;
font-size: 0.24rem;
}
.connectenter input {
width: 100%;
height: 100%;
background: transparent;
padding: 0.12rem 0.32rem;
box-sizing: border-box;
color:#333;
font-size: 0.28rem;
}
.contractcontent textarea{
color:#333;
font-size: 0.28rem;
}
.lianxitype {
background: #fff;
... ... @@ -686,4 +772,12 @@ export default {
transform: translate(-50%, -50%);
z-index: 99;
}
.videobtn{
width:0.7rem;
height: 0.7rem;
position: absolute;
top:50%;
left:50%;
transform: translate(-50%,-50%);
}
</style>
... ...
... ... @@ -2,8 +2,8 @@
<div class="container">
<div class="tiezhlist tiezhlistbox">
<div class="tieziitem">
<div class="tiezitop flexone" @click="personclick">
<div class="tieziimg">
<div class="tiezitop flexone" >
<div class="tieziimg" @click="personclick">
<img :src="tiezidetail.user.avatar" alt="" />
</div>
<div class="tieziright">
... ... @@ -11,8 +11,8 @@
<div>
<div class="tieziming">{{ tiezidetail.user.nickname }}</div>
</div>
<div>
<div class="vipimg">
<div v-if="tiezidetail.user.level">
<div class="vipimg" style="margin-left:0.2rem">
<img
src="../../../assets/vip_icon@2x.png"
alt=""
... ... @@ -21,20 +21,18 @@
<div class="vipname">{{ tiezidetail.user.level.name1 }}</div>
</div>
</div>
<img
src="../../../assets/banggong_icon@2x.png"
class="banggongimg"
alt=""
/>
<img
src="../../../assets/peisong_icon@2x.png"
<img
:src="item"
class="banggongimg"
alt=""
v-for="(item, index) in tiezidetail.user.label"
:key="index"
/>
<img
src="../../../assets/yirenzheng_icon@2x.png"
class="banggongimg"
alt=""
v-if="tiezidetail.is_card == 1"
/>
</div>
<div class="tiezibto flexone"></div>
... ... @@ -42,24 +40,30 @@
</div>
<div class="tiezicontent">
<div class="flexone">
<div class="tiezifen">30分钟</div>
<div class="tiezizhuan tiezhuanbox">面坊转让</div>
<div class="tiezifen">{{tiezidetail.createtime}}</div>
<div class="tiezizhuan tiezhuanbox" v-for="(item,index) in tiezidetail.user.label" :key="index" >{{item.name_label}}</div>
</div>
<div class="teizicontenttop flextwo">
<div class="tiezicontentname">{{ tiezidetail.title }}</div>
<!-- <img
<img
src="../../../assets/xingxing_icon@2x.png"
alt=""
class="starimg"
v-if="tiezidetail.is_collect==1"
@click="collect"
/>
<img
src="../../../assets/weishoucang_icon@2x.png"
alt=""
class="starimg"
/> -->
@click="collect"
v-else
/>
</div>
<div class="tieziwordbox">{{ tiezidetail.content }}</div>
<div class="tieziwordbox" v-if="tiezidetail.type==1">{{ tiezidetail.content}}</div>
<div class="tieziwordbox" v-html="tiezidetail.content" v-else></div>
<div
class="teiziimgbox flexone"
v-if="tiezidetail.video != null"
... ... @@ -78,7 +82,7 @@
<div class="teiziimgbox flexone" v-if="tiezidetail.images != null">
<div
class="tieziimgimg"
v-for="(item, indexk) in item.images"
v-for="(item, indexk) in tiezidetail.images"
:key="indexk"
@click.stop="previewimg(index, indexk, item)"
>
... ... @@ -111,12 +115,11 @@
</div>
<div class="teizipingitem flexone">
<img
src="../../../assets/cai_icon@2x.png"
src="../../../assets/number.png"
alt=""
class="lunimg zanimg"
/>
1005
{{tiezidetail.view}}
</div>
</div>
</div>
... ... @@ -140,11 +143,12 @@
<div class="tieziimg">
<img :src="item.user.avatar" alt="" />
</div>
<div class="tieziright">
<div class="tiezirighttop flex">
<div>
<div class="tieziright flextwo">
<div class="tiezirighttop flextwo">
<div class="flexone">
<div>
<div class="tieziming">{{ item.user.nickname }}</div>
<div class="tiezifen">30分钟</div>
<div class="tiezifen">{{item.createtime}}</div>
</div>
<div>
... ... @@ -152,25 +156,28 @@
<img src="../../../assets/vip_icon@2x.png" alt="" />
<div class="vipname">{{ item.user.level.name1 }}</div>
</div>
<div class="tiezizhuan">
面坊转让
<div style="margni-left:0.1rem">
<div class="tiezizhuan tiezhuanbox" v-for="(item,index) in tiezidetail.user.label" :key="index" >{{item.name_label}}</div>
</div>
</div>
<img
src="../../../assets/banggong_icon@2x.png"
class="banggongimg"
alt=""
/>
<img
src="../../../assets/peisong_icon@2x.png"
class="banggongimg"
alt=""
/>
<img
src="../../../assets/yirenzheng_icon@2x.png"
class="banggongimg"
alt=""
/>
</div>
<img
src="../../../assets/xingxing_icon@2x.png"
alt=""
class="starimg"
v-if="tiezidetail.is_collect==1"
@click="collect"
/>
<img
src="../../../assets/weishoucang_icon@2x.png"
alt=""
class="starimg"
@click="collect"
v-else
/>
</div>
<div class="tiezibto flexone"></div>
</div>
... ... @@ -227,7 +234,9 @@
</template>
<script>
import wx from "weixin-js-sdk";
import { Toast } from "vant";
import {text} from "../../../utils/base.js"
export default {
data() {
return {
... ... @@ -241,10 +250,12 @@ export default {
commentlist: [],
// 发送评论
comment: "",
user: "" //用户信息
user: "",//用户信息
baseurl:''
};
},
created() {
this.baseurl = "http://" + location.host;
document.title = "帖子详情";
this.forum_id = this.$route.query.id;
console.log(this.forum_id);
... ... @@ -252,6 +263,18 @@ export default {
this.getformdetail();
// 获取评论列表
this.getcommentlist();
},
beforeRouteEnter(to, from, next) {
var u = navigator.userAgent;
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
// XXX: 修复iOS版微信HTML5 History兼容性问题
if (isiOS && to.path !== location.pathname) {
// 此处不可使用location.replace
location.assign(to.fullPath);
} else {
next();
}
},
methods: {
seltiekind(id) {
... ... @@ -273,6 +296,130 @@ export default {
}
}, 1000);
},
// 获取appid
getappid() {
let that = this;
let urlk = window.location.href;
var url = "/api/user/get_jssdk";
let param = {
url: urlk
};
that.$axios
.post(url, param)
.then(function (res) {
console.log(res, "hahahahaiaioaioaio4");
wx.config({
debug: false,
appId: res.data.appId, // 和获取Ticke的必须一样------必填,公众号的唯一标识
timestamp: res.data.timestamp, // 必填,生成签名的时间戳
nonceStr: res.data.nonceStr, // 必填,生成签名的随机串
signature: res.data.signature, // 必填,签名,见附录1
//需要分享的列表项:发送给朋友,分享到朋友圈,分享到QQ,分享到QQ空间
jsApiList: [
"showOptionMenu",
"updateAppMessageShareData",
"updateTimelineShareData"
]
});
that.sharetofriend();
})
.catch(function (err) {
console.log(err);
});
},
// 分享给朋友
sharetofriend() {
var that = this;
localStorage.setItem("type", "");
// 处理验证失败的信息
wx.error(function (res) {
logUtil.printLog("验证失败返回的信息:", res);
});
// 处理验证成功的信息
wx.ready(function () {
// alert(window.location.href.split('#')[0]);
// var share_title = that.sharemsg.title;
// if (share_title.indexOf("${title}") >= 0) {
// share_title = share_title.replace(
// "${title}",
// that.details.details.title
// );
// }
// var share_desc = that.sharemsg.content;
// if (share_desc.indexOf("${title}") >= 0) {
// share_desc = share_desc.replace(
// "${title}",
// that.details.details.title
// );
// }
// if (share_desc.indexOf("${text}") >= 0) {
// share_desc = share_desc.replace("${text}", that.details.details.text);
// }
// 分享到朋友圈
wx.updateTimelineShareData({
title: "中国面条", // 分享标题
desc:that.tiezidetail.title,
link:
that.baseurl +
"/redirect.html?shareRedirect=" +
encodeURIComponent(window.location.href), // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl:
"https://app.chinesenooddles.com/uploads/20201026/9d7ab1da16673a04e56215f8faf1fc47.png",
// imgUrl: that.details.details.img
// ? that.details.details.img
// : that.sharemsg.img,
// 分享图标
// desc: that.sharemsg.content,
success: function (res) {
// 用户确认分享后执行的回调函数
console.log("suss");
logUtil.printLog("分享到朋友圈成功返回的信息为:", res);
that.showMsg("分享成功!");
},
cancel: function (res) {
// 用户取消分享后执行的回调函数
console.log("err");
logUtil.printLog("取消分享到朋友圈返回的信息为:", res);
}
}),
// 分享给朋友
wx.updateAppMessageShareData({
title: "中国面条", // 分享标题
desc: that.tiezidetail.title, // 分享描述
link:
that.baseurl +
"/redirect.html?shareRedirect=" +
encodeURIComponent(window.location.href), // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl:
"https://app.chinesenooddles.com/uploads/20201026/9d7ab1da16673a04e56215f8faf1fc47.png",
// imgUrl: that.details.details.img
// ? that.details.details.img
// : that.sharemsg.img,
// 分享图标
type: "", // 分享类型,music、video或link,不填默认为link
dataUrl: "", // 如果type是music或video,则要提供数据链接,默认为空
success: function (res) {
// 用户确认分享后执行的回调函数
// logUtil.printLog("分享给朋友成功返回的信息为:", res);
},
cancel: function (res) {
// 用户取消分享后执行的回调函数
// logUtil.printLog("取消分享给朋友返回的信息为:", res);
}
});
});
},
// 获取帖子详情
getformdetail() {
let that = this;
... ... @@ -287,13 +434,46 @@ export default {
console.log("111111111", res);
setTimeout(function() {
that.tiezidetail = res.data;
if(that.tiezidetail.type==2){
that.tiezidetail.content=text(that.tiezidetail.content)
}
that.tiezidetail=that.tiezidetail;
that.$forceUpdate()
that.user = res.data.user;
that.getappid()
}, 200);
})
.catch(err => {
console.log(err);
});
},
// 收藏和取消收藏
collect(){
let that = this;
var url = "/api/forum/collect";
var params = {
forum_id: that.forum_id
};
console.log("7766554", params);
that.$axios
.post(url, params)
.then(res => {
let newtiezidetail=that.tiezidetail;
if(newtiezidetail.is_collect==2){
newtiezidetail.is_collect=1;
Toast("收藏成功")
}else{
newtiezidetail.is_collect=2;
Toast("取消收藏成功")
}
that.tiezidetail=newtiezidetail;
})
.catch(err => {
console.log(err);
});
},
// 帖子详情点赞
tiezizan() {
let that = this;
... ... @@ -412,6 +592,7 @@ export default {
});
},
personclick() {
console.log(this.tiezidetail)
this.$router.push({
path: "/personpage",
query: {
... ... @@ -429,4 +610,8 @@ export default {
.tiezhlistbox {
margin-top: 0.24rem;
}
.tieziright,.tiezirighttop {
flex:1
}
</style>
... ...
... ... @@ -20,19 +20,19 @@
<div class="tiezicontentname tiezicontentnamek">
{{ item.name }}
</div>
<img
<!-- <img
src="../../../assets/xingxing_icon@2x.png"
alt=""
class="starimg"
/>
<!-- <img
<img
src="../../../assets/weishoucang_icon@2x.png"
alt=""
class="starimg"
/> -->
</div>
<div class="tieziwordbox tieziwordboxk">滚滚长江东逝水</div>
<div class="flexone luntandibu">
<div class="tieziwordbox tieziwordboxk" style="margin-top:0.2rem;" v-html="item.content"></div>
<!-- <div class="flexone luntandibu">
<div class="teizipingitem teizipingitemk flexone">
<img
src="../../../assets/pinglun_icon@2x.png"
... ... @@ -57,7 +57,7 @@
/>
1005
</div>
</div>
</div> -->
</div>
</div>
</van-list>
... ...
... ... @@ -8,7 +8,7 @@
</div>
<div class="tieziright">
<div class="tiezirighttop flex">
<div>
<div class="timeright">
<div class="tieziming">{{ userinfo.nickname }}</div>
</div>
... ... @@ -43,19 +43,19 @@
<div class="fubulist flextwo">
<div class="fabuitem flexfour" @click="goenter(0)">
<div class="fabuname">{{ total1 }}</div>
<div class="fabuname">我的发布</div>
<div class="fabuname">发布</div>
</div>
<div class="fabuitem flexfour" @click="goenter(1)">
<div class="fabuname">{{ total2 }}</div>
<div class="fabuname">我的关注</div>
<div class="fabuname">{{ total3 }}</div>
<div class="fabuname">关注</div>
</div>
<div class="fabuitem flexfour" @click="goenter(2)">
<div class="fabuname">{{ total3 }}</div>
<div class="fabuname">我的点赞</div>
<div class="fabuname">{{ total2 }}</div>
<div class="fabuname">点赞</div>
</div>
<div class="fabuitem flexfour" @click="goenter(3)">
<div class="fabuname">{{ total4 }}</div>
<div class="fabuname">我的评论</div>
<div class="fabuname">评论</div>
</div>
</div>
</div>
... ... @@ -128,11 +128,8 @@ export default {
var params = {
id: 13
}
that.$axios.post(url, params).then((res) => {
console.log(res, 999999)
that.guanwang = res.data.content;
console.log(that.guanwang)
... ... @@ -143,10 +140,8 @@ export default {
collect(id) {
if (id == 1) {
this.$router.push({
path: "/mycollect",
query: {
type: 3
}
path: "/myshoucang",
});
} else if (id == 3) {
this.$router.push({
... ... @@ -175,7 +170,11 @@ export default {
.post(url, params)
.then(res => {
that.userinfo = res.data;
this.label = res.data.label
this.label = res.data.label;
localStorage.setItem("avatar", res.data.avatar)
localStorage.setItem("address", res.data.address)
localStorage.setItem("nickname", res.data.nickname)
localStorage.setItem("label", JSON.stringify(res.data.label))
setTimeout(function () {
that.show = true;
}, 50);
... ...
... ... @@ -6,21 +6,21 @@
:class="fenlei == 0 ? 'fenleiactive' : ''"
@click="getfen(0)"
>
我的发布
发布
</div>
<div
class="fenleiword"
:class="fenlei == 1 ? 'fenleiactive' : ''"
@click="getfen(1)"
>
我的关注
关注
</div>
<div
class="fenleiword"
:class="fenlei == 2 ? 'fenleiactive' : ''"
@click="getfen(2)"
>
我的点赞
点赞
</div>
<div
class="fenleiword"
... ... @@ -28,8 +28,10 @@
@click="getfen(3)"
>
我的评论
</div>
</div>
<div class="nodata" v-if="tiezilist.length == 0">暂无数据</div>
<div class="mycollectlist" v-else>
<van-list
... ... @@ -38,112 +40,16 @@
finished-text="没有更多了"
@load="onLoad"
>
<mytiezi :tiezilist="tiezilist" :showpull="showpull" :fenlei="fenlei" />
<mytiezi :tiezilist="tiezilist" :showpull="showpull" :fenlei="fenlei" :show="show"/>
</van-list>
<!-- <div class="tieziitem mycollectitem">
<div class="tiezitop flexone">
<div class="tieziimg">
<img src="../../../assets/touxiang_img@2x.png" alt="" />
</div>
<div class="tieziright">
<div class="tiezirighttop flex">
<div>
<div class="tieziming">中面小麦</div>
<div class="tiezifen">30分钟</div>
</div>
<div>
<div class="vipimg">
<img src="../../../assets/vip_icon@2x.png" alt="" />
<div class="vipname">VIP1</div>
</div>
<div class="tiezizhuan">面坊转让</div>
</div>
<img
src="../../../assets/banggong_icon@2x.png"
class="banggongimg"
alt=""
/>
<img
src="../../../assets/peisong_icon@2x.png"
class="banggongimg"
alt=""
/>
<img
src="../../../assets/yirenzheng_icon@2x.png"
class="banggongimg"
alt=""
/>
</div>
<div class="tiezibto flexone"></div>
</div>
</div>
<div class="tiezicontent">
<div class="teizicontenttop flextwo">
<div class="tiezicontentname">滚滚长江东逝水</div>
<img
src="../../../assets/xingxing_icon@2x.png"
alt=""
class="starimg"
/>
<img
src="../../../assets/weishoucang_icon@2x.png"
alt=""
class="starimg"
/>
</div>
<div class="tieziwordbox">滚滚长江东逝水</div>
<div class="teiziimgbox flexone">
<div class="tieziimgimg">
<img src="../../../assets/banner.png" alt="" />
</div>
<div class="tieziimgimg">
<img src="../../../assets/banner.png" alt="" />
</div>
<div class="tieziimgimg">
<img src="../../../assets/banner.png" alt="" />
</div>
<div class="tieziimgimg">
<img src="../../../assets/banner.png" alt="" />
</div>
<div class="tieziimgimg">
<img src="../../../assets/banner.png" alt="" />
</div>
</div>
<div class="tiezipingbot">
<div class="teizipingitem flexone">
<img
src="../../../assets/pinglun_icon@2x.png"
alt=""
class="lunimg"
/>
1005
</div>
<div class="teizipingitem flexone">
<img
src="../../../assets/zan_icon@2x.png"
alt=""
class="lunimg zanimg"
/>
1005
</div>
<div class="teizipingitem flexone">
<img
src="../../../assets/cai_icon@2x.png"
alt=""
class="lunimg zanimg"
/>
1005
</div>
</div>
</div>
</div> -->
</div>
</div>
</template>
<script>
import mytiezi from "@/components/mytiezi.vue";
import {richTextFormat} from "../../../utils/base.js" //富文本超出显示省略号
export default {
components: {
mytiezi
... ... @@ -156,7 +62,8 @@ export default {
loading: false,
finished: false,
fenlei: 0,
tiezilist: []
show:false
};
},
created() {
... ... @@ -230,6 +137,12 @@ export default {
that.showpull = false;
}
}
that.tiezilist.forEach(function(value,index,array){
value.content=richTextFormat(value.content)
})
that.tiezilist=that.tiezilist;
that.$forceUpdate()
})
.catch(err => {
console.log(err);
... ... @@ -254,6 +167,10 @@ export default {
that.showpull = false;
}
}
setTimeout(function(){
that.show=true
},200)
console.log('帖子列表',that.tiezilist)
})
.catch(err => {
console.log(err);
... ... @@ -279,6 +196,11 @@ export default {
that.showpull = false;
}
}
that.tiezilist.forEach(function(value,index,array){
value.content=richTextFormat(value.content)
})
that.tiezilist=that.tiezilist;
that.$forceUpdate()
})
.catch(err => {
console.log(err);
... ... @@ -303,6 +225,11 @@ export default {
that.showpull = false;
}
}
that.tiezilist.forEach(function(value,index,array){
value.content=richTextFormat(value.content)
})
that.tiezilist=that.tiezilist;
that.$forceUpdate()
})
.catch(err => {
console.log(err);
... ...
<template>
<div class="container">
<div class="nodata" v-if="tiezilist.length == 0">暂无数据</div>
<div class="mycollectlist" v-else>
<van-list
v-model="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
>
<mytiezi :tiezilist="tiezilist" :showpull="showpull" :fenlei="fenlei" />
</van-list>
</div>
</div>
</template>
<script>
import mytiezi from "@/components/mytiezi.vue";
export default {
components: {
mytiezi
},
data(){
return{
page:1,
tiezilist: [],
showpull: true,
loading: false,
finished: false,
}
},
created(){
this.getmycollect()
},
methods:{
onLoad() {
// 异步更新数据
// setTimeout 仅做示例,真实场景中一般为 ajax 请求
setTimeout(() => {
let newpage = this.page;
newpage++;
this.page = newpage;
this.getmycollect()
// 加载状态结束
this.loading = false;
// 数据全部加载完成
if (this.showpull == false) {
this.finished = true;
}
}, 1000);
},
// 获取我的收藏
getmycollect() {
console.log(347874837)
let that = this;
var url = "/api/forum/get_my_collect";
var params = {
page: that.page,
pageNum: 10
};
console.log("参数", params);
that.$axios
.post(url, params)
.then(res => {
console.log(res);
that.tiezilist = that.tiezilist.concat(res.data);
if (that.page > 1) {
if (res.data.length == 0) {
that.showpull = false;
}
}
})
.catch(err => {
console.log(err);
});
},
}
}
</script>
<style>
.nodata {
color: #999;
font-size: 0.28rem;
text-align: center;
margin-top: 1.5rem;
}
</style>
\ No newline at end of file
... ...
... ... @@ -8,7 +8,7 @@
@click="selxiao(1)"
>
<img
src="../../../assets/tiezihuifu_icon@2x.png"
src="../../../assets/tiezi_icon@2x.png"
alt=""
class="teiziimg"
/>
... ... @@ -24,61 +24,211 @@
alt=""
class="teiziimg"
/>
<div class="dot">1</div>
<div class="dot" v-if="bublenumber!=0">{{bublenumber}}</div>
系统通知
</div>
</div>
</div>
<div class="tieziboxlist">
<div class="tieziboxitem flex">
<img src="../../../assets/touxiang_img@2x.png" alt="" class="xiaoimg" />
<div class="tieziboxmiddle">
<div class="tieziname flextwo">
<div class="tietitle">小红</div>
<div class="tiedate">今天 9:40</div>
</div>
<div class="tiezinametext">你那个面访多少钱?每天多少量啊?</div>
</div>
</div>
<div class="tieziboxitem flex">
<img src="../../../assets/touxiang_img@2x.png" alt="" class="xiaoimg" />
<div class="tieziboxmiddle">
<div class="tieziname flextwo">
<div class="tietitle">小红</div>
<div class="tiedate">今天 9:40</div>
</div>
<div class="tiezinametext">你那个面访多少钱?每天多少量啊?</div>
</div>
</div>
<div class="tieziboxitem flex">
<img src="../../../assets/touxiang_img@2x.png" alt="" class="xiaoimg" />
<div v-if="newslist.length==0" class="nodatakk">暂无数据</div>
<div class="tieziboxlist" v-else>
<van-list
v-model="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
>
<div class="tieziboxitem flex" v-for="(item,index) in newslist" :key="index" @click="tiezidetail(item)">
<img :src="item.user.avatar" alt="" class="xiaoimg" />
<div class="tieziboxmiddle">
<div class="tieziname flextwo">
<div class="tietitle">小红</div>
<div class="tiedate">今天 9:40</div>
<div class="tietitle">{{item.user.nickname}}</div>
<div class="tiedate">{{item.createtime}}</div>
</div>
<div class="tiezinametext">你那个面访多少钱?每天多少量啊?</div>
<div class="tiezinametext tiezitext">{{item.content}}</div>
</div>
</div>
</van-list>
</div>
<tabBar v-bind:active="1" />
</div>
</template>
<script>
import Vue from "vue";
import tabBar from "@/components/tabsec.vue";
import {List, Toast } from "vant";
Vue.use(List);
Vue.use(Toast)
export default {
components: {
tabBar
},
data() {
return {
seltie: 1
seltie: 1,
newslist:[],
loading: false,
finished: false,
showpull: true,
page: 1,
bublenumber:'',
user:{
avatar:"",
nickname:''
}
};
},
created(){
// 获取帖子列表
this.getiezilist()
// 获取气泡
this.getbubble();
// 获取默认昵称和头像
this.getnickname()
},
methods: {
selxiao(id) {
this.seltie = id;
this.page=1;
this.newslist=[]
if(this.seltie==1){
this.getiezilist();
}else{
this.getxiaoxi();
}
},
onLoad() {
// 异步更新数据
// setTimeout 仅做示例,真实场景中一般为 ajax 请求
setTimeout(() => {
let newpage = this.page;
newpage++;
this.page = newpage;
if(this.seltie==1){
this.getiezilist()
}else{
this.getxiaoxi();
}
// 加载状态结束
this.loading = false;
// 数据全部加载完成
if (this.showpull == false) {
this.finished = true;
}
}, 1000);
},
// 获取默认昵称和头像
getnickname(){
let that = this;
var url = "/api/sundry/get_page";
var params = {
id:14
};
console.log("7766554", params);
that.$axios
.post(url, params)
.then(res => {
console.log(res,'默认头像和昵称')
let newuser=that.user;
newuser.avatar=res.data.avatar;
newuser.nickname=res.data.nickname;
that.user=newuser
})
.catch(err => {
console.log(err);
});
},
// 获取气泡
getbubble(){
let that = this;
var url = "/api/information/bubble";
var params = {
};
console.log("7766554", params);
that.$axios
.post(url, params)
.then(res => {
console.log(res)
that.bublenumber=res.data.total
})
.catch(err => {
console.log(err);
});
},
// 获取消息列表
getxiaoxi(){
let that = this;
var url = "/api/information/get_all";
var params = {
page:that.page
};
console.log("7766554", params);
that.$axios
.post(url, params)
.then(res => {
console.log(res)
that.newslist=that.newslist.concat(res.data);
if(that.page>1){
if(res.data.length==0){
that.showpull=false;
}
}
that.newslist.forEach(function(value,index,array){
value.user=that.user
})
that.newslist=that.newslist;
that.$forceUpdate();
console.log('4343980409',that.newslist)
})
.catch(err => {
console.log(err);
});
},
// 获取帖子
getiezilist(){
let that = this;
var url = "/api/forum/my_forum_comments";
var params = {
page:that.page
};
console.log("7766554", params);
that.$axios
.post(url, params)
.then(res => {
console.log(res)
that.newslist=that.newslist.concat(res.data);
if(that.page>1){
if(res.data.length==0){
that.showpull=false;
}
}
})
.catch(err => {
console.log(err);
});
},
// 帖子详情
tiezidetail(item){
if(this.seltie==2){
let id=item.id
this.$router.push({
path:"/xiaoxidetail",
query:{
id:id
}
})
}else{
let id=item.forum_id
this.$router.push({
path: "/tiezidetail",
query: { id: id }
});
}
}
}
};
... ... @@ -86,4 +236,16 @@ export default {
<style scoped>
@import "../../style/homepage.css";
.tiezitext{
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
}
.nodatakk{
color:#333;
font-size:0.28rem;
text-align: center;
margin-top:2.2rem;
}
</style>
... ...
<template>
<div class="tontainer">
<div class="tieziboxlistk" v-if="show">
<div class="tieziboxitem flex">
<img :src="item.user.avatar" alt="" class="xiaoimg" />
<div class="tieziboxmiddle">
<div class="tieziname flextwo">
<div class="tietitle">{{item.user.nickname}}</div>
<div class="tiedate">{{item.createtime}}</div>
</div>
<div class="tiezinametext">{{item.content}}</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data(){
return{
item:'',
id:'',
user:{
avatar:'',
nickname:'',
},
show:false
}
},
created(){
this.id=this.$route.query.id;
this.getnickname()
this.getxiaoxidetail()
},
methods:{
// 获取默认昵称和头像
getnickname(){
let that = this;
var url = "/api/sundry/get_page";
var params = {
id:14
};
console.log("7766554", params);
that.$axios
.post(url, params)
.then(res => {
console.log(res,'默认头像和昵称')
let newuser=that.user;
newuser.avatar=res.data.avatar;
newuser.nickname=res.data.nickname;
that.user=newuser;
})
.catch(err => {
console.log(err);
});
},
// 获取帖子详情
getxiaoxidetail(){
let that = this;
var url = "/api/information/get_one";
var params = {
information_id:that.id
};
console.log("7766554", params);
that.$axios
.post(url, params)
.then(res => {
console.log(res)
that.item=res.data;
that.item.user=that.user;
that.item=that.item;
that.$forceUpdate();
setTimeout(function(){
that.show=true
},100)
})
.catch(err => {
console.log(err);
});
}
}
}
</script>
<style scoped>
@import "../../style/homepage.css";
.tieziboxlistk{
background: #fff;
}
</style>
\ No newline at end of file
... ...
... ... @@ -8,16 +8,16 @@ import Vant from "vant";
import "vant/lib/index.css";
Vue.use(Vant);
// import Vconsole from "vconsole";
import Vconsole from "vconsole";
// let vConsole = new Vconsole();
// Vue.use(vConsole);
let vConsole = new Vconsole();
Vue.use(vConsole);
import { service } from "./utils/commonsec.js";
Vue.prototype.$http = service;
// sessionStorage.setItem(
// "token",
// "85354709f184e1471f90a2048eb07b0f6cab95df279ec53d26b642ad080eed4d"
// "190c0319102ab3c76f88ec5c1b09a18b648bc897a4843da1bbcbe2a00f0a8efc"
// );
import axios from "./utils/common.js";
... ... @@ -35,9 +35,6 @@ let token = sessionStorage.getItem("token");
router.beforeEach((to, from, next) => {
const token = sessionStorage.getItem("token");
console.log("我是token", token);
console.log(to);
console.log(next);
console.log(from);
if (!token) {
if (to.path === "/login") {
... ... @@ -50,8 +47,8 @@ router.beforeEach((to, from, next) => {
next();
}
});
/* eslint-disable no-new */
new Vue({
el: "#app",
router,
... ...
... ... @@ -23,6 +23,13 @@ export default new Router({
require(["@/components/views/xiaoxi/index.vue"], resolve)
},
{
path: "/xiaoxidetail",
name: "xiaoxidetail",
meta: { title: "中国面条" },
component: resolve =>
require(["@/components/views/xiaoxi/xiaoxidetail.vue"], resolve)
},
{
path: "/kefu",
name: "kefu",
meta: { title: "中国面条" },
... ... @@ -37,6 +44,13 @@ export default new Router({
require(["@/components/views/mine/index.vue"], resolve)
},
{
path: "/myshoucang",
name: "myshoucang",
meta: { title: "中国面条" },
component: resolve =>
require(["@/components/views/mine/myshoucang.vue"], resolve)
},
{
path: "/videoplay",
name: "videoplay",
meta: { title: "中国面条" },
... ... @@ -189,7 +203,8 @@ export default new Router({
name: "login",
meta: { title: "中国面条" },
component: resolve => require(["@/components/login.vue"], resolve)
}
},
// {
// path: '/',
// name: 'HelloWorld',
... ...
... ... @@ -7,7 +7,6 @@ export default {
"广东省",
"安徽省",
"澳门特别行政区",
"福建省",
"广西壮族自治区",
"贵州省",
... ...
... ... @@ -62,4 +62,14 @@ var text = function(details) {
return texts;
};
export { changename, text };
\ No newline at end of file
var richTextFormat = function(value) {
// value = value.replace(/<\/?[^>]*>/g,'')
value = value.replace(/<\/?.+?>/g, '')
value = value.replace(/\s+/g, '')
if (value.length > 90) {
return value.slice(0, 90) + "...";
}
return value;
}
export { changename, text, richTextFormat };
\ No newline at end of file
... ...
export default {
province_list: {
110000: "北京市",
310000: '上海市',
120000: '天津市',
500000: '重庆市',
440000: '广东省',
340000: '安徽省',
820000: '澳门特别行政区',
350000: '福建省',
450000: '广西壮族自治区',
520000: '贵州省',
620000: '甘肃省',
130000: '河北省',
230000: '黑龙江省',
410000: '河南省',
420000: '湖北省',
430000: '湖南省',
460000: '海南省',
900000: '海外',
220000: '吉林省',
320000: '江苏省',
360000: '江西省',
210000: '辽宁省',
150000: '内蒙古自治区',
640000: '宁夏回族自治区',
630000: '青海省',
140000: '山西省',
370000: '山东省',
510000: '四川省',
610000: '陕西省',
710000: '台湾省',
540000: '西藏自治区',
650000: '新疆维吾尔自治区',
810000: '香港特别行政区',
530000: '云南省',
330000: '浙江省',
},
city_list: {
110100: '北京市',
310100: '上海市',
120100: '天津市',
130100: '石家庄市',
130200: '唐山市',
130300: '秦皇岛市',
130400: '邯郸市',
130500: '邢台市',
130600: '保定市',
130700: '张家口市',
130800: '承德市',
130900: '沧州市',
131000: '廊坊市',
131100: '衡水市',
140100: '太原市',
140200: '大同市',
140300: '阳泉市',
140400: '长治市',
140500: '晋城市',
140600: '朔州市',
140700: '晋中市',
140800: '运城市',
140900: '忻州市',
141000: '临汾市',
141100: '吕梁市',
150100: '呼和浩特市',
150200: '包头市',
150300: '乌海市',
150400: '赤峰市',
150500: '通辽市',
150600: '鄂尔多斯市',
150700: '呼伦贝尔市',
150800: '巴彦淖尔市',
150900: '乌兰察布市',
152200: '兴安盟',
152500: '锡林郭勒盟',
152900: '阿拉善盟',
210100: '沈阳市',
210200: '大连市',
210300: '鞍山市',
210400: '抚顺市',
210500: '本溪市',
210600: '丹东市',
210700: '锦州市',
210800: '营口市',
210900: '阜新市',
211000: '辽阳市',
211100: '盘锦市',
211200: '铁岭市',
211300: '朝阳市',
211400: '葫芦岛市',
220100: '长春市',
220200: '吉林市',
220300: '四平市',
220400: '辽源市',
220500: '通化市',
220600: '白山市',
220700: '松原市',
220800: '白城市',
222400: '延边朝鲜族自治州',
230100: '哈尔滨市',
230200: '齐齐哈尔市',
230300: '鸡西市',
230400: '鹤岗市',
230500: '双鸭山市',
230600: '大庆市',
230700: '伊春市',
230800: '佳木斯市',
230900: '七台河市',
231000: '牡丹江市',
231100: '黑河市',
231200: '绥化市',
232700: '大兴安岭地区',
320100: '南京市',
320200: '无锡市',
320300: '徐州市',
320400: '常州市',
320500: '苏州市',
320600: '南通市',
320700: '连云港市',
320800: '淮安市',
320900: '盐城市',
321000: '扬州市',
321100: '镇江市',
321200: '泰州市',
321300: '宿迁市',
330100: '杭州市',
330200: '宁波市',
330300: '温州市',
330400: '嘉兴市',
330500: '湖州市',
330600: '绍兴市',
330700: '金华市',
330800: '衢州市',
330900: '舟山市',
331000: '台州市',
331100: '丽水市',
340100: '合肥市',
340200: '芜湖市',
340300: '蚌埠市',
340400: '淮南市',
340500: '马鞍山市',
340600: '淮北市',
340700: '铜陵市',
340800: '安庆市',
341000: '黄山市',
341100: '滁州市',
341200: '阜阳市',
341300: '宿州市',
341500: '六安市',
341600: '亳州市',
341700: '池州市',
341800: '宣城市',
350100: '福州市',
350200: '厦门市',
350300: '莆田市',
350400: '三明市',
350500: '泉州市',
350600: '漳州市',
350700: '南平市',
350800: '龙岩市',
350900: '宁德市',
360100: '南昌市',
360200: '景德镇市',
360300: '萍乡市',
360400: '九江市',
360500: '新余市',
360600: '鹰潭市',
360700: '赣州市',
360800: '吉安市',
360900: '宜春市',
361000: '抚州市',
361100: '上饶市',
370100: '济南市',
370200: '青岛市',
370300: '淄博市',
370400: '枣庄市',
370500: '东营市',
370600: '烟台市',
370700: '潍坊市',
370800: '济宁市',
370900: '泰安市',
371000: '威海市',
371100: '日照市',
371300: '临沂市',
371400: '德州市',
371500: '聊城市',
371600: '滨州市',
371700: '菏泽市',
410100: '郑州市',
410200: '开封市',
410300: '洛阳市',
410400: '平顶山市',
410500: '安阳市',
410600: '鹤壁市',
410700: '新乡市',
410800: '焦作市',
410900: '濮阳市',
411000: '许昌市',
411100: '漯河市',
411200: '三门峡市',
411300: '南阳市',
411400: '商丘市',
411500: '信阳市',
411600: '周口市',
411700: '驻马店市',
419000: '省直辖县',
420100: '武汉市',
420200: '黄石市',
420300: '十堰市',
420500: '宜昌市',
420600: '襄阳市',
420700: '鄂州市',
420800: '荆门市',
420900: '孝感市',
421000: '荆州市',
421100: '黄冈市',
421200: '咸宁市',
421300: '随州市',
422800: '恩施土家族苗族自治州',
429000: '省直辖县',
430100: '长沙市',
430200: '株洲市',
430300: '湘潭市',
430400: '衡阳市',
430500: '邵阳市',
430600: '岳阳市',
430700: '常德市',
430800: '张家界市',
430900: '益阳市',
431000: '郴州市',
431100: '永州市',
431200: '怀化市',
431300: '娄底市',
433100: '湘西土家族苗族自治州',
440100: '广州市',
440200: '韶关市',
440300: '深圳市',
440400: '珠海市',
440500: '汕头市',
440600: '佛山市',
440700: '江门市',
440800: '湛江市',
440900: '茂名市',
441200: '肇庆市',
441300: '惠州市',
441400: '梅州市',
441500: '汕尾市',
441600: '河源市',
441700: '阳江市',
441800: '清远市',
441900: '东莞市',
442000: '中山市',
445100: '潮州市',
445200: '揭阳市',
445300: '云浮市',
450100: '南宁市',
450200: '柳州市',
450300: '桂林市',
450400: '梧州市',
450500: '北海市',
450600: '防城港市',
450700: '钦州市',
450800: '贵港市',
450900: '玉林市',
451000: '百色市',
451100: '贺州市',
451200: '河池市',
451300: '来宾市',
451400: '崇左市',
460100: '海口市',
460200: '三亚市',
460300: '三沙市',
460400: '儋州市',
469000: '省直辖县',
500100: '重庆市',
500200: '县',
510100: '成都市',
510300: '自贡市',
510400: '攀枝花市',
510500: '泸州市',
510600: '德阳市',
510700: '绵阳市',
510800: '广元市',
510900: '遂宁市',
511000: '内江市',
511100: '乐山市',
511300: '南充市',
511400: '眉山市',
511500: '宜宾市',
511600: '广安市',
511700: '达州市',
511800: '雅安市',
511900: '巴中市',
512000: '资阳市',
513200: '阿坝藏族羌族自治州',
513300: '甘孜藏族自治州',
513400: '凉山彝族自治州',
520100: '贵阳市',
520200: '六盘水市',
520300: '遵义市',
520400: '安顺市',
520500: '毕节市',
520600: '铜仁市',
522300: '黔西南布依族苗族自治州',
522600: '黔东南苗族侗族自治州',
522700: '黔南布依族苗族自治州',
530100: '昆明市',
530300: '曲靖市',
530400: '玉溪市',
530500: '保山市',
530600: '昭通市',
530700: '丽江市',
530800: '普洱市',
530900: '临沧市',
532300: '楚雄彝族自治州',
532500: '红河哈尼族彝族自治州',
532600: '文山壮族苗族自治州',
532800: '西双版纳傣族自治州',
532900: '大理白族自治州',
533100: '德宏傣族景颇族自治州',
533300: '怒江傈僳族自治州',
533400: '迪庆藏族自治州',
540100: '拉萨市',
540200: '日喀则市',
540300: '昌都市',
540400: '林芝市',
540500: '山南市',
540600: '那曲市',
542500: '阿里地区',
610100: '西安市',
610200: '铜川市',
610300: '宝鸡市',
610400: '咸阳市',
610500: '渭南市',
610600: '延安市',
610700: '汉中市',
610800: '榆林市',
610900: '安康市',
611000: '商洛市',
620100: '兰州市',
620200: '嘉峪关市',
620300: '金昌市',
620400: '白银市',
620500: '天水市',
620600: '武威市',
620700: '张掖市',
620800: '平凉市',
620900: '酒泉市',
621000: '庆阳市',
621100: '定西市',
621200: '陇南市',
622900: '临夏回族自治州',
623000: '甘南藏族自治州',
630100: '西宁市',
630200: '海东市',
632200: '海北藏族自治州',
632300: '黄南藏族自治州',
632500: '海南藏族自治州',
632600: '果洛藏族自治州',
632700: '玉树藏族自治州',
632800: '海西蒙古族藏族自治州',
640100: '银川市',
640200: '石嘴山市',
640300: '吴忠市',
640400: '固原市',
640500: '中卫市',
650100: '乌鲁木齐市',
650200: '克拉玛依市',
650400: '吐鲁番市',
650500: '哈密市',
652300: '昌吉回族自治州',
652700: '博尔塔拉蒙古自治州',
652800: '巴音郭楞蒙古自治州',
652900: '阿克苏地区',
653000: '克孜勒苏柯尔克孜自治州',
653100: '喀什地区',
653200: '和田地区',
654000: '伊犁哈萨克自治州',
654200: '塔城地区',
654300: '阿勒泰地区',
659000: '自治区直辖县级行政区划',
710100: '台北市',
710200: '高雄市',
710300: '台南市',
710400: '台中市',
710500: '金门县',
710600: '南投县',
710700: '基隆市',
710800: '新竹市',
710900: '嘉义市',
711100: '新北市',
711200: '宜兰县',
711300: '新竹县',
711400: '桃园县',
711500: '苗栗县',
711700: '彰化县',
711900: '嘉义县',
712100: '云林县',
712400: '屏东县',
712500: '台东县',
712600: '花莲县',
712700: '澎湖县',
712800: '连江县',
810100: '香港岛',
810200: '九龙',
810300: '新界',
820100: '澳门半岛',
820200: '离岛',
900400: '阿富汗',
900800: '阿尔巴尼亚',
901000: '南极洲',
901200: '阿尔及利亚',
901600: '美属萨摩亚',
902000: '安道尔',
902400: '安哥拉',
902800: '安提瓜和巴布达',
903100: '阿塞拜疆',
903200: '阿根廷',
903600: '澳大利亚',
904000: '奥地利',
904400: '巴哈马',
904800: '巴林',
905000: '孟加拉',
905100: '亚美尼亚',
905200: '巴巴多斯',
905600: '比利时',
906000: '百慕大',
906400: '不丹',
906800: '玻利维亚',
907000: '波黑',
907200: '博茨瓦纳',
907400: '布韦岛',
907600: '巴西',
908400: '伯利兹',
908600: '英属印度洋领地',
909000: '所罗门群岛',
909200: '英属维尔京群岛',
909600: '文莱',
910000: '保加利亚',
910400: '缅甸',
910800: '布隆迪',
911200: '白俄罗斯',
911600: '柬埔寨',
912000: '喀麦隆',
912400: '加拿大',
913200: '佛得角',
913600: '开曼群岛',
914000: '中非',
914400: '斯里兰卡',
914800: '乍得',
915200: '智利',
916200: '圣诞岛',
916600: '科科斯群岛',
917000: '哥伦比亚',
917400: '科摩罗',
917500: '马约特',
917800: '刚果(布)',
918000: '刚果(金)',
918400: '库克群岛',
918800: '哥斯达黎加',
919100: '克罗地亚',
919200: '古巴',
919600: '塞浦路斯',
920300: '捷克',
920400: '贝宁',
920800: '丹麦',
921200: '多米尼克',
921400: '多米尼加',
921800: '厄瓜多尔',
922200: '萨尔瓦多',
922600: '赤道几内亚',
923100: '埃塞俄比亚',
923200: '厄立特里亚',
923300: '爱沙尼亚',
923400: '法罗群岛',
923800: '马尔维纳斯群岛( 福克兰)',
923900: '南乔治亚岛和南桑威奇群岛',
924200: '斐济群岛',
924600: '芬兰',
924800: '奥兰群岛',
925000: '法国',
925400: '法属圭亚那',
925800: '法属波利尼西亚',
926000: '法属南部领地',
926200: '吉布提',
926600: '加蓬',
926800: '格鲁吉亚',
927000: '冈比亚',
927500: '巴勒斯坦',
927600: '德国',
928800: '加纳',
929200: '直布罗陀',
929600: '基里巴斯',
930000: '希腊',
930400: '格陵兰',
930800: '格林纳达',
931200: '瓜德罗普',
931600: '关岛',
932000: '危地马拉',
932400: '几内亚',
932800: '圭亚那',
933200: '海地',
933400: '赫德岛和麦克唐纳群岛',
933600: '梵蒂冈',
934000: '洪都拉斯',
934800: '匈牙利',
935200: '冰岛',
935600: '印度',
936000: '印尼',
936400: '伊朗',
936800: '伊拉克',
937200: '爱尔兰',
937600: '以色列',
938000: '意大利',
938400: '科特迪瓦',
938800: '牙买加',
939200: '日本',
939800: '哈萨克斯坦',
940000: '约旦',
940400: '肯尼亚',
940800: '朝鲜 北朝鲜',
941000: '韩国',
941400: '科威特',
941700: '吉尔吉斯斯坦',
941800: '老挝',
942200: '黎巴嫩',
942600: '莱索托',
942800: '拉脱维亚',
943000: '利比里亚',
943400: '利比亚',
943800: '列支敦士登',
944000: '立陶宛',
944200: '卢森堡',
945000: '马达加斯加',
945400: '马拉维',
945800: '马来西亚',
946200: '马尔代夫',
946600: '马里',
947000: '马耳他',
947400: '马提尼克',
947800: '毛里塔尼亚',
948000: '毛里求斯',
948400: '墨西哥',
949200: '摩纳哥',
949600: '蒙古国',
949800: '摩尔多瓦',
949900: '黑山',
950000: '蒙塞拉特岛',
950400: '摩洛哥',
950800: '莫桑比克',
951200: '阿曼',
951600: '纳米比亚',
952000: '瑙鲁',
952400: '尼泊尔',
952800: '荷兰',
953300: '阿鲁巴',
953500: '荷兰加勒比区',
954000: '新喀里多尼亚',
954800: '瓦努阿图',
955400: '新西兰',
955800: '尼加拉瓜',
956200: '尼日尔',
956600: '尼日利亚',
957000: '纽埃',
957400: '诺福克岛',
957800: '挪威',
958000: '北马里亚纳群岛',
958100: '美国本土外小岛屿',
958300: '密克罗尼西亚联邦',
958400: '马绍尔群岛',
958500: '帕劳',
958600: '巴基斯坦',
959100: '巴拿马',
959800: '巴布亚新几内亚',
960000: '巴拉圭',
960400: '秘鲁',
960800: '菲律宾',
961200: '皮特凯恩群岛',
961600: '波兰',
962000: '葡萄牙',
962400: '几内亚比绍',
962600: '东帝汶',
963000: '波多黎各',
963400: '卡塔尔',
963800: '留尼汪',
964200: '罗马尼亚',
964300: '俄罗斯',
964600: '卢旺达',
965200: '圣巴泰勒米岛',
965400: '圣赫勒拿',
965900: '圣基茨和尼维斯',
966000: '安圭拉',
966200: '圣卢西亚',
966300: '法属圣马丁',
966600: '圣皮埃尔和密克隆',
967000: '圣文森特和格林纳丁斯',
967400: '圣马力诺',
967800: '圣多美和普林西比',
968200: '沙特阿拉伯',
968600: '塞内加尔',
968800: '塞尔维亚',
969000: '塞舌尔',
969400: '塞拉利昂',
970200: '新加坡',
970300: '斯洛伐克',
970400: '越南',
970500: '斯洛文尼亚',
970600: '索马里',
971000: '南非',
971600: '津巴布韦',
972400: '西班牙',
972800: '南苏丹',
972900: '苏丹',
973200: '西撒哈拉',
974000: '苏里南',
974400: '斯瓦尔巴群岛和 扬马延岛',
974800: '斯威士兰',
975200: '瑞典',
975600: '瑞士',
976000: '叙利亚',
976200: '塔吉克斯坦',
976400: '泰国',
976800: '多哥',
977200: '托克劳',
977600: '汤加',
978000: '特立尼达和多巴哥',
978400: '阿联酋',
978800: '突尼斯',
979200: '土耳其',
979500: '土库曼斯坦',
979600: '特克斯和凯科斯群岛',
979800: '图瓦卢',
980000: '乌干达',
980400: '乌克兰',
980700: '马其顿',
981800: '埃及',
982600: '英国',
983100: '根西岛',
983200: '泽西岛',
983300: '马恩岛',
983400: '坦桑尼亚',
984000: '美国',
985000: '美属维尔京群岛',
985400: '布基纳法索',
985800: '乌拉圭',
986000: '乌兹别克斯坦',
986200: '委内瑞拉',
987600: '瓦利斯和富图纳',
988200: '萨摩亚',
988700: '也门',
989400: '赞比亚'
}
}
\ No newline at end of file
... ...