Commit d83b02e9 by chenwq

优化登录页面,调整发现页布局,更新请求环境配置,移除不必要的代码,修复样式问题

1 parent e51b7481
......@@ -107,7 +107,7 @@ App({
} = options;
getUpdateManager();
setPageParams(options);
const noPath = ["pages/tab", "pages/crowdfunding", "packageStoreAssistant", "pages/blank/blank", "packageShopmall/packageRescue/pages/accident/index/index", 'packageShopmall/packageExpandedGold/pages/activity/index/index', 'packageShopmall/packageMine/pages/integral/index/index']
const noPath = ["pages/tab", "pages/crowdfunding", "packageStoreAssistant", "pages/blank/blank", "pages/Login/Login", "packageShopmall/packageRescue/pages/accident/index/index", 'packageShopmall/packageExpandedGold/pages/activity/index/index', 'packageShopmall/packageMine/pages/integral/index/index']
try {
noPath.map(e => {
if (path.startsWith(e)) throw true
......@@ -166,4 +166,4 @@ App({
onHide() {
util.customerbehavior(2)
}
})
\ No newline at end of file
})
{
"pages": [
"pages/Login/Login",
"pages/tab/shopMall/index",
"pages/tab/storeAssistant/index",
"pages/webView/webView",
......@@ -8,7 +9,6 @@
"pages/relogin/relogin",
"pages/serviceCode/serviceCode",
"pages/psdView/psdView",
"pages/Login/Login",
"pages/crowdfunding/index/index",
"pages/crowdfunding/carBrands/carBrands",
"pages/crowdfunding/carSeries/carSeries",
......@@ -91,13 +91,7 @@
"pages/serviceApply/serviceApply",
"pages/signature/signature",
"pages/fullSignture/fullSignture"
],
"plugins": {
"ty-plugin": {
"version": "1.2.3",
"provider": "wx1f1ea04b716771be"
}
}
]
},
{
"root": "packageShopmall/packageDiscovery",
......@@ -359,4 +353,4 @@
}
},
"__usePrivacyCheck__": true
}
\ No newline at end of file
}
import md5 from '~/utils/lib/md5'
import qs from '~/utils/lib/qs'
import sha1 from '~/utils/lib/sha1'
import { isMember } from '~/utils/cache/storageApi'
Page({
data: {
......@@ -54,82 +51,9 @@ Page({
})
},
toOilPage() {
const userInfo = wx.$storage.get('srcm_shopmall_user_info')
let phone = ''
if (userInfo) {
try {
phone = JSON.parse(userInfo).phone
} catch (error) {
phone = userInfo.phone
}
}
this.getAuthCode(phone)
},
getAuthCode(phone) {
let _this = this
let obj = _this.createSign(phone)
wx.request({
url: 'https://mcs.czb365.com/services/v3/begin/getSecretCode',
data: {
platformId: 92631223,
phone,
app_key: 'mpplugin92631223',
sign: obj.sign,
timestamp: obj.timestamp,
token: obj.token
},
header: {
'content-type': 'application/x-www-form-urlencoded'
},
success(res) {
wx.redirectTo({
url: `plugin://ty-plugin/index?platformType=92631223&authCode=${res.data.result}`
})
}
})
},
createSign(phone) {
const app_key = 'mpplugin92631223'
const app_secret = 'e169a4de9610830214b94efb8982c12a'
const token = wx.$util.getSessionId()
const obj = {
app_key,
platformId: 92631223,
phone,
token
}
const temp = this.signfunction(obj, app_secret, [], 'md5')
return temp
},
signfunction: function (params, secret, noSignAttr = [], way = 'sha1') {
delete params.sign
params.timestamp = new Date().getTime()
var strQs = qs.stringify(params, {
arrayFormat: 'indices',
allowDots: true,
encodeValuesOnly: true
wx.showToast({
title: '加油服务暂未开放',
icon: 'none'
})
const objQs = strQs.split('&')
const collect = objQs.reduce((collect, item) => {
const [key, value] = item.split('=')
if (value === null) {
value = ''
} else if (typeof value === 'object') {
value = JSON.stringify(value)
}
collect[key] = decodeURIComponent(value)
return collect
}, {})
const keys = Object.keys(collect).sort()
const str = keys.reduce((col, key) => {
if (!noSignAttr.includes(key)) {
col.push(key, collect[key])
}
return col
}, [])
collect.sign = { sha1, md5 }[way](secret + str.join('') + secret)
return collect
}
})
// pages/Login/Login.js
import USER from '~/api/usersApi/index'
import {
selectAccountLogin
} from '~/lib/index.js'
const phoneRex = /^[1]([3-9])[0-9]{9}$/
Page({
/**
* 页面的初始数据
*/
data: {
loginType: 0,
// isAgree: true,
isAgree: false,
mobile: '',
captcha: '',
count: 0
},
changeLoginType() {
const {
loginType
} = this.data
this.setData({
loginType: loginType == 0 ? 1 : 0
})
},
// 同意隐私政策
handleChangeAgree() {
this.setData({
......@@ -38,21 +25,6 @@ Page({
} = e.currentTarget.dataset
wx.$router.jumpH5(`https://img02.glsx.com.cn/weapp/resource/saas/scrm/html/${name}.html`, true)
},
async onLoad() {
wx.$api.showLoading()
const {
data,
code
} = await USER.login()
if (data) {
this.setData({
sessionId: data.sessionId,
openId: data.openId
})
if (code == '0') this.customerLoginCallBack(data)
}
wx.hideLoading()
},
input(e) {
const {
value
......@@ -123,131 +95,14 @@ Page({
if (!captcha) throw '请输入验证码'
if (!phoneRex.test(mobile)) throw '请输入正确的手机号'
if (!isAgree) throw '请同意以下用户协议'
wx.$api.showLoading()
const userRes = await USER.checkUserPhone({
mobile
}, true)
if (userRes.code == 0) {
/**userRes.data : 是否有门店助手账号 */
if (userRes.data) {
wx.$router.go('/pages/selectUserType/selectUserType', {
mobile,
captcha,
sessionId,
notIntercept: true,
logoutStaff: this.logoutStaff
})
} else {
const {
code,
data,
message
} = await USER.phoneLogin({
mobile,
captcha,
sessionId
})
if (code == '0') this.customerLoginCallBack(data)
else throw message
}
} else throw userRes.message
wx.hideLoading()
wx.$router.go('/pages/selectUserType/selectUserType', {
mobile,
captcha,
sessionId,
notIntercept: true
})
} catch (error) {
this.showTips(error || '服务不可用')
}
},
/**微信登录 */
async getPhoneNumber({
detail
}) {
const {
sessionId
} = this.data,
obj = {
encryptedData: detail.encryptedData,
iv: detail.iv,
loginToken: sessionId
}
// if (detail.errMsg.includes('deny')) return
if (detail.errMsg && ['authorized', 'deny'].findIndex(e => detail.errMsg.toLowerCase().includes(e)) != -1) return
if (!detail?.code) return wx.$api.showToast('当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。')
wx.$api.showLoading()
try {
const {
code,
data,
message
} = await USER.checkUserPhone(obj)
/**data : 是否有门店助手账号 */
wx.hideLoading()
if (code == '0') {
if (data) wx.$router.redirectTo('/pages/selectUserType/selectUserType', {
detail,
sessionId,
notIntercept: true,
logoutStaff: this.logoutStaff
})
else this.customerLogin(detail, sessionId)
} else throw message
} catch (error) {
this.onLoad()
wx.$api.showToast(error || '服务不可用')
}
},
/**C端登录 */
customerLogin(detail, sessionId) {
USER.authUserPhone(detail, sessionId)
.then(({
code,
data,
message
}) => {
wx.hideLoading()
if (code == '0') this.customerLoginCallBack(data)
else {
this.onLoad()
wx.$api.showToast(message)
}
})
.catch(() => {
this.onLoad()
})
},
/**判断是否是员工端退出登录到此页面 */
/**若是需要获取传参,避免取消按钮无法返回 */
onRoute({
logoutStaff,
hideArrow
}) {
if (logoutStaff) this.logoutStaff = logoutStaff
if (hideArrow) this.setData({
hideArrow
})
},
/**C端登录回调 */
customerLoginCallBack(data) {
wx.$Track.setTrack({}, 3)
wx.$authStatus = false
wx.$util.setUserInfo(data)
wx.$util.setSessionId(data.sessionId)
wx.$util.customerbehavior()
if (this.logoutStaff) {
wx.reLaunch({
url: '/pages/tab/shopMall/index'
})
return
}
// 返回上一页
wx.$router.back(thisPage => {
thisPage.options.isLogin = 1 //登陆标识
if (thisPage.emitUserInfo) {
wx.nextTick(() => {
thisPage.emitUserInfo({
userInfo: data
})
})
}
})
}
})
\ No newline at end of file
})
<view class="layout">
<view class="bg-top">
<glsx-image src="common/login-{{loginType}}.png"></glsx-image>
<glsx-image src="common/login-0.png"></glsx-image>
</view>
<navigation-bar navStyle="background:transparent;" showBack page-title="登录">登录</navigation-bar>
<view class="content" style="margin-top: {{navHeight}}px;">
<block wx:if="{{loginType==0}}">
<view class="h1">
欢迎您使用<text>智慧车生活</text>
</view>
<view class="wx-box">
<block wx:if="{{!isAgree}}">
<button class="wx-auth-button text-center {{isAgree}}" bindtap="showTips">登录</button>
</block>
<block wx:else>
<button open-type="getPhoneNumber" catchgetphonenumber="getPhoneNumber" class="wx-auth-button text-center">登录</button>
</block>
</view>
</block>
<block wx:else>
<view class="h3">
手机号登录
<view class="welcome">
欢迎使用 <text>智慧车生活</text>
</view>
<view class="login-card">
<view class="login-item flex">
<input maxlength="11" type="number" adjust-position="{{false}}" placeholder-class="placeholderClass" placeholder="请输入手机号" bindinput="input" data-name="mobile" class="input" value="{{mobile}}" />
</view>
<view class="box">
<view class="login-item flex">
<input maxlength="11" type="number" adjust-position="{{false}}" placeholder-class="placeholderClass" placeholder="填写手机号" bindinput="input" data-name="mobile" class="input" value="{{mobile}}" />
</view>
<view class="login-item flex">
<input maxlength="4" type="number" adjust-position="{{false}}" placeholder-class="placeholderClass" placeholder="填写验证码" bindinput="input" data-name="captcha" class="input" value="{{captcha}}" />
<button disabled="{{!mobile}}" class="code-btn" bindtap="getSmsCode">{{count? count + 's':'获取验证码'}}</button>
</view>
<view class="login-item flex">
<input maxlength="4" type="number" adjust-position="{{false}}" placeholder-class="placeholderClass" placeholder="请输入验证码" bindinput="input" data-name="captcha" class="input" value="{{captcha}}" />
<button disabled="{{!mobile}}" class="code-btn" bindtap="getSmsCode">{{count? count + 's':'获取验证码'}}</button>
</view>
<button class="wx-auth-button text-center" bindtap="phoneLogin">登录</button>
</block>
<view class="type-box flex">
<view class="title">
其他方式
</view>
<view class="type" bindtap="changeLoginType">
<view class="icon">
<glsx-image src="common/{{loginType == 0?'phone':'wx'}}.png"></glsx-image>
</view>
{{loginType == 0?'手机号':'微信登录'}}
</view>
</view>
<view class="tips text-center" bindtap="handleChangeAgree">
<view class="check {{isAgree}}">
......@@ -53,4 +27,3 @@
</view>
</view>
</view>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file
......@@ -3,7 +3,7 @@ page{
background-color: #FAFBFF !important;
}
.bg-top {
position: fixed;
position: absolute;
z-index: -1;
width: 100%;
height: 974rpx;
......@@ -23,39 +23,35 @@ page{
}
.h1 {
padding: 20rpx 0;
font-size: 44rpx;
color: #23272F;
.welcome {
padding-top: 18rpx;
font-size: 42rpx;
color: #252B38;
text-align: center;
font-weight: 400;
}
.h1 text {
font-weight: 500;
margin-left: 16rpx;
}
.h3 {
.welcome text {
font-weight: 500;
font-size: 44rpx;
color: #323436;
padding: 146rpx 106rpx 0;
color: #1F5EEA;
}
.wx-box {
margin: 660rpx auto 0;
.login-card {
margin: 660rpx 52rpx 0;
padding: 0 42rpx 40rpx;
box-sizing: border-box;
}
.wx-auth-button {
width: 590rpx !important;
width: 100% !important;
height: 96rpx;
background: #2A69FF;
background: rgba(42, 105, 255, .82);
border-radius: 16rpx;
font-weight: 500;
font-size: 32rpx;
color: #FFFFFF;
padding: 0;
margin-top: 40rpx;
}
.wx-auth-button[disabled]:not([type]) {
......@@ -70,19 +66,6 @@ page{
border-color: #CCCED1 !important;
}
.type-box {
flex-direction: column;
margin-top: 33rpx;
font-size: 24rpx;
color: #8A8C90;
}
.type .icon {
width: 68rpx;
height: 68rpx;
margin: 40rpx auto 12rpx;
}
.tips {
font-size: 24rpx;
color: #858A94;
......@@ -123,16 +106,10 @@ page{
}
/* 手机号 */
.box {
margin: 0 105rpx 306rpx;
animation: opacity .25s forwards;
}
.login-item {
height: 88rpx;
border-bottom: 2rpx solid #E3E3E6;
margin-top: 34rpx;
margin-top: 18rpx;
}
.login-item .input {
......@@ -156,4 +133,4 @@ page{
}
.code-btn::after {
display: none;
}
\ No newline at end of file
}
......@@ -68,72 +68,8 @@ Page({
sessionId
})
},
/**C端登录
* loginType:false 微信登录 true 手机号验证码登录
*/
async customerLogin(loginType) {
const {
detail,
mobile,
captcha,
sessionId,
isCrowdfunding
} = this,
target = loginType ? 'phoneLogin' : 'authUserPhone',
backNum = loginType ? 2 : 1
try {
const {
code,
data,
message
} = await USERAPI[target](loginType ? {
mobile,
captcha,
sessionId
} : detail, sessionId)
if (code == '0') {
wx.hideLoading()
wx.$util.setUserInfo(data)
wx.$util.setSessionId(data.sessionId)
wx.$util.customerbehavior()
if (isCrowdfunding) wx.$router.back(pre => {
pre.setData({
['params.userPhone']: data.phone
})
}, backNum)
else {
wx.$authStatus = false
if (this.logoutStaff) {
wx.reLaunch({
url: '/pages/tab/shopMall/index'
})
return
}
wx.$router.back(thisPage => {
if (thisPage.emitUserInfo) {
wx.nextTick(() => {
thisPage.emitUserInfo({
userInfo: data
})
})
}
}, backNum)
}
} else throw message
} catch (error) {
console.log(error)
wx.$api.showToast(error || '服务不可用')
}
},
click(e) {
const {
isStaff
} = e.currentTarget.dataset, {
smsLoginFlag
} = this
click() {
wx.$api.showLoading()
if (isStaff) this.authStorePhone(smsLoginFlag)
else this.customerLogin(smsLoginFlag)
this.authStorePhone(this.smsLoginFlag)
},
})
\ No newline at end of file
})
......@@ -4,9 +4,4 @@
员工登录
<view class="sprite-icon icon-mine-arrow"></view>
</view>
<view class="item flex" bindtap="click">
<glsx-image class="icon" src="glsx/mine/gk_new.png"></glsx-image>
顾客登录
<view class="sprite-icon icon-mine-arrow"></view>
</view>
</view>
\ No newline at end of file
</view>
......@@ -126,25 +126,8 @@ Component({
myTabIdx: id
});
},
onLoad(option) {
if(this.isLoad) return
const app = getApp()
app.getBaseData().then(res => {
const productData = res[0].subList
const systemData = res[1].subList
const navList = [res[0].name, res[1].name]
this.setData({
showPage: true,
productData,
curTabId: productData?.[this.data.curTabIdx]?.sceneid || 0,
systemData,
navList,
systemDataId: res[1].id,
productDataId: res[0].id
})
})
this.getActivityRecord()
this.isLoad = true
onLoad() {
// 发现页暂未开放,避免加载原有的业务数据与功能入口。
},
emitUserInfo(options){
console.log(options)
......
{
"usingComponents": {
"gl-scenario": "glsx-applet-component/scenario/index",
"gl-subscription": "glsx-applet-component/subscription/index"
},
"navigationStyle": "custom",
"styleIsolation": "shared"
}
\ No newline at end of file
"navigationStyle": "custom"
}
/* pages/tab/output/output.wxss */
page{
page {
background-color: #fff;
}
.topBg {
position: sticky;
top: 0;
width: 100%;
background-size: 100% 100%;
z-index: 2;
}
.pro-head {
// .pro-head-hidden{
// visibility: hidden;
// }
color: #3666fe;
.van-tabs__line {
width: 40rpx !important;
height: 8rpx;
background: #5969F4;
border-radius: 4rpx;
}
.van-ellipsis {
overflow: visible;
text-overflow: auto;
}
.van-tab--active {
.van-ellipsis {
font-weight: 600;
font-size: 40rpx;
color: #323436;
overflow: visible;
text-overflow: auto;
}
}
.pro-banner {
display: block;
margin: 8rpx auto 20rpx;
width: 710rpx;
height: 254rpx;
border-radius: 20rpx;
}
.container {
min-height: 100%;
}
.my-tab{
.coming-soon {
display: flex;
.my-tab-item{
font-weight: 400;
font-size: 28rpx;
color: #8A8C90;
text-align: center;
height: 52rpx;
display: inline-block;
line-height: 52rpx;
margin-right: 30rpx;
&:last-child{
margin-right: 0;
}
}
.tab-item-active{
font-weight: 600;
font-size: 36rpx;
color: #323436;
}
}
.container{
position: relative;
.bar-text {
font-weight: 600;
font-size: 34rpx;
color: #2D2D2E;
}
.header{
padding-bottom: 16rpx;
}
.scene-wrap {
white-space: nowrap;
height: 180rpx;
.scene-img {
width: 100%;
}
}
.bg-img{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 304rpx;
box-shadow: 0 16rpx 16rpx 0 rgba(230, 236, 245, 0.6);
}
}
.novideo-img{
height: 480rpx !important;
}
.chat,.applyAct {
position: fixed;
right: 0;
top: 50%;
transform: translateY(-50%);
width: 128rpx;
height: 128rpx;
border-radius: 50%;
z-index: 3;
right: 5rpx;
}
.applyAct{
top: calc(50% + 200rpx);
.icon{
width: 128rpx;
height: 128rpx;
}
}
/* 测算 */
.calculate {
position: fixed;
right: 0;
top: calc(50% + 150rpx);
transform: translateY(-50%);
z-index: 3;
}
.icon-calculate {
width: 150rpx;
height: 150rpx;
}
/* 测算弹窗 */
.dialog-wrapper {
position: fixed;
height: 100vh;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(45,45,51,0.50);
z-index: 4;
.dialog-box {
position: fixed;
bottom: 0;
width: 100%;
height: 844rpx;
background-color: #fff;
box-shadow: 0 -8rpx 20rpx 0 rgba(180,186,204,0.32);
border-radius: 32rpx 32rpx 0 0;
}
.dialog-header {
display: flex;
justify-content: space-between;
padding: 32rpx 48rpx;
border-bottom: 1rpx solid #eee;
}
.header-btn {
display: inline-block;
font-size: 32rpx;
line-height: 48rpx;
}
.btn-gray {
color: #6C737A;
}
.btn-primary {
background-color: #fff;
border: none;
margin: 0;
padding: 0;
font-weight: 500;
color: #5850FF;
}
.btn-primary::after {
border: none;
}
.dialog-content {
padding: 40rpx 24rpx 60rpx;
}
.dialog-title {
font-weight: 600;
font-size: 36rpx;
color: #333333;
letter-spacing: 0;
text-align: center;
line-height: 56rpx;
margin-bottom: 24rpx;
}
.dialog-form {
width: 100%;
height: 384rpx;
background-image: linear-gradient(179deg, rgba(123,112,255,0.02) 15%, rgba(99,92,255,0.10) 100%);
border-radius: 8rpx;
padding: 32rpx;
box-sizing: border-box;
}
.form-item {
display: flex;
align-items: center;
height: 80rpx;
margin-bottom: 24rpx;
justify-content: space-between;
}
.form-label {
width: 256rpx;
font-size: 28rpx;
color: #2D2D33;
}
.form-input {
width: 216rpx;
padding: 16rpx 20rpx;
border: 2rpx solid #E6E6E6;
border-radius: 4rpx;
margin-left: 64rpx;
margin-right: 16rpx;
}
.form-unit {
font-size: 28rpx;
color: #6E6E7A;
}
.dialog-btn {
width: 100%;
padding: 24rpx 0;
box-sizing: border-box;
background: #5850FF;
border-radius: 8rpx;
font-weight: 500;
font-size: 32rpx;
color: #FFFFFF;
letter-spacing: 0.8rpx;
text-align: center;
line-height: 48rpx;
margin-top: 40rpx;
}
}
.emptyData{
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
height: calc(100vh - 276rpx);
box-sizing: border-box;
text-align: center;
.tip{
margin-top: 16rpx;
font-size: 28rpx;
color: #7A8299;
text-align: center;
}
.nodata_icon{
width: 400rpx;
height: 400rpx;
}
}
.coming-soon-image {
width: 320rpx;
height: 320rpx;
}
.coming-soon-text {
margin-top: 24rpx;
color: #8a8c90;
font-size: 32rpx;
line-height: 48rpx;
}
<view class="container" style="padding-bottom: calc(100rpx + {{isFullSucreen ? '34' : 0}}px);">
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}">
<view class="my-tab">
<view wx:for="{{navList}}" wx:key="index" bindtap="changeMyTab" data-id="{{index}}" class='my-tab-item {{myTabIdx==index ? "tab-item-active": ""}}'>{{item}}</view>
</view>
</navigation-bar>
<view class="topBg" style="height:{{headerHeight}}px; background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/store-assistant/mine_center_bg.png?v=1.0.3')"></view>
<!-- 系统订阅 -->
<block wx:if="{{myTabIdx == 1}}">
<!-- <gl-subscription list="{{subscriptionSystemData}}" bindmenuClick="sysMenuClick" bannerUrl="{{subscriptionBannerUrl}}" bind:proClick="proClick" bindcurrentScen="getCurrentScen" data-name="客户数字化" bind:videoClick="videoClick" /> -->
<gl-subscription list="{{systemData}}" novideo-img="novideo-img" bindmenuClick="sysMenuClick" bind:proClick="proClick" data-name="客户数字化" bind:videoClick="videoClick" bindsenceClick="senceClick" />
</block>
<!-- 增值服务 -->
<block wx:if="{{myTabIdx==0 && productData.length>0}}">
<!-- <gl-scenario discoverIndex="{{curTabIdx}}" currentScenIndex="{{curTabId}}" novideo-img="novideo-img" list="{{resScenceList}}" activityList="{{activityList}}" bindactivityClick="activityClick" bindproClick="proClick" bind:videoClick="videoClick" bindsenceClick="senceClick" activityList="{{activityList}}" bindleftClick="leftClick"></gl-scenario> -->
<gl-scenario sub-menu-active-custom="sub-menu-active-custom" sidebar-active-custom="sidebar-active-custom" list="{{productData}}" activityList="{{activityList}}" novideo-img="novideo-img" bindactivityClick="activityClick" bindproClick="proClick" bind:videoClick="videoClick" bindsenceClick="senceClick" bindleftClick="leftClick" bindcurrentScen="getCurrentScen"></gl-scenario>
</block>
<!-- 测算按钮 -->
<block wx:if="{{myTabIdx==1 || myTabIdx==0 && productData.length && showPage}}">
<view class="calculate" bindtap="showCalculate">
<glsx-image class="icon-calculate" webp src="store-assistant/calc.png"></glsx-image>
</view>
</block>
<!-- 增值服务无数据时展示 -->
<block wx:if="{{myTabIdx==0 && productData.length<=0 && showPage}}">
<view class="emptyData" style="margin-top: {{headerHeight+32}}px;">
<glsx-image webp src="store-assistant/toLink.png" class="nodata_icon"></glsx-image>
<view class="tip">
<view>您的门店尚未开通业务场景,</view>
<view>请联系在线客服进行咨询,谢谢。</view>
</view>
</view>
</block>
<view class="container">
<navigation-bar page-title="发现"></navigation-bar>
<view class="coming-soon">
<glsx-image webp src="store-assistant/toLink.png" class="coming-soon-image"></glsx-image>
<view class="coming-soon-text">敬请期待</view>
</view>
</view>
<!-- 在线客服 -->
<glsx-image webp mode="aspectFit" wx:if="{{showPage}}" class="chat" src="store-assistant/kefu.png" bindtap="goConsult" />
\ No newline at end of file
......@@ -158,22 +158,22 @@ Component({
currentServiceType = 0
let tab = [
// { serviceTypeName: '私域用户代运营', serviceType: 7 },
{
serviceTypeName: '定保招揽',
serviceType: 2
},
{
serviceTypeName: '数字化续保',
serviceType: 5
},
{
serviceTypeName: '节假日关怀',
serviceType: 6
},
{
serviceTypeName: '次新车改造',
serviceType: 3
}
// {
// serviceTypeName: '定保招揽',
// serviceType: 2
// },
// {
// serviceTypeName: '数字化续保',
// serviceType: 5
// },
// {
// serviceTypeName: '节假日关怀',
// serviceType: 6
// },
// {
// serviceTypeName: '次新车改造',
// serviceType: 3
// }
// {
// serviceTypeName: '送修线索',
// serviceType: 9
......@@ -205,47 +205,47 @@ Component({
tab.unshift(ITEM)
currentServiceType = 11
// 线索管理
const CLUE_ITEM = {
serviceTypeName: '线索管理',
serviceType: 12,
trackingCode: 'mini-carlife-clue-manage'
}
tab.unshift(CLUE_ITEM)
currentServiceType = 11
// const CLUE_ITEM = {
// serviceTypeName: '线索管理',
// serviceType: 12,
// trackingCode: 'mini-carlife-clue-manage'
// }
// tab.unshift(CLUE_ITEM)
// currentServiceType = 11
}
// v3.7.0需求精品升级排前面,售后众筹根据标签返回
if (userStorage.staffLabel.indexOf("3") != -1) {
const ITEM = {
serviceTypeName: '售后众筹',
serviceType: 0
}
tab.unshift(ITEM)
currentServiceType = 0
}
if (userStorage.staffLabel.indexOf("5") != -1) {
const ITEM = {
serviceTypeName: '送修线索',
serviceType: 9
}
tab.push(ITEM)
currentServiceType = 9
}
if (userStorage.staffLabel.indexOf("1") != -1) {
const ITEM = {
serviceTypeName: '精品升级',
serviceType: 4
}
tab.unshift(ITEM)
currentServiceType = 4
}
if (userStorage.staffLabel.indexOf("6") != -1) {
const ITEM = {
serviceTypeName: '权益核赔',
serviceType: 10
}
tab.push(ITEM)
currentServiceType = 10
}
// if (userStorage.staffLabel.indexOf("3") != -1) {
// const ITEM = {
// serviceTypeName: '售后众筹',
// serviceType: 0
// }
// tab.unshift(ITEM)
// currentServiceType = 0
// }
// if (userStorage.staffLabel.indexOf("5") != -1) {
// const ITEM = {
// serviceTypeName: '送修线索',
// serviceType: 9
// }
// tab.push(ITEM)
// currentServiceType = 9
// }
// if (userStorage.staffLabel.indexOf("1") != -1) {
// const ITEM = {
// serviceTypeName: '精品升级',
// serviceType: 4
// }
// tab.unshift(ITEM)
// currentServiceType = 4
// }
// if (userStorage.staffLabel.indexOf("6") != -1) {
// const ITEM = {
// serviceTypeName: '权益核赔',
// serviceType: 10
// }
// tab.push(ITEM)
// currentServiceType = 10
// }
if (isNeedRoad) {
await this.getRoadTotal(0)
this.getRoadTotal(1)
......@@ -332,20 +332,20 @@ Component({
let flag = false,
discoveryChannel = {}
res.forEach(el => {
if (el.channelType == 6) {
const TABOBJ = {
serviceTypeName: '优选商城',
serviceType: 8
}
tab.push(TABOBJ)
flag = true
Object.assign(discoveryChannel, {
storeBannerImg: el.storeBannerImg,
publicityImg: el.publicityImg,
channelType: el.channelType,
promotion: el.promotion
})
}
// if (el.channelType == 6) {
// const TABOBJ = {
// serviceTypeName: '优选商城',
// serviceType: 8
// }
// tab.push(TABOBJ)
// flag = true
// Object.assign(discoveryChannel, {
// storeBannerImg: el.storeBannerImg,
// publicityImg: el.publicityImg,
// channelType: el.channelType,
// promotion: el.promotion
// })
// }
})
if (flag) {
this.setData({
......
......@@ -19,11 +19,11 @@
<!-- 收益明细信息 -->
<list-info-widget listData="{{scoreList}}"></list-info-widget>
</scroll-view>
<block wx:if="{{isSupplement}}">
<!-- <block wx:if="{{isSupplement}}">
<view class="supplement" bindtap="applyActivity">
<glsx-image class="icon" src="store-assistant/order-supplement.png" />
</view>
</block>
</block> -->
</view>
<!-- 绑定微信提示弹框 -->
<van-popup bind:click-overlay="toCloseModal" show="{{ showModal }}" custom-class="popclass" position="bottom" custom-style="height: 35%" data-name="showModal">
......
......@@ -15,7 +15,7 @@ const target = [
4预发布
5压测
*/
const index = 1
const index = 2
const secretKey = {
ip: {
},
......
......@@ -6,7 +6,6 @@ page {
display: flex;
min-height: 100vh;
box-sizing: border-box;
padding-bottom: 120rpx;
flex-direction: column;
align-items: center;
justify-content: center;
......
......@@ -6,7 +6,6 @@ page {
display: flex;
min-height: 100vh;
box-sizing: border-box;
padding-bottom: 120rpx;
flex-direction: column;
align-items: center;
justify-content: center;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!