免登录
This commit is contained in:
12
pages.json
12
pages.json
@@ -23,6 +23,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/user/visitor",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "游客登录",
|
||||||
|
"enablePullDownRefresh": false, // 禁止下拉刷新,
|
||||||
|
"app-plus": {
|
||||||
|
"bounce": "none",
|
||||||
|
"titleNView": false,
|
||||||
|
"popGesture": "none"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/homePage/index/index",
|
"path": "pages/homePage/index/index",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
<view class="goods_box">
|
<view class="goods_box">
|
||||||
<view class="curriulum_title_box">
|
<view class="curriulum_title_box">
|
||||||
<view v-if="this.options.isMiaosha==1" class="miaosha_box">
|
<view v-if="this.options.isMiaosha == 1" class="miaosha_box">
|
||||||
<view class="price_box">
|
<view class="price_box">
|
||||||
<view class="price_left">
|
<view class="price_left">
|
||||||
<template
|
<template
|
||||||
@@ -103,7 +103,7 @@
|
|||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="curriulum_title" style="margin-top: 40rpx;"
|
<view class="curriulum_title" style="margin-top: 40rpx"
|
||||||
>{{ curriculumData.productName }}
|
>{{ curriculumData.productName }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -405,7 +405,7 @@
|
|||||||
textColor="#333"
|
textColor="#333"
|
||||||
lineColor="#b0b0b0"
|
lineColor="#b0b0b0"
|
||||||
></u-divider>
|
></u-divider>
|
||||||
<view class="small_class_teaching_box" style="background-color: #B7E0E2">
|
<view class="small_class_teaching_box" style="background-color: #b7e0e2">
|
||||||
<view class="common_divider divider_box"> </view>
|
<view class="common_divider divider_box"> </view>
|
||||||
|
|
||||||
<common-rich-detail :detailInfo="detailInfo" style="padding: 10rpx">
|
<common-rich-detail :detailInfo="detailInfo" style="padding: 10rpx">
|
||||||
@@ -524,7 +524,7 @@
|
|||||||
@selectGoods="selectGoods"
|
@selectGoods="selectGoods"
|
||||||
@onHandleClickBuy="onHandleClickBuy"
|
@onHandleClickBuy="onHandleClickBuy"
|
||||||
></common-select-goods>
|
></common-select-goods>
|
||||||
<u-popup
|
<u-popup
|
||||||
:show="showInfo"
|
:show="showInfo"
|
||||||
mode="bottom"
|
mode="bottom"
|
||||||
@close="closeShowInfo"
|
@close="closeShowInfo"
|
||||||
@@ -715,7 +715,7 @@ export default {
|
|||||||
urlList: {
|
urlList: {
|
||||||
list: "app/phone.do?getCourseDetail_new",
|
list: "app/phone.do?getCourseDetail_new",
|
||||||
curriculumInfo: "app/phone.do?getCourseInfo",
|
curriculumInfo: "app/phone.do?getCourseInfo",
|
||||||
detailInfo: "sociology/product/getProductDetail",
|
|
||||||
goodsList: "book/shopproduct/getGlProductList",
|
goodsList: "book/shopproduct/getGlProductList",
|
||||||
},
|
},
|
||||||
customButtonGroup1: [
|
customButtonGroup1: [
|
||||||
@@ -799,6 +799,11 @@ export default {
|
|||||||
// this.searchList = []
|
// this.searchList = []
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
if (this.options.type == "visitor") {
|
||||||
|
this.urlList.detailInfo = "visitor/getProductDetail";
|
||||||
|
} else {
|
||||||
|
this.urlList.detailInfo = "sociology/product/getProductDetail";
|
||||||
|
}
|
||||||
this.selectGoodsData = {};
|
this.selectGoodsData = {};
|
||||||
this.getCourseDescriptionData();
|
this.getCourseDescriptionData();
|
||||||
this.show = false;
|
this.show = false;
|
||||||
@@ -814,8 +819,24 @@ export default {
|
|||||||
this.showInfo = true;
|
this.showInfo = true;
|
||||||
},
|
},
|
||||||
openPopup() {
|
openPopup() {
|
||||||
|
if (this.options.type == "visitor") {
|
||||||
|
console.log("this.options.type at line 1090:", this.options.type);
|
||||||
|
uni.showModal({
|
||||||
|
content: "登陆后可购买本商品",
|
||||||
|
confirmText: "去登录",
|
||||||
|
cancelText: "再逛逛", confirmColor:'#018f89',//确定按钮颜色
|
||||||
|
success(res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pages/user/login/login",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
// this.selectGoodsData = this.goodsList[0];
|
// this.selectGoodsData = this.goodsList[0];
|
||||||
this.$refs.commonSelectGoods.open()
|
this.$refs.commonSelectGoods.open();
|
||||||
// this.show = true;
|
// this.show = true;
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
},
|
},
|
||||||
@@ -823,13 +844,45 @@ export default {
|
|||||||
this.show = false;
|
this.show = false;
|
||||||
},
|
},
|
||||||
selectGoods(data) {
|
selectGoods(data) {
|
||||||
|
if (this.options.type == "visitor") {
|
||||||
|
console.log("this.options.type at line 1090:", this.options.type);
|
||||||
|
uni.showModal({
|
||||||
|
content: "登陆后可购买本商品",
|
||||||
|
confirmText: "去登录",
|
||||||
|
cancelText: "再逛逛", confirmColor:'#018f89',//确定按钮颜色
|
||||||
|
success(res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pages/user/login/login",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.selectGoodsData = data;
|
this.selectGoodsData = data;
|
||||||
this.$refs.commonSelectGoods.open()
|
this.$refs.commonSelectGoods.open();
|
||||||
// this.show = true;
|
// this.show = true;
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
},
|
},
|
||||||
|
|
||||||
onHandleClickBuy1() {
|
onHandleClickBuy1() {
|
||||||
|
if (this.options.type == "visitor") {
|
||||||
|
console.log("this.options.type at line 1090:", this.options.type);
|
||||||
|
uni.showModal({
|
||||||
|
content: "登陆后可购买本商品",
|
||||||
|
confirmText: "去登录",
|
||||||
|
cancelText: "再逛逛", confirmColor:'#018f89',//确定按钮颜色
|
||||||
|
success(res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pages/user/login/login",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.$refs.commonSelectGoods.open();
|
this.$refs.commonSelectGoods.open();
|
||||||
// this.show = true;
|
// this.show = true;
|
||||||
},
|
},
|
||||||
@@ -844,7 +897,9 @@ export default {
|
|||||||
productImages: this.selectGoodsData.productImages,
|
productImages: this.selectGoodsData.productImages,
|
||||||
productId: this.selectGoodsData.productId,
|
productId: this.selectGoodsData.productId,
|
||||||
productName: this.selectGoodsData.productName,
|
productName: this.selectGoodsData.productName,
|
||||||
price: this.selectGoodsData.activityPrice?this.selectGoodsData.activityPrice:this.selectGoodsData.price,
|
price: this.selectGoodsData.activityPrice
|
||||||
|
? this.selectGoodsData.activityPrice
|
||||||
|
: this.selectGoodsData.price,
|
||||||
goodsType: this.selectGoodsData.goodsType,
|
goodsType: this.selectGoodsData.goodsType,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -1462,7 +1517,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import '@/style/mixin.scss';
|
@import "@/style/mixin.scss";
|
||||||
.u-grid-list {
|
.u-grid-list {
|
||||||
// height: 40rpx;
|
// height: 40rpx;
|
||||||
}
|
}
|
||||||
@@ -1747,7 +1802,7 @@ export default {
|
|||||||
background: #cef8ea;
|
background: #cef8ea;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
box-shadow: 0px 0px 6rpx 0px #E9DCCC;
|
box-shadow: 0px 0px 6rpx 0px #e9dccc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2058,7 +2113,6 @@ export default {
|
|||||||
padding-right: 0 !important;
|
padding-right: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.parameterList {
|
.parameterList {
|
||||||
/deep/.list_item {
|
/deep/.list_item {
|
||||||
// border-bottom: none;
|
// border-bottom: none;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="commonPageBox">
|
<view class="commonPageBox">
|
||||||
<public-module></public-module>
|
<public-module></public-module>
|
||||||
|
|
||||||
<view class="header_box"></view>
|
<view class="header_box"></view>
|
||||||
<view class="appJump">
|
<view class="appJump">
|
||||||
<view class="everhealth item flexbox" @click="appjumpfun('everhealth')">
|
<view class="everhealth item flexbox" @click="appjumpfun('everhealth')">
|
||||||
@@ -58,7 +59,7 @@
|
|||||||
<image
|
<image
|
||||||
:src="v.icon"
|
:src="v.icon"
|
||||||
mode="aspectFill"
|
mode="aspectFill"
|
||||||
style="width: 59rpx; height: 59rpx"
|
style="width: 49rpx; height: 49rpx"
|
||||||
></image>
|
></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="cate_item_name">{{ v.title }}</view>
|
<view class="cate_item_name">{{ v.title }}</view>
|
||||||
@@ -213,67 +214,7 @@ export default {
|
|||||||
dataInfo: {},
|
dataInfo: {},
|
||||||
flashSaleList: [], //试听
|
flashSaleList: [], //试听
|
||||||
miaoShaContent: "",
|
miaoShaContent: "",
|
||||||
cateList: [
|
cateList: [ ],
|
||||||
{
|
|
||||||
title: "儒",
|
|
||||||
url: "/pages/curriculum/cate/index",
|
|
||||||
imgUrl: require("@/static/icon/homePage/cate_ru.png"),
|
|
||||||
style: {
|
|
||||||
width: "62rpx",
|
|
||||||
height: "56rpx",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
// {
|
|
||||||
// title: "释",
|
|
||||||
// url: "/pages/curriculum/cate/index",
|
|
||||||
// imgUrl: require("@/static/icon/homePage/cate_shi.png"),
|
|
||||||
|
|
||||||
// style: {
|
|
||||||
// width: "49rpx",
|
|
||||||
// height: "61rpx",
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// title: "道",
|
|
||||||
// url: "/pages/curriculum/cate/index",
|
|
||||||
// imgUrl: require("@/static/icon/homePage/cate_dao.png"),
|
|
||||||
|
|
||||||
// style: {
|
|
||||||
// width: "59rpx",
|
|
||||||
// height: "59rpx",
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
{
|
|
||||||
title: "医",
|
|
||||||
url: "/pages/curriculum/cate/index",
|
|
||||||
imgUrl: require("@/static/icon/homePage/cate_yi.png"),
|
|
||||||
|
|
||||||
style: {
|
|
||||||
width: "61rpx",
|
|
||||||
height: "61rpx",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "美",
|
|
||||||
url: "/pages/curriculum/cate/index",
|
|
||||||
imgUrl: require("@/static/icon/homePage/cate_mei.png"),
|
|
||||||
|
|
||||||
style: {
|
|
||||||
width: "59rpx",
|
|
||||||
height: "59rpx",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "文",
|
|
||||||
url: "/pages/curriculum/cate/index",
|
|
||||||
imgUrl: require("@/static/icon/homePage/cate_wen.png"),
|
|
||||||
|
|
||||||
style: {
|
|
||||||
width: "61rpx",
|
|
||||||
height: "60rpx",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
curriculumList: [
|
curriculumList: [
|
||||||
{
|
{
|
||||||
name: "课程设置",
|
name: "课程设置",
|
||||||
@@ -314,7 +255,15 @@ export default {
|
|||||||
async onTabItemTap() {
|
async onTabItemTap() {
|
||||||
this.requestAll();
|
this.requestAll();
|
||||||
},
|
},
|
||||||
|
async onPullDownRefresh() {
|
||||||
|
console.log('下拉刷新')
|
||||||
|
|
||||||
|
await this.requestAll();
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.stopPullDownRefresh();
|
||||||
|
console.log('下拉刷新已停止');
|
||||||
|
}, 50);
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapMutations(["setUserInfo"]),
|
...mapMutations(["setUserInfo"]),
|
||||||
goVideo() {
|
goVideo() {
|
||||||
@@ -395,6 +344,7 @@ export default {
|
|||||||
|
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
that.cateList = res.labels ? res.labels : [];
|
that.cateList = res.labels ? res.labels : [];
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -703,33 +653,37 @@ function calcTimer(timer) {
|
|||||||
|
|
||||||
.cate_box {
|
.cate_box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 198rpx;
|
height: auto;
|
||||||
background: $themeColor;
|
background: $themeColor;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
flex-wrap: wrap;
|
||||||
|
// justify-content: center;
|
||||||
|
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
// background-image: url("@/static/icon/cate_bg.png");
|
// background-image: url("@/static/icon/cate_bg.png");
|
||||||
box-shadow: 0rpx 0rpx 6rpx 0rpx #f9f6ea;
|
box-shadow: 0rpx 0rpx 6rpx 0rpx #f9f6ea;
|
||||||
border-radius: 7rpx;
|
border-radius: 7rpx;
|
||||||
display: flex;
|
// display: flex;
|
||||||
align-items: center;
|
// align-items: center;
|
||||||
justify-content: space-around;
|
// justify-content: space-around;
|
||||||
padding: 20rpx 31rpx;
|
padding: 10rpx 10rpx 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
.cate_item_box {
|
.cate_item_box {
|
||||||
min-width: 110rpx;
|
width: 25%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
padding: 10rpx 0 10rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
.cate_item_border {
|
.cate_item_border {
|
||||||
width: 75rpx;
|
width: 65rpx;
|
||||||
height: 98rpx;
|
height: 78rpx;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
background-image: url("@/static/icon/homePage/cate_bg.png");
|
background-image: url("@/static/icon/homePage/cate_bg.png");
|
||||||
border-radius: 4rpx;
|
border-radius: 4rpx;
|
||||||
@@ -743,11 +697,11 @@ function calcTimer(timer) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.cate_item_name {
|
.cate_item_name {
|
||||||
margin-top: 21rpx;
|
margin-top: 10rpx;
|
||||||
font-family: PangMenZhengDaoBiaoTiTiMianFeiBan;
|
font-family: PangMenZhengDaoBiaoTiTiMianFeiBan;
|
||||||
|
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-size: 43rpx;
|
font-size: 36rpx;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
// line-height: 46rpx;
|
// line-height: 46rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
@@ -153,7 +153,15 @@
|
|||||||
<button @click="onSubmit" class="active" v-if="btnShow">登 录</button>
|
<button @click="onSubmit" class="active" v-if="btnShow">登 录</button>
|
||||||
<button v-else>登 录</button>
|
<button v-else>登 录</button>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="loginHelp" v-if="submitClickNum > 0">
|
||||||
|
<!-- <view class="loginHelp"> -->
|
||||||
|
<text>登录遇到问题?</text
|
||||||
|
><text
|
||||||
|
class="link"
|
||||||
|
@click="onPageJump('/pages/homePage/index/workOrder', 'login')"
|
||||||
|
>去反馈问题</text
|
||||||
|
>
|
||||||
|
</view>
|
||||||
<!-- <view class="third_party_login_box">
|
<!-- <view class="third_party_login_box">
|
||||||
<view class="third_party_title"><text>第三方登录</text></view>
|
<view class="third_party_title"><text>第三方登录</text></view>
|
||||||
<view class="third_party_content">
|
<view class="third_party_content">
|
||||||
@@ -178,6 +186,9 @@
|
|||||||
>
|
>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="youKeL" style="margin-bottom: 40rpx" v-if="isAndorid">
|
||||||
|
<view @click="onPageJump('/pages/user/visitor')">免登陆体验</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<!-- <view class="youKeL" style="margin-bottom: 80rpx">
|
<!-- <view class="youKeL" style="margin-bottom: 80rpx">
|
||||||
<view
|
<view
|
||||||
@@ -249,16 +260,8 @@
|
|||||||
@close="yhxyShow = false"
|
@close="yhxyShow = false"
|
||||||
>
|
>
|
||||||
<view class="tanchu">
|
<view class="tanchu">
|
||||||
<view
|
<view class="dp_title" v-html="yhxyText.title"></view>
|
||||||
class="dp_title"
|
<view class="dp_content" v-html="yhxyText.content"></view>
|
||||||
v-html="yhxyText.title
|
|
||||||
"
|
|
||||||
></view>
|
|
||||||
<view
|
|
||||||
class="dp_content"
|
|
||||||
v-html="yhxyText.content
|
|
||||||
"
|
|
||||||
></view>
|
|
||||||
<!-- <yhxyPage></yhxyPage> -->
|
<!-- <yhxyPage></yhxyPage> -->
|
||||||
</view>
|
</view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
@@ -269,17 +272,9 @@
|
|||||||
:round="10"
|
:round="10"
|
||||||
@close="yszcShow = false"
|
@close="yszcShow = false"
|
||||||
>
|
>
|
||||||
<view class="tanchu" >
|
<view class="tanchu">
|
||||||
<view
|
<view class="dp_title" v-html="yszcText.title"></view>
|
||||||
class="dp_title"
|
<view class="dp_content" v-html="yszcText.content"></view>
|
||||||
v-html="yszcText.title
|
|
||||||
"
|
|
||||||
></view>
|
|
||||||
<view
|
|
||||||
class="dp_content"
|
|
||||||
v-html="yszcText.content
|
|
||||||
"
|
|
||||||
></view>
|
|
||||||
<!-- <yszcPage></yszcPage> -->
|
<!-- <yszcPage></yszcPage> -->
|
||||||
</view>
|
</view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
@@ -352,6 +347,8 @@ export default {
|
|||||||
sendEmailcode: "common/user/getMailCaptcha", //密码登录
|
sendEmailcode: "common/user/getMailCaptcha", //密码登录
|
||||||
apiLogin: "app/phone.do?loginV2",
|
apiLogin: "app/phone.do?loginV2",
|
||||||
},
|
},
|
||||||
|
isAndorid: true,
|
||||||
|
submitClickNum:0, // 登陆按钮点击次数
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -378,7 +375,7 @@ export default {
|
|||||||
this.brand = 3000;
|
this.brand = 3000;
|
||||||
|
|
||||||
this.loginForm = {};
|
this.loginForm = {};
|
||||||
|
this.getOS();
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -387,8 +384,8 @@ export default {
|
|||||||
//页面显示
|
//页面显示
|
||||||
onShow() {
|
onShow() {
|
||||||
console.log("at line 362:", uni.getStorageSync("userInfo"));
|
console.log("at line 362:", uni.getStorageSync("userInfo"));
|
||||||
this.getSettlement(101,'yszcText');
|
this.getSettlement(101, "yszcText");
|
||||||
this.getSettlement(100,'yhxyText');
|
this.getSettlement(100, "yhxyText");
|
||||||
//this.closeMusic()
|
//this.closeMusic()
|
||||||
},
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
@@ -407,7 +404,16 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
...mapMutations(["setUserInfo"]),
|
...mapMutations(["setUserInfo"]),
|
||||||
...mapMutations(["setHealthMes"]),
|
...mapMutations(["setHealthMes"]),
|
||||||
|
getOS() {
|
||||||
|
let oprateOs = "";
|
||||||
|
oprateOs = uni.getSystemInfoSync().platform;
|
||||||
|
// console.log(oprateOs)
|
||||||
|
if (oprateOs == "android") {
|
||||||
|
this.isAndorid = true;
|
||||||
|
} else {
|
||||||
|
this.isAndorid = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
changeType(val) {
|
changeType(val) {
|
||||||
this.loginForm = {};
|
this.loginForm = {};
|
||||||
this.type = 2000;
|
this.type = 2000;
|
||||||
@@ -469,26 +475,22 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 获取协议内容
|
// 获取协议内容
|
||||||
async getSettlement(id,type) {
|
async getSettlement(id, type) {
|
||||||
//隐私策略
|
//隐私策略
|
||||||
var data = await this.$commonJS.getAgreement(id);
|
var data = await this.$commonJS.getAgreement(id);
|
||||||
if (data.content) {
|
if (data.content) {
|
||||||
data.content = data.content.replace(
|
data.content = data.content.replace(
|
||||||
/<h5>/g,
|
/<h5>/g,
|
||||||
'<view style="font-weight: bold;font-size: 32rpx;margin-top: 20rpx;margin-bottom: 20rpx;">'
|
'<view style="font-weight: bold;font-size: 32rpx;margin-top: 20rpx;margin-bottom: 20rpx;">'
|
||||||
);
|
);
|
||||||
data.content = data.content.replace(
|
data.content = data.content.replace(/<\/h5>/g, "</view>");
|
||||||
/<\/h5>/g,
|
}
|
||||||
"</view>"
|
if (type == "yszcText") {
|
||||||
);
|
this.yszcText = data;
|
||||||
|
}
|
||||||
|
if (type == "yhxyText") {
|
||||||
|
this.yhxyText = data;
|
||||||
}
|
}
|
||||||
if(type=='yszcText'){
|
|
||||||
this.yszcText=data
|
|
||||||
}
|
|
||||||
if(type=='yhxyText'){
|
|
||||||
this.yhxyText=data
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//用户协议
|
//用户协议
|
||||||
// this.yhxyText = await this.$commonJS.getAgreement(108);
|
// this.yhxyText = await this.$commonJS.getAgreement(108);
|
||||||
@@ -515,11 +517,12 @@ this.yhxyText=data
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
onPageJump(url) {
|
onPageJump(url,name) {
|
||||||
uni.navigateTo({
|
console.log('点击了');
|
||||||
url: url,
|
uni.navigateTo({
|
||||||
});
|
url: `${url}?name=${name}`
|
||||||
},
|
});
|
||||||
|
},
|
||||||
onInput() {
|
onInput() {
|
||||||
// this.clearTime && clearTimeout(this.clearTime)
|
// this.clearTime && clearTimeout(this.clearTime)
|
||||||
// this.clearTime = setTimeout(() => {
|
// this.clearTime = setTimeout(() => {
|
||||||
@@ -580,6 +583,7 @@ this.yhxyText=data
|
|||||||
if (this.loginForm.quCode == null || this.loginForm.quCode == 86) {
|
if (this.loginForm.quCode == null || this.loginForm.quCode == 86) {
|
||||||
// 如果没选择国家code,默认是中国大陆
|
// 如果没选择国家code,默认是中国大陆
|
||||||
if (!this.$base.phoneRegular.test(this.loginForm.phone)) {
|
if (!this.$base.phoneRegular.test(this.loginForm.phone)) {
|
||||||
|
this.submitClickNum += 1
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "手机格式不正确",
|
title: "手机格式不正确",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
@@ -677,6 +681,7 @@ this.yhxyText=data
|
|||||||
}
|
}
|
||||||
if (this.loginForm.quCode == null || this.loginForm.quCode == 86) {
|
if (this.loginForm.quCode == null || this.loginForm.quCode == 86) {
|
||||||
if (!this.$base.phoneRegular.test(this.loginForm.phone)) {
|
if (!this.$base.phoneRegular.test(this.loginForm.phone)) {
|
||||||
|
this.submitClickNum += 1
|
||||||
this.$commonJS.showToast("手机格式不正确");
|
this.$commonJS.showToast("手机格式不正确");
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@@ -706,10 +711,13 @@ this.yhxyText=data
|
|||||||
await this.$http
|
await this.$http
|
||||||
.get(this.urlList.registerOrLogin, httpData)
|
.get(this.urlList.registerOrLogin, httpData)
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
|
this.submitClickNum = 0
|
||||||
res.userInfo.token = res.token.token;
|
res.userInfo.token = res.token.token;
|
||||||
await this.setUserInfo(res.userInfo);
|
await this.setUserInfo(res.userInfo);
|
||||||
console.log("res.userInfo哈哈红红火火恍恍惚惚 at line 593:", res.token);
|
console.log(
|
||||||
|
"res.userInfo哈哈红红火火恍恍惚惚 at line 593:",
|
||||||
|
res.token
|
||||||
|
);
|
||||||
uni.setStorageSync("token", res.token.token);
|
uni.setStorageSync("token", res.token.token);
|
||||||
// socket.init();
|
// socket.init();
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -717,7 +725,7 @@ this.yhxyText=data
|
|||||||
});
|
});
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.setStorageSync('isJump', 'false')
|
uni.setStorageSync("isJump", "false");
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: "/pages/homePage/index/index",
|
url: "/pages/homePage/index/index",
|
||||||
success: function () {
|
success: function () {
|
||||||
@@ -727,7 +735,13 @@ this.yhxyText=data
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}, 100);
|
}, 100);
|
||||||
});
|
}).catch(e => {
|
||||||
|
uni.showToast({
|
||||||
|
title:'登陆失败',
|
||||||
|
icon:'none'
|
||||||
|
})
|
||||||
|
this.submitClickNum += 1
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
if (!this.loginForm.phoneEmail) {
|
if (!this.loginForm.phoneEmail) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -749,6 +763,7 @@ this.yhxyText=data
|
|||||||
await this.$http
|
await this.$http
|
||||||
.post(this.urlList.passwordLogin, httpData)
|
.post(this.urlList.passwordLogin, httpData)
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
|
this.submitClickNum = 0
|
||||||
console.log("res.userInfo at line 593:", res.token);
|
console.log("res.userInfo at line 593:", res.token);
|
||||||
res.userInfo.token = res.token.token;
|
res.userInfo.token = res.token.token;
|
||||||
await this.setUserInfo(res.userInfo);
|
await this.setUserInfo(res.userInfo);
|
||||||
@@ -767,7 +782,13 @@ this.yhxyText=data
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}, 500);
|
}, 500);
|
||||||
});
|
}).catch(e => {
|
||||||
|
uni.showToast({
|
||||||
|
title:'登陆失败',
|
||||||
|
icon:'none'
|
||||||
|
})
|
||||||
|
this.submitClickNum += 1
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -1432,5 +1453,8 @@ this.yhxyText=data
|
|||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
padding: 5rpx 15rpx;
|
padding: 5rpx 15rpx;
|
||||||
}
|
}
|
||||||
}
|
}.loginHelp{border: 1px solid #f5dab1; margin-top: 16rpx; font-size: 26rpx; text-align: center;
|
||||||
|
padding: 10rpx; background-color: #fdf6ec; border-radius: 15rpx;
|
||||||
|
.link{color: #e6a23c;}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
1450
pages/user/visitor.vue
Normal file
1450
pages/user/visitor.vue
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user