Commit 5c6616d5 by songbingqi

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

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