Compare commits
2 Commits
b2db4296ff
...
2f03910ae4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f03910ae4 | ||
|
|
a84fb4c3fa |
@ -80,6 +80,11 @@
|
|||||||
limit="9"></uni-file-picker>
|
limit="9"></uni-file-picker>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- 提示窗示例 -->
|
||||||
|
<uni-popup ref="alertDialog" type="dialog">
|
||||||
|
<uni-popup-dialog cancelText="取消" confirmText="创建" iconPath="/static/detail/card.png"
|
||||||
|
content="没有可选择的收货地址,请先创建" @confirm="dialogConfirm" @close="dialogClose"></uni-popup-dialog>
|
||||||
|
</uni-popup>
|
||||||
<view class="item-field" style="align-items: center;">
|
<view class="item-field" style="align-items: center;">
|
||||||
<view class="submit-box" @click="submitForm">提交</view>
|
<view class="submit-box" @click="submitForm">提交</view>
|
||||||
</view>
|
</view>
|
||||||
@ -141,6 +146,13 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
dialogConfirm(){
|
||||||
|
this.$tab.navigateTo('/pages/mine/addr/addr-list')
|
||||||
|
},
|
||||||
|
|
||||||
|
dialogClose(){
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
/**初始化数据*/
|
/**初始化数据*/
|
||||||
initData(id) {
|
initData(id) {
|
||||||
@ -201,6 +213,9 @@
|
|||||||
initAddress() {
|
initAddress() {
|
||||||
uniSelectList().then(res => {
|
uniSelectList().then(res => {
|
||||||
this.addressList = res.data
|
this.addressList = res.data
|
||||||
|
if (this.addressList.length == 0){
|
||||||
|
this.$refs.alertDialog.open()
|
||||||
|
}
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'error',
|
icon: 'error',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user