lhl 2 gadi atpakaļ
vecāks
revīzija
5603d6696d
2 mainītis faili ar 486 papildinājumiem un 471 dzēšanām
  1. 478 464
      pages/index/index.vue
  2. 8 7
      pages/user/model/mymodellist.vue

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 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 => {
 

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels