Merge branch 'bd-dev' of 47.94.45.65:angelo/web-base-h5 into bd-test
This commit is contained in:
commit
17554526d0
|
@ -59,7 +59,7 @@ export default {
|
|||
this.downShow = false
|
||||
this.getCar()
|
||||
},
|
||||
|
||||
|
||||
getCar() {
|
||||
this.$store.dispatch('getCarLength', this.specialArea)
|
||||
},
|
||||
|
@ -120,4 +120,4 @@ export default {
|
|||
::v-deep .u-popup__content {
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
|
@ -156,6 +156,7 @@ import { canOrder } from '@/config/order'
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
newShareMember: false,
|
||||
isSelectAll: [],
|
||||
shopCarList: [],
|
||||
isLoading: false,
|
||||
|
@ -213,6 +214,8 @@ export default {
|
|||
// this.getCarList()
|
||||
},
|
||||
onShow() {
|
||||
this.newShareMember = uni.getStorageSync('User')?.loginType !== 0
|
||||
console.log('this.nerShareMember', this.newShareMember)
|
||||
// this.getCarList()
|
||||
},
|
||||
methods: {
|
||||
|
@ -377,13 +380,25 @@ export default {
|
|||
shoppingId: item,
|
||||
})
|
||||
})
|
||||
uni.navigateTo({
|
||||
url:
|
||||
'/pages/regiest/index?specialArea=' +
|
||||
this.goodsCheck[0].specialArea +
|
||||
'&shoppArr=' +
|
||||
JSON.stringify(shoppArr),
|
||||
})
|
||||
// sangelxiu1
|
||||
this.newShareMember = uni.getStorageSync('User')?.loginType !== 0
|
||||
if(this.newShareMember){
|
||||
uni.navigateTo({
|
||||
url:
|
||||
'/pages/regiest/shareRegister?specialArea=' +
|
||||
41 +
|
||||
'&shoppArr=' +
|
||||
JSON.stringify(shoppArr),
|
||||
})
|
||||
}else{
|
||||
uni.navigateTo({
|
||||
url:
|
||||
'/pages/regiest/index?specialArea=' +
|
||||
this.goodsCheck[0].specialArea +
|
||||
'&shoppArr=' +
|
||||
JSON.stringify(shoppArr),
|
||||
})
|
||||
}
|
||||
} else if (this.goodsCheck[0].specialArea == 21) {
|
||||
if (
|
||||
this.userInfo.registerShare == 0 ||
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
class="tabbar-item center-item"
|
||||
:class="{ active: current === 2 }"
|
||||
@click="tabbarChange(2)"
|
||||
v-if="!newShareMember"
|
||||
>
|
||||
<view class="center-icon-wrapper">
|
||||
<view class="center-icon">
|
||||
|
@ -88,8 +89,12 @@ export default {
|
|||
default: 0,
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.newShareMember = uni.getStorageSync('User')?.loginType !== 0
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
newShareMember: false,
|
||||
// 完整的路由列表
|
||||
list: [
|
||||
{
|
||||
|
|
|
@ -194,6 +194,7 @@ export default {
|
|||
)
|
||||
if (province) {
|
||||
if (!province.children) {
|
||||
console.log(item)
|
||||
province.children = [item]
|
||||
} else {
|
||||
province.children.push(item)
|
||||
|
|
|
@ -2,3 +2,20 @@ const http = uni.$u.http
|
|||
|
||||
export const getShareCode = params =>
|
||||
http.get('/member/api/share/get-shared-img', { params })
|
||||
|
||||
// 根据短码获取memberCode
|
||||
export const getMemberCode = code =>
|
||||
http.get(`/member/api/share/find-share-code/${code}`)
|
||||
|
||||
// 获取手机验证码
|
||||
export const getPhoneCode = params =>
|
||||
http.get('/member/api/share/share-sms-code', { params })
|
||||
|
||||
// 注册
|
||||
export const getRegister = data =>
|
||||
http.post('/member/api/share/share-register', data)
|
||||
|
||||
// 自动登录
|
||||
export const autoLogin = data =>
|
||||
// http.post('/retail-member/api/retail-auth/auto-login', data)
|
||||
http.post('/member/auth/api/share-login', data)
|
||||
|
|
|
@ -318,6 +318,12 @@
|
|||
"navigationBarTitleText": "注册专区"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/regiest/shareRegister",
|
||||
"style": {
|
||||
"navigationBarTitleText": "会员专区"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/shareArea/haiShare",
|
||||
"style": {
|
||||
|
|
|
@ -199,6 +199,7 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
newShareMember: false,
|
||||
promptFlag: false,
|
||||
promptMsg: '',
|
||||
confirmText: '',
|
||||
|
@ -394,6 +395,19 @@ export default {
|
|||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: '会员专区',
|
||||
value: 41,
|
||||
name: 'membersOnly',
|
||||
children: [
|
||||
{
|
||||
label: '自营专区',
|
||||
value: 41,
|
||||
name: 'regiestArea',
|
||||
isShow: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
|
@ -407,12 +421,15 @@ export default {
|
|||
) {
|
||||
}
|
||||
this.getGoodsInfo()
|
||||
this.getAreaGoods()
|
||||
|
||||
// this.getLanguage();
|
||||
this.getService()
|
||||
},
|
||||
onShow() {
|
||||
this.$store.dispatch('getCarLength')
|
||||
this.user = uni.getStorageSync('User')
|
||||
this.getAreaGoods()
|
||||
this.newShareMember = this.user?.loginType !== 0
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
let that = this
|
||||
|
@ -458,6 +475,17 @@ export default {
|
|||
getAreaGoods() {
|
||||
getAreaGoods().then(res => {
|
||||
this.recommendSpecialAreaList = res.data?.recommendSpecialAreaList || []
|
||||
if (this.newShareMember) {
|
||||
let obj = this.recommendSpecialAreaList.find(
|
||||
item => item.specialArea === 41
|
||||
)
|
||||
if (obj) {
|
||||
this.$set(obj, 'specialAreaName', '会员专区')
|
||||
}
|
||||
this.recommendSpecialAreaList = this.recommendSpecialAreaList.filter(
|
||||
item => item.specialArea === 41
|
||||
)
|
||||
}
|
||||
})
|
||||
},
|
||||
toDel() {
|
||||
|
@ -596,7 +624,6 @@ export default {
|
|||
tapx = index
|
||||
}
|
||||
})
|
||||
|
||||
if (tapx == -1) {
|
||||
this.zoneList.forEach((items, index) => {
|
||||
items.children.forEach(ctem => {
|
||||
|
|
|
@ -1,26 +1,26 @@
|
|||
|
||||
<template>
|
||||
<view class="main">
|
||||
<view class="title">
|
||||
{{ '会员登录' }}
|
||||
</view>
|
||||
<u-form :model="loginForm"
|
||||
labelWidth="auto"
|
||||
ref="uForm">
|
||||
<u-form :model="loginForm" labelWidth="auto" ref="uForm">
|
||||
<view class="view-class pa">
|
||||
<!-- <view class="account-s">
|
||||
|
||||
</view> -->
|
||||
<u-form-item label=""
|
||||
prop="username">
|
||||
<u-input v-model="loginForm.username"
|
||||
clearable
|
||||
placeholder-class="place-class"
|
||||
class="border-color "
|
||||
:placeholder="'会员账号'">
|
||||
<image class="tou"
|
||||
slot="prefix"
|
||||
src="../../static/images/login/index-icon4.png"></image>
|
||||
<u-form-item label="" prop="username">
|
||||
<u-input
|
||||
v-model="loginForm.username"
|
||||
clearable
|
||||
placeholder-class="place-class"
|
||||
class="border-color"
|
||||
:placeholder="'会员账号'"
|
||||
>
|
||||
<image
|
||||
class="tou"
|
||||
slot="prefix"
|
||||
src="../../static/images/login/index-icon4.png"
|
||||
></image>
|
||||
</u-input>
|
||||
</u-form-item>
|
||||
<!-- <view class="close-s"
|
||||
|
@ -33,79 +33,94 @@
|
|||
<!-- <view class="account-s widths">
|
||||
<image src="../../static/images/login/index-icon2.png"></image>
|
||||
</view> -->
|
||||
<u-form-item label=""
|
||||
prop="password">
|
||||
<u-input placeholder-style="color:#333"
|
||||
:type="password"
|
||||
class="border-color"
|
||||
v-model="loginForm.password"
|
||||
:placeholder="'登录密码'">
|
||||
<image class="mm"
|
||||
slot="prefix"
|
||||
src="../../static/images/login/index-icon2.png"></image>
|
||||
<u-form-item label="" prop="password">
|
||||
<u-input
|
||||
placeholder-style="color:#333"
|
||||
:type="password"
|
||||
class="border-color"
|
||||
v-model="loginForm.password"
|
||||
:placeholder="'登录密码'"
|
||||
>
|
||||
<image
|
||||
class="mm"
|
||||
slot="prefix"
|
||||
src="../../static/images/login/index-icon2.png"
|
||||
></image>
|
||||
<view slot="suffix">
|
||||
<view v-if="password=='text'"
|
||||
@click="changeFlagTap('password')">
|
||||
<image class="eye"
|
||||
src="../../static/images/login/icon1.png"></image>
|
||||
<view
|
||||
v-if="password == 'text'"
|
||||
@click="changeFlagTap('password')"
|
||||
>
|
||||
<image
|
||||
class="eye"
|
||||
src="../../static/images/login/icon1.png"
|
||||
></image>
|
||||
</view>
|
||||
<view v-else
|
||||
@click="changeFlagTap('text')">
|
||||
<image class="eye"
|
||||
src="../../static/images/login/icon2.png"></image>
|
||||
<view v-else @click="changeFlagTap('text')">
|
||||
<image
|
||||
class="eye"
|
||||
src="../../static/images/login/icon2.png"
|
||||
></image>
|
||||
</view>
|
||||
</view>
|
||||
</u-input>
|
||||
</u-form-item>
|
||||
|
||||
</view>
|
||||
<view class="view-class">
|
||||
<!-- <view class="account-s yzm">
|
||||
<image src="../../static/images/login/index-icon1.png"></image>
|
||||
</view> -->
|
||||
<u-form-item label=""
|
||||
prop="code">
|
||||
<u-input v-model="loginForm.code"
|
||||
placeholder-class="place-class"
|
||||
class="border-color"
|
||||
:placeholder="'验证码'">
|
||||
<image class="mm"
|
||||
slot="prefix"
|
||||
src="../../static/images/login/index-icon1.png"></image>
|
||||
<img :src="codeUrl"
|
||||
slot="suffix"
|
||||
style="height: 38px;"
|
||||
@click="getVerifyCode" />
|
||||
<u-form-item label="" prop="code">
|
||||
<u-input
|
||||
v-model="loginForm.code"
|
||||
placeholder-class="place-class"
|
||||
class="border-color"
|
||||
:placeholder="'验证码'"
|
||||
>
|
||||
<image
|
||||
class="mm"
|
||||
slot="prefix"
|
||||
src="../../static/images/login/index-icon1.png"
|
||||
></image>
|
||||
<img
|
||||
:src="codeUrl"
|
||||
slot="suffix"
|
||||
style="height: 38px"
|
||||
@click="getVerifyCode"
|
||||
/>
|
||||
</u-input>
|
||||
|
||||
</u-form-item>
|
||||
</view>
|
||||
</u-form>
|
||||
<u-button type="success"
|
||||
shape="circle"
|
||||
class="btn"
|
||||
:loading="isLoading"
|
||||
:loadingText="'登录中'"
|
||||
@click="toLogin">{{'登录'}}</u-button>
|
||||
<view class="paswwrod_btn"
|
||||
@click="submit">{{'忘记密码'}}</view>
|
||||
|
||||
|
||||
<u-button
|
||||
type="success"
|
||||
shape="circle"
|
||||
class="btn"
|
||||
:loading="isLoading"
|
||||
:loadingText="'登录中'"
|
||||
@click="toLogin"
|
||||
>{{ '登录' }}</u-button
|
||||
>
|
||||
<view class="paswwrod_btn" @click="submit">{{ '忘记密码' }}</view>
|
||||
|
||||
<view class="beian-container">
|
||||
<div style="height: 25px;"> </div>
|
||||
<div style="height: 25px"></div>
|
||||
<div class="beian-content">
|
||||
<a class="beian-link jicpb"
|
||||
href="https://beian.miit.gov.cn"
|
||||
target="_blank"
|
||||
title="工信部备案查询">
|
||||
<a
|
||||
class="beian-link jicpb"
|
||||
href="https://beian.miit.gov.cn/#/Integrated/index"
|
||||
target="_blank"
|
||||
title="工信部备案查询"
|
||||
>
|
||||
京ICP备17001692号-8
|
||||
</a>
|
||||
<span class="beian-separator">|</span>
|
||||
<a class="beian-link jgawb"
|
||||
href="https://beian.mps.gov.cn/#/query/webSearch?code=11022902000496"
|
||||
target="_blank"
|
||||
title="公安部备案查询">
|
||||
<a
|
||||
class="beian-link jgawb"
|
||||
href="https://beian.mps.gov.cn/#/query/webSearch?code=11022902000496"
|
||||
target="_blank"
|
||||
title="公安部备案查询"
|
||||
>
|
||||
京公网安备11022902000496号
|
||||
</a>
|
||||
</div>
|
||||
|
@ -137,7 +152,7 @@ export default {
|
|||
},
|
||||
onLoad() {
|
||||
this.getVerifyCode()
|
||||
this.loginForm.username = uni.getStorageSync('username')||''
|
||||
this.loginForm.username = uni.getStorageSync('username') || ''
|
||||
// this.getLanguage()
|
||||
},
|
||||
methods: {
|
||||
|
@ -156,13 +171,13 @@ export default {
|
|||
this.loginForm.username = ''
|
||||
},
|
||||
getVerifyCode() {
|
||||
api.captchaImage().then((res) => {
|
||||
api.captchaImage().then(res => {
|
||||
this.codeUrl = 'data:image/gif;base64,' + res.img
|
||||
this.loginForm.uuid = res.uuid
|
||||
})
|
||||
},
|
||||
toLogin() {
|
||||
api.login(this.loginForm).then((res) => {
|
||||
api.login(this.loginForm).then(res => {
|
||||
this.isLoading = false
|
||||
if (!res) {
|
||||
// uni.showToast({
|
||||
|
@ -186,15 +201,15 @@ export default {
|
|||
url: url,
|
||||
method: 'GET',
|
||||
responseType: 'arraybuffer',
|
||||
success: (res) => {},
|
||||
fail: (err) => {
|
||||
success: res => {},
|
||||
fail: err => {
|
||||
reject(err)
|
||||
},
|
||||
})
|
||||
})
|
||||
},
|
||||
getUseInfo() {
|
||||
store.dispatch('GetInfo').then((res) => {
|
||||
store.dispatch('GetInfo').then(res => {
|
||||
uni.switchTab({ url: '/pages/index/index' })
|
||||
// 目前强制跳首页
|
||||
// if (res.data.loginType == 1) {
|
||||
|
@ -260,7 +275,7 @@ body {
|
|||
text-align: center;
|
||||
}
|
||||
.btn {
|
||||
background-color: #005BAC;
|
||||
background-color: #005bac;
|
||||
border: none;
|
||||
height: 92rpx;
|
||||
line-height: 92rpx;
|
||||
|
@ -351,10 +366,6 @@ body {
|
|||
padding: 7px 20rpx;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* 备案容器 */
|
||||
.beian-container {
|
||||
background-color: #ffffff; /* 深色背景 */
|
||||
|
@ -380,7 +391,7 @@ body {
|
|||
|
||||
/* 备案链接 */
|
||||
.beian-link {
|
||||
color: #749AE3;
|
||||
color: #749ae3;
|
||||
text-decoration: none;
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
|
@ -398,7 +409,7 @@ body {
|
|||
|
||||
/* 分隔符 */
|
||||
.beian-separator {
|
||||
color: #749AE3;
|
||||
color: #749ae3;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
</view>
|
||||
</view>
|
||||
|
||||
<view class="ju_grade" v-if="!ifSpecial">
|
||||
<view class="ju_grade" v-if="!ifSpecial && !newShareMember" >
|
||||
<!-- <view v-if="awards.tarAwardsName" class="awards-progress-summary" style="text-align: center;">
|
||||
<span class="descriptive-text">当前距离</span>
|
||||
<span class="highlight-name">
|
||||
|
@ -233,7 +233,7 @@
|
|||
</view>
|
||||
|
||||
<!-- 市场动态 -->
|
||||
<view class="my_order" v-if="actMenu">
|
||||
<view class="my_order" v-if="actMenu && !newShareMember">
|
||||
<view class="my_title">
|
||||
<text class="thetitle">{{ '市场动态' }}</text>
|
||||
</view>
|
||||
|
@ -541,13 +541,13 @@ export default {
|
|||
iHonorAward: false,
|
||||
ifSpecial: false,
|
||||
awardsList: '',
|
||||
newShareMember: false,
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.getInfo()
|
||||
this.orderNum()
|
||||
this.getUserAwardss()
|
||||
this.getMemberBalance()
|
||||
},
|
||||
|
||||
computed: {
|
||||
|
@ -666,6 +666,9 @@ export default {
|
|||
return `${(Math.floor(valueInWan * 100) / 100).toFixed(2)}`
|
||||
},
|
||||
getMemberBalance() {
|
||||
if(this.newShareMember){
|
||||
return;
|
||||
}
|
||||
getMemberBalance().then(res => {
|
||||
console.log('🌈res', res)
|
||||
if (res.code === 200 && res.data) {
|
||||
|
@ -726,7 +729,9 @@ export default {
|
|||
api.getInfo().then(res => {
|
||||
if (res) {
|
||||
this.userInfo = res.data || {}
|
||||
if (this.userInfo.memberCode == 'BD68880628') {
|
||||
console.log(this.userInfo)
|
||||
this.newShareMember = (this.userInfo?.loginType !== 0);
|
||||
if (this.userInfo.memberCode == 'BD68880628' || this.newShareMember) {
|
||||
this.ifSpecial = true
|
||||
this.otherMenuList = [
|
||||
{
|
||||
|
@ -830,10 +835,36 @@ export default {
|
|||
|
||||
// },
|
||||
]
|
||||
if(this.newShareMember){
|
||||
this.otherMenuList = [
|
||||
{
|
||||
url: '/pages/pickupArea/pickupArea',
|
||||
name: '提货专区',
|
||||
imgurl: '../../static/images/my_icon3.png',
|
||||
menuKey: 'pickGoods',
|
||||
ifshow: true,
|
||||
},
|
||||
{
|
||||
url: '/pages/userSecure/index',
|
||||
name: '账号安全',
|
||||
imgurl: '../../static/images/my_icon8.png',
|
||||
menuKey: '',
|
||||
ifshow: true,
|
||||
},
|
||||
{
|
||||
url: '/pages/addressList/index',
|
||||
name: '地址管理',
|
||||
imgurl: '../../static/images/my_icon9.png',
|
||||
menuKey: '',
|
||||
ifshow: true,
|
||||
},
|
||||
]
|
||||
}
|
||||
} else {
|
||||
this.ifSpecial = false
|
||||
}
|
||||
}
|
||||
this.getMemberBalance()
|
||||
})
|
||||
api.getData().then(res => {
|
||||
if (res.code == 200) {
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<u-icon name="arrow-down"></u-icon>
|
||||
</view>
|
||||
</u-form-item> -->
|
||||
<view v-if="specialArea != 2 && specialArea != 25 && specialArea != 27">
|
||||
<view v-if="(specialArea != 2 && specialArea != 25 && specialArea != 27) || newShareMember">
|
||||
<u-form-item
|
||||
:label="'会员编号'"
|
||||
required
|
||||
|
@ -43,7 +43,7 @@
|
|||
</u-form-item>
|
||||
</view>
|
||||
|
||||
<view v-if="specialArea == 2 || specialArea == 25 || specialArea == 27">
|
||||
<view v-if="(specialArea == 2 || specialArea == 25 || specialArea == 27) && !newShareMember">
|
||||
<u-form-item
|
||||
:label="'升级编号'"
|
||||
required
|
||||
|
@ -460,6 +460,7 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
newShareMember: false,
|
||||
isDeliveryWay: true,
|
||||
isDp: false,
|
||||
storehouseList: [],
|
||||
|
@ -670,6 +671,12 @@ export default {
|
|||
onShow() {
|
||||
// 获取地址
|
||||
this.getAddressList()
|
||||
this.newShareMember = uni.getStorageSync('User')?.loginType !== 0
|
||||
if(this.newShareMember){
|
||||
uni.setNavigationBarTitle({
|
||||
title: '会员专区',
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
toAgree() {
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
<u-collapse-item
|
||||
name="1"
|
||||
v-if="
|
||||
!isRecharge && !isShare && userInfo.memberCode != 'BD68880628'
|
||||
!isRecharge && !isShare && userInfo.memberCode != 'BD68880628' && !newShareMember
|
||||
"
|
||||
>
|
||||
<view slot="title" class="pf">
|
||||
|
@ -470,15 +470,15 @@
|
|||
<div class="tit4">{{ '升级会员信息' }}</div>
|
||||
<div class="quan">
|
||||
<div class="kuang_i">
|
||||
<div>{{ '升级编号' }}</div>
|
||||
<div>{{ newShareMember ? '会员编号' : '升级编号' }}</div>
|
||||
<div>{{ orderData.memberCode }}</div>
|
||||
</div>
|
||||
<div class="kuang_i">
|
||||
<div>{{ '升级姓名' }}</div>
|
||||
<div>{{ newShareMember ? '会员姓名' : '升级姓名' }}</div>
|
||||
<div>{{ orderData.memberName }}</div>
|
||||
</div>
|
||||
<div class="kuang_i">
|
||||
<div>{{ '升级级别' }}</div>
|
||||
<div>{{ newShareMember ? '会员级别' : '升级级别' }}</div>
|
||||
<div>{{ orderData.pkGradeVal }}</div>
|
||||
</div>
|
||||
<div class="kuang_i">
|
||||
|
@ -506,7 +506,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-show="[14, 3, 26, 28].includes(specialArea)">
|
||||
<div v-show="[14, 3, 26, 28, 41].includes(specialArea)">
|
||||
<div class="tit4">{{ '购买人信息' }}</div>
|
||||
<div class="quan">
|
||||
<div class="kuang_i">
|
||||
|
@ -778,6 +778,7 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
newShareMember: false,
|
||||
PAY_TYPE,
|
||||
PAY_AUTH,
|
||||
payList: {},
|
||||
|
@ -887,6 +888,7 @@ export default {
|
|||
onShow() {
|
||||
// 获取银行卡
|
||||
// this.getBankList()
|
||||
this.newShareMember = uni.getStorageSync('User')?.loginType !== 0
|
||||
},
|
||||
methods: {
|
||||
toUnBind() {
|
||||
|
@ -987,6 +989,7 @@ export default {
|
|||
this.specialArea == 1 ||
|
||||
this.specialArea == 7 ||
|
||||
this.specialArea == 24
|
||||
|| this.specialArea == 41
|
||||
) {
|
||||
url = api.payRegOrder
|
||||
} else {
|
||||
|
@ -1368,10 +1371,30 @@ export default {
|
|||
api.payConfig().then(res => {
|
||||
this.payList = res.data
|
||||
console.log(this.payList)
|
||||
console.log(this.PAY_AUTH)
|
||||
const firstPayType = this.getFirstTrueProperty(this.payList);
|
||||
const payKeyName = this.getKeyByValue(PAY_AUTH, firstPayType)
|
||||
if(this.newShareMember){
|
||||
this.$set(this, 'activeNames', 2);
|
||||
this.$set(this, 'whatPay', payKeyName);
|
||||
}
|
||||
resolve(res.data)
|
||||
// payList[PAY_AUTH[PAY_TYPE.JING_DONG_H5]]
|
||||
})
|
||||
})
|
||||
},
|
||||
getKeyByValue(obj, value) {
|
||||
const foundEntry = Object.entries(obj).find(([key, val]) => val === value);
|
||||
return foundEntry ? foundEntry[0] : null;
|
||||
},
|
||||
getFirstTrueProperty(obj) {
|
||||
for (const key in obj) {
|
||||
if (obj.hasOwnProperty(key) && obj[key] === true) {
|
||||
return key;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
},
|
||||
getBankList() {
|
||||
api.jdBankList().then(res => {
|
||||
this.jdList = res.data
|
||||
|
@ -1393,10 +1416,11 @@ export default {
|
|||
.orderInfo({
|
||||
specialArea: this.specialArea,
|
||||
orderCode: this.orderCode,
|
||||
pkSettleCountry: this.pkCountry,
|
||||
pkSettleCountry: this.pkCountry || 1,
|
||||
})
|
||||
.then(res => {
|
||||
this.orderData = res.data
|
||||
this.specialArea = res.data.specialArea
|
||||
resolve(res.data)
|
||||
this.downTime()
|
||||
})
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -10,55 +10,49 @@
|
|||
<!-- <view class="index_header">
|
||||
<view>注册</view>
|
||||
</view> -->
|
||||
<view class="title">欢迎注册</view>
|
||||
<!-- <view class="tit" v-if="!pkCountry">{{ '嗨粉扫天下' }}</view> -->
|
||||
<!-- 海粉 -->
|
||||
<view class="formed1">
|
||||
<u-form :model="form" labelWidth="80px" ref="uForm" :rules="rules">
|
||||
<u-form-item label="" prop="memberCode">
|
||||
<u-input v-model="form.memberCode" type="number" disabled>
|
||||
<u--text
|
||||
:text="howHeader"
|
||||
slot="prefix"
|
||||
margin="0 3px 0 0"
|
||||
type="tips"
|
||||
></u--text>
|
||||
</u-input>
|
||||
<u-form :model="form" labelWidth="90px" ref="uForm" :rules="rules">
|
||||
<u-form-item label="推荐编号" prop="parentCode">
|
||||
<u-input v-model="form.parentCode" disabled> </u-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="" prop="memberName">
|
||||
<u-form-item label="会员姓名" prop="memberName">
|
||||
<u-input
|
||||
v-model="form.memberName"
|
||||
:placeholder="'请输入会员姓名'"
|
||||
/>
|
||||
</u-form-item>
|
||||
<u-form-item label="" prop="phone">
|
||||
<u-form-item label="联系方式" prop="phone">
|
||||
<u-input
|
||||
v-model="form.phone"
|
||||
@blur="setMemberCode"
|
||||
:placeholder="'请输入联系方式'"
|
||||
type="number"
|
||||
maxlength="20"
|
||||
/>
|
||||
</u-form-item>
|
||||
|
||||
<u-form-item label="" prop="loginPassword">
|
||||
<!--
|
||||
<u-form-item label="登录密码" prop="loginPwd">
|
||||
<u-input
|
||||
:password="isPwd"
|
||||
:placeholder="'请输入登录密码'"
|
||||
v-model="form.loginPassword"
|
||||
v-model="form.loginPwd"
|
||||
>
|
||||
<template slot="suffix">
|
||||
<template #suffix>
|
||||
<u-icon name="eye" @tap="isPwd = !isPwd" v-if="!isPwd"></u-icon>
|
||||
<u-icon name="eye-off" @tap="isPwd = !isPwd" v-else></u-icon>
|
||||
</template>
|
||||
</u-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="" prop="payPassword">
|
||||
<u-form-item label="支付密码" prop="payPwd">
|
||||
<u-input
|
||||
:password="isPwd2"
|
||||
:placeholder="'请输入支付密码'"
|
||||
v-model="form.payPassword"
|
||||
v-model="form.payPwd"
|
||||
>
|
||||
<template slot="suffix">
|
||||
<template #suffix>
|
||||
<u-icon
|
||||
name="eye"
|
||||
@tap="isPwd2 = !isPwd2"
|
||||
|
@ -68,13 +62,14 @@
|
|||
</template>
|
||||
</u-input>
|
||||
</u-form-item>
|
||||
<u-form-item label="" prop="code">
|
||||
<u-input v-model="form.code" :placeholder="'请输入验证码'">
|
||||
<template slot="suffix">
|
||||
<u-form-item label="验证码" prop="smsCode">
|
||||
<u-input v-model="form.smsCode" :placeholder="'请输入验证码'">
|
||||
<template #suffix>
|
||||
<view class="getCode" @tap="getVilCode">{{ getCode }}</view>
|
||||
</template>
|
||||
</u-input>
|
||||
</u-form-item>
|
||||
-->
|
||||
</u-form>
|
||||
<u-button
|
||||
type="success"
|
||||
|
@ -137,10 +132,10 @@
|
|||
</view>
|
||||
</u-form-item>
|
||||
<u-form-item label=""
|
||||
prop="loginPassword">
|
||||
prop="loginPwd">
|
||||
<u-input :password="isPwd1"
|
||||
:placeholder="'请输入登录密码'"
|
||||
v-model="form.loginPassword">
|
||||
v-model="form.loginPwd">
|
||||
<template slot="suffix">
|
||||
<u-icon name="eye"
|
||||
@tap="isPwd1=!isPwd1"
|
||||
|
@ -152,10 +147,10 @@
|
|||
</u-input>
|
||||
</u-form-item>
|
||||
<u-form-item label=""
|
||||
prop="payPassword">
|
||||
prop="payPwd">
|
||||
<u-input :password="isPwd2"
|
||||
:placeholder="'请输入支付密码'"
|
||||
v-model="form.payPassword">
|
||||
v-model="form.payPwd">
|
||||
<template slot="suffix">
|
||||
<u-icon name="eye"
|
||||
@tap="isPwd2=!isPwd2"
|
||||
|
@ -183,12 +178,56 @@
|
|||
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="mask" v-if="isTrue"> </view>
|
||||
<u-modal
|
||||
:show="showSuccessModal"
|
||||
title="注册成功"
|
||||
:show-cancel-button="true"
|
||||
cancel-text="复制"
|
||||
confirm-text="自动登录"
|
||||
@confirm="onModalConfirm"
|
||||
@cancel="onModalCancel"
|
||||
@close="showSuccessModal = false"
|
||||
>
|
||||
<view class="slot-content" v-if="successData">
|
||||
<view class="success-item">
|
||||
<text class="item-label">会员编号:</text>
|
||||
<text class="item-value">{{ successData.memberCode }}</text>
|
||||
</view>
|
||||
<view class="success-item">
|
||||
<text class="item-label">会员姓名:</text>
|
||||
<text class="item-value">{{ successData.memberName }}</text>
|
||||
</view>
|
||||
<view class="success-item">
|
||||
<text class="item-label">联系方式:</text>
|
||||
<text class="item-value">{{ successData.phone }}</text>
|
||||
</view>
|
||||
<view class="success-item">
|
||||
<text class="item-label">登录密码:</text>
|
||||
<text class="item-value">{{ successData.loginPassword }}</text>
|
||||
</view>
|
||||
<view class="success-item">
|
||||
<text class="item-label">支付密码:</text>
|
||||
<text class="item-value">{{ successData.payPassword }}</text>
|
||||
</view>
|
||||
<view class="success-item">
|
||||
<text class="item-label">登录地址:</text>
|
||||
<text class="item-value">{{ successData.urlAddress }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</u-modal>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import * as api from '@/config/goods'
|
||||
import {
|
||||
getMemberCode,
|
||||
getPhoneCode,
|
||||
getRegister,
|
||||
autoLogin,
|
||||
} from '@/config/share'
|
||||
import { setToken } from '@/config/auth.js'
|
||||
import store from '@/store'
|
||||
export default {
|
||||
components: {},
|
||||
data() {
|
||||
|
@ -198,6 +237,11 @@ export default {
|
|||
pkParent: '',
|
||||
form: {
|
||||
memberName: '',
|
||||
smsCode: '',
|
||||
loginPwd: '',
|
||||
payPwd: '',
|
||||
parentCode: '',
|
||||
phone: '',
|
||||
},
|
||||
isLoading: false,
|
||||
getCode: '获取验证码',
|
||||
|
@ -210,11 +254,13 @@ export default {
|
|||
isPwd: true,
|
||||
isPwd1: true,
|
||||
isPwd2: true,
|
||||
showSuccessModal: false,
|
||||
successData: null,
|
||||
rules: {
|
||||
memberCode: [
|
||||
parentCode: [
|
||||
{
|
||||
required: true,
|
||||
asyncValidator: this.memberCodeRule,
|
||||
message: '请输入推荐编号',
|
||||
trigger: ['blur'],
|
||||
},
|
||||
],
|
||||
|
@ -231,22 +277,29 @@ export default {
|
|||
message: '请输入联系方式',
|
||||
trigger: ['blur'],
|
||||
},
|
||||
{
|
||||
validator: (rule, value, callback) => {
|
||||
return this.$u.test.mobile(value);
|
||||
},
|
||||
message: "手机号格式不正确",
|
||||
trigger: ["blur"],
|
||||
},
|
||||
],
|
||||
code: [
|
||||
smsCode: [
|
||||
{
|
||||
required: true,
|
||||
message: '请输入验证码',
|
||||
trigger: ['blur'],
|
||||
},
|
||||
],
|
||||
loginPassword: [
|
||||
loginPwd: [
|
||||
{
|
||||
required: true,
|
||||
message: '请输入登录密码',
|
||||
trigger: ['blur'],
|
||||
},
|
||||
],
|
||||
payPassword: [
|
||||
payPwd: [
|
||||
{
|
||||
required: true,
|
||||
message: '请输入支付密码',
|
||||
|
@ -276,14 +329,14 @@ export default {
|
|||
trigger: ['change', 'blur'],
|
||||
},
|
||||
],
|
||||
loginPassword: [
|
||||
loginPwd: [
|
||||
{
|
||||
required: true,
|
||||
message: '请输入登录密码',
|
||||
trigger: ['change', 'blur'],
|
||||
},
|
||||
],
|
||||
payPassword: [
|
||||
payPwd: [
|
||||
{
|
||||
required: true,
|
||||
message: '请输入支付密码',
|
||||
|
@ -296,15 +349,14 @@ export default {
|
|||
onReady() {},
|
||||
onLoad(options) {
|
||||
this.pkParent = options.code
|
||||
this.pkCountry = 1
|
||||
this.getGenerate()
|
||||
this.pkCountry = options.country || ''
|
||||
if (this.pkCountry) {
|
||||
this.getCountry()
|
||||
// this.getCountry()
|
||||
this.form.pkCountry = this.pkCountry
|
||||
uni.setStorageSync('pkCountry', this.pkCountry)
|
||||
uni.redirectTo({
|
||||
url: '/pages/shareArea/hiList?pkParent=' + this.pkParent,
|
||||
})
|
||||
// uni.redirectTo({
|
||||
// url: '/pages/shareArea/hiList?pkParent=' + this.pkParent,
|
||||
// })
|
||||
// this.$refs.uForm1.setRules(this.rules1)
|
||||
} else {
|
||||
// 获取前缀
|
||||
|
@ -315,11 +367,22 @@ export default {
|
|||
},
|
||||
onShow() {},
|
||||
methods: {
|
||||
setMemberCode() {
|
||||
// this.form.memberCode = this.form.phone
|
||||
this.$set(this.form, 'memberCode', this.form.phone)
|
||||
getUseInfo() {
|
||||
getUseInfo().then(res => {
|
||||
this.userInfo = res.data
|
||||
})
|
||||
},
|
||||
selCountry() {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确认更换自然国',
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
this.isCountry = true
|
||||
}
|
||||
},
|
||||
})
|
||||
},
|
||||
|
||||
memberCodeRule(rule, value, callback) {
|
||||
if (!value) {
|
||||
callback(new Error('请输入会员编号'))
|
||||
|
@ -338,44 +401,102 @@ export default {
|
|||
}
|
||||
},
|
||||
getHeader() {
|
||||
api.checkShare().then(res => {
|
||||
if (res.code != 200) {
|
||||
this.isTrue = true
|
||||
} else {
|
||||
this.isTrue = false
|
||||
}
|
||||
getMemberCode(this.pkParent).then(res => {
|
||||
this.$set(this.form, 'parentCode', res.data)
|
||||
console.log(this.form)
|
||||
})
|
||||
// api.prefix(this.pkParent).then((res) => {
|
||||
// this.howHeader = res.msg
|
||||
// })
|
||||
},
|
||||
getGenerate() {
|
||||
return new Promise((resolve, reject) => {
|
||||
api.generate().then(res => {
|
||||
resolve(res)
|
||||
uni.setStorageSync('mToken', res.msg)
|
||||
})
|
||||
api.generate().then(res => {
|
||||
uni.setStorageSync('mToken', res.msg)
|
||||
})
|
||||
},
|
||||
toLogin() {
|
||||
this.$refs.uForm.validate().then(res => {
|
||||
this.$refs.uForm.validate().then(() => {
|
||||
this.isLoading = true
|
||||
api
|
||||
.regShareMember(
|
||||
Object.assign({}, this.form, { parent: this.pkParent })
|
||||
)
|
||||
// getRegister(Object.assign({}, this.form, { parentCode: this.pkParent }))
|
||||
getRegister(this.form)
|
||||
.then(res => {
|
||||
this.isLoading = false
|
||||
if (res.code == 200) {
|
||||
uni.redirectTo({
|
||||
url:
|
||||
'/pages/shareRegist/success?allData=' +
|
||||
JSON.stringify(res.data),
|
||||
this.successData = res.data
|
||||
this.showSuccessModal = true
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg || '注册失败',
|
||||
icon: 'none',
|
||||
})
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.isLoading = false
|
||||
uni.showToast({
|
||||
title: '注册请求失败',
|
||||
icon: 'none',
|
||||
})
|
||||
})
|
||||
})
|
||||
},
|
||||
onModalConfirm() {
|
||||
if (this.successData) {
|
||||
this.handleAutoLogin(this.successData)
|
||||
}
|
||||
},
|
||||
onModalCancel() {
|
||||
if (this.successData) {
|
||||
const modalContent = `会员编号: ${this.successData.memberCode}\n会员姓名: ${this.successData.memberName}\n联系方式: ${this.successData.phone}\n登录密码: ${this.successData.loginPassword}\n支付密码: ${this.successData.payPassword}\n登录地址: ${this.successData.urlAddress}`
|
||||
uni.setClipboardData({
|
||||
data: modalContent,
|
||||
success: function () {
|
||||
uni.showToast({
|
||||
title: '复制成功',
|
||||
icon: 'success',
|
||||
})
|
||||
},
|
||||
})
|
||||
}
|
||||
},
|
||||
handleAutoLogin(loginData) {
|
||||
autoLogin({
|
||||
username: loginData.memberCode,
|
||||
password: loginData.loginPassword,
|
||||
uuid: loginData.uuid,
|
||||
})
|
||||
.then(loginRes => {
|
||||
if (loginRes.code === 200) {
|
||||
uni.showToast({
|
||||
title: '登录成功',
|
||||
icon: 'success',
|
||||
duration: 1500,
|
||||
})
|
||||
setToken(loginRes.data.access_token)
|
||||
store.dispatch('GetInfo').then(res => {
|
||||
uni.switchTab({ url: '/pages/index/index' })
|
||||
})
|
||||
|
||||
// setTimeout(() => {
|
||||
// uni.reLaunch({
|
||||
// url: '/pages/index/index',
|
||||
// })
|
||||
// }, 1500)
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: loginRes.msg || '自动登录失败',
|
||||
icon: 'none',
|
||||
})
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err)
|
||||
uni.showToast({
|
||||
title: '自动登录请求失败',
|
||||
icon: 'none',
|
||||
})
|
||||
})
|
||||
},
|
||||
hiLogin() {
|
||||
this.$refs.uForm1.validate().then(res => {
|
||||
this.isLoading = true
|
||||
|
@ -419,10 +540,10 @@ export default {
|
|||
// 获取验证码
|
||||
getVilCode() {
|
||||
this.startTime()
|
||||
api
|
||||
.verification({
|
||||
phone: this.form.phone,
|
||||
})
|
||||
getPhoneCode({
|
||||
phone: this.form.phone,
|
||||
parentCode: this.pkParent,
|
||||
})
|
||||
.then(res => {})
|
||||
.catch(err => {
|
||||
this.beginTime = 0
|
||||
|
@ -451,10 +572,11 @@ export default {
|
|||
|
||||
<style lang="scss" scoped>
|
||||
.content1 {
|
||||
background-image: url('@/static/images/haiRgeiest1.jpg');
|
||||
background-size: 100%;
|
||||
background-repeat: no-repeat;
|
||||
background: linear-gradient(-45deg, #005bac, #0077c2, #0099e0, #00bfff);
|
||||
background-size: 400% 400%;
|
||||
animation: gradient 15s ease infinite;
|
||||
height: 100vh;
|
||||
overflow: auto;
|
||||
}
|
||||
.content {
|
||||
background-image: url('@/static/images/huan.jpg');
|
||||
|
@ -464,14 +586,13 @@ export default {
|
|||
background-position: center;
|
||||
height: 100vh;
|
||||
}
|
||||
.tit {
|
||||
font-size: 48px;
|
||||
font-family: PangMenZhengDao-Regular, PangMenZhengDao;
|
||||
font-weight: 400;
|
||||
color: #ffffff;
|
||||
.title {
|
||||
font-size: 48rpx;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
text-align: center;
|
||||
padding-top: 80px;
|
||||
margin-bottom: 20px;
|
||||
padding-top: 120rpx;
|
||||
padding-bottom: 80rpx;
|
||||
}
|
||||
.index_header {
|
||||
background: #f9f9f9;
|
||||
|
@ -490,8 +611,10 @@ export default {
|
|||
padding: 0 120rpx;
|
||||
}
|
||||
.formed1 {
|
||||
padding: 0 120rpx;
|
||||
padding-top: 550rpx;
|
||||
margin: 0 40rpx;
|
||||
padding: 40rpx 30rpx;
|
||||
background-color: rgba(255, 255, 255, 0.85);
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
.getCode {
|
||||
font-size: 10px;
|
||||
|
@ -525,4 +648,37 @@ export default {
|
|||
height: 100vh;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
@keyframes gradient {
|
||||
0% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
50% {
|
||||
background-position: 100% 50%;
|
||||
}
|
||||
100% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
}
|
||||
|
||||
.slot-content {
|
||||
padding: 30rpx 20rpx;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.success-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 10rpx 0;
|
||||
}
|
||||
.item-label {
|
||||
color: #606266;
|
||||
margin-right: 20rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.item-value {
|
||||
color: #303133;
|
||||
word-break: break-all;
|
||||
text-align: right;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -189,6 +189,7 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
newShareMember: false,
|
||||
isSelectAll: [],
|
||||
shopCarList: [],
|
||||
isLoading: false,
|
||||
|
@ -227,6 +228,8 @@ export default {
|
|||
onShow() {
|
||||
this.getCarList()
|
||||
this.initCarList()
|
||||
this.newShareMember = uni.getStorageSync('User')?.loginType !== 0
|
||||
console.log('this.nerShareMember', this.newShareMember)
|
||||
},
|
||||
methods: {
|
||||
tableTrue() {
|
||||
|
@ -351,13 +354,25 @@ export default {
|
|||
shoppingId: item,
|
||||
})
|
||||
})
|
||||
uni.navigateTo({
|
||||
url:
|
||||
'/pages/regiest/index?specialArea=' +
|
||||
this.goodsCheck[0].specialArea +
|
||||
'&shoppArr=' +
|
||||
JSON.stringify(shoppArr),
|
||||
})
|
||||
// sangelxiu1
|
||||
this.newShareMember = uni.getStorageSync('User')?.loginType !== 0
|
||||
if(this.newShareMember){
|
||||
uni.navigateTo({
|
||||
url:
|
||||
'/pages/regiest/shareRegister?specialArea=' +
|
||||
41 +
|
||||
'&shoppArr=' +
|
||||
JSON.stringify(shoppArr),
|
||||
})
|
||||
}else{
|
||||
uni.navigateTo({
|
||||
url:
|
||||
'/pages/regiest/index?specialArea=' +
|
||||
this.goodsCheck[0].specialArea +
|
||||
'&shoppArr=' +
|
||||
JSON.stringify(shoppArr),
|
||||
})
|
||||
}
|
||||
} else if (this.goodsCheck[0].specialArea == 21) {
|
||||
uni.setStorageSync(
|
||||
'haiConfirm',
|
||||
|
@ -571,6 +586,13 @@ export default {
|
|||
})
|
||||
})
|
||||
this.shopCarList = res.data
|
||||
if(this.newShareMember){
|
||||
if(this.shopCarList){
|
||||
this.shopCarList = this.shopCarList.filter(car => car.specialArea === 41);
|
||||
let subCar = this.shopCarList.find(car => car.specialArea === 41)
|
||||
this.$set(subCar, 'specialAreaVal', '会员专区')
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
},
|
||||
|
|
|
@ -43,6 +43,7 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
newShareMember: false,
|
||||
user: '',
|
||||
goodsList: [],
|
||||
specialImg: require('@/static/images/two2.jpg'),
|
||||
|
@ -236,6 +237,19 @@ export default {
|
|||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: '会员专区',
|
||||
value: 41,
|
||||
name: 'membersOnly',
|
||||
children: [
|
||||
{
|
||||
label: '自营专区',
|
||||
value: 41,
|
||||
name: 'regiestArea',
|
||||
isShow: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
|
@ -245,6 +259,7 @@ export default {
|
|||
},
|
||||
onShow() {
|
||||
this.user = uni.getStorageSync('User')
|
||||
this.newShareMember = this.user?.loginType !== 0
|
||||
// user.registerShare
|
||||
},
|
||||
methods: {
|
||||
|
@ -330,9 +345,13 @@ export default {
|
|||
}
|
||||
},
|
||||
getGoodsInfo() {
|
||||
let userInfo = uni.getStorageSync('User')
|
||||
getAreaGoods().then(res => {
|
||||
this.goodsList = res.data
|
||||
if(this.newShareMember){
|
||||
let obj = this.goodsList.recommendSpecialAreaList.find(item => item.specialArea === 41)
|
||||
this.$set(obj, 'specialAreaName', '会员专区')
|
||||
this.goodsList.recommendSpecialAreaList = this.goodsList.recommendSpecialAreaList.filter(item => item.specialArea === 41)
|
||||
}
|
||||
this.$forceUpdate()
|
||||
})
|
||||
},
|
||||
|
|
|
@ -32,7 +32,8 @@
|
|||
</view>
|
||||
</u-scroll-list>
|
||||
<view class="index_btm">
|
||||
<view class="index_l">
|
||||
<!-- sangelxiu1 会员专区 隐藏分类-->
|
||||
<view class="index_l" v-if="!newShareMember">
|
||||
<view
|
||||
v-for="item in oneList"
|
||||
:class="['classIfy', oneId == item.pkId ? 'actOne' : '']"
|
||||
|
@ -45,7 +46,7 @@
|
|||
>{{ item.classifyName }}</view
|
||||
>
|
||||
</view>
|
||||
<view class="index_r">
|
||||
<view :class="newShareMember ? 'index_r_2': 'index_r'">
|
||||
<u-scroll-list :indicator="false" class="tabList">
|
||||
<view class="tab">
|
||||
<view
|
||||
|
@ -261,6 +262,7 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
newShareMember: false,
|
||||
specialArea: 1,
|
||||
oneList: [],
|
||||
oneId: '',
|
||||
|
@ -346,6 +348,7 @@ export default {
|
|||
})
|
||||
},
|
||||
onShow() {
|
||||
this.newShareMember = uni.getStorageSync('User')?.loginType !== 0
|
||||
let that = this
|
||||
uni.$on('returnData', function (data) {
|
||||
that.specialArea = data.value
|
||||
|
@ -491,6 +494,7 @@ export default {
|
|||
pkId: pkId,
|
||||
})
|
||||
this.twoList = res.data
|
||||
this.twoList = this.twoList.filter(item => 'classifyName' in item)
|
||||
this.twoId = pkId
|
||||
})
|
||||
},
|
||||
|
@ -636,6 +640,13 @@ export default {
|
|||
margin-left: 198rpx; // padding: 20rpx;
|
||||
// display: flex;
|
||||
}
|
||||
|
||||
.index_r_2 {
|
||||
// flex: 1;
|
||||
background: #fff;
|
||||
margin-left: 20rpx; // padding: 20rpx;
|
||||
// display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
.classIfy {
|
||||
|
|
Loading…
Reference in New Issue