lhl 2 năm trước cách đây
mục cha
commit
5603d6696d
2 tập tin đã thay đổi với 486 bổ sung471 xóa
  1. 478 464
      pages/index/index.vue
  2. 8 7
      pages/user/model/mymodellist.vue

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 478 - 464
pages/index/index.vue


+ 8 - 7
pages/user/model/mymodellist.vue

@@ -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 => {
 

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác