Commit 3d4970fb by 张立顺

样式和登录bug修复

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