Commit 5c6616d5 by songbingqi

修复未登录状态下按钮文字展示异常问题

parent 9b6b95f8
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
</view> --> </view> -->
<button v-if="!userms" class="end-right goSubmmit" style="border-radius: 0;" open-type="getPhoneNumber" <button v-if="!userms" class="end-right goSubmmit" style="border-radius: 0;" open-type="getPhoneNumber"
@getphonenumber="saveReserve"> @getphonenumber="saveReserve">付款
</button> </button>
</view> </view>
<show-toast ref="toast"/> <show-toast ref="toast"/>
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
</div> --> </div> -->
</div> </div>
<view v-if="userms" class="payment" @click="messageAndSave">付款</view> <view v-if="userms" class="payment" @click="messageAndSave">付款</view>
<button v-if="!userms" class="payment" style="border-radius: 0;" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber"></button> <button v-if="!userms" class="payment" style="border-radius: 0;" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">付款</button>
</div> </div>
<show-toast ref="toast"/> <show-toast ref="toast"/>
</view> </view>
......
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
</view> </view>
</view> </view>
<taBar select="2"></taBar> <taBar select="2"></taBar>
<show-toast ref="toast"/>
</view> </view>
</template> </template>
...@@ -103,11 +104,11 @@ export default { ...@@ -103,11 +104,11 @@ export default {
e.loginInfo = this.loginInfo e.loginInfo = this.loginInfo
User.getPhoneNumber(e); User.getPhoneNumber(e);
} else if (e.detail.errMsg == "getPhoneNumber:fail user deny") { } else if (e.detail.errMsg == "getPhoneNumber:fail user deny") {
uni.showToast({ title: '已拒绝手机号授权', icon: 'error' }) this.showToast({ title: '已拒绝手机号授权', icon: 'error' })
} }
}, },
goToPage(page) { goToPage(page) {
page == 'coupon' && uni.showToast({ title: '功能未开放!', icon: 'none' }); page == 'coupon' && this.showToast({ title: '功能未开放!', icon: 'none' });
if (!this.userms) { if (!this.userms) {
// this.loginByPhoneNumber(page) // this.loginByPhoneNumber(page)
return return
......
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