| | |
| | | <MonofilCard v-for="(item, index) in cardList" :key="index" :data="item" /> |
| | | <template #bottom> |
| | | <view class="flex justify-center items-center"> |
| | | <wd-button block> |
| | | <text class="text-[#fff]" @click="save">保存</text> |
| | | <wd-button block @click="save"> |
| | | <text class="text-[#fff]">保存</text> |
| | | </wd-button> |
| | | </view> |
| | | </template> |
| | |
| | | } |
| | | }; |
| | | |
| | | const save = () => {}; |
| | | const save = async () => { |
| | | const { code } = await TwistApi.addStrandedWireDish(cardList.value); |
| | | if (code == 200) { |
| | | toast.success("保存成功"); |
| | | pagingRef.value.refresh(); |
| | | } else { |
| | | toast.error("保存失败"); |
| | | } |
| | | }; |
| | | |
| | | onLoad((options: any) => { |
| | | // 开启广播监听事件 |