Commit 8dffc547 authored by 李俊赕's avatar 李俊赕

Merge branch 'dev-photo-v2' of https://git.banshouhui.com/heyinchen/take_order into dev-photo-v2

parents 97c7a265 61e9bd92
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
</view> </view>
</template> </template>
</view> </view>
<button class="ph-pr-button" type="primary" @click="handleClick" :disabled="!selectedAll" <u-button class="ph-pr-button" type="primary" shape="circle" @click="handleClick"
:style="buttonStyle">下一步</button> :hover-class="selectedAll ? '' : 'none'" :custom-style="buttonStyle">下一步</u-button>
</view> </view>
</template> </template>
...@@ -53,8 +53,17 @@ ...@@ -53,8 +53,17 @@
] ]
}, },
buttonStyle() { buttonStyle() {
return this.selectedAll ? 'color: #FFFFFF;background-color: #2272FF;' : return this.selectedAll ? {
'color: #FFFFFF;background-color: #D1D4D4;' 'color': '#FFFFFF',
'background-color': '#2272FF;',
'width': '600rpx',
'height': '104rpx'
} : {
'color': '#FFFFFF',
'background-color': '#D1D4D4;',
'width': '600rpx',
'height': '104rpx'
}
} }
}, },
onLoad(e) { onLoad(e) {
...@@ -120,10 +129,13 @@ ...@@ -120,10 +129,13 @@
// 点击下一步 // 点击下一步
handleClick() { handleClick() {
// 点击下一步设置全局拍照品牌品类 // 点击下一步设置全局拍照品牌品类
if (!this.selectedAll) {
return
}
const globalData = getApp().globalData const globalData = getApp().globalData
if (!globalData.token) { if (!globalData.token) {
uni.navigateTo({ uni.navigateTo({
url:'/pages/login/wxlogin' url: '/pages/login/wxlogin'
}) })
return return
} }
...@@ -216,10 +228,6 @@ ...@@ -216,10 +228,6 @@
.ph-pr-button { .ph-pr-button {
position: absolute; position: absolute;
bottom: 76rpx; bottom: 76rpx;
border-radius: 52rpx;
height: 104rpx;
font-size: 32rpx; font-size: 32rpx;
width: 600rpx;
line-height: 104rpx;
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment