This commit is contained in:
cc_zbp 2023-06-01 17:55:10 +08:00
commit 43fa4b294b
10 changed files with 184 additions and 160 deletions

View File

@ -178,7 +178,7 @@
console.log(11); console.log(11);
toLogin(true); toLogin(true);
uni.navigateTo({ uni.navigateTo({
url: '/pages/users/login/index' url: '/pages/users/login/login_copy'
}) })
console.log(22); console.log(22);
return return
@ -209,7 +209,7 @@
} else { } else {
uni.setStorageSync('auth_token', res.data.result.key); uni.setStorageSync('auth_token', res.data.result.key);
return uni.navigateTo({ return uni.navigateTo({
url: '/pages/users/login/index' url: '/pages/users/login/login_copy'
}) })
} }
}).catch(res => { }).catch(res => {

View File

@ -9,8 +9,8 @@ let httpApiThree
// 网络接口修改此字符 小程序域名要求https // 网络接口修改此字符 小程序域名要求https
// let httpApi = 'http://192.168.31.110:8324' // 测试 // let httpApi = 'http://192.168.31.110:8324' // 测试
if (process.env.NODE_ENV === "development") { if (process.env.NODE_ENV === "development") {
httpApi = "https://crmeb-test.shop.lihaink.cn" // httpApi = "https://crmeb-test.shop.lihaink.cn"
// httpApi = "http://192.168.0.109:8325" httpApi = "http://192.168.0.222"
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
httpApiTwo = "http://cms.com" httpApiTwo = "http://cms.com"
httpApiThree = 'http://ceshi-oa.lihaink.cn' httpApiThree = 'http://ceshi-oa.lihaink.cn'

View File

@ -47,7 +47,7 @@ export function toLogin(push, pathLogin) {
} }
// #endif // #endif
if (!pathLogin) if (!pathLogin)
pathLogin = '/page/users/login/index' pathLogin = '/page/users/login/login_copy'
Cache.set('login_back_url', path); Cache.set('login_back_url', path);
// #ifdef H5 // #ifdef H5
if (isWeixin()) { if (isWeixin()) {
@ -55,9 +55,9 @@ export function toLogin(push, pathLogin) {
} else { } else {
if (path !== pathLogin) { if (path !== pathLogin) {
push ? uni.navigateTo({ push ? uni.navigateTo({
url: '/pages/users/login/index' url: '/pages/users/login/login_copy'
}) : uni.reLaunch({ }) : uni.reLaunch({
url: '/pages/users/login/index' url: '/pages/users/login/login_copy'
}); });
} }
} }
@ -65,7 +65,7 @@ export function toLogin(push, pathLogin) {
// #ifdef APP-PLUS // #ifdef APP-PLUS
uni.navigateTo({ uni.navigateTo({
url: '/pages/users/login/index', url: '/pages/users/login/login_copy',
}) })
// #endif // #endif
} }

View File

@ -499,7 +499,7 @@
} }
}, },
{ {
"path": "login/index", "path": "login/login_copy",
"style": { "style": {
"navigationBarTitleText": "登录", "navigationBarTitleText": "登录",
"navigationBarBackgroundColor": "#EB5447", "navigationBarBackgroundColor": "#EB5447",

View File

@ -323,7 +323,7 @@
aixinTop: 0, aixinTop: 0,
Rotate: 0, Rotate: 0,
currentNav: 1, currentNav: 1,
limit: 3, limit: 10,
page: 1, page: 1,
oldCurrent: 1, oldCurrent: 1,
H5ShareBox: false, H5ShareBox: false,

View File

@ -688,6 +688,7 @@
this.getCoupon(); this.getCoupon();
break; break;
case 7: case 7:
this.loadTitle=''
this.getProductSpu() this.getProductSpu()
break; break;
} }
@ -787,6 +788,8 @@
that.loadTitle = loadend ? '已全部加载' : '加载更多'; that.loadTitle = loadend ? '已全部加载' : '加载更多';
that.$set(that, 'goods', goodsList); that.$set(that, 'goods', goodsList);
that.$set(that.where, 'page', that.where.page + 1); that.$set(that.where, 'page', that.where.page + 1);
console.log(that.loadTitle);
console.log(that.loadend);
}).catch(err => { }).catch(err => {
that.loading = false; that.loading = false;
that.goodsLoading = false; that.goodsLoading = false;
@ -813,7 +816,7 @@
const query = uni.createSelectorQuery().in(this); const query = uni.createSelectorQuery().in(this);
query.select('#goods').boundingClientRect(data => { query.select('#goods').boundingClientRect(data => {
if (data.bottom < 1500 && data.top < 0) { if (data.bottom < 1500 && data.top < 0) {
if (this.tabActive == 7) { if (this.loadend == false) {
this.getProductSpu() this.getProductSpu()
} else { } else {
this.getGoods(); this.getGoods();
@ -1146,7 +1149,9 @@
return false; return false;
} }
this.goods = [] this.goods = []
this.where.page=1
this.tabActive = param; this.tabActive = param;
console.log(this.goods);
this.goodsLoading = this.loadend = this.loading = false this.goodsLoading = this.loadend = this.loading = false
}, },
resetParmas() { resetParmas() {

View File

@ -1,6 +1,7 @@
<template> <template>
<div :style="viewColor"> <div :style="viewColor">
<div class="register absolute" v-if="!auth_token"> <div class="register absolute" v-if="!auth_token">
<div class="login">
<div class="shading"> <div class="shading">
<div class="pictrue acea-row row-center-wrapper"> <div class="pictrue acea-row row-center-wrapper">
<image :src="login_logo" v-if="login_logo" /> <image :src="login_logo" v-if="login_logo" />
@ -27,10 +28,14 @@
</div> </div>
</div> </div>
</form> </form>
<div class="tip">
<span @click="formItem = 2" class="font-color-red">立即注册</span>
<navigator class="forgetPwd" hover-class="none" url="/pages/users/retrievePassword/index"> <navigator class="forgetPwd" hover-class="none" url="/pages/users/retrievePassword/index">
忘记密码 忘记密码
</navigator> </navigator>
</div> </div>
</div>
<div class="list" :hidden="current !== 1"> <div class="list" :hidden="current !== 1">
<div class="item"> <div class="item">
<div class="acea-row row-middle"> <div class="acea-row row-middle">
@ -55,19 +60,15 @@
</div> </div>
</div> </div>
</div> </div>
<div class="logon" v-debounce @click="loginMobile" :hidden="current !== 1">登录</div>
<div class="logon" v-debounce @click="submit" :hidden="current === 1">登录</div>
<div class="protocol acea-row row-between-wrapper"> <div class="protocol acea-row row-between-wrapper">
<checkbox-group class="checkgroup" @change='isAgree=!isAgree'> <checkbox-group class="checkgroup" @change='isAgree=!isAgree'>
<checkbox class="checkbox" :checked="isAgree ? true : false" /> <checkbox class="checkbox" :checked="isAgree ? true : false" />
<text class="protocol_text">我已同意<text @click="userAgree" class="font_pro">用户协议</text><text @click="userPrivacyAgree" class="font_pro">隐私政策</text></text> <text class="protocol_text">我已同意<text @click="userAgree" class="font_pro">用户协议</text><text @click="userPrivacyAgree" class="font_pro">隐私政策</text></text>
</checkbox-group> </checkbox-group>
</div> </div>
<div class="logon" v-debounce @click="loginMobile" :hidden="current !== 1">登录</div>
<div class="logon" v-debounce @click="submit" :hidden="current === 1">登录</div>
<div class="tip">
没有账号?
<span @click="formItem = 2" class="font-color-red">立即注册</span>
</div>
<!-- #ifdef MP --> <!-- #ifdef MP -->
<view class="appLogin"> <view class="appLogin">
<view class="hds"> <view class="hds">
@ -134,17 +135,20 @@
</div> </div>
</div> </div>
</div> </div>
<div class="tip">
<div>
已有账号?
<span @click="formItem = 1" class="font-color-red">去登录</span>
</div>
</div>
<div class="logon" @click="register">注册</div>
<div class="protocol acea-row row-between-wrapper"> <div class="protocol acea-row row-between-wrapper">
<checkbox-group class="checkgroup" @change='isAgree=!isAgree'> <checkbox-group class="checkgroup" @change='isAgree=!isAgree'>
<checkbox class="checkbox" :checked="isAgree ? true : false" /> <checkbox class="checkbox" :checked="isAgree ? true : false" />
<text class="protocol_text">我已同意<text @click="userAgree" class="font_pro">用户协议</text><text @click="userPrivacyAgree" class="font_pro">隐私政策</text></text> <text class="protocol_text">我已同意<text @click="userAgree" class="font_pro">用户协议</text><text @click="userPrivacyAgree" class="font_pro">隐私政策</text></text>
</checkbox-group> </checkbox-group>
</div> </div>
<div class="logon" @click="register">注册</div>
<div class="tip">
已有账号?
<span @click="formItem = 1" class="font-color-red">立即登录</span>
</div>
<!-- #ifdef APP-PLUS --> <!-- #ifdef APP-PLUS -->
<view class="appLogin" v-if="!appLoginStatus && !appleLoginStatus"> <view class="appLogin" v-if="!appLoginStatus && !appleLoginStatus">
<view class="hds"> <view class="hds">
@ -163,6 +167,7 @@
</view> </view>
<!-- #endif --> <!-- #endif -->
</div> </div>
</div>
<div class="bottom"></div> <div class="bottom"></div>
<view class="settlementAgreement" v-if="showAgreement"> <view class="settlementAgreement" v-if="showAgreement">
<view class="setAgCount"> <view class="setAgCount">
@ -273,7 +278,7 @@
data: function() { data: function() {
return { return {
navList: ["账号登录", "快速登录"], navList: ["账号登录", "快速登录"],
current: 1, current: 0,
account: "", account: "",
password: "", password: "",
captcha: "", captcha: "",
@ -1026,6 +1031,9 @@
overflow-y: scroll; overflow-y: scroll;
} }
.protocol{ .protocol{
display: flex;
justify-content: center;
text-align: center;
margin-top: 30rpx; margin-top: 30rpx;
} }
.protocol_text{ .protocol_text{

View File

@ -286,7 +286,7 @@
}); });
}).catch(err => { }).catch(err => {
return that.$util.Tips({ return that.$util.Tips({
title: err, title: '该商品已下架,无法取消收藏',
}); });
});; });;
}, },

View File

@ -26,7 +26,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="card-wrapper" :style="'background-image: url('+brokerage_bg+')'"> <view v-if="next_level" class="card-wrapper" :style="'background-image: url('+brokerage_bg+')'">
<view class="growth"> <view class="growth">
<!-- <view class="title">{{curLevel&&curLevel.brokerage_name || ''}}</view> --> <!-- <view class="title">{{curLevel&&curLevel.brokerage_name || ''}}</view> -->
<view class="info">今日获得成长值{{growthValue}}</view> <view class="info">今日获得成长值{{growthValue}}</view>

File diff suppressed because one or more lines are too long