|
|
@@ -14,7 +14,7 @@
|
|
|
<view v-if="item.is_default==0" class="list-money action" @click.stop="setmodel(item)">
|
|
|
设为默认
|
|
|
</view>
|
|
|
- <view v-else class="list-money" @click.stop="">
|
|
|
+ <view v-else class="list-money" @click.stop="setmodel(item)">
|
|
|
默认模板
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -65,15 +65,16 @@
|
|
|
setShowTemplate({
|
|
|
show_template_id: item.show_template_id
|
|
|
})
|
|
|
- .then((res) => {
|
|
|
- item.is_default=1;
|
|
|
+ .then((res) => {
|
|
|
+ that.navList.orderList.forEach(item => {
|
|
|
+ item.is_default = 0
|
|
|
+ })
|
|
|
+ item.is_default=1;
|
|
|
+
|
|
|
uni.showToast({
|
|
|
title:res.msg
|
|
|
})
|
|
|
- that.navList.orderList=[];
|
|
|
- that.navList.page=1;
|
|
|
- that.navList.loadingType='more';
|
|
|
- that.getList();
|
|
|
+
|
|
|
})
|
|
|
.catch(e => {
|
|
|
|