lhl 2 年之前
父節點
當前提交
5603d6696d
共有 2 個文件被更改,包括 486 次插入471 次删除
  1. 478 464
      pages/index/index.vue
  2. 8 7
      pages/user/model/mymodellist.vue

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

Some files were not shown because too many files changed in this diff