Commit 3d4970fb by 张立顺

样式和登录bug修复

1 parent ac36651c
......@@ -243,7 +243,8 @@ Component({
const thisPage = wx.$router.getPageInstance()
if (code == '0') {
thisPage.setData({
disabled: false
disabled: false,
loginToken:data
})
this.loginToken = data
} else this.reLogin(message)
......
......@@ -74,14 +74,15 @@ Page({
})
},
checkLoginBtn(disabled = false ) {
const { loginType } = this.data,
const { loginType,loginToken } = this.data,
{
data: { formData },
// loginToken
} = this.selectComponent('#box')
if (loginType == 0) {
console.log(this.loginToken,'this.loginToken');
// disabled = loginToken
disabled = this.loginToken
disabled = loginToken|| true
} else{
disabled = loginType == 1 ? formData.phone && this.validate.methods.tel(formData.phone) && formData.code && formData.code.length == 4 : formData.account && formData.password
}
......
......@@ -2,8 +2,6 @@
<mask show="{{loading}}"></mask>
<navigation-bar navStyle="background-color: rgba(0,0,0,0)">生意助手</navigation-bar>
<box loginType="{{loginType}}" disabled="{{disabled}}" id="box" />
{{test4}}
<agree show="{{loginType == 2}}" text="7天内免登陆" value="{{autoLogin}}" bindchange="changeAgree" />
{{test}}
<type-list loginType="{{loginType}}" />
</view>
\ No newline at end of file
......@@ -15,6 +15,7 @@ Page({
*/
data: {
IMGURL: IMG_URL,
isPc:true,
merchantInfo: {},
tabList: [{
label: '精品升级-太阳膜',
......@@ -525,9 +526,13 @@ Page({
wx.$api.showToast('下载海报失败')
})
},
back() {
wx.$router.back()
// back() {
// wx.$router.back()
// },
onload() {
},
// 众筹-end
onRoute() {
console.log('onRoute')
......@@ -540,6 +545,19 @@ Page({
})
this.initData()
})
let that = this
wx.getSystemInfo({
success: (res) => {
// windows | mac为pc端
// android | ios为手机端
console.log('getSystemInfo,', res);
if (['windows','mac'].includes(res.platform) ) {
that.setData({
isPc:false
})
}
}
});
// this.getListSelectAccount(sessionId)
}
})
\ No newline at end of file
<!--packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.wxml-->
<!-- <text>packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.wxml</text> -->
<wxs src="../../index.wxs" module="filter" />
<navigation-bar showBack navStyle="background-color: transparent;" bindnavbarReady="navbarReady">
<navigation-bar wx:if="{{isPc}}" showBack navStyle="background-color: transparent;" bindnavbarReady="navbarReady">
{{merchantInfo.merchantName}}
</navigation-bar>
<!-- - {{tabBarStyle}}px -->
<view class="layout" style="padding-top:{{tabBarStyle}}px; height:calc(100vh )">
<view class="layout" style="padding-top:{{tabBarStyle}}px; height:100vh">
<!-- <view class="titleBox">
<view class="imgBox" bind:tap="back">
......
......@@ -29,7 +29,7 @@ const systemInfo = wx.getSystemInfoSync()
const manual = false
const release = false
let index = 2
let index = 3
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
......@@ -107,8 +107,8 @@ const djSecretKey = {
secret: '4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
},
preRelease: {
appKey: 'd7ffc3346fc9a45bccaaa35300d59022',
secret: '4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
}
}[target[index]]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!